A lightweight CLI + lib that allows you to perform basic IO tasks and display your content as rich trees and tables.
Project description
A many-in-one tool for managing your Markup Language files.
What is it?
iotre is a tool for managing your Markup Language files. It is capable to write and read files in the following formats:
- JSON
- YAML
- TOML
- XML
- And soon more... :wink:
The basic goal was to have a small package anyone could add to their project and use it to manage their files. It is also possible to use it as a CLI tool.
Installation
You cannot install the CLI tool separately for now. You can install it with the following command:
pip install iotree
Usage
As a CLI tool
To see what the display function can do, you can use the following command:
iotree demo
For example, the following JSON file (displayed in VSCode)
will be displayed like this:
While the following YAML file (displayed in VSCode)
will be displayed like this:
Note: The CLI tool is not yet finished. It is still in development.
If this just looks like a wrapper around rich trees) to you, it almost because it is. :wink:
As a CLI tool, the key difference I want to bring is the ability to configure themes and styles.
Just run the following command to interactively create a theme:
iotree config init
But if you're lazy, just use a file:
iotree config init from-json my_theme.json
For example, the following JSON file
{
"name": "My super pseudonym",
"username": "my.username",
"symbol": "lgpoint",
"theme": "bright-blue-green"
}
will result in the following theme: ...
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.