Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: python3-pygeoip | Distribution: Fedora Project |
Version: 0.2.6 | Vendor: Fedora Project |
Release: 34.fc39 | Build date: Fri Jul 21 14:48:14 2023 |
Group: Unspecified | Build host: buildvm-a64-05.iad2.fedoraproject.org |
Size: 1050478 | Source RPM: python-pygeoip-0.2.6-34.fc39.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.
LGPLv3+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.2.6-33 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2.6-30 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
/usr/lib/python3.12/site-packages/pygeoip /usr/lib/python3.12/site-packages/pygeoip-0.2.6-py3.12.egg-info /usr/lib/python3.12/site-packages/pygeoip-0.2.6-py3.12.egg-info/PKG-INFO /usr/lib/python3.12/site-packages/pygeoip-0.2.6-py3.12.egg-info/SOURCES.txt /usr/lib/python3.12/site-packages/pygeoip-0.2.6-py3.12.egg-info/dependency_links.txt /usr/lib/python3.12/site-packages/pygeoip-0.2.6-py3.12.egg-info/top_level.txt /usr/lib/python3.12/site-packages/pygeoip/__init__.py /usr/lib/python3.12/site-packages/pygeoip/__pycache__ /usr/lib/python3.12/site-packages/pygeoip/__pycache__/__init__.cpython-312.opt-1.pyc /usr/lib/python3.12/site-packages/pygeoip/__pycache__/__init__.cpython-312.pyc /usr/lib/python3.12/site-packages/pygeoip/__pycache__/const.cpython-312.opt-1.pyc /usr/lib/python3.12/site-packages/pygeoip/__pycache__/const.cpython-312.pyc /usr/lib/python3.12/site-packages/pygeoip/__pycache__/timezone.cpython-312.opt-1.pyc /usr/lib/python3.12/site-packages/pygeoip/__pycache__/timezone.cpython-312.pyc /usr/lib/python3.12/site-packages/pygeoip/__pycache__/util.cpython-312.opt-1.pyc /usr/lib/python3.12/site-packages/pygeoip/__pycache__/util.cpython-312.pyc /usr/lib/python3.12/site-packages/pygeoip/const.py /usr/lib/python3.12/site-packages/pygeoip/timezone.py /usr/lib/python3.12/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 /usr/share/doc/python3-pygeoip/apidocs/html/epydoc.js /usr/share/doc/python3-pygeoip/apidocs/html/frames.html /usr/share/doc/python3-pygeoip/apidocs/html/help.html /usr/share/doc/python3-pygeoip/apidocs/html/identifier-index.html /usr/share/doc/python3-pygeoip/apidocs/html/index.html /usr/share/doc/python3-pygeoip/apidocs/html/module-tree.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip-module.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip-pysrc.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.GeoIP-class.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.GeoIPBase-class.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.GeoIPError-class.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.GeoIPMetaclass-class.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.const-module.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.const-pysrc.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.timezone-module.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.timezone-pysrc.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.util-module.html /usr/share/doc/python3-pygeoip/apidocs/html/pygeoip.util-pysrc.html /usr/share/doc/python3-pygeoip/apidocs/html/redirect.html /usr/share/doc/python3-pygeoip/apidocs/html/toc-everything.html /usr/share/doc/python3-pygeoip/apidocs/html/toc-pygeoip-module.html /usr/share/doc/python3-pygeoip/apidocs/html/toc-pygeoip.const-module.html /usr/share/doc/python3-pygeoip/apidocs/html/toc-pygeoip.timezone-module.html /usr/share/doc/python3-pygeoip/apidocs/html/toc-pygeoip.util-module.html /usr/share/doc/python3-pygeoip/apidocs/html/toc.html
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Jul 9 22:23:46 2024