{"id":15698376,"url":"https://github.com/nekmo/geoip2-tools","last_synced_at":"2026-04-06T03:05:20.196Z","repository":{"id":44584197,"uuid":"307854695","full_name":"Nekmo/geoip2-tools","owner":"Nekmo","description":"Automatic updates and administration of MaxMind GeoIP2 databases.","archived":false,"fork":false,"pushed_at":"2022-02-06T23:53:10.000Z","size":44,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T12:54:43.674Z","etag":null,"topics":["geoip2","maxmind","python","tools"],"latest_commit_sha":null,"homepage":"","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/Nekmo.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-27T23:36:13.000Z","updated_at":"2024-06-02T03:16:31.000Z","dependencies_parsed_at":"2022-09-26T21:50:59.224Z","dependency_job_id":null,"html_url":"https://github.com/Nekmo/geoip2-tools","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Nekmo/geoip2-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekmo%2Fgeoip2-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekmo%2Fgeoip2-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekmo%2Fgeoip2-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekmo%2Fgeoip2-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nekmo","download_url":"https://codeload.github.com/Nekmo/geoip2-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekmo%2Fgeoip2-tools/sbom","scorecard":{"id":99774,"data":{"date":"2025-08-11","repo":{"name":"github.com/Nekmo/geoip2-tools","commit":"25bb63e877c4b051823ea04f8adc40d114c9a6df"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/Nekmo/geoip2-tools/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/Nekmo/geoip2-tools/publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/Nekmo/geoip2-tools/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/Nekmo/geoip2-tools/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Nekmo/geoip2-tools/test.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:16","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:17","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:18","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:23","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   6 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T09:53:40.686Z","repository_id":44584197,"created_at":"2025-08-15T09:53:40.686Z","updated_at":"2025-08-15T09:53:40.686Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274583693,"owners_count":25311896,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["geoip2","maxmind","python","tools"],"created_at":"2024-10-03T19:26:20.630Z","updated_at":"2026-04-06T03:05:20.115Z","avatar_url":"https://github.com/Nekmo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"############\ngeoip2-tools\n############\n\n\n.. image:: https://img.shields.io/github/workflow/status/Nekmo/geoip-tools/Tests.svg?style=flat-square\u0026maxAge=2592000\n  :target: https://github.com/Nekmo/geoip-tools/actions?query=workflow%3ATests\n  :alt: Latest Tests CI build status\n\n.. image:: https://img.shields.io/pypi/v/geoip2-tools.svg?style=flat-square\n  :target: https://pypi.org/project/geoip2-tools/\n  :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/geoip2-tools.svg?style=flat-square\n  :target: https://pypi.org/project/geoip2-tools/\n  :alt: Python versions\n\n.. image:: https://img.shields.io/codeclimate/github/Nekmo/geoip2-tools.svg?style=flat-square\n  :target: https://codeclimate.com/github/Nekmo/geoip2-tools\n  :alt: Code Climate\n\n.. image:: https://img.shields.io/codecov/c/github/Nekmo/geoip2-tools/master.svg?style=flat-square\n  :target: https://codecov.io/github/Nekmo/geoip2-tools\n  :alt: Test coverage\n\n.. image:: https://img.shields.io/requires/github/Nekmo/geoip2-tools.svg?style=flat-square\n     :target: https://requires.io/github/Nekmo/geoip2-tools/requirements/?branch=master\n     :alt: Requirements Status\n\n\nAutomatic updates and administration of MaxMind GeoIP2 databases.\n\n\nTo install geoip2-tools, run this command in your terminal:\n\n.. code-block:: console\n\n    $ pip install geoip2-tools\n\nThis is the preferred method to install geoip2-tools, as it will always install the most recent stable release.\n\n\nUsage\n=====\nTo use this library you must first obtain a license from Maxmind. It is free for the geolite2 version of the database.\n\n1. `Sign up for a Maxmind Geolite2 account \u003chttps://www.maxmind.com/en/geolite2/signup\u003e`_\n2. `Log in to your Maxmind account \u003chttps://www.maxmind.com/en/account/login\u003e`_\n3. In the menu on the left, navigate to ``Services \u003e My License Key``.\n4. Click ``Generate new license key``.\n5. Save your license key in a secure site.\n\ngeoip2-tools downloads the latest version of the database and keeps it updated for you. By default every 7 days it is\ndownloaded from the Maxmind servers.\n\n.. code-block:: python\n\n    from geoip2_tools.manager import Geoip2DataBaseManager\n\n    geoip2_manager = Geoip2DataBaseManager('\u003clicense key\u003e')\n\n    print(geoip2_manager['country'].reader.country('1.1.1.1').country.name)  # Australia\n\nGeoip2-tools has aliases for the *city*, *country*, and *asn* Geolite2 databases. The country database is smaller than\ncity. The city database also contains the countries:\n\n.. code-block:: python\n\n    city = geoip2_manager['country'].reader.city('\u003cip address\u003e')\n    print(city.city.name)\n    print(city.country.name)\n\nTo obtain the ASN you must use the asn database:\n\n.. code-block:: python\n\n    asn = geoip2_manager['country'].reader.asn('\u003cip address\u003e')\n    print(asn.autonomous_system_number)\n    print(asn.autonomous_system_organization)\n\nThis library is compatible with multiple processes using a lock during the database download. For Windows with multiple\nprocesses ``portalocker`` is recommended. Install it using ``pip install portalocker``.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekmo%2Fgeoip2-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekmo%2Fgeoip2-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekmo%2Fgeoip2-tools/lists"}