updating latest plexposters
This commit is contained in:
BIN
toml/__pycache__/toml.cpython-38.pyc
Normal file
BIN
toml/__pycache__/toml.cpython-38.pyc
Normal file
Binary file not shown.
32
toml/test.toml
Normal file
32
toml/test.toml
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
title = "TOML Example"
|
||||
|
||||
[owner]
|
||||
name = "Tom Preston-Werner"
|
||||
dob = 1979-05-27T07:32:00-08:00 # First class dates
|
||||
|
||||
[database]
|
||||
server = "192.168.1.1"
|
||||
ports = [ 8001, 8001, 8002 ]
|
||||
connection_max = 5000
|
||||
enabled = true
|
||||
|
||||
[servers]
|
||||
|
||||
# Indentation (tabs and/or spaces) is allowed but not required
|
||||
[servers.alpha]
|
||||
ip = "10.0.0.1"
|
||||
dc = "eqdc10"
|
||||
|
||||
[servers.beta]
|
||||
ip = "10.0.0.2"
|
||||
dc = "eqdc10"
|
||||
|
||||
[clients]
|
||||
data = [ ["gamma", "delta"], [1, 2] ]
|
||||
|
||||
# Line breaks are OK when inside arrays
|
||||
hosts = [
|
||||
"alpha",
|
||||
"omega"
|
||||
]
|
||||
4
toml/toml.py
Normal file
4
toml/toml.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import toml
|
||||
|
||||
with open('test.toml', 'r+') as config:
|
||||
config_file = toml.load(config)
|
||||
6
toml/toml_test.py
Normal file
6
toml/toml_test.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import toml
|
||||
|
||||
with open('test.toml', 'r+') as config:
|
||||
config_file = toml.load(config)
|
||||
|
||||
print(config_file)
|
||||
Reference in New Issue
Block a user