Skip to main content

Reads Alteryx data files into Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yxdb-1.1.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

yxdb-1.1.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file yxdb-1.1.1.tar.gz.

File metadata

  • Download URL: yxdb-1.1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for yxdb-1.1.1.tar.gz
Algorithm Hash digest
SHA256 197821830e063edde9e5aaadffe26842c8f91a952b81570af76df79ec68a5d86
MD5 506911371dd038a55aa2c68f90013523
BLAKE2b-256 894bd4f29ec1853cf9ba2a3234407aaa67fdc12e5aee78e2d2c394e7b61e4f72

See more details on using hashes here.

File details

Details for the file yxdb-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: yxdb-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for yxdb-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02b7ca3ca9fbf8ff1ad7e33bebcd5f3db7713a0ba7d576c63f3e0286213b6a20
MD5 3b85f258ed7a57717c2dd7f86bd5e3b0
BLAKE2b-256 6eebe6f3878c0a15c973daaa7c92c53529fce8f54ad67f7082b5523c6f22c857

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page