SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

python3-pygeoip rpm build for : Rawhide. For other distributions click python3-pygeoip.

Name : python3-pygeoip
Version : 0.2.6 Vendor : Fedora Project
Release : 18.fc30 Date : 2018-10-11 13:11:41
Group : Development/Libraries Source RPM : python-pygeoip-0.2.6-18.fc30.src.rpm
Size : 0.98 MB
Packager : Fedora Project
Summary : Pure Python GeoIP API
Description :
Pure Python GeoIP API based on MaxMind\'s C-based Python API
but the code itself is ported from the Pure PHP GeoIP API.

Create your GeoIP instance with appropriate access flag. `STANDARD` reads
data from disk when needed, `MEMORY_CACHE` loads database into memory on
instantiation and `MMAP_CACHE` loads database into memory using mmap.

import pygeoip
gi = pygeoip.GeoIP(\'/usr/share/geoip/GeoIP.dat\', pygeoip.MEMORY_CACHE)

Country lookup

>>> gi.country_code_by_name(\'google.com\')
\'US\'
>>> gi.country_code_by_addr(\'64.233.161.99\')
\'US\'
>>> gi.country_name_by_addr(\'64.233.161.99\')
\'United States\'

City lookup

>>> gi = pygeoip.GeoIP(\'/usr/share/geoip/GeoLiteCity.dat\')
>>> gi.record_by_addr(\'64.233.161.99\')
{
\'city\': \'Mountain View\',
\'region_name\': \'CA\',
\'area_code\': 650,
\'longitude\': -122.0574,
\'country_code3\': \'USA\',
\'latitude\': 37.419199999999989,
\'postal_code\': \'94043\',
\'dma_code\': 807,
\'country_code\': \'US\',
\'country_name\': \'United States\'
}
>>> gi.time_zone_by_addr(\'64.233.161.99\')
\'America/Los_Angeles\'

For more information, check out the full API documentation at
http://packages.python.org/pygeoip.

RPM found in directory: /vol/rzm3/linux-fedora-buffet/alt/risc-v/repo/fedora/rawhide/25788/riscv64/Packages/p

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  python3-pygeoip-0.2.6-18.fc30.noarch.rpm
ftp.icm.edu.pl  python3-pygeoip-0.2.6-18.fc30.noarch.rpm
     

Provides :
python3-pygeoip
python3.7dist(pygeoip)
python3dist(pygeoip)

Requires :
geoip-geolite
python(abi) = 3.7
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/python3.7/site-packages/pygeoip
/usr/lib/python3.7/site-packages/pygeoip-0.2.6-py3.7.egg-info
/usr/lib/python3.7/site-packages/pygeoip-0.2.6-py3.7.egg-info/PKG-INFO
/usr/lib/python3.7/site-packages/pygeoip-0.2.6-py3.7.egg-info/SOURCES.txt
/usr/lib/python3.7/site-packages/pygeoip-0.2.6-py3.7.egg-info/dependency_links.txt
/usr/lib/python3.7/site-packages/pygeoip-0.2.6-py3.7.egg-info/top_level.txt
/usr/lib/python3.7/site-packages/pygeoip/__init__.py
/usr/lib/python3.7/site-packages/pygeoip/__pycache__
/usr/lib/python3.7/site-packages/pygeoip/__pycache__/__init__.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/pygeoip/__pycache__/__init__.cpython-37.pyc
/usr/lib/python3.7/site-packages/pygeoip/__pycache__/const.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/pygeoip/__pycache__/const.cpython-37.pyc
/usr/lib/python3.7/site-packages/pygeoip/__pycache__/timezone.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/pygeoip/__pycache__/timezone.cpython-37.pyc
/usr/lib/python3.7/site-packages/pygeoip/__pycache__/util.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/pygeoip/__pycache__/util.cpython-37.pyc
/usr/lib/python3.7/site-packages/pygeoip/const.py
/usr/lib/python3.7/site-packages/pygeoip/timezone.py
/usr/lib/python3.7/site-packages/pygeoip/util.py
/usr/share/doc/python3-pygeoip
/usr/share/doc/python3-pygeoip/COPYING
/usr/share/doc/python3-pygeoip/DEVELOPER
/usr/share/doc/python3-pygeoip/INSTALL
/usr/share/doc/python3-pygeoip/README.md
/usr/share/doc/python3-pygeoip/apidocs
/usr/share/doc/python3-pygeoip/apidocs/html
/usr/share/doc/python3-pygeoip/apidocs/html/api-objects.txt
/usr/share/doc/python3-pygeoip/apidocs/html/class-tree.html
/usr/share/doc/python3-pygeoip/apidocs/html/crarr.png
/usr/share/doc/python3-pygeoip/apidocs/html/epydoc.css
There is 25 files more in these RPM.

 
ICM