Python toolkit for Tezos
Project description
PyTezos
Python SDK for Tezos: RPC, cryptography, operations, smart contract interaction
Requirements
- git
- python 3.6+
- pip 19.0.1+
You will also probably need to install several cryptographic packets.
Linux
Use apt or your favourite package manager:
$ sudo apt install libsodium-dev libsecp256k1-dev libgmp-dev
MacOS
Use homebrew:
$ brew tap cuber/homebrew-libsecp256k1
$ brew install libsodium libsecp256k1 gmp
Windows
The recommended way is to use WSL and then follow the instructions for Linux, but if you feel lucky you can try to install natively:
- Install MinGW from https://osdn.net/projects/mingw/
- Make sure
C:\MinGW\binis added to yourPATH - Download the latest libsodium-X.Y.Z-msvc.zip from https://download.libsodium.org/libsodium/releases/.
- Extract the Win64/Release/v143/dynamic/libsodium.dll from the zip file
- Copy libsodium.dll to C:\Windows\System32\libsodium.dll
Installation
$ pip install pytezos
Google Colab
>>> !apt apt install libsodium-dev libsecp256k1-dev libgmp-dev
>>> !pip install pytezos
Usage
Read quick start guide, or just enjoy surfing the interactive documentation using Python console/Jupyter:
>>> from pytezos import pytezos
>>> pytezos
<pytezos.client.PyTezosClient object at 0x7f904cf339e8>
Properties
.key # tz1grSQDByRpnVs7sPtaprNZRp531ZKz6Jmm
.shell # https://tezos-dev.cryptonomic-infra.tech/ (alphanet)
Helpers
.account()
.activate_account()
.ballot()
.contract()
.delegation()
.double_baking_evidence()
.double_endorsement_evidence()
.endorsement()
.operation()
.operation_group()
.origination()
.proposals()
.reveal()
.seed_nonce_revelation()
.transaction()
.using()
About
The project was initially started by Arthur Breitman, now it's maintained by Baking Bad team. PyTezos development is supported by Tezos Foundation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytezos-2.0.5.tar.gz.
File metadata
- Download URL: pytezos-2.0.5.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.0 Linux/4.15.0-54-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4db329a85c5b9d8a1a9e83f4130dc91d3dd6e20671dbc486b4c9e2e87f6aad8
|
|
| MD5 |
b6064f8cbce883993ef64f25cd52bc03
|
|
| BLAKE2b-256 |
05e0c986ca771d3f90ebbef31747ef1c50cd59e9420fd0316a6ad78a137c4e0c
|
File details
Details for the file pytezos-2.0.5-py3-none-any.whl.
File metadata
- Download URL: pytezos-2.0.5-py3-none-any.whl
- Upload date:
- Size: 58.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.0 Linux/4.15.0-54-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
298fbc568964a8b5f602e5e7fc060332b3098c43d43ee0d535049417871efc81
|
|
| MD5 |
ed8a6211ccbd731469f91373c90973c5
|
|
| BLAKE2b-256 |
5ab6d9198f226eebee8afd3201a8365cfd50ed447b21b66b89edfc76f683e60a
|