pydena
Unofficial Python API for idena-go RPC
Help Support Me by Donating iDNA to My Address Here
Requirements
- Python 3.6+
Installation
# From pypi
pip install pydena
# From source
git clone github.com/M4cs/pydena
cd pydena
python3 setup.py install
Roadmap
RPC APIs:
- IPFS API ✔
- Accounts API ✔
- Blockchain API ✔
- DNA API ✔
- Net API ❌
- Flip API ❌
- Contracts API ❌
Idena API:
This will be worked on after RPC. Version 2 will migrate API -> pydena.RPC. pydena.API will become the http API for the explorer.
Usage
Initialize your API:
from pydena import API
# Local Node with No API Key on http://localhost:9009
api = API()
# Local Node with API Key
api = API(apikey='YOUR-API-KEY')
# Remote node with API Key
api = API('http://localhost:9999', 'YOUR-API-KEY')
# Get Coinbase Address:
api.getCoinbaseAddress()
# Get Last Block:
api.getLastBlock()
# To get JSON responses, just pass `raw=True` to any API/RPC Call
api.getLastBlock(raw=True)
# See all in documentation below!
View the official documentation here
Metadata
Release files for pydena 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydena-1.1.1.tar.gz | 7.7 kB | Without provenance | Details for pydena-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydena-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for pydena-1.1.1-py3-none-any.whl |
Total release size: 15.0 kB
Release files / pydena-1.1.1.tar.gz
| Download URL | pydena-1.1.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c49975dd51f7e49c330c8bfffa174ff6d81d6c793f84ed46a62b748d8472a584
|
|
BLAKE2b-256 checksum How to use checksums |
6ac57c69f0abb0cd722d1a5c4d9d437893c58bfe239e22631809ada0713bc79f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Release files / pydena-1.1.1-py3-none-any.whl
| Download URL | pydena-1.1.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b86924f2abf8d45408090c4f7aea404bbdca7c86964df81571de0e6b6c86b3be
|
|
BLAKE2b-256 checksum How to use checksums |
329d883adf28ec9d9dbe81e708c4619df70899430ed9f49694078f27e29fadd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Security for pydena 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.