Skip to main content

Helps download and keep updated maxmind’s geoip db required for django GeoIP

For Django 2.2+ and python 3.6+. For older versions use pip install django-geoipdb-loader<1.0.

Why and when to use?

If you don’t mind installing and configuring official geoipupdate on your server then I’d recommend to use it. If you want a simple method to download db files via django command or schedule updates using celery then this app is the way to go.

Installation

Using pip:

pip install django-geoipdb-loader

Add the app to INSTALLED_APPS and configure GEOIP_PATH:

INSTALLED_APPS = [
    ...
    geoipdb_loader,
    ...
]

GEOIP_PATH = '/myproject/geoip'
MAXMIND_LICENSE_KEY = 'your license key'

Usage

Run manage.py download_geoipdb to download geoip files.

In order to automatically update the geoip files you can use provided celery task:

CELERYBEAT_SCHEDULE = {
    'update-geoipdb': {
        'task': 'geoipdb_loader.tasks.update_geoipdb',
        'schedule': crontab(day_of_week=6),
    },
}

or crontab:

* * * * 6 manage.py download_geoipdb

Metadata

Release files for django-geoipdb-loader 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-geoipdb-loader 1.0.0
File Size Uploaded Provenance
django-geoipdb-loader-1.0.0.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-geoipdb-loader 1.0.0
File Interpreter ABI Platform
django_geoipdb_loader-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / django-geoipdb-loader-1.0.0.tar.gz

Download URL django-geoipdb-loader-1.0.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2e087b1bf25133f8c454778bcc335d0e1a78d77c3e172b47d2727b1c3a934f6c
BLAKE2b-256 checksum
How to use checksums
b6b7eb6d4e8c158139726f5595ede92be2bef5ea52f0ce41e02087fcd4f67c22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

Release files / django_geoipdb_loader-1.0.0-py3-none-any.whl

Download URL django_geoipdb_loader-1.0.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1deb4e95fafc082cf563285c4e9a16aff710edec29581010a0b1eec091e6fbe
BLAKE2b-256 checksum
How to use checksums
4a932a25955fefd9e30e5faa8a26773e0d31fdc90b555ed68fd50a3df3556cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

Security for django-geoipdb-loader 1.0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page