Giter Club home page Giter Club logo

module_confighandler's Introduction

Project

Title

Config handler module

Created by

Joostens Tomek

Description

Class to interface easily with config files 

Version

1.0.5

Setup

python setup.py install

Test module

Option 1

python test_ConfigHandler.py

Option 2

python -W ignore test_ConfigHandler.py 

Example

Import module

import ConfigHandler

Create object, section and option parameters are required

c = ConfigHandler.Config()

Optionally add as the parameter the absolute or relative path to the config file

c = Config(C://absolute/path/to/config.ini')

Get data from the config file

print(c.readData('section','option'))

Write data to the config file

c.writeData('section','option','data')

Check if a section in the config file exsists

print(c.checkSection('section'))

Check if an option in the config file exsists

print(c.checkOption('section','option'))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.