Skip to content

EpicStuff/taml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TAML

YAML but with tabs

Installation

pip install taml

Usage

see ruamel.yaml and replace

from ruamel.yaml import YAML
yaml=YAML()

with

from taml import taml

Additional Features

you can use a separate taml file or dict to type the taml

a:
	a: 3
	b: 956579776
	c:
		- 1
		- 2
		- 3
	d:
		- 1.12345
		- 2
		- {'a': 1}
		- 4

and

a:
	b: datetime.datetime.fromtimestamp(tz=datetime.timezone.utc)
	c: tuple
	d:
		- round(ndigits=2)
		- null
		- epicstuff.Dict(b='1')  # make sure b stays str during resolve
		- str

Note to self

  • upload with python -m build then python -m dotenv run -- twine upload --skip-existing dist/*

Todo:

  1. handle schema ceoversion fail errer 0.1 handle import fail
  2. add line and col to exceptions
  3. ask ai for missing json schema features
  4. ask ai for suggestions
  5. update readme with schema info

About

YAML but with tabs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages