New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

django-iprir

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-iprir

Retrieve, store and query information about Regional Internet Registries

  • 1.2.2
  • PyPI
  • Socket score

Maintainers
1

===== iprir

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 Django2.0

Updated for PostgreSQL

Quick start

  1. Add "iprir" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = ( ... 'iprir', )

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

    url(r'^iprir/', include('iprir.urls')),

  3. Run python manage.py migrate to create the iprir models.

  4. Run python manage.py loadregistry to import data.

Usage

  1. Any of the URL's

  2. In models.py:

    from iprir.models import TLD

    class Country(models.Model): ... tld = models.ForeignKey(TLD, blank=True, null=True)

  3. In helpers.py / views.py

    from iprir.helpers import ip_info

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc