Skip to main content

python-geoacumen-city

Installation

pip install python-geoacumen-city

Usage

>>> import geoacumen_city
>>> import maxminddb
>>> reader = maxminddb.open_database(geoacumen_city.db_path)
>>> reader.get("1.1.1.1")
{'city': {'names': {'en': 'Sydney'}},
 'continent': {'code': 'OC',
  'geoname_id': 6255151,
  'names': {'de': 'Ozeanien',
   'en': 'Oceania',
   'es': 'Oceanía',
   'fa': 'اقیانوسیه',
   'fr': 'Océanie',
   'ja': 'オセアニア',
   'ko': '오세아니아',
   'pt-BR': 'Oceania',
   'ru': 'Океания',
   'zh-CN': '大洋洲'}},
 'country': {'geoname_id': 2077456,
  'is_in_european_union': False,
  'iso_code': 'AU',
  'names': {'de': 'Australien',
   'en': 'Australia',
   'es': 'Australia',
   'fa': 'استرالیا',
   'fr': 'Australie',
   'ja': 'オーストラリア',
   'ko': '오스트레일리아',
   'pt-BR': 'Austrália',
   'ru': 'Австралия',
   'zh-CN': '澳大利亚'}},
 'location': {'latitude': -33.8688, 'longitude': 151.209},
 'subdivisions': [{'names': {'en': 'New South Wales'}}]}
>>>

Note that you must still comply with the requirements of the DB-IP license specified here: https://db-ip.com/db/download/ip-to-city-lite

That is the following:

You are free to use this IP to City Lite database in your application, provided you give attribution to DB-IP.com for the data.

In the case of a web application, you must include a link back to DB-IP.com on pages that display or use results from the database. You may do it by pasting the HTML code snippet below into your code :

<a href='https://db-ip.com'>IP Geolocation by DB-IP</a>

Metadata

Release files for python-geoacumen-city 2023.4.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-geoacumen-city 2023.4.15
File Size Uploaded Provenance
python-geoacumen-city-2023.4.15.tar.gz 48.5 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for python-geoacumen-city 2023.4.15
File Interpreter ABI Platform
python_geoacumen_city-2023.4.15-py3-none-any.whl Python 3 none any Details

Total release size: 97.3 MB

Release files / python-geoacumen-city-2023.4.15.tar.gz

Download URL python-geoacumen-city-2023.4.15.tar.gz
Size 48.5 MB
Tags Source
SHA-256 checksum
How to use checksums
7be290b86d12884fb2c65a359fde499e7a9ec9fdcb7e988321ae4fac5c6a0b54
BLAKE2b-256 checksum
How to use checksums
08d38b446b53e0f305f380850e2c8f7100ea5bbacdf6a250e82d0a78bbb1d05e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.9.6 requests/2.28.2 setuptools/56.0.0 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.8.16

Release files / python_geoacumen_city-2023.4.15-py3-none-any.whl

Download URL python_geoacumen_city-2023.4.15-py3-none-any.whl
Size 48.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3b7ecd4072b97a9a3d68ac8eff2ac855aa3d8188f89892b01df8c6bf572a4a73
BLAKE2b-256 checksum
How to use checksums
f5b8829cd8219ca85be2396907e843d968bcbfb7082b6865eabef509adbf9baf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.9.6 requests/2.28.2 setuptools/56.0.0 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.8.16

Security for python-geoacumen-city 2023.4.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page