Skip to main content

A library for working with the xtn format

Project description

xtn

Sample code

import xtn

# reads the data in the file (without comments) into a dict with key value pairs, the values can be dict, list, str
with open(r'path/to/file.xtn', 'r') as f:
    data = xtn.load(f)

# reads the file including comments into XtnObject
with open(r'path/to/file.xtn', 'r') as f:
    obj = xtn.XtnObject.load(f)

# writes the XtnObject with any changes back to a file with canonical indentation
with open(r'path/to/file.xtn', 'w') as f:
    obj.dump(f)

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

xtn-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

xtn-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file xtn-0.1.0.tar.gz.

File metadata

  • Download URL: xtn-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.9 Windows/10

File hashes

Hashes for xtn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce1c5ea920e3ac1b6efd75992c7c554a6e30f66ce66aa5d5b31a68d3e9c19533
MD5 5e1debfa647806a6b7ce0e37a6556a76
BLAKE2b-256 47a855310090c2183ad2aabf92e9f369acf8c6f3e32f5e1d2c8df84ddf842c35

See more details on using hashes here.

File details

Details for the file xtn-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xtn-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.9 Windows/10

File hashes

Hashes for xtn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0797c6236355ee3bd623f74383dc79892f5c9be1f86df59db95352d55742f0db
MD5 e3f8fea1044f61bc6428e75f24fd6902
BLAKE2b-256 437abeaaf1cbc922372a9c81db9c15a48a0e46d16b325792130eda3d0ef0df86

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