SnapCAT
snapcat is a Python command-line tool that helps monitor CATs (Chia Asset Tokens) on Chia Blockchain. It retrieves the latest CAT holder data by communicating with your local Chia Full Node RPC. The tool also leverages code from chia-network's CAT-addresses.
❯ snapcat --help
Usage: snapcat [OPTIONS] COMMAND [ARGS]...
╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮
│ --version Show the version and exit. │
│ --file-name -f TEXT The name of the database file (default: <tail_hash>.db) │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────╮
│ export Export the CAT holder as csv or json. │
│ show Display the CAT db information. │
│ sync Sync or create (if not exist) the CAT holder database. │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
Sync (i.e., generate CAT database)
❯ snapcat sync --help
Usage: snapcat sync [OPTIONS]
Sync or create (if not exist) the CAT holder database.
╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮
│ * --tail-hash -t BYTES32 The TAIL hash of CAT [required] │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
❯ snapcat -f dbx.db sync -t db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
press Ctrl+C to exit.
tail hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
database file name: dbx.db
Full Node is synced
Processed all blocks from 0 to 5320532
Export
❯ snapcat export --help
Usage: snapcat export [OPTIONS]
Export the CAT holder as csv or json.
╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮
│ --output -o TEXT The name of the output file (default: <tail_hash>-<block>.csv or .json) │
│ --coins -c Show individual coins in output rather than collapsing on puzzle hash │
│ --json -j Export as JSON instead of CSV │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
❯ snapcat -f dbx.db export --json -o dbx.json
Exporting CAT holders as json
Tail Hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
Last Block Height: 5320532
Output file: dbx.json
Show
❯ snapcat show --help
Usage: snapcat show [OPTIONS]
Display the CAT db information.
╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮
│ --puzzle-hash -p BYTES32 The (inner) puzzle hash to show the unspent coins and available │
│ balance for │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
❯ snapcat -f dbx.db show
Tail Hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
Last Block Height: 5320532
# of Coins Spent: 152881
# of Coins Created: 158324
❯ snapcat -f dbx.db show -p 627d8cb88c51412d783bc2e6048b6bd9d48e68d790182d582d90395d860da680
Tail Hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
Last Block Height: 5320532
Puzzle Hash: 627d8cb88c51412d783bc2e6048b6bd9d48e68d790182d582d90395d860da680
# of Unspent Coins: 2
Available Balance: 13,678.781
Metadata
Release files for snapcat 0.1.3
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 |
|---|---|---|---|---|
| snapcat-0.1.3.tar.gz | 12.5 kB | Without provenance | Details for snapcat-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snapcat-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for snapcat-0.1.3-py3-none-any.whl |
Total release size: 27.8 kB
Release files / snapcat-0.1.3.tar.gz
| Download URL | snapcat-0.1.3.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c22ce49e6cc733fc6cb1ba751bd2007fae54511bd9fca5efc3f600ca3d357de
|
|
BLAKE2b-256 checksum How to use checksums |
ec3676b5b6c5cdbb3effed6a89d0fd689d55d528d76ce26d8613f5acb170a1f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.5.0
|
Release files / snapcat-0.1.3-py3-none-any.whl
| Download URL | snapcat-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e796cf080128fe0daf01e7e04b6d2e88160500c8b7f43cf8bd98e1419e9a60b6
|
|
BLAKE2b-256 checksum How to use checksums |
af87edeb135f04fb95c67666d8d3124c50add85e9f6d21ee79dc36968537c3b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.5.0
|
Security for snapcat 0.1.3
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.