bitcoin jpegs
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ordinals-0.0.11.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for ordinals-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9639bb83100c220ff31422192e45e623b145a19cacde5cf62339e7caabab5ad |
|
MD5 | 5c17234d730cb83d5a6d14974e61587f |
|
BLAKE2b-256 | 4825b4ed2e014491a49a011c9d3211c6501e27a0da61156a5bf7deadeb251041 |