A parser for the yni config file.
Project description
yni
A parser for the yni config file.
Example
test.py
from yni import Yni
parser = Yni.from_file('example.yni') # here we parse from a file
parser['foo']['bar'] # get the value of the key "bar" from the header "foo", returns "spam"
# or
parser.foo.bar # returns "spam"
Example 2
test_2.py
from yni import Yni
string = """#foo
[
bar: spam
]"""
parser = Yni.from_string(string) # here we parse from a string
parser['foo']['bar'] # get the value of the key "bar" from the header "foo", returns "spam"
# or
parser.foo.bar # returns "spam"
yni file structure
example.yni
#foo
[
bar: spam
]
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
yni-0.1.5.tar.gz
(9.6 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 yni-0.1.5.tar.gz.
File metadata
- Download URL: yni-0.1.5.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.8.10 Linux/5.15.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
428ef5eafcb1362c655148d499e34da44ae91d890e91ed2bbe8f23355bc96383
|
|
| MD5 |
5463bbc6cf1d092847963b8ba384dbcd
|
|
| BLAKE2b-256 |
171dbbd896b30f627e032052d79c076d71e824f5f32680b50351c24f8a9dc28e
|
File details
Details for the file yni-0.1.5-cp38-cp38-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: yni-0.1.5-cp38-cp38-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 9.9 kB
- Tags: CPython 3.8, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.8.10 Linux/5.15.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba890a59ec705e12b4a1f3bd633d3b8ddc632428e4a1be88530066a0b67f779
|
|
| MD5 |
cdce8dd2116de234a7daa8359fee4675
|
|
| BLAKE2b-256 |
74102ce69903871f22a090c52697b0903a80fa49fc41d5182e7fb21e13157d26
|