Skip to content

EpicStuff/taml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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/*

About

YAML but with tabs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages