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.

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
yxdb-1.1.1.tar.gz 14.3 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

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