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.0.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

yxdb-1.1.0-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

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