xtn Repository
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)
Metadata
Release files for xtn 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xtn-0.4.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xtn-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / xtn-0.4.0.tar.gz
| Download URL | xtn-0.4.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
376ca0c4f1dc5eb1d81a5ab93563bad656418bfd6c280739cc3f8cd57cf1c688
|
|
BLAKE2b-256 checksum How to use checksums |
4a90364588bbf96e4ea32289171e9be69c2ca1ac83303787287fa6652243ac54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.9 Windows/10
|
Release files / xtn-0.4.0-py3-none-any.whl
| Download URL | xtn-0.4.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da4748dea6a14e1f4faf37eeef1af67c01cfae98564821a65b380500adc27103
|
|
BLAKE2b-256 checksum How to use checksums |
504089baea913fd5fd3e42cacf19b4c27854f539a204f5fe6fa4a6c3a4ea1bee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.9 Windows/10
|