Compile, Read and update your .conf file in python
Project description
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
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
confcompiler-0.0.4.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file confcompiler-0.0.4.tar.gz.
File metadata
- Download URL: confcompiler-0.0.4.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0c9ac4c68bdbf76fc08a9b5151dcab9f675725afe61e73504f49bf7f591f1cd
|
|
| MD5 |
e8a4f8b3b496f721b76e54108f001c46
|
|
| BLAKE2b-256 |
c3dd1dc24da76b9b493d60ca37ec9b7f5822625315cffa7cd8a82f409e4ad574
|
File details
Details for the file confcompiler-0.0.4-py3-none-any.whl.
File metadata
- Download URL: confcompiler-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
464c96aa8dcdb7d69d1fe17f66a7476638fcd0b970c8d8bdc472651e3bfe4253
|
|
| MD5 |
7282f28beb7c24a86481c76562a19cd3
|
|
| BLAKE2b-256 |
2d31fef5b82097d62ac9e1faa96907adb42a1ceda601dd1805f781d8667c33d2
|