Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

python-pygeoip-0.2.6-5.el7 RPM for noarch

From EPEL 7 for ppc64 / Packages / p

Name: python-pygeoip Distribution: Fedora Project
Version: 0.2.6 Vendor: Fedora Project
Release: 5.el7 Build date: Thu Jan 15 16:10:59 2015
Group: Development/Libraries Build host: buildvm-18.phx2.fedoraproject.org
Size: 1043078 Source RPM: python-pygeoip-0.2.6-5.el7.src.rpm
Packager: Fedora Project
Url: http://pypi.python.org/pypi/pygeoip
Summary: Pure Python GeoIP API
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.

Provides

Requires

License

LGPLv3+

Changelog

* Thu Jan 15 2015 Ralph Bean <rbean@redhat.com> - 0.2.6-5
  - Pull in GeoIP instead of geoip-geolite (el7).
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-4
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.6-3
  - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-2
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sat Feb 23 2013 Ralph Bean <rbean@redhat.com> - 0.2.6-1
  - Latest upstream release
  - Now including docs, license, readme, and tests.
  - Tests are disabled until data is available
    https://bugzilla.redhat.com/show_bug.cgi?id=910233
* Mon Feb 11 2013 Ralph Bean <rbean@redhat.com> - 0.2.5-1
  - Initial package for Fedora.

Files

/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/python-pygeoip-0.2.6
/usr/share/doc/python-pygeoip-0.2.6/COPYING
/usr/share/doc/python-pygeoip-0.2.6/DEVELOPER
/usr/share/doc/python-pygeoip-0.2.6/INSTALL
/usr/share/doc/python-pygeoip-0.2.6/README.md
/usr/share/doc/python-pygeoip-0.2.6/apidocs
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/api-objects.txt
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/class-tree.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/crarr.png
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/epydoc.css
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/epydoc.js
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/frames.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/help.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/identifier-index.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/index.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/module-tree.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip-module.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip-pysrc.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.GeoIP-class.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.GeoIPBase-class.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.GeoIPError-class.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.GeoIPMetaclass-class.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.const-module.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.const-pysrc.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.timezone-module.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.timezone-pysrc.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.util-module.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/pygeoip.util-pysrc.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/redirect.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/toc-everything.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/toc-pygeoip-module.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/toc-pygeoip.const-module.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/toc-pygeoip.timezone-module.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/toc-pygeoip.util-module.html
/usr/share/doc/python-pygeoip-0.2.6/apidocs/html/toc.html


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 13:55:58 2024