Skip to main content

A library for working with the xtn format

Project description

xtn Repository

On Github

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.3.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

xtn-0.3.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xtn-0.3.0.tar.gz
  • Upload date:
  • Size: 4.6 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.3.0.tar.gz
Algorithm Hash digest
SHA256 88cb7b92f2571bb3ffe07875df78b4d281411f61c0b087d16828fd79942a4026
MD5 7f9c54ecaa127385a8354b223a4da541
BLAKE2b-256 24a98cc81f2568614767831f947654f29a558c0a88de49a739d9a46fa1957278

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xtn-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16e48e5a7e9ba4c0536118d39a83e3fcb3dc8eea3347d39dfdd48e6a32b66f56
MD5 294750fc293648ec541c6e50b811a64f
BLAKE2b-256 30e5f0fe4009b24d05bfbf7cee0f7ba3fc63a106ff3dd3e8ecfc20662acdb018

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