Skip to main content

parse aria2's dht.dat into human-readable json

Project description

aria2_dht_dat_parser

parse aria2's dht.dat into human-readable json

Install

pip install aria2-dht-dat-parser

Usage

use as a cli tool

aria2-dht-dat-parser -i dht.dat [-o dht.json]

use as a python module

from aria2_dht_dat_parser import parse
result = parse('dht.dat')

Parsed Result Example

{
    "format_id": 2,
    "version": 3,
    "file_saved_time": 1620000000,
    "local_node_id": "xxxxxxxxxxxxxxxxxxxx",
    "num_node": 100,
    "nodes": [
        {
            "ip": "127.0.0.1",
            "port": 6881,
            "id": "xxxxxxxxxxxxxxxxxxxx"
        }, ...
    ]
}

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aria2_dht_dat_parser-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

aria2_dht_dat_parser-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file aria2_dht_dat_parser-0.1.0.tar.gz.

File metadata

  • Download URL: aria2_dht_dat_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.7.4 CPython/3.10.6

File hashes

Hashes for aria2_dht_dat_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8c3470964229f0a242182621a04503ce3635c9d1086eb2f14cdb299a0d6b70e2
MD5 25fb6b40779e4b30e6fb6a3e0403716d
BLAKE2b-256 d38237254b2fde16072d03e3329995273231e5bfe08aa79c33c9563011a294ad

See more details on using hashes here.

File details

Details for the file aria2_dht_dat_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aria2_dht_dat_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae02af0c7423804b3f1abee68930779de5bf03914e532e25ce18e55f20e9e4c2
MD5 bbe205c3065733b1534ad78e310d99f6
BLAKE2b-256 24454b2622c5c58907f5c7506cb9c23186393d234dad129ddc449d3852197d99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page