haus-fmt-geo
The haus schema package @haus-fmt/geo
(LatLng, BBox) for Python, with the codecs of its profile wgs84. Imported as haus_geo.
pip install haus-fmt-geo
// trip.schema.haus
import @haus-fmt/geo (LatLng, BBox)
type Trip = { to: LatLng, area: BBox }
import haus_geo
from haus import schema
s = schema.load_schema("trip.schema.haus", packages=[haus_geo.PACKAGE], codecs=haus_geo.wgs84)
s["Trip"].parse("{ to: LatLng(38.7223, -9.1393), area: BBox(LatLng(0, 170), LatLng(10, -170)) }")
s["Trip"].parse("{ to: LatLng(91, 0), area: … }") # HausDecodeError: latitude 91.0 out of range
haus_geo.PACKAGE is the package's directory (package.haus, schema.haus, profiles/).
haus_geo.wgs84 is the profile's codecs (a schema.CodecGroup; combine groups with |): a
LatLng is accepted when −90 ≤ lat ≤ 90 and −180 ≤ lng ≤ 180 (NaN and the infinities are not), a
BBox when both corners are and sw.lat ≤ ne.lat (a box with sw.lng > ne.lng crosses the
antimeridian). The range is checked on the decoded float: LatLng(90.00000000000000001, 0) is the
float 90 and accepted. The codecs keep the value and the default host type,
Tagged("LatLng", (lat, lng)) of floats, -0.0 included. The rule: profiles/wgs84.md.
Metadata
Release files for haus-fmt-geo 1.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 |
|---|---|---|---|---|
| haus_fmt_geo-1.0.0.tar.gz | 6.6 kB | Without provenance | Details for haus_fmt_geo-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| haus_fmt_geo-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for haus_fmt_geo-1.0.0-py3-none-any.whl |
Total release size: 12.9 kB
Release files / haus_fmt_geo-1.0.0.tar.gz
| Download URL | haus_fmt_geo-1.0.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f61c43544a5d22b0f2431f6c08b1607ad267a006353b61e074b05c1b4440dcbb
|
|
BLAKE2b-256 checksum How to use checksums |
726f50bbe3f98f5ff31c01da257ed7962780af078b0281f2c3db8e27cb7ede16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / haus_fmt_geo-1.0.0-py3-none-any.whl
| Download URL | haus_fmt_geo-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d557dcc2e75d6d689fffc2553ea6ac99a8a3cd61b8496f7c836ab2e424ec69d0
|
|
BLAKE2b-256 checksum How to use checksums |
7a0c920333d5efe41298fa017d73bda474f5ec8905994dda54b5f603a099d8c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for haus-fmt-geo 1.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.