A sandbox for working with ord: pip install ordinals
For now, api calls go through https://ordapi.xyz/ but an official api is in the works. Will switch to that once available, or start wrapping the ord crate from python.
Setup
Clone, poetry install then pre-commit install.
poetry run pytest
Usage
All subject to change. Just exploring the api for now.
A simple example of iterating through inscriptions and printing any with plaintext content:
from ord import client
for i, inscription_id in client.inscriptions(start=0, stop=100):
inscription = client.get_content(inscription_id)
try:
plaintext = inscription.decode("utf-8")
print(i, inscription_id, "plaintext content")
print(plaintext, "\n\n")
except UnicodeDecodeError:
pass
Metadata
Release files for ordinals 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ordinals-0.0.13.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ordinals-0.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / ordinals-0.0.13.tar.gz
| Download URL | ordinals-0.0.13.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0291e4b58a51deae0d1a9348115df0b299a1c7b2c6fb619336edef44493b035e
|
|
BLAKE2b-256 checksum How to use checksums |
f38833e1c9e44048ec64ceef77b71d2256deefcadcadaba5e7c50ed0f7111d69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.6 Linux/5.19.0-32-generic
|
Release files / ordinals-0.0.13-py3-none-any.whl
| Download URL | ordinals-0.0.13-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d6a54e216043adf616e972b44e7643eba228515bb709c2e2ca39b88a48a7746
|
|
BLAKE2b-256 checksum How to use checksums |
c430b56fa0e66b8fb115acf647837edf68c01898be47c663a412d758a4451e7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.6 Linux/5.19.0-32-generic
|