Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy-configs-0.0.5.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

easy_configs-0.0.5-py3-none-any.whl (3.1 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