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.2.tar.gz (10.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.2-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.2-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.2-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.2-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.2-cp37-abi3-win_amd64.whl (3.8 MB view details)

Uploaded CPython 3.7+Windows x86-64

geodb_rs-0.1.2-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.2-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.2-cp37-abi3-macosx_11_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

geodb_rs-0.1.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for geodb_rs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8d0b5ff502686a05fe8c969baaa8800a944ec67d509aa31c10534c5b8463d716
MD5 13a051c78e03843dc2a41e4398f686ee
BLAKE2b-256 f0bcbd1ddf609560372680e8d822624415234a9d4b41a58665c87d0539315eb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 efe9a76307dc67f04def75a190f78e0c5a1f8821e761f5d47d92d346f73af4a6
MD5 ec4b9637b2a7818f9e722c1a262cdfec
BLAKE2b-256 7aa9a624053c89a7422aaf8582a4139949ce640f8c4e6729b1dd2d26088c2adc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e879bbf5f9cdb89648f8eb109fe91917a0d7b628da4dc48be93bb5a5c2875827
MD5 44d609940eebd8098e02243b331a27a2
BLAKE2b-256 f3a55dfc66020f03b59f982214f076f9d3ccdcca85161d057225723168929fac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 15f41a4fe17cccfd5c784f904f790bffdfd96a3a23bed7a8d912784d04ee1348
MD5 f82225a2d28054479ebb086c582b6b87
BLAKE2b-256 5fa1a12bb1115b52154efc9cf730e2e02267b4cc983caabb890275aa794552f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.2-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2e1f215be4398929dd8a10974b0a934c5d6d35c777874c92f699ec43b289c7b0
MD5 163e209dc2c4b1a9ca5d939b5b0b90b2
BLAKE2b-256 7490d9384e69fbe8e2227fa4d9b75d74e9663b7cc8fd34b9646e0e1b388cafd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geodb_rs-0.1.2-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.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d9332c223a67973f0cde0e53bd37f3245078cc3813cd4b728484a15859fd0251
MD5 e556b547f8dcf802fd0e28f298cfa5e1
BLAKE2b-256 92d7ed4666e05e6dd869a753b87b237283b41bb3f17b206efcb946a9d5d78df8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa2669a85d3a6797b7a0940965f7524232b2a84cba145d0bab8b2e0f62d9385d
MD5 54afa9a5b0c8021575259a2bc6721d65
BLAKE2b-256 9a6bb38b821e9182d8d57b0fa7f37e332b90c0ccf1aeab249e1662fbf62b66a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e4fbad784443ce249553696b15e46c96c034ab382076bc93c1bc7e640415bcff
MD5 4748f278ea22b0c68393d024c93918f7
BLAKE2b-256 ca3223a9c241cc88707f6173b8b172cc10e6a91d21ca411fab7b4cb66dff750c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85645ffef8488f96868ed721be54f6e46b84f2837819a21cd2b5bb5f7f4e85da
MD5 53e69808379383490cd4b9d29d8daa9d
BLAKE2b-256 5acc1027a661596e5f9af9572269b7ddde743305587459c1711b82a1868e4c53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geodb_rs-0.1.2-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d6185492690c1e2f5946503c4b4fdaa31036acb7ab25917b8233fb4386be3f22
MD5 9cf6475eb39684ddd979a869db294675
BLAKE2b-256 c598f3ace59310aa060832abaffafcaa576edd3355e158c4bf8607615cab83b7

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