Read data of any format and any location for moban template rendering
Project description
It allows moban to use more data formats than yaml and json.
Given the following toml file, sample.toml:
title = "TOML Example"
[owner]
name = "Tom Preston-Werner"
You can do:
$ moban -c sample.toml "{{name}} made {{title}}"
Templating {{owner.na... to moban.output
Templated 1 file.
$ cat moban.output
Tom Preston-Werner made TOML Example
NOTE
For any of the following data formats, you elect to install by yourself.
Format |
Type |
Required backend |
---|---|---|
Amazon Ion |
ion |
anyconfig-ion-backend |
BSON |
bson |
anyconfig-bson-backend |
CBOR |
cbor |
anyconfig-cbor-backend or anyconfig-cbor2-backend |
ConifgObj |
configobj |
anyconfig-configobj-backend |
MessagePack |
msgpack |
anyconfig-msgpack-backend |
Or you could choose to install all:
$ pip install moban-anyconfig[all-backends]
Installation
You can install moban-anyconfig via pip:
$ pip install moban-anyconfig
or clone it and install it:
$ git clone https://github.com/moremoban/moban-anyconfig.git
$ cd moban-anyconfig
$ python setup.py install
Change log
0.0.1 - None
first release
what a feat!
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
moban-anyconfig-0.0.1.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for moban_anyconfig-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 381431272251876271d17eae2658088b44afd45b342902c972ac7576d549a6f2 |
|
MD5 | 0a4d251584791767e40270c060a8221f |
|
BLAKE2b-256 | 4e4bb5648db4f42ae14b58f8b88458030c7536ae7d893797e9fbfb9dd63cfc96 |