Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

configuris-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page