geodb-rs 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/Cargo.lock +5 -5
  2. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/Cargo.toml +1 -1
  3. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/PKG-INFO +1 -3
  4. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/Cargo.toml +1 -1
  5. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/README.md +78 -6
  6. geodb_rs-0.1.3/crates/geodb-core/data/countries+states+cities.json.gz.ALL.bin +0 -0
  7. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-py/Cargo.toml +1 -1
  8. geodb_rs-0.1.3/crates/geodb-py/geodb_rs_data/countries+states+cities.json.gz.ALL.bin +0 -0
  9. geodb_rs-0.1.2/crates/geodb-py/geodb_rs_data/.DS_Store +0 -0
  10. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/README.md +0 -0
  11. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/benches/benchmarks.rs +0 -0
  12. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/data/city_meta.json +0 -0
  13. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/data/countries+states+cities.json.gz +0 -0
  14. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/alias.rs +0 -0
  15. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/api.rs +0 -0
  16. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/cache.rs +0 -0
  17. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/error.rs +0 -0
  18. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/filter.rs +0 -0
  19. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/lib.rs +0 -0
  20. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/loader.rs +0 -0
  21. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/model.rs +0 -0
  22. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/phone.rs +0 -0
  23. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/prelude.rs +0 -0
  24. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/src/region.rs +0 -0
  25. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-core/tests/basic.rs +0 -0
  26. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-py/README.md +0 -0
  27. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-py/example.py +0 -0
  28. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-py/geodb_rs_data/city_meta.json +0 -0
  29. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-py/geodb_rs_data/countries+states+cities.json.gz +0 -0
  30. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-py/src/lib.rs +0 -0
  31. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/crates/geodb-py/tests/test_basic.py +0 -0
  32. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/geodb_rs_data/countries+states+cities.json.gz +0 -0
  33. {geodb_rs-0.1.2 → geodb_rs-0.1.3}/pyproject.toml +0 -0
@@ -305,7 +305,7 @@ dependencies = [
305
305
 
306
306
  [[package]]
307
307
  name = "geodb-cli"
308
- version = "0.1.2"
308
+ version = "0.1.3"
309
309
  dependencies = [
310
310
  "anyhow",
311
311
  "clap",
@@ -314,7 +314,7 @@ dependencies = [
314
314
 
315
315
  [[package]]
316
316
  name = "geodb-core"
317
- version = "0.1.2"
317
+ version = "0.1.3"
318
318
  dependencies = [
319
319
  "bincode",
320
320
  "criterion",
@@ -327,7 +327,7 @@ dependencies = [
327
327
 
328
328
  [[package]]
329
329
  name = "geodb-py"
330
- version = "0.1.2"
330
+ version = "0.1.3"
331
331
  dependencies = [
332
332
  "geodb-core",
333
333
  "pyo3",
@@ -338,14 +338,14 @@ dependencies = [
338
338
 
339
339
  [[package]]
340
340
  name = "geodb-rs"
341
- version = "0.1.0"
341
+ version = "0.1.3"
342
342
  dependencies = [
343
343
  "geodb-core",
344
344
  ]
345
345
 
346
346
  [[package]]
347
347
  name = "geodb-wasm"
348
- version = "0.1.2"
348
+ version = "0.1.3"
349
349
  dependencies = [
350
350
  "bincode",
351
351
  "console_error_panic_hook",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "geodb-rs"
3
- version = "0.1.0"
3
+ version = "0.1.3"
4
4
  edition = "2021"
5
5
  publish = false
6
6
  license = "MIT"
@@ -1,19 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geodb-rs
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Classifier: Programming Language :: Python
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3 :: Only
7
7
  Classifier: Programming Language :: Rust
8
8
  Classifier: Operating System :: OS Independent
9
9
  Summary: Python bindings for geodb-core
10
- Keywords: geodb,geo,countries,regions,cities
11
10
  Home-Page: https://github.com/holg/geodb-rs
12
11
  Author: Holger Trahe
13
12
  License: MIT
14
13
  Requires-Python: >=3.8
15
14
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
16
- Project-URL: Source Code, https://github.com/holg/geodb-rs
17
15
 
18
16
  # geodb-py
19
17
 
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "geodb-core"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  edition = "2021"
5
5
  authors = ["Holger Trahe"]
6
6
  license = "MIT OR Apache-2.0"
@@ -1,16 +1,23 @@
1
1
  # geodb-rs
2
2
 
3
+ ![CI](https://github.com/holg/geodb-rs/actions/workflows/ci.yml/badge.svg)
4
+ [![Build WASM Demo](https://github.com/holg/geodb-rs/actions/workflows/wasm-build.yml/badge.svg)](https://github.com/holg/geodb-rs/actions/workflows/wasm-build.yml)
5
+
3
6
  [![Crates.io](https://img.shields.io/crates/v/geodb-core.svg)](https://crates.io/crates/geodb-core)
4
7
  [![Documentation](https://docs.rs/geodb-core/badge.svg)](https://docs.rs/geodb-core)
8
+
9
+ [![PyPI](https://img.shields.io/pypi/v/geodb-rs.svg)](https://pypi.org/project/geodb-rs/)
10
+ [![Publish geodb_rs to PyPI](https://github.com/holg/geodb-rs/actions/workflows/pypi.yml/badge.svg)](https://github.com/holg/geodb-rs/actions/workflows/pypi.yml)
5
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
12
 
7
13
  A high-performance, pure-Rust geographic database with countries, states/regions, cities, aliases, phone codes, currencies, timezones, and WebAssembly support.
8
14
 
9
15
  This repository is a **Cargo workspace** containing:
10
16
 
11
- - **`geodb-core`** — main geographic database library (published on crates.io)
12
- - **`geodb-wasm`** — WebAssembly bindings + browser demo (Trunk-based)
13
- - **`geodb-cli`** — optional CLI (future)
17
+ - **`geodb-core`** — main geographic database library (published on crates.io) — docs: https://docs.rs/geodb-core
18
+ - **`geodb-cli`** — finished command‑line interface docs: https://docs.rs/geodb-cli
19
+ - **`geodb-wasm`** — WebAssembly bindings + browser demo — docs: https://docs.rs/geodb-wasm
20
+ - **`geodb-py`** — Python bindings (published on PyPI as “geodb‑rs”) — https://pypi.org/project/geodb-rs/
14
21
 
15
22
  ---
16
23
 
@@ -227,6 +234,66 @@ Live demo:
227
234
 
228
235
  ---
229
236
 
237
+ # Command-line interface (`geodb-cli`)
238
+
239
+ The CLI is finished and available on crates.io. It provides quick access to the
240
+ database for exploration, scripting, or data checks.
241
+
242
+ Install:
243
+
244
+ ```bash
245
+ cargo install geodb-cli
246
+ ```
247
+
248
+ Examples:
249
+
250
+ ```bash
251
+ geodb-cli --help
252
+ geodb-cli stats
253
+ geodb-cli find-country US
254
+ geodb-cli list-cities --country US --state CA
255
+ ```
256
+
257
+ Docs.rs: https://docs.rs/geodb-cli
258
+
259
+ ---
260
+
261
+ # Python bindings (`geodb-py`)
262
+
263
+ - Package name on PyPI: **geodb-rs**
264
+ https://pypi.org/project/geodb-rs/
265
+ - Module to import in Python: `geodb_rs`
266
+ - Built and published wheels for these targets:
267
+
268
+ ```
269
+ - os: ubuntu-latest
270
+ target: x86_64
271
+ manylinux: auto
272
+ - os: ubuntu-latest
273
+ target: aarch64
274
+ manylinux: auto
275
+ - os: macos-13
276
+ target: x86_64
277
+ manylinux: ""
278
+ - os: macos-14
279
+ target: aarch64
280
+ manylinux: ""
281
+ - os: windows-latest
282
+ target: x64
283
+ manylinux: ""
284
+ ```
285
+
286
+ Quick start:
287
+
288
+ ```python
289
+ import geodb_rs
290
+
291
+ db = geodb_rs.PyGeoDb.load_default() # tries bundled data first
292
+ print(db.stats()) # (countries, states, cities)
293
+ ```
294
+
295
+ ---
296
+
230
297
  # Workspace Layout
231
298
 
232
299
  ```
@@ -234,7 +301,8 @@ geodb-rs/
234
301
  ├── crates/
235
302
  │ ├── geodb-core
236
303
  │ ├── geodb-wasm
237
- └── geodb-cli (planned)
304
+ ├── geodb-cli
305
+ │ └── geodb-py
238
306
  ├── data/
239
307
  │ ├── countries+states+cities.json.gz
240
308
  │ └── geodb.standard.bin
@@ -289,8 +357,12 @@ Attribution is required if you redistribute or use the dataset.
289
357
  # Links
290
358
 
291
359
  - Repo: https://github.com/holg/geodb-rs
292
- - Docs: https://docs.rs/geodb-core
293
- - Crate: https://crates.io/crates/geodb-core
360
+ - Rust docs:
361
+ - geodb-core: https://docs.rs/geodb-core
362
+ - geodb-cli: https://docs.rs/geodb-cli
363
+ - geodb-wasm: https://docs.rs/geodb-wasm
364
+ - Crates.io: https://crates.io/crates/geodb-core
365
+ - PyPI (Python bindings): https://pypi.org/project/geodb-rs/
294
366
 
295
367
  ---
296
368
 
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "geodb-py"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  edition = "2021"
5
5
  description = "Python bindings for geodb-rs"
6
6
  license = "MIT"
File without changes
File without changes