pygeons
Geographical queries made simple.
Free software: MIT license
Documentation: https://pygeons.readthedocs.io.
Some examples:
>>> from pygeons.api import Country, find_cities
>>> Country('ivory coast')
Country('Ivory Coast')
>>> Country('côte d’ivoire')
Country('Ivory Coast')
>>> Country('civ')
Country('Ivory Coast')
>>> _.iso
'CI'
>>> Country('ivory coast').capital.name
'Yamoussoukro'
>>> Country('ivory coast').neighbors
[Country('Liberia'), Country('Ghana'), Country('Guinea'), Country('Burkina Faso'), Country('Mali')]
>>>
>>> Country('us').cities['moscow']
City.gid(5601538, 'Moscow', 'US')
>>> Country('us').cities['moscow'].admin2
State.gid(5598264, 'ADM2', 'Latah County', 'US')
>>> Country('us').cities['moscow'].admin1
State.gid(5596512, 'ADM1', 'Idaho', 'US')
>>> Country('us').cities['moscow'].distance_to(Country('ru').cities['moscow'])
8375.215117486288
>>>
>>> find_cities("oslo")[:2]
[City.gid(3143244, 'Oslo', 'NO'), City.gid(5040425, 'Oslo', 'US')]
Features
Determine if a (city, state and country) combination corresponds to an existing place name
Scrub (city, state, country) combinations
Normalize city, state and country names to their canonical representations
Frame queries in English as well as languages native to each particular country
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.9.1 (2020-09-17)
Added top-level G` collection to pygeons.api
Implemented handling for alternative place names
0.9.0 (2020-09-11)
Added new API
Switched database backend from MongoDB to sqlite3
Implemented import scripts in Python
0.1.1 (2017-12-03)
First working release. Includes import scripts and source code.
0.1.0 (2017-11-26)
First release on PyPI.
Metadata
Release files for pygeons 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pygeons-0.9.2.tar.gz | 66.0 kB | Without provenance | Details |
Release files / pygeons-0.9.2.tar.gz
| Download URL | pygeons-0.9.2.tar.gz |
|---|---|
| Size | 66.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23ff3f3e9cbef0fd3a5d88a23ab0f0816b33ee9d57838872d3b08c2489f683a1
|
|
BLAKE2b-256 checksum How to use checksums |
a87216353ed41b4d2c3f7146e171ebc1cca8e8eeebd914b05cdcb7b01c1105ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for pygeons 0.9.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.