{"id":13585614,"url":"https://github.com/9b/netinfo","last_synced_at":"2026-01-25T18:06:34.198Z","repository":{"id":45123588,"uuid":"163021839","full_name":"9b/netinfo","owner":"9b","description":"Simple IP enrichment service and API wrapping PyASN and MaxMind GeoIP.","archived":false,"fork":false,"pushed_at":"2022-12-08T01:30:10.000Z","size":4160,"stargazers_count":71,"open_issues_count":6,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-14T03:45:48.374Z","etag":null,"topics":["cybersecurity","data","devops","enrichment","ip-address-lookup","network","osint","python3","webservice"],"latest_commit_sha":null,"homepage":"https://medium.com/@9bplus/netinfo-free-enrichment-for-ip-addresses-ecbcd62e43b6","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/9b.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-24T20:30:59.000Z","updated_at":"2023-04-13T09:02:24.000Z","dependencies_parsed_at":"2023-01-25T03:00:16.011Z","dependency_job_id":null,"html_url":"https://github.com/9b/netinfo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9b%2Fnetinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9b%2Fnetinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9b%2Fnetinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9b%2Fnetinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9b","download_url":"https://codeload.github.com/9b/netinfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247636294,"owners_count":20970898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cybersecurity","data","devops","enrichment","ip-address-lookup","network","osint","python3","webservice"],"created_at":"2024-08-01T15:05:02.610Z","updated_at":"2026-01-25T18:06:34.169Z","avatar_url":"https://github.com/9b.png","language":"Python","readme":"NetInfo\n=======\nNetInfo is a simple IP enrichment service to provide additional data related to an IP address. The primary utility of NetInfo is to serve as a API wrapper and management system for the PyASN and MaxMind GeoIP libraries. NetInfo will automatically seek and download new update files, ensuring the databases are always up-to-date. The local API queries the PyASN and GeoIP instance and returns back enrichment data for an IP address.\n\nGetting Started\n---------------\nGrab the dependencies::\n\n    $ apt-get install redis-server rabbitmq-server\n\nCheck out netinfo to `/opt/`::\n\n    $ cd /opt \u0026\u0026 git clone https://github.com/9b/netinfo.git\n\nChange directory to the `netinfo` working directory::\n\n    $ cd netinfo/\n\nSetup the virtualenv::\n\n    $ virtualenv -p python3 venv3\n\nActivate the virtualenv::\n\n    $ source venv3/bin/activate\n\nInstall the requirements::\n\n    $ (venv3) pip install -r requirements.txt\n\nInstall the services and start them. \n\n    See `Services README`_.\n    \nOr start the Celery Daemon::\n\n    $ (venv3) /opt/netinfo/venv3/bin/celery worker -A worker.celery --loglevel=info -B\n    \nAnd start the server::\n\n    $ (venv3) /opt/netinfo/venv3/bin/uwsgi --ini wsgi.ini\n\nYou can then access the API through http://localhost:7777 for more details.\n\n.. _Services README: https://github.com/9b/netinfo/blob/master/service/README.rst\n\nSample Output\n-------------\nWhen calling http://localhost:7777/lookup?ip=74.96.192.82::\n\n    {\n      \"as_name\": \"UUNET - MCI Communications Services, Inc. d/b/a Verizon Business, US\",\n      \"as_num\": 701,\n      \"city\": \"Vienna\",\n      \"country_iso\": \"US\",\n      \"country_name\": \"United States\",\n      \"ip\": \"74.96.192.82\",\n      \"ip_hex\": \"0x4a60c052\",\n      \"ip_version\": 4,\n      \"latitude\": 38.8977,\n      \"longitude\": -77.288,\n      \"network\": \"74.96.0.0/16\",\n      \"network_broadcast\": \"74.96.255.255\",\n      \"network_hostmask\": \"0.0.255.255\",\n      \"network_netmask\": \"255.255.0.0\",\n      \"network_size\": 65536,\n      \"postal_code\": \"22181\",\n      \"region_iso\": \"VA\",\n      \"region_name\": \"Virginia\"\n    }\n\nUnlike the standard PyASN library, NetInfo will add the AS name to the response, additional network data and the original IP address that was requested.\n\nAPI Endpoints\n-------------\nThe following endpoints are available within the NetInfo service.\n\n**/lookup?ip=8.8.8.8**\n\nGet back AS, network information and geolocation for an IP address.\n\n**/network-addresses?cidr=8.8.8.0/24**\n\nGet back all IP addresses as part of a network range.\n\n**/prefixes?asn=15169**\n\nGet back all prefixes advertised for a specific AS network.\n\n**/as-name?asn=15169**\n\nGet back the name of the AS network.\n\n**/geolocation?ip=8.8.8.8**\n\nGet back geolocation information for an IP address.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9b%2Fnetinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9b%2Fnetinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9b%2Fnetinfo/lists"}