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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: yxdb-1.1.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for yxdb-1.1.0.tar.gz
Algorithm Hash digest
SHA256 bc29be8ce0094b5d01b61b2377d2b9dff77977ed8010c78283bad0c0c04ea71a
MD5 2b0e1b155cd6f3d73b6751442cd6d9bd
BLAKE2b-256 1a108d975120588720d2723abf8d17b4e829f075904ea56f6023a9f0c4fcd77a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yxdb-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for yxdb-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 271413afd6c99573965ccd784d204dd22c20818d01f4664ed9630c5752097f4f
MD5 96004672043492cdf1ba2c8aa35ff9b6
BLAKE2b-256 60f35a3e52fb511111e072d9932025e16354830f53f1af7d19b5c47997a5e339

See more details on using hashes here.

Supported by

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