No project description provided
Project description
SnapCAT
snapcat is a Python command-line tool that helps manage Chia Address Tokens (CATs). The tool communicates locally with the 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 TEXT 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 5320121
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
Tail Hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
Last Block Height: 5319876
Show
❯ snapcat show --help
Usage: snapcat show [OPTIONS]
Display the CAT db information.
╭─ Options ──────────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────╯
❯ snapcat -f dbx.db show
Tail Hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
# of Coins Spent: 152873
# of Coins Created: 158309
Last Block Height: 5319876
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
snapcat-0.1.0.tar.gz
(7.8 kB
view details)
Built Distribution
snapcat-0.1.0-py3-none-any.whl
(10.1 kB
view details)
File details
Details for the file snapcat-0.1.0.tar.gz
.
File metadata
- Download URL: snapcat-0.1.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9dbd467bd3c7753f8d452af4cd264c89dab5f2b35b99858759b60967a2132c |
|
MD5 | 04190943409b4301248d2629b0581832 |
|
BLAKE2b-256 | fbc958285047b93e46cd2fa9cf8adc89c919a0fcfd3d18ab8989abd009564b74 |
File details
Details for the file snapcat-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: snapcat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5ea4a4b810b5b93a7abc428db0c428d4fff2b27128c784d875d5677b44e3e83 |
|
MD5 | 98537fd4a54fda77a8ed1460217268df |
|
BLAKE2b-256 | 51ba4c7a2d71ccd90b54fa798c56937d69ed94ea44d36521059797b857c4fa11 |