Skip to main content

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")

Metadata

Release files for geodb-rs 0.1.6

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

Source distribution (sdist)

Source distribution for geodb-rs 0.1.6
File Size Uploaded
geodb_rs-0.1.6.tar.gz 24.5 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for geodb-rs 0.1.6
File Interpreter ABI Platform
geodb_rs-0.1.6-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details
geodb_rs-0.1.6-cp37-abi3-macosx_11_0_arm64.whl CPython 3.7 abi3 macOS 11.0+ ARM64 Details
geodb_rs-0.1.6-cp37-abi3-macosx_10_12_x86_64.whl CPython 3.7 abi3 macOS 10.12+ x86-64 Details

Total release size: 53.9 MB

Release files / geodb_rs-0.1.6.tar.gz

Download URL geodb_rs-0.1.6.tar.gz
Size 24.5 MB
Tags Source
SHA-256 checksum
How to use checksums
4e0c61e70d945574e048435a4d0773cc00356ecdcf9d78831052e9510c0d19af
BLAKE2b-256 checksum
How to use checksums
adbb0ec5c58d67394e298b5891c5e11f5d3d4eaf6b9ef1ba5cdd18698a5974e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.11.5

Release files / geodb_rs-0.1.6-cp37-abi3-win_amd64.whl

Download URL geodb_rs-0.1.6-cp37-abi3-win_amd64.whl
Size 9.8 MB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
662da2232447048fb0b9b606f5d4840dc7a61777186810ee64d47f325a7a29c1
BLAKE2b-256 checksum
How to use checksums
c252f6793116e7118e9933fc3880f623e43c79b2ffceedde16834e9496215992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.11.5

Release files / geodb_rs-0.1.6-cp37-abi3-macosx_11_0_arm64.whl

Download URL geodb_rs-0.1.6-cp37-abi3-macosx_11_0_arm64.whl
Size 9.8 MB
Tags CPython 3.7 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d38ec3db2a4baa9d7650f2938ab9138fea8b832284740268df35552e177619f7
BLAKE2b-256 checksum
How to use checksums
12a2c6bf4f3a5dc7021369f95f95f53af217a21caa794c9b837af7bff5ac2017
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.11.5

Release files / geodb_rs-0.1.6-cp37-abi3-macosx_10_12_x86_64.whl

Download URL geodb_rs-0.1.6-cp37-abi3-macosx_10_12_x86_64.whl
Size 9.8 MB
Tags CPython 3.7 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e6777ee7dfadd1b9d1a98021691c7efae9b0a213b302396899f7bd69afb0cafe
BLAKE2b-256 checksum
How to use checksums
caaf4600e529490c83f55b40a24b7912a52513449774a5588cee78f7a515bbf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.11.5

Release history Release notifications | RSS feed

This release

0.1.6 This release

4 release files

0.1.5

5 release files

0.1.4

5 release files

0.1.3

10 release files

0.1.2

10 release files

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