python3-pygeoip-0.2.6-19.fc30.noarch.rpm


Advertisement

Description

python3-pygeoip - Pure Python GeoIP API

Property Value
Distribution Fedora 30
Repository Fedora x86_64
Package filename python3-pygeoip-0.2.6-19.fc30.noarch.rpm
Package name python3-pygeoip
Package version 0.2.6
Package release 19.fc30
Package architecture noarch
Package type rpm
Homepage http://pypi.python.org/pypi/pygeoip
License LGPLv3+
Maintainer -
Download size 93.16 KB
Installed size 1002.70 KB
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.

Alternatives

Package Version Architecture Repository
python3-pygeoip-0.2.6-19.fc30.noarch.rpm 0.2.6 noarch Fedora
python3-pygeoip - - -

Requires

Name Value
geoip-geolite -
python(abi) = 3.7

Provides

Name Value
python3-pygeoip = 0.2.6-19.fc30
python3.7dist(pygeoip) = 0.2.6
python3dist(pygeoip) = 0.2.6

Download

Type URL
Mirror download-ib01.fedoraproject.org
Binary Package python3-pygeoip-0.2.6-19.fc30.noarch.rpm
Source Package python-pygeoip-0.2.6-19.fc30.src.rpm

Install Howto

Install python3-pygeoip rpm package:

# dnf install python3-pygeoip

Files

Path
/usr/lib/python3.7/site-packages/pygeoip/__init__.py
/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/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/__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/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/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

Changelog

2019-02-02 - Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-10-11 - Miro Hrončok <mhroncok@redhat.com> - 0.2.6-18
- Python2 binary package has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
2018-07-14 - Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-19 - Miro Hrončok <mhroncok@redhat.com> - 0.2.6-16
- Rebuilt for Python 3.7
2018-02-09 - Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-27 - Iryna Shcherbina <ishcherb@redhat.com> - 0.2.6-14
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
2017-08-19 - Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.6-13
- Python 2 binary package renamed to python2-pygeoip
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
2017-07-27 - Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-02-11 - Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

See Also

Package Description
python3-pyghmi-1.2.16-1.fc30.noarch.rpm Python General Hardware Management Initiative (IPMI and others)
python3-pyghmi-tests-1.2.16-1.fc30.noarch.rpm Tests for the pyghmi library
python3-pygiftiio-1.0.4-3.fc30.noarch.rpm Python bindings for Gifti
python3-pygit2-0.27.4-2.fc30.x86_64.rpm Python 3.x bindings for libgit2
python3-pygithub-1.39-6.fc30.noarch.rpm Python library to work with the Github API
python3-pyglet-1.3.2-2.fc30.noarch.rpm A cross-platform windowing and multimedia library for Python 3
python3-pygments-2.2.0-16.fc30.noarch.rpm Syntax highlighting engine written in Python
python3-pygments-markdown-lexer-0.1.0.dev39-13.fc30.noarch.rpm A Markdown lexer for Pygments to highlight Markdown code snippets
python3-pygments-style-solarized-0.1.1-7.1.fc30.noarch.rpm Solarized style plugin for Pygments
python3-pygpu-0.7.6-3.fc30.i686.rpm Python 3 interface to manipulate tensors on a GPU
python3-pygpu-0.7.6-3.fc30.x86_64.rpm Python 3 interface to manipulate tensors on a GPU
python3-pygpu-devel-0.7.6-3.fc30.i686.rpm Development files for python3-pygpu
python3-pygpu-devel-0.7.6-3.fc30.x86_64.rpm Development files for python3-pygpu
python3-pygraphviz-1.5-3.fc30.x86_64.rpm Create and Manipulate Graphs and Networks
python3-pygresql-5.0.6-3.fc30.x86_64.rpm Python client library for PostgreSQL
Advertisement
Advertisement