SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

python2-pygeoip rpm build for : Fedora 28. For other distributions click python2-pygeoip.

Name : python2-pygeoip
Version : 0.2.6 Vendor : Fedora Project
Release : 15.fc28 Date : 2018-02-09 12:21:26
Group : Development/Libraries Source RPM : python-pygeoip-0.2.6-15.fc28.src.rpm
Size : 0.99 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: /mirror/download.fedora.redhat.com/pub/fedora/linux/releases/28/Everything/armhfp/os/Packages/p

Content of RPM  Changelog  Provides Requires

Download
ftp.pbone.net  python2-pygeoip-0.2.6-15.fc28.noarch.rpm
ftp.pbone.net  python2-pygeoip-0.2.6-15.fc28.noarch.rpm
ftp.pbone.net  python2-pygeoip-0.2.6-15.fc28.noarch.rpm
ftp.pbone.net  python2-pygeoip-0.2.6-15.fc28.noarch.rpm
ftp.pbone.net  python2-pygeoip-0.2.6-15.fc28.noarch.rpm
ftp.pbone.net  python2-pygeoip-0.2.6-15.fc28.noarch.rpm
     

Provides :
python-pygeoip
python2-pygeoip
python2.7dist(pygeoip)
python2dist(pygeoip)

Requires :
GeoIP
python(abi) = 2.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/python2.7/site-packages/pygeoip
/usr/lib/python2.7/site-packages/pygeoip-0.2.6-py2.7.egg-info
/usr/lib/python2.7/site-packages/pygeoip-0.2.6-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/pygeoip-0.2.6-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/pygeoip-0.2.6-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/pygeoip-0.2.6-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/pygeoip/__init__.py
/usr/lib/python2.7/site-packages/pygeoip/__init__.pyc
/usr/lib/python2.7/site-packages/pygeoip/__init__.pyo
/usr/lib/python2.7/site-packages/pygeoip/const.py
/usr/lib/python2.7/site-packages/pygeoip/const.pyc
/usr/lib/python2.7/site-packages/pygeoip/const.pyo
/usr/lib/python2.7/site-packages/pygeoip/timezone.py
/usr/lib/python2.7/site-packages/pygeoip/timezone.pyc
/usr/lib/python2.7/site-packages/pygeoip/timezone.pyo
/usr/lib/python2.7/site-packages/pygeoip/util.py
/usr/lib/python2.7/site-packages/pygeoip/util.pyc
/usr/lib/python2.7/site-packages/pygeoip/util.pyo
/usr/share/doc/python2-pygeoip
/usr/share/doc/python2-pygeoip/COPYING
/usr/share/doc/python2-pygeoip/DEVELOPER
/usr/share/doc/python2-pygeoip/INSTALL
/usr/share/doc/python2-pygeoip/README.md
/usr/share/doc/python2-pygeoip/apidocs
/usr/share/doc/python2-pygeoip/apidocs/html
/usr/share/doc/python2-pygeoip/apidocs/html/api-objects.txt
/usr/share/doc/python2-pygeoip/apidocs/html/class-tree.html
/usr/share/doc/python2-pygeoip/apidocs/html/crarr.png
/usr/share/doc/python2-pygeoip/apidocs/html/epydoc.css
/usr/share/doc/python2-pygeoip/apidocs/html/epydoc.js
There is 24 files more in these RPM.