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.12.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for ordinals-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943b184523d024c882ec94207f067c62d0ca97fc3667f8778f3d96683b3da60a |
|
MD5 | f305458850f82f4cec8373db1ecf9e09 |
|
BLAKE2b-256 | 6a5f5250d154dd21369a17497457f62a87a3a57b370374c7bf05b5906f03f2b4 |