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 | Provenance | Actions |
|---|---|---|---|---|
| ordinals-0.0.13.tar.gz | 6.7 kB | Without provenance | Details for ordinals-0.0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ordinals-0.0.13-py3-none-any.whl | Python 3 | none | any | Details for ordinals-0.0.13-py3-none-any.whl |
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
|
Security for ordinals 0.0.13
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.