Skip to main content

Python bindings for geodb-core

Project description

geodb-py

Python bindings for the geodb-rs project.

For full documentation, examples, and details about the underlying Rust library, please see the main project README:

# Load the database
import geodb_py
db = geodb.PyGeoDb.load_default()

# Find a country by ISO2 code
country = db.find_country_by_iso2("US")
if country:
print(f"Country: {country['name']}")
print(f"Capital: {country['capital']}")
print(f"Phone Code: {country['phone_code']}")
print(f"Currency: {country['currency']}")

# Search countries by phone code
countries = db.find_countries_by_phone_code("+1")
for country in countries:
    print(f"{country['name']} uses phone code +1")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geodb_rs-0.1.6.tar.gz (24.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

geodb_rs-0.1.6-cp37-abi3-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.7+Windows x86-64

geodb_rs-0.1.6-cp37-abi3-macosx_11_0_arm64.whl (9.8 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

geodb_rs-0.1.6-cp37-abi3-macosx_10_12_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file geodb_rs-0.1.6.tar.gz.

File metadata

  • Download URL: geodb_rs-0.1.6.tar.gz
  • Upload date:
  • Size: 24.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for geodb_rs-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4e0c61e70d945574e048435a4d0773cc00356ecdcf9d78831052e9510c0d19af
MD5 8843a0661aef93e0dcb9c4adc0862f9a
BLAKE2b-256 adbb0ec5c58d67394e298b5891c5e11f5d3d4eaf6b9ef1ba5cdd18698a5974e9

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.6-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: geodb_rs-0.1.6-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for geodb_rs-0.1.6-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 662da2232447048fb0b9b606f5d4840dc7a61777186810ee64d47f325a7a29c1
MD5 6a18bae742fde4a7e966b4c90d31e12c
BLAKE2b-256 c252f6793116e7118e9933fc3880f623e43c79b2ffceedde16834e9496215992

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.6-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geodb_rs-0.1.6-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d38ec3db2a4baa9d7650f2938ab9138fea8b832284740268df35552e177619f7
MD5 0a8cc8ff9b7d370f7cfc3b6e59bd1748
BLAKE2b-256 12a2c6bf4f3a5dc7021369f95f95f53af217a21caa794c9b837af7bff5ac2017

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.6-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for geodb_rs-0.1.6-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e6777ee7dfadd1b9d1a98021691c7efae9b0a213b302396899f7bd69afb0cafe
MD5 2ba0cb8e8fe5bd04b3d79e5015ded313
BLAKE2b-256 caaf4600e529490c83f55b40a24b7912a52513449774a5588cee78f7a515bbf7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page