simple-geoip
Dead simple geoip package. Pretty much just a wrapper around maxminddb that automatically downloads the geolite database for you. You can either do this manually using the ‘download_latest_database’ function or let the script do it automatically when it detects no database is installed.
Can be used as a package or standalone script.
Install
pip install simplegeoip
Usage
As a python package.
import simplegeoip
# Gets a dict with country/city information, if there is no database it will be downloaded automatically
simplegeoip.lookup('127.0.0.1')
# Downloads an updated database into simplegeoip's application directory
simplegeoip.download_latest_database()
# Tells you when the database was last updated by maxmind
simplegeoip.last_updated()
# Returns a maxminddb reader object, if there is no database it will be downloaded automatically
simplegeoip.reader()
The same as above but as a standalone script
simplegeoip 8.8.8.8
simplegeoip update
simplegeoip info
Metadata
Release files for simplegeoip 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simplegeoip-0.2.0.tar.gz | 28.4 kB | Without provenance | Details for simplegeoip-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simplegeoip-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for simplegeoip-0.2.0-py2.py3-none-any.whl |
Total release size: 56.8 kB
Release files / simplegeoip-0.2.0.tar.gz
| Download URL | simplegeoip-0.2.0.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d03c20adfd8c94bc366d6fe4d1bd7ee14a0b22d460ec42c16b4c6e3845f7449d
|
|
BLAKE2b-256 checksum How to use checksums |
cc6e9732ab3cb16a172a8bf4cd96dfcae98d2569024e7e49a16c450cae73492a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Release files / simplegeoip-0.2.0-py2.py3-none-any.whl
| Download URL | simplegeoip-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b3525ad8ba462b776ccda0bf5001b937f314060a308befb686df94da53be36e9
|
|
BLAKE2b-256 checksum How to use checksums |
9ac346019123916e338e0ae100e01eef46cc2e62f4ed4157196c2c37b0101e52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for simplegeoip 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.