Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Retrieve, store and query information about Regional Internet Registries

Project Description

iprir is a simple Django app to store and query information about Regional Internet Registries like Top Level Domains and IP adresses.

Useful if you’d like to know where your visitors come from.

Updated for Django1.10

Updated for PostgreSQL

Quick start

  1. Add “iprir” to your INSTALLED_APPS setting like this:

  2. Include the iprir URLconf in your project like this:

    url(r'^iprir/', include('iprir.urls')),
  3. Run python migrate to create the iprir models.

  4. Run python loadregistry to import data.


  1. Any of the URL’s

  2. In

    from iprir.models import TLD

    class Country(models.Model):

    … tld = models.ForeignKey(TLD, blank=True, null=True)

  3. In /

    from iprir.helpers import ip_info

    ipremote = ip_info(request, request.META[‘REMOTE_ADDR’])

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-iprir-1.0.5.tar.gz (24.8 kB) Copy SHA256 Checksum SHA256 Source Feb 8, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting