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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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