Skip to main content

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.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yni-0.1.3-cp38-cp38-manylinux_2_31_x86_64.whl (8.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.31+ x86-64

File details

Details for the file yni-0.1.3.tar.gz.

File metadata

  • Download URL: yni-0.1.3.tar.gz
  • Upload date:
  • Size: 8.8 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

Hashes for yni-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e50e4326b3f03569e5e2f5c74bdfbefae40704122331df8043a2bbaf5eb43601
MD5 61c87cfada531e018c4579f87c6d0ee1
BLAKE2b-256 0acd019cb909981ea873966dd21686cf6560b80015578f9a71f765335211be78

See more details on using hashes here.

File details

Details for the file yni-0.1.3-cp38-cp38-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: yni-0.1.3-cp38-cp38-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 8.7 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

Hashes for yni-0.1.3-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3be5dfb8ca2bec92045115b2989dc2fa170dcf189949afa3e0c32ca4d7888c6b
MD5 12065909b20f33d299558b09ebfb676e
BLAKE2b-256 fe5719b002d0ff628777de279fa763d59391b3ecb943b6489ccf98fc2fb2a6ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page