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.3.tar.gz (17.3 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.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

geodb_rs-0.1.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

geodb_rs-0.1.3-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

geodb_rs-0.1.3-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

geodb_rs-0.1.3-cp37-abi3-win_amd64.whl (3.8 MB view details)

Uploaded CPython 3.7+Windows x86-64

geodb_rs-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

geodb_rs-0.1.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

geodb_rs-0.1.3-cp37-abi3-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

geodb_rs-0.1.3-cp37-abi3-macosx_10_12_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for geodb_rs-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f7afad6f4fc9613b3e52dc9b244512b5129036946d6c95ddbc9c10d82637c83f
MD5 2e1fa4740ab7908b4c7885b73e2213de
BLAKE2b-256 d29a737a368570caa7f1fa25fa014523a36ae89e2d90a745f12707c8ee385e7a

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for geodb_rs-0.1.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd607e6fa7d8ab8c955b9e904921158064e4924e159183f6bd41c000182a4d86
MD5 5ea653d5d6a5ae278ebfe3ff620b277a
BLAKE2b-256 19f2da1546593d1668cda5132a7e994edba3cf066cb16bb6e5e70821181b3677

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for geodb_rs-0.1.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d5ac24915e31cb4d8541b3c959513c88cf785df49a21130555af265683d0611
MD5 2f6d3f93399d6b81d9ed9b09de76c84b
BLAKE2b-256 553ca5d311504194622b62c98e68b4181c90ff9720889e1b79337bc638533dba

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.3-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for geodb_rs-0.1.3-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a78a49d0541a63f1f1b689920afb72c905137abba1b29d2ffbcedf8baf6ab741
MD5 e7046199bb0cf156a36ebbb49def286e
BLAKE2b-256 3ffe2ec71d7db77081b150af893a61850199a081c264f3d1fcbd64f247146416

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.3-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for geodb_rs-0.1.3-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 60754a222c513d98709605f5c88ec1b2454a3d2241d27690cbfd81d87ea717ac
MD5 08a0551d1120aa7bc8113fd78861038a
BLAKE2b-256 d848fb77237443496e90091c3f74e8027ae8f747482d3852b3887fea382dde42

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for geodb_rs-0.1.3-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c30121252d9376cb743ef326e2af9005cc5a2e34812da3d04280b6010e67fc3a
MD5 087adbdba25ee1aa62b44ce1d5c6fe88
BLAKE2b-256 ef758c9ee84ec780763e7e5a9ad4244c108daf67e2678c073d4c2af3ae9b80ab

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geodb_rs-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e2adf62a61d4096bf1e605e45c96c41cd2482e4ded0899b834efc9ecc70db8e0
MD5 c7668b7d3835aed60c0f0b0c5a8a9c4e
BLAKE2b-256 8ba10385f633bd841b447b16f4d2989f62f95272e382e64677d0ee7006d60435

See more details on using hashes here.

File details

Details for the file geodb_rs-0.1.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for geodb_rs-0.1.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bb54b096996260f5854c3403542da4e365a46efbe94e916ae76d8c0f385e94ee
MD5 23d11ff5e826f4eb8366441fea2ff164
BLAKE2b-256 7609424c96b70a2bb11b233a3a94f4ed9c7b5d028389eebddd1efa7ad9e162d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.3-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d71016bd02634a40ffb97616f86b65aa13321082dce6a3718dd5996bf741d1d
MD5 81a5e3b0e93649106c875c908ec95847
BLAKE2b-256 90da112f5c975ce841b3ad7e7209abc4e2b9b93e7feed4a16b7f62a08980ae96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.3-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 25818002471f40e4702304f021b216cf15c47a8f6fdf00e8585968c309305ce4
MD5 ec85085583b2e870b4d2b8a22d5e6aac
BLAKE2b-256 36f0c58667e3568ee60cc7db51812b191b60bb7ce6ee3119c3f2cbe1d806c5a3

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