Skip to main content

yxdb-py

yxdb-py is a library for reading YXDB files into Python.

install using pip install yxdb

The library does not have external dependencies and is a pure Python solution.

The public API is contained in the YxdbReader class. Instantiate YxdbReader with the following constructors:

  • YxdbReader(path=str) - load from a file
  • YxdbReader(stream=BytesIO) - load from an in-memory stream

Iterate through the records in the file using the next() method in a while loop:

while reader.next():
    # do something

Fields can be access via the read_index() and read_name() methods on the YxdbReader class.

The list of fields in the YXDB file can be access via the list_fields() method.

To read spatial objects, use the yxdb.spatial.to_geojson() function. The to_geojson() function translates the binary SpatialObj format into a GeoJSON string.

Metadata

Release files for yxdb 1.1.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 yxdb 1.1.1
File Size Uploaded Provenance Actions
yxdb-1.1.1.tar.gz 14.3 kB Without provenance Details for yxdb-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 25.0 kB

Release files / yxdb-1.1.1.tar.gz

Download URL yxdb-1.1.1.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
197821830e063edde9e5aaadffe26842c8f91a952b81570af76df79ec68a5d86
BLAKE2b-256 checksum
How to use checksums
894bd4f29ec1853cf9ba2a3234407aaa67fdc12e5aee78e2d2c394e7b61e4f72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / yxdb-1.1.1-py3-none-any.whl

Download URL yxdb-1.1.1-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02b7ca3ca9fbf8ff1ad7e33bebcd5f3db7713a0ba7d576c63f3e0286213b6a20
BLAKE2b-256 checksum
How to use checksums
6eebe6f3878c0a15c973daaa7c92c53529fce8f54ad67f7082b5523c6f22c857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Security for yxdb 1.1.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.

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