<p>Good news, there is a python implementation available! <a href="https://github.com/cffls/pycardano" rel="nofollow noreferrer">https://github.com/cffls/pycardano</a></p>
<p>I haven't used it myself but the Readme claims this library is able to build and sign transactions. It even comes with an example for exactly this purpose: <a href="https://github.com/cffls/pycardano#transaction-creation-and-signing" rel="nofollow noreferrer">https://github.com/cffls/pycardano#transaction-creation-and-signing</a></p>

CC BY-SA 4.0
2022-04-21T10:43:59.897Z
That was a lifesaver. Thanks, man!
Foad
CC BY-SA 4.0
2022-04-29T05:02:46.387Z
Can it compile Plutus.  I looked at the docs but I am too new to this whole thing to even be able to tell.  I just want to programmatically generate simple scripts.
Sam Gralla
CC BY-SA 4.0
2022-03-30T14:21:39.220Z
2022-03-30T14:21:39.220Z
LACE pool
<p>I want to use the &quot;Submit a transaction&quot; method in <a href="https://blockfrost.io" rel="nofollow noreferrer">Blockfrost</a> but it needs an already serialized transaction. Does anybody know how to serialize a transaction in python? (I don't wanna use CLI or anything like that)</p>

CC BY-SA 4.0
2021-12-04T15:10:15.630Z
Sadly there isn't an easy way of doing this in Python yet, since the [serialization library][1] is written in Rust with WASM wrappers. At the moment your best bet is to use Javascript/TypeScript in Node, or use pure Rust, or if you're feeling adventurous it is possible to execute rust functions from a Python code base. It just requires a bit of work, [see here.][2]


  [1]: https://github.com/Emurgo/cardano-serialization-lib/
  [2]: https://www.vortexa.com/insight/integrating-rust-into-python
Thom
CC BY-SA 4.0
2021-12-06T13:24:15.450Z
It is also be possible to construct and sign a transaction using `cardano-cli`. Quickly searching for a python wrapper I've found https://github.com/creativequotient/automint
sorki
<transaction><python>
Serialize a transaction in python
# Serialize a transaction in python

(Asked by: username_0 on 2021-12-04)

I want to use the "Submit a transaction" method in [Blockfrost](https://blockfrost.io) but it needs an already serialized transaction. Does anybody know how to serialize a transaction in python? (I don't wanna use CLI or anything like that)

**Tags:** transaction, python
> **Comments:**
> **username_1**: Sadly there isn't an easy way of doing this in Python yet, since the [serialization library][1] is written in Rust with WASM wrappers. At the moment your best bet is to use Javascript/TypeScript in Node, or use pure Rust, or if you're feeling adventurous it is possible to execute rust functions from a Python code base. It just requires a bit of work, [see here.][2]     [1]: https://github.com/Emurgo/cardano-serialization-lib/   [2]: https://www.vortexa.com/insight/integrating-rust-into-python  
> **username_2**: It is also be possible to construct and sign a transaction using `cardano-cli`. Quickly searching for a python wrapper I've found https://github.com/creativequotient/automint  

---

## 1 answers

### Answer by username_3 on 2022-03-30. Score: 2 | Accepted answer

Good news, there is a python implementation available! <https://github.com/cffls/pycardano>

I haven't used it myself but the Readme claims this library is able to build and sign transactions. It even comes with an example for exactly this purpose: <https://github.com/cffls/pycardano#transaction-creation-and-signing>

> **Comments:**
> **username_0**: That was a lifesaver. Thanks, man!  
> **username_4**: Can it compile Plutus.  I looked at the docs but I am too new to this whole thing to even be able to tell.  I just want to programmatically generate simple scripts.  

---

