[](https://pyipasnhistory.readthedocs.io/en/latest/)
# PyIPASNHistory
This is the client API for [IP ASN History](https://github.com/D4-project/IPASN-History).
## Installation
```bash
pip install pyipasnhistory
```
## Usage
### Command line
You can use the `ipasnhistory` command to query the instance.
```bash
usage: ipasnhistory [-h] [--url URL] (--meta | --file FILE | --ip IP) [--source SOURCE] [--address_family ADDRESS_FAMILY] [--date DATE] [--first FIRST]
[--last LAST]
Run a query against IP ASN History
optional arguments:
-h, --help show this help message and exit
--url URL URL of the instance.
--meta Get meta information.
--file FILE Mass process queries from a file.
--ip IP IP to lookup
--source SOURCE Source to query (currently, only "caida" and "ripe_rrc00" are supported)
--address_family ADDRESS_FAMILY
Can be either v4 or v6
--date DATE Exact date to lookup. Fallback to most recent available.
--first FIRST First date in the interval
--last LAST Last date in the interval
```
### Library
See [API Reference](https://pyipasnhistory.readthedocs.io/en/latest/api_reference.html)
Raw data
{
"_id": null,
"home_page": "https://github.com/lookyloo/PyLookyloo",
"name": "pyipasnhistory",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Rapha\u00ebl Vinot",
"author_email": "raphael.vinot@circl.lu",
"download_url": "https://files.pythonhosted.org/packages/d0/26/b725f3e31ee4b81dd0e757bf330673ea894a7c5c9140696b063444071d30/pyipasnhistory-2.1.3.tar.gz",
"platform": null,
"description": "[](https://pyipasnhistory.readthedocs.io/en/latest/)\n\n# PyIPASNHistory\n\nThis is the client API for [IP ASN History](https://github.com/D4-project/IPASN-History).\n\n## Installation\n\n```bash\npip install pyipasnhistory\n```\n\n## Usage\n\n### Command line\n\nYou can use the `ipasnhistory` command to query the instance.\n\n```bash\nusage: ipasnhistory [-h] [--url URL] (--meta | --file FILE | --ip IP) [--source SOURCE] [--address_family ADDRESS_FAMILY] [--date DATE] [--first FIRST]\n [--last LAST]\n\nRun a query against IP ASN History\n\noptional arguments:\n -h, --help show this help message and exit\n --url URL URL of the instance.\n --meta Get meta information.\n --file FILE Mass process queries from a file.\n --ip IP IP to lookup\n --source SOURCE Source to query (currently, only \"caida\" and \"ripe_rrc00\" are supported)\n --address_family ADDRESS_FAMILY\n Can be either v4 or v6\n --date DATE Exact date to lookup. Fallback to most recent available.\n --first FIRST First date in the interval\n --last LAST Last date in the interval\n```\n\n### Library\n\nSee [API Reference](https://pyipasnhistory.readthedocs.io/en/latest/api_reference.html)\n\n",
"bugtrack_url": null,
"license": "AGPL",
"summary": "Python client for IP ASN History",
"version": "2.1.3",
"project_urls": {
"Documentation": "https://pylookyloo.readthedocs.io/en/latest/",
"Homepage": "https://github.com/lookyloo/PyLookyloo",
"Repository": "https://github.com/lookyloo/PyLookyloo"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4b20758e747f01f4b0d40499e1b7aca69275acdf37388a9579e37a5d44bb7bae",
"md5": "5e81d3cfbee359d40af38d9b859f2196",
"sha256": "36a227a92958122d26e5795ad07758fce7c935f8c2211ac29dd7d83c32ff6859"
},
"downloads": -1,
"filename": "pyipasnhistory-2.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5e81d3cfbee359d40af38d9b859f2196",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 5274,
"upload_time": "2024-11-26T01:30:23",
"upload_time_iso_8601": "2024-11-26T01:30:23.948372Z",
"url": "https://files.pythonhosted.org/packages/4b/20/758e747f01f4b0d40499e1b7aca69275acdf37388a9579e37a5d44bb7bae/pyipasnhistory-2.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d026b725f3e31ee4b81dd0e757bf330673ea894a7c5c9140696b063444071d30",
"md5": "fc80ca83f2c67b871c47472308b9870d",
"sha256": "a02f218374959df61db45ba5eec6c0b54dca1440bc14d06facf645e21d13f49c"
},
"downloads": -1,
"filename": "pyipasnhistory-2.1.3.tar.gz",
"has_sig": false,
"md5_digest": "fc80ca83f2c67b871c47472308b9870d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 4179,
"upload_time": "2024-11-26T01:30:25",
"upload_time_iso_8601": "2024-11-26T01:30:25.859679Z",
"url": "https://files.pythonhosted.org/packages/d0/26/b725f3e31ee4b81dd0e757bf330673ea894a7c5c9140696b063444071d30/pyipasnhistory-2.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-26 01:30:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lookyloo",
"github_project": "PyLookyloo",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyipasnhistory"
}