human readable and writable data interchange format
Project description
NestedText is a file format for holding structured data to be entered, edited, or viewed by people. It organizes the data into a nested collection of dictionaries, lists, and strings without the need for quoting or escaping. A unique feature of this file format is that it only supports one scalar type: strings. While the decision to eschew integer, real, date, etc. types may seem counter intuitive, it leads to simpler data files and applications that are more robust.
NestedText is convenient for configuration files, address books, account information, and the like. Because there is no need for quoting or escaping, it is particularly nice for holding code fragments. Here is an example of a file that contains a few addresses:
# Contact information for our officers Katheryn McDaniel: position: president address: > 138 Almond Street > Topeka, Kansas 20697 phone: cell: 1-210-555-5297 home: 1-210-555-8470 # Katheryn prefers that we always call her on her cell phone. email: KateMcD@aol.com additional roles: - board member Margaret Hodge: position: vice president address: > 2586 Marigold Lane > Topeka, Kansas 20682 phone: 1-470-555-0398 email: margaret.hodge@ku.edu additional roles: - new membership task force - accounting task force
Contributing
This package contains a Python reference implementation of NestedText and a test suite. Implementation in many languages is required for NestedText to catch on widely. If you like the format, please consider contributing additional implementations.
Also, please consider using NestedText for any applications you create. It is especially suitable for configuration files.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nestedtext-3.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e741254c40e09305aba044454ca472f038fde69c7fcccf8f18fe063c2c0aa50 |
|
MD5 | ff516136bdef87253db5b06298f6c84c |
|
BLAKE2-256 | 8fb482a985fae9938202f424a982a4745ab936eee07af6a1add58984420666b2 |