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.13.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file ordinals-0.0.13.tar.gz
.
File metadata
- Download URL: ordinals-0.0.13.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.19.0-32-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0291e4b58a51deae0d1a9348115df0b299a1c7b2c6fb619336edef44493b035e |
|
MD5 | ab5d11405b418750a669741ed334c98b |
|
BLAKE2b-256 | f38833e1c9e44048ec64ceef77b71d2256deefcadcadaba5e7c50ed0f7111d69 |
File details
Details for the file ordinals-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: ordinals-0.0.13-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.19.0-32-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d6a54e216043adf616e972b44e7643eba228515bb709c2e2ca39b88a48a7746 |
|
MD5 | 526ae70648f9590cd325cd57c18bd263 |
|
BLAKE2b-256 | c430b56fa0e66b8fb115acf647837edf68c01898be47c663a412d758a4451e7d |