Skip to main content

Dalton

PyPI GitHub Documentation Status Codacy Badge CI Workflow

Note that this is an alpha release of the project, and large changes may occur, however it is intended to keep the access paths to functions and classes the same.

This Python package provides a wrapper providing read-only access to the Atomic Assets API on the WAX blockchain. Full docs being assembled at Read the Docs.

Features

  • Atom class for accessing Atomic Asset Data
  • Pythonic classes for Atomic Assets, Templates, Schemas, Collections, Transfer events, with
  • A growing collection of class methods for working with API data.

In development

Have a look at our roadmap here.

Installation

The recommended method of installation is through PyPI and pip

python -m pip install daltonapi

Fun fact: This package is named after John Dalton, a pioneer of Atomic Theory.

Examples

Creating an Atom object

The main class of the Dalton package is the Atom class, which is used as an interface to the API

>>> from daltonapi.api import Atom

>>> atom = Atom()

Retrieving an asset

Once you have created an Atom, it's simple to get information about an asset.

>>> my_asset = atom.get_asset("1099519242825")
>>> print(my_asset)
Asset 1099519242825: creekdrops21 -   Bitcoin #1/21 (Max Supply: 21)
>>>
>>> # get link to asset's primary image
>>> print(my_asset.image)
https://ipfs.io/ipfs/QmUn8kvvHFrJK2mSsiPFNRMmmehnRoNJsqTP4XTVsemgrc
>>>
>>> # get asset collection, which is a Collection object
>>> collection = my_asset.collection
>>> print("Author:",collection.author)
Author: creek.gm

Retrieving assets based on criteria

To get assets based on some criteria, you can use Atom.get_assets, which will return a list based on criteria passed. Currently, get_assets accepts owner, template, schema, and/or collection as either strings or Class Objects.

>>> # Get assets using owner and template as strings
>>> assets = atom.get_assets(owner="someowner123", template = "12345")
>>>
>>> # Get assets using collection class object
>>> assets = atom.get_assets(collection=my_asset.collection)

Documentation

Full documentation is being assembled at Read the Docs.

Contributing

See Contributing.

Alternatively, if you would like to sponsor me, consider donating some WAX to the address daltonpython. https://i.imgur.com/rWbgGW3.png

Attribution

Contact me

Metadata

Release files for daltonapi 0.5.0

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

Source distribution (sdist)

Source distribution for daltonapi 0.5.0
File Size Uploaded Provenance Actions
daltonapi-0.5.0.tar.gz 11.2 kB Without provenance Details for daltonapi-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for daltonapi 0.5.0
File Interpreter ABI Platform Actions
daltonapi-0.5.0-py3-none-any.whl Python 3 none any Details for daltonapi-0.5.0-py3-none-any.whl

Total release size: 22.2 kB

Release files / daltonapi-0.5.0.tar.gz

Download URL daltonapi-0.5.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
37ae4467ffc78c09d0110220a5eca7131ad662f12f9dc5104ebc8d9d90ba9d87
BLAKE2b-256 checksum
How to use checksums
1eef3c4111a1bfe18fe389aab445027c698b716c3631ca0a32988154a8555ea4
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.4

Release files / daltonapi-0.5.0-py3-none-any.whl

Download URL daltonapi-0.5.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb1b4bcdab43c574ba2069d2be2de29d941eddc5f5f5fd28e56f81db9896ced5
BLAKE2b-256 checksum
How to use checksums
c44412fef81f0ad15cbb80f3c79537f93f9993e2483351e87c4ca98743735c67
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.4

Security for daltonapi 0.5.0

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.

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