Skip to main content

HK80

Hong Kong 1980 Grid coordinates conversion library in Python. This library provides a simple API for coordinates conversion between Hong Kong 1980 Grid and WGS 84. Underlying conversions are performed using pyproj.

Installation

pip install hk80

Usage

>>> from hk80 import LatLon, HK80
>>> hku = LatLon(22.284034, 114.137814).to_hk80()
>>> (hku.northing, hku.easting)
(816128.2739028323, 832242.6232703187)
>> (hku.x, hku.y)
(832242.6232703187, 816128.2739028323)
>>> hku = HK80(northing=816128, easting=832243).to_wgs84()
>>> (hku.latitude, hku.longitude)
(22.284031525857237, 114.13781766034742)

License

MIT

Metadata

Release files for hk80 1.0.1

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

Source distribution (sdist)

Source distribution for hk80 1.0.1
File Size Uploaded Provenance Actions
hk80-1.0.1.tar.gz 2.8 kB Without provenance Details for hk80-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hk80 1.0.1
File Interpreter ABI Platform Actions
hk80-1.0.1-py3-none-any.whl Python 3 none any Details for hk80-1.0.1-py3-none-any.whl

Total release size: 7.1 kB

Release files / hk80-1.0.1.tar.gz

Download URL hk80-1.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
22cb90992c14e2f068516f57147df5c7c36ee1c87ec582b2b35f4b6758d3c45c
BLAKE2b-256 checksum
How to use checksums
a30d16f038ae303d41d33faa84f42e11f72017c89fbd4ca65ee16e8774923fbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

Release files / hk80-1.0.1-py3-none-any.whl

Download URL hk80-1.0.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4211d0ce0439b5caadf8df84e8432c3dd1d6ce1207bab1b8450d7da93d0bfe8
BLAKE2b-256 checksum
How to use checksums
9309217d22b23be15f41ce9ba85c33184320be2296e31b601264d10f11a9436b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

Security for hk80 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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