configuris-0.1.0
توضیحات
Configuration management made easy
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | configuris-0.1.0 |
| نام | configuris |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | n1clud3 |
| ایمیل نویسنده | n1clud3@proton.me |
| آدرس صفحه اصلی | https://github.com/n1clud3/configuris |
| آدرس اینترنتی | https://pypi.org/project/configuris/ |
| مجوز | - |
# Configuris
Configuration management made easy!
## What is it?
A collection of parsing libraries combined into one thing for configuration purposes.
## Features
- Support for JSON, YAML and TOML
- One class for everything
- Easy file management
- File being created on object initialization
- Methods for writing and reading file
- Only one property to use your configuration!
## Examples
### Read data from "settings.toml" file
```python
from configuris import Configuris
settings = Configuris("settings", filetype="toml") # create configuris object
settings.read_file() # use this method to read our config
print(settings.data["info"]) # get our data from data property
```
`I like Configuris!`
### Write data to "config.yml" file
```python
from configuris import Configuris
config = Configuris(filetype="yml") # Configuris will use the default "config" value as file's name
config.data = {"auto_restart": True}
config.write_file() # will parse data property into yaml format and, obviously, writes it to file.
```
Contents of the file:
```yaml
auto_restart: true
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl configuris-0.1.0:
pip install configuris-0.1.0.whl
نصب پکیج tar.gz configuris-0.1.0:
pip install configuris-0.1.0.tar.gz