This helper can generate pickle db from txt files, than you can use this db to get ipgeobase (http://ipgeobase.ru) info by ip address.
- Download latest archieve of txt files http://ipgeobase.ru/files/db/Main/geo_files.tar.gz
- Put both txt files to geo_files dir
- Run 'python cidr_create.py'
- Look at example.py (in file was written django custom managemen command) how to use cidr_pickle.db
>>> from example import ipgeobase_info
>>> c, r, t = ipgeobase_info('46.20.191.2')
>>> print c, r, t
RU Владимирская область Владимир