Confcompiler 0.0.4 | Coderz Repository

confcompiler 0.0.4

Last updated:

0 purchases

confcompiler 0.0.4 Image
confcompiler 0.0.4 Images

Free

Languages

Categories

Add to Cart

Description:

confcompiler 0.0.4

Supported Data Types
- Str
- Int
- Float
- Bool
- Tuple
- List
- Dict
- Complex
- Bytes


Read Data
>>> from confcompiler import ConfRead
>>>
>>> Hostname = ConfRead('Config.conf', 'Hostname')
>>> Hostname
127.0.0.1
>>> type(Hostname)
<class 'str'>
>>>
>>> Connected = ConfRead('Config.conf', 'Connected')
>>> Connected
True
>>> type(Connected)
<class 'bool'>


Write Data
>>> from confcompiler import ConfWrite
>>>
>>> ConfWrite('Config.conf', 'Hostname', '127.0.0.1')
>>> ConfWrite('Config.conf', 'Connected', True)


.conf Cheat Sheat
Commenting - All comments must start with '#' and must be on
there on line, you cannot comment a line with
data involved.

Variables - Data must start with a variable name then continued
with '=' after that the data.

Data Types - Str, Int, Float, Bool, Tuple, List, Dict, Complex, Bytes

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.