pypdns


Namepypdns JSON
Version 2.2.8 PyPI version JSON
download
home_pageNone
SummaryPython API for PDNS.
upload_time2025-01-29 22:01:52
maintainerNone
docs_urlNone
authorRaphaël Vinot
requires_python>=3.9
licenseGPL-3.0+
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Documentation Status](https://readthedocs.org/projects/pypdns/badge/?version=latest)](https://pypdns.readthedocs.io/en/latest/?badge=latest)

Client API for PDNS
===================

Client API to query any Passive DNS implementation following the Passive DNS - Common Output Format.

* https://datatracker.ietf.org/doc/draft-dulaunoy-dnsop-passive-dns-cof/

## Installation

```bash
pip install pypdns
```

## Usage

### Command line

You can use the `pdns` command to trigger a request.

```bash
usage: pdns [-h] --username USERNAME --password PASSWORD --query QUERY [--rrtype RRTYPE]

Triggers a request againse CIRCL Passive DNS.

options:
  -h, --help           show this help message and exit
  --username USERNAME  The username of you account.
  --password PASSWORD  The password of you account.
  --query QUERY        The query, can be an IP. domain, hostname, TLD.
  --rrtype RRTYPE      Filter the request based on the RR Type.
```

### Library

See [API Reference](https://pypdns.readthedocs.io/en/latest/api_reference.html)


Example
=======

~~~~
import pypdns
import json
x = pypdns.PyPDNS(basic_auth=('username','yourpassword'))

for record in x.iter_query(q='circl.lu', filter_rrtype='A'):
    print(json.dumps(record.record, indent=2))
~~~~

Passive DNS Services
====================

* (default) [CIRCL Passive DNS](http://www.circl.lu/services/passive-dns/)




            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pypdns",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Rapha\u00ebl Vinot",
    "author_email": "raphael.vinot@circl.lu",
    "download_url": "https://files.pythonhosted.org/packages/35/8a/b97f9dfddf6897160baebf09f3d5120041c93df1526e12bca742f22ec95d/pypdns-2.2.8.tar.gz",
    "platform": null,
    "description": "[![Documentation Status](https://readthedocs.org/projects/pypdns/badge/?version=latest)](https://pypdns.readthedocs.io/en/latest/?badge=latest)\n\nClient API for PDNS\n===================\n\nClient API to query any Passive DNS implementation following the Passive DNS - Common Output Format.\n\n* https://datatracker.ietf.org/doc/draft-dulaunoy-dnsop-passive-dns-cof/\n\n## Installation\n\n```bash\npip install pypdns\n```\n\n## Usage\n\n### Command line\n\nYou can use the `pdns` command to trigger a request.\n\n```bash\nusage: pdns [-h] --username USERNAME --password PASSWORD --query QUERY [--rrtype RRTYPE]\n\nTriggers a request againse CIRCL Passive DNS.\n\noptions:\n  -h, --help           show this help message and exit\n  --username USERNAME  The username of you account.\n  --password PASSWORD  The password of you account.\n  --query QUERY        The query, can be an IP. domain, hostname, TLD.\n  --rrtype RRTYPE      Filter the request based on the RR Type.\n```\n\n### Library\n\nSee [API Reference](https://pypdns.readthedocs.io/en/latest/api_reference.html)\n\n\nExample\n=======\n\n~~~~\nimport pypdns\nimport json\nx = pypdns.PyPDNS(basic_auth=('username','yourpassword'))\n\nfor record in x.iter_query(q='circl.lu', filter_rrtype='A'):\n    print(json.dumps(record.record, indent=2))\n~~~~\n\nPassive DNS Services\n====================\n\n* (default) [CIRCL Passive DNS](http://www.circl.lu/services/passive-dns/)\n\n\n\n",
    "bugtrack_url": null,
    "license": "GPL-3.0+",
    "summary": "Python API for PDNS.",
    "version": "2.2.8",
    "project_urls": {
        "Documentation": "https://pypdns.readthedocs.io",
        "Repository": "https://github.com/CIRCL/PyPDNS"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a6ae36d897547c7c4f84fadd56b2506561a78fc6bf3025d6090ec684e7e1619d",
                "md5": "0cc8ddcb7b049d7ae636264a0953f116",
                "sha256": "da7500750823fd31fe3d5441ff836795037195cb5e6cb90dfc9ca8b2bd8da21f"
            },
            "downloads": -1,
            "filename": "pypdns-2.2.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0cc8ddcb7b049d7ae636264a0953f116",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8731,
            "upload_time": "2025-01-29T22:01:50",
            "upload_time_iso_8601": "2025-01-29T22:01:50.134871Z",
            "url": "https://files.pythonhosted.org/packages/a6/ae/36d897547c7c4f84fadd56b2506561a78fc6bf3025d6090ec684e7e1619d/pypdns-2.2.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "358ab97f9dfddf6897160baebf09f3d5120041c93df1526e12bca742f22ec95d",
                "md5": "5b178de1b3fff4ec39efa373451cfa06",
                "sha256": "49242ebf4dd65682bdc823fa80fbe8a257d9ea4fe2ff2d7dbc5e1b6eaf19548f"
            },
            "downloads": -1,
            "filename": "pypdns-2.2.8.tar.gz",
            "has_sig": false,
            "md5_digest": "5b178de1b3fff4ec39efa373451cfa06",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7251,
            "upload_time": "2025-01-29T22:01:52",
            "upload_time_iso_8601": "2025-01-29T22:01:52.132421Z",
            "url": "https://files.pythonhosted.org/packages/35/8a/b97f9dfddf6897160baebf09f3d5120041c93df1526e12bca742f22ec95d/pypdns-2.2.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-29 22:01:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CIRCL",
    "github_project": "PyPDNS",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pypdns"
}
        
Elapsed time: 1.51773s