Skip to main content

Python client library for the pegnetd API

Project description

# pegnet-py

Still fairly alpha.

## Usage

` >>> import pegnet_py >>> pegnetd = pegnet_py.PegNetd() >>> pegnetd.get_sync_status() {'syncheight': 62, 'factomheight': 62} `

Get PegNet Balances ` >>> import pegnet_py >>> from factom_keys.fct import FactoidAddress >>> pegnetd = pegnet_py.PegNetd() >>> address = FactoidAddress(address_string="FA2jK2HcLnRdS94dEcU27rF3meoJfpUcZPSinpb7AwQvPRY6RL1Q") >>> pegnetd.get_balances(address) {'PEG': 0, 'pADA': 0, 'pBNB': 0, 'pBRL': 0, 'pCAD': 0, 'pCHF': 0, 'pCNY': 0, 'pDAS': 0, 'pDCR': 0, 'pETH': 0, 'pEUR': 0, 'pFCT': 0, 'pGBP': 0, 'pHKD': 0, 'pINR': 0, 'pJPY': 0, 'pKRW': 0, 'pLTC': 0, 'pMXN': 0, 'pPHP': 0, 'pRVN': 0, 'pSGD': 0, 'pUSD': 0, 'pXAG': 0, 'pXAU': 0, 'pXBC': 0, 'pXBT': 0, 'pXLM': 0, 'pXMR': 0, 'pZEC': 0} `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pegnet-py-0.0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

pegnet_py-0.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pegnet-py-0.0.1.tar.gz.

File metadata

  • Download URL: pegnet-py-0.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.4

File hashes

Hashes for pegnet-py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c58b5188ff7085f376a68c0b7c6412ed6d06ceabb0955bf4339971a5903e1077
MD5 f7a548d79e6e34aa2b7d95160bc03d78
BLAKE2b-256 fad89e7acd98aceecd40eb11836a63b92487aae33b40ee7a99b12d59906500a5

See more details on using hashes here.

File details

Details for the file pegnet_py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pegnet_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.4

File hashes

Hashes for pegnet_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b7c827a0dee82d41f2fa3e59291e94ef86a7513fe76dc3870db988141b5e814
MD5 9e95b3b1c84d6167601f0e1d68ecfa86
BLAKE2b-256 e8b0da3358834db1b36ff8fc27137a5745d01300687fe6e530466942a20109cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page