Configuration management made easy
Project description
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
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
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:
auto_restart: true
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
configuris-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file configuris-0.1.0.tar.gz.
File metadata
- Download URL: configuris-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98a41b357f84cc230a593bc4ad7f6ef3d5154372d56394511397122d2432a8cc
|
|
| MD5 |
629cc23ce5317fb96eab88d237613baf
|
|
| BLAKE2b-256 |
9b8424ccd6c08a2faf014fd80b07e3be697f76d652812437bbab07252106965d
|
File details
Details for the file configuris-0.1.0-py3-none-any.whl.
File metadata
- Download URL: configuris-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83d5cdfa28885a2430301f75247ee6e2de915db0e18d8159c11f69e6e638cf7e
|
|
| MD5 |
70ee67a31b971156dffc18af3f90428c
|
|
| BLAKE2b-256 |
0f60f0079c0f407679444c393e5c52a30a7dc5cb89148a9841147396c2a9ae9b
|