{"id":16195268,"url":"https://github.com/tethik/simplegeoip","last_synced_at":"2025-04-07T15:54:48.105Z","repository":{"id":57467434,"uuid":"83615678","full_name":"Tethik/simplegeoip","owner":"Tethik","description":"Dead simple geoip package","archived":false,"fork":false,"pushed_at":"2019-09-22T14:45:27.000Z","size":94,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T18:37:43.852Z","etag":null,"topics":["geoip","ip","networking"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tethik.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":"2017-03-02T00:28:18.000Z","updated_at":"2019-09-22T14:45:29.000Z","dependencies_parsed_at":"2022-09-16T14:50:59.697Z","dependency_job_id":null,"html_url":"https://github.com/Tethik/simplegeoip","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/Tethik%2Fsimplegeoip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tethik%2Fsimplegeoip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tethik%2Fsimplegeoip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tethik%2Fsimplegeoip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tethik","download_url":"https://codeload.github.com/Tethik/simplegeoip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685597,"owners_count":20979085,"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":["geoip","ip","networking"],"created_at":"2024-10-10T08:26:53.067Z","updated_at":"2025-04-07T15:54:48.081Z","avatar_url":"https://github.com/Tethik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"============\nsimple-geoip\n============\n.. image:: https://travis-ci.org/Tethik/simplegeoip.png?branch=master\n    :target: https://travis-ci.org/Tethik/simplegeoip\n    :alt: Travis-CI\n\n.. image:: https://codecov.io/gh/Tethik/simplegeoip/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/Tethik/simplegeoip\n    :alt: codecov\n\n.. image:: https://img.shields.io/pypi/v/simplegeoip.svg   \n    :target: https://pypi.python.org/pypi/simplegeoip\n    :alt: Latest version    \n\n.. image:: https://img.shields.io/pypi/pyversions/simplegeoip.svg\n    :target: https://pypi.python.org/pypi/simplegeoip/\n    :alt: Supported python versions\n    \n.. image:: https://img.shields.io/github/license/Tethik/simplegeoip.svg   \n    :target: https://github.com/Tethik/simplegeoip/blob/master/LICENSE\n    \n\nDead simple geoip package. Pretty much just a wrapper around `maxminddb \u003chttps://github.com/maxmind/MaxMind-DB-Reader-python/\u003e`_ \nthat automatically downloads the geolite database for you. You can either do this manually using the 'download_latest_database' function \nor let the script do it automatically when it detects no database is installed.\n\nCan be used as a package or standalone script.\n\nInstall\n-------\n\n.. code-block:: bash\n\n    pip install simplegeoip\n\n\nUsage\n-----\nAs a python package.\n\n.. code-block:: python\n\n    import simplegeoip\n\n    # Gets a dict with country/city information, if there is no database it will be downloaded automatically \n    simplegeoip.lookup('127.0.0.1')\n    # Downloads an updated database into simplegeoip's application directory\n    simplegeoip.download_latest_database()\n    # Tells you when the database was last updated by maxmind\n    simplegeoip.last_updated()\n    # Returns a maxminddb reader object, if there is no database it will be downloaded automatically \n    simplegeoip.reader()\n    \n\nThe same as above but as a standalone script\n\n.. code-block:: bash\n\n    simplegeoip 8.8.8.8\n    simplegeoip update\n    simplegeoip info \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftethik%2Fsimplegeoip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftethik%2Fsimplegeoip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftethik%2Fsimplegeoip/lists"}