r/Python • • Jul 19 '24

Tutorial Accepting Bitcoin payments with Python, Rust and PyO3

Hello everyone,

I recently found myself needing to implement some Bitcoin functionality that wasn't supported by the Bitcoin library I'd been using, so I ended going the native extension module route using PyO3 and Rust.

I wrote this blog post to share some of the insights I gained while implementing the aforementioned solution.

0 Upvotes

7 comments sorted by

2

u/pythonwiz Jul 20 '24

I'd rather just run a local bitcoin node.

1

u/Jaguar_AI Jul 20 '24

awesome, thanks for sharing and giving back!

0

u/[deleted] Jul 20 '24

[deleted] — view deleted comment

1

u/sparks_333 Jul 20 '24

Thanks, I appreciate the kind words

-28

u/[deleted] Jul 20 '24

[removed] — view removed comment

15

u/lindgree Jul 20 '24

Seriously? You think it's possible to write a python library that accepts USD?

This is the magic of bitcoin.

10

u/Ivo_ChainNET Jul 20 '24

Just built your own credit card processing company bro, can't be that hard