Gryd
Support this project
Buy Ѧ and:
- Send Ѧ to
AUahWfkfr5J4tYakugRbfow7RWVTK35GPW - Vote
arkyon Ark blockchain and earn Ѧ weekly
Why this package ?
Gryd package provides efficient great circle computation and projection library.
It is light weight (less than 500Ko) and does not rely on dependency.
Documentation
Installation
from source distribution
$ python setup.py install
from pip
$ python -m pip install Gryd
Contribute
Bug report & feedback
Use project issues.
Add / modify / fix code
Guidance words: keep it simple and solid!
- open a issue to propose your contribution
- once issue is granted
- fork this repository
- edit your contribution
- start a pull request
History
2.0.0
- documentation API change
- binary source released
- code improvement
- dump location api change
>>> import Gryd
>>> dublin = Gryd.Geodesic(-6.272877, 53.344606, 105.)
>>> # mapbox static map api url
>>> url = "https://api.mapbox.com/styles/v1/mapbox/outdoors-v11/static/"\
... "pin-s+f74e4e(%(lon)f,%(lat)f)/%(lon)f,%(lat)f,%(zoom)d,0/"\
... "%(width)dx%(height)d?access_token=%(token)s"
>>> # see https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes
>>> token = "pk.eyJ1IjoibW91c2lr[...]nJtcHlyejFrNXd4In0.JIyrV6sWjehsRHKVMBDFaw"
>>> dublin.dump_location("test/dublin.png", url, zoom=15, width=300, height=200, token=token)
geohashmodule improvement- implementation based on python integers
- better encryption interface
1.2.0
- added
geohashmodule
1.1.1
Geodesicclass can now dump thumbanil location from google staticmap API- bugfix in unit usage for classic projection (other than grid)
1.1.0
- projection core changes (simpler & faster)
- added
millerandeqcprojection - 64 bit support for Windows
- encrypt/decrypt geodesic coordinates
>>> point = Gryd.Geodesic(-6.23, 53.63)
>>> point.encrypt("your encryption key")
'mwszncbe9g2tu29'
>>> Gryd.decrypt('mwszncbe9g2tu29', key="hacking...") # gives coordinates but not the good ones
Geodesic point lon=+025°22'0.011'' lat=-086°36'35.290'' alt=0.000
>>> Gryd.decrypt('mwszncbe9g2tu29', key="your encryption key")
Geodesic point lon=-006°13'48.000'' lat=+053°37'48.000'' alt=0.000
>>> point
Geodesic point lon=-006°13'48.000'' lat=+053°37'48.000'' alt=0.000
1.0.11
- bugfix for
mgrs.inversefunction utmandmgrsgrid tweaks
1.0.10
Gryd.Geodesicexports itself ingeohash,maidenhead,georefandgarsGryd.Geodesiccreated fromgeohash,maidenhead,georefandgars
1.0.9
bngandinggrid tweaks
1.0.8
- bugfix for
utmandmgrsgrid computation Crs.unitvalue is now used in computation
1.0.7
- Provide a multiplatform wheel (32 and 64 bit for Windows and Ubuntu)
- Python sources released
1.0.6
- Added API doc
1.0.5
- All
Grydobjects are pickle-able
>>> import pickle
>>> data = pickle.dumps(wgs84)
>>> data
b'\x80\x03c_ctypes\n_unpickle\nq\x00cGryd\nEllipsoid\nq\x01}q\x02X\x04\x00\x00\x00nameq\x03X\x06\x00\x00\x00WGS 84q\x04sC(v\x1b\x00\x00\x00\x00\x00\x00\x00\x00\x00@\xa6TXA\xd0\x97\x1c\x14\xc4?XA\x9a\xaf\xda<\x1a\xf2\xb4?(\xe1\xf3\x84Zwk?q\x05\x86q\x06\x86q\x07Rq\x08.'
>>> pickle.loads(data)
Ellispoid epsg=7030 a=6378137.000000 1/f=298.25722356
1.0.4
- bugfix
Gryd.Vincenty_destrepresentation - wheel distribution fix
1.0.3
- linux (ubuntu) fix
1.0.2
Gryd.Geodesicclass takes degrees arguments for longitude and latitude values- better objects representation
- speed improvement
- added
__float__operator forGryd.DmsandGryd.Dmmobjects
>>> float(Gryd.Dms(1, 5, 45, 23))
5.756388888888889
>>> "%.6f" % Gryd.Dms(-1, 5, 45, 23)
'-5.756389'
1.0.1
- minor changes in C extensions
- bugfix
geoid.dmsandgeoid.dmmfunction
1.0.0
- first public binary release (
win32andlinuxplatform)
Metadata
Release files for Gryd 2.0.0
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 | Actions |
|---|---|---|---|---|
| Gryd-2.0.0.tar.gz | 114.5 kB | Without provenance | Details for Gryd-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Gryd-2.0.0-py3.8-win-amd64.egg | Legacy Egg format | - | - | Details for Gryd-2.0.0-py3.8-win-amd64.egg |
Total release size: 265.6 kB
Release files / Gryd-2.0.0.tar.gz
| Download URL | Gryd-2.0.0.tar.gz |
|---|---|
| Size | 114.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bef995dd0fdf3288135e2acde3a661fabd94645d4336cc581e5b9cca03bcef9
|
|
BLAKE2b-256 checksum How to use checksums |
713090c12a3652c103da2197086f8cea4c9e1629cf9f8a7f48f31e1c19aac500
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
|
Release files / Gryd-2.0.0-py3.8-win-amd64.egg
| Download URL | Gryd-2.0.0-py3.8-win-amd64.egg |
|---|---|
| Size | 151.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
52b88654a3c3d781737d463e777460f76e2b1e91d685b5a5f08c2eae8880fe5e
|
|
BLAKE2b-256 checksum How to use checksums |
e5dc6ee507d9d4c366813d3a5fd466af9b0adb17ead0e6d38cd9d2d9468fcb30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
|
Security for Gryd 2.0.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.