A python package to make configs easier!
Project description
Example: if name == 'main': file = open('config.config', 'w+') # open config file. config = Reader.load(f=file) # one way is the load function it uses an file object and then reads the config from there. print(config) # or: # text = file.read() # config = Reader.loads(text) # Loads the config from text. # Get a spicific value from config without loading it: Reader.get(filename='config.config', name='The Name') # returns the value of the given name from the config. # Get a spicific value from config text: Reader.get_from_raw_text(name='The Name', text='Text to find the name in') # returns the value of the given name from the text Dumper.create_basic(filename='config.config') # creates a basic config and writes Version 1.0 in it. # Write something to the config: Dumper.add(filename='config.config', name='The Name', value='The Value') # Write Moultiple Things to your config: Dumper.dump(filename='config.config', names=['System'], values=['Windows']) # it uses the enmurate function.
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
Built Distribution
Hashes for easy_configs-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83763ad0d1984d0acae9fc759706842ddb38e5ba2e30bd89c31144cdfce9db71 |
|
MD5 | 1a2fe8507c802c9cc2fe8caba1cbc7dd |
|
BLAKE2b-256 | d37477789b14f09cb6ded8528599cbe0c5422ad169f0487a660de6f8f3a6ad52 |