Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

web3data-py Python API

https://img.shields.io/pypi/v/web3data.svg https://img.shields.io/travis/dmuhs/web3data-py.svg Documentation Status Updates https://coveralls.io/repos/github/dmuhs/web3data-py/badge.svg?branch=master

Obtaining an API Key

Visit Amberdata.io and select the developer plan to get started! Pass your API key to the client instance, either has a hardcoded string, or through an environment variable:

from web3data import Web3Data
w3d = Web3Data("<your key>")

… and start querying!

Installation

To install web3data-py, run this command in your terminal:

$ pip install web3data

For alternative ways to install the package, check out the installation instructions

Usage

from web3data import Web3Data

w3d = Web3Data("<your key>")
print(w3d.eth.address.information("0x06012c8cf97bead5deae237070f9587f8e7a266d"))

This will print the raw response, such as:

{'status': 200,
 'title': 'OK',
 'description': 'Successful request',
 'payload': {'balance': '5296672643815245964',
  'balanceIn': '3.0894905437937322715551e+22',
  'balanceOut': '3.0889608765293507469587e+22',
  'addressType': 'contract',
  'changeInPrice': None,
  'contractTypes': ['ERC721'],
  'decimals': '0',
  'name': 'CryptoKitties',
  'numHolders': '84753',
  'numTokens': '1860119',
  'numTransfers': '2723659',
  'symbol': 'CK',
  'totalSupply': '1860119.0000000000000000',
  'totalValueUSD': None,
  'unitValueUSD': None}}

Development

Check out our contribution guidelines to see how to install the development version and run the test suite!

Don’t have the time to contribute? Open up an issue and we’ll get it fixed! Simply like the project? Tip me some BAT to sponsor development! :)

Resources

Credits

The initial version of this package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.6 (2021-01-25)

  • Add CSV format switch support

  • Various dependency upgrades

0.1.5 (2020-05-22)

  • Include missing files in sdist

  • Update pip to 20.1.1

  • Update bumpversion to 0.6.0

  • Update flake8 to 3.8.1

  • Update pytest to 5.4.2

  • Update requests-mock to 1.8.0

0.1.4 (2020-04-28)

  • add support for RPC endpoints

  • add support for websocket endpoints

  • add examples for rpc and websocket calls

  • update coverage to 5.1

  • update sphinx to 3.0.3

0.1.3 (2020-03-16)

  • update coverage from 4.5.4 to 5.0.3

  • update flake8 from 3.7.8 to 3.7.9

  • update pip from 19.2.3 to 20.0.2

  • update pytest from 4.6.5 to 5.4.1

  • update pytest-runner from 5.1 to 5.2

  • update sphinx from 1.8.5 to 2.4.4

  • update twine from 1.14.0 to 3.1.1

  • update watchdog from 0.9.0 to 0.10.2

  • update wheel from 0.33.6 to 0.34.2

0.1.1 + 0.1.2 (2020-03-15)

Add minor documentation, markup, and package publishing fixes

0.1.0 (2020-03-15)

First release on PyPI

0.0.1 (2020-03-13)

First implementation for the Amberdata developer challenge

Metadata

Release files for web3data 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for web3data 0.1.7
File Size Uploaded
web3data-0.1.7.tar.gz 29.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for web3data 0.1.7
File Interpreter ABI Platform
web3data-0.1.7-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 63.7 kB

Release files / web3data-0.1.7.tar.gz

Download URL web3data-0.1.7.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9a7487c03fb39a8638527e853c2b212c4dfc1235c7ed7c4a9a46027c605a919b
BLAKE2b-256 checksum
How to use checksums
5fc8d494c9f4e91f38ed0f6cd860aa0fcb0347f340fe4a98024c667b0eb28fe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

Release files / web3data-0.1.7-py2.py3-none-any.whl

Download URL web3data-0.1.7-py2.py3-none-any.whl
Size 34.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c60e7c0920481aff40c1688d9a3a864ac4aca17ee3432cf9e54e5ef2316b3750
BLAKE2b-256 checksum
How to use checksums
506857d900823d6f16f297a1f207b36b28ad76f48acde47573b0dcdace6222b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page