Skip to main content
Help us improve Python packaging – donate today!

Simple django app to allow/block IP addresses and ranges outside the Tas-IX network

Project Description

# django-tasix


## What is Tas-IX?
Data exchange network in Uzbekistan, where many domestic ISP providers give access to resources within the network to their subscribers for free.

## What is `django-tasix`?
Simple django app to detect ip adresses/ranges of coming HTTP requests in middleware layer.

# Requirements

* Python (3.2, 3.3, 3.4, 3.5)
* Django (1.10)

# Installation

Install using `pip`:

pip install django-tasix

There are 2 ways for using this app:

1. Middleware style (blocks every request outside Tas-IX)
2. Decorator style (blocks certain requests outside Tas-IX)

### Middleware style

Add `'tasix'` to your `MIDDLEWARE_CLASSES` setting:

# other middleware classes

### Decorator style

Import `allow_tasix` decorator in your view

from django.http import HttpResponse
from tasix.decorators import allow_tasix

def index_view(request):
return HttpResponse('Only Tas-IX users can view this')

## Disclaimer
Network range is being fetched manually from ``, meaning correctness is based on 3rd party ISP provider which releases network information periodically.

## License

Release history Release notifications

This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_tasix-0.3.0-py3-none-any.whl (6.8 kB) Copy SHA256 hash SHA256 Wheel 3.5 Oct 18, 2016
django-tasix-0.3.0.tar.gz (4.7 kB) Copy SHA256 hash SHA256 Source None Oct 18, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page