A better way to dictionary
Version: 1.0.1 (Limited)
Build: Latest (Jan 21 2022 @ 9:20 AM EST)
Platform: Stable
- Fixed space issue
SCON (Pronounced: scone) is a versatile way for formmatting data and is loosely based on JSON, and can be used across multiple platforms.
*Examples can be found in the examples directory of the repo
str
int
bool
list
dict
NoneType
Put this as a key in the dictonary and the value will become a comment.
Creates and writes a SCON file from a dictionary.
- obj
- type: dict
- fp
- type: builtin_function_or_method
Make sure that fp is writable.
Creates a SCON file from a dictionary.
- obj
- type: dict
Returns a SCON string
Creates a dictonary from a SCON file.
- fp
- type: builtin_function_or_method
Make sure that fp is readable.
Return a namedtuple: data
contains the parsed SCON file, comments
contains the comments from the parsed SCON file.
Creates a dictonary from a SCON string.
- obj
- type: str
Make sure that fp is readable.
Return a namedtuple: data
contains the parsed SCON file, comments
contains the comments from the parsed SCON file.
string="This is a string";
int=0;
true_bool=true;
false_bool=false;
nothing=null;
list=[0,1,2,3,4,5,6,7,8,9];
sub_dictionary0{
sub_value="I am a sub";
}
#Every line ends with semicolons execept for dictionaries. this comment will continue until you put a semicolon;
Happy database creation!
- Micropython port
Check out other builds such as experimental
or developer
©2022 Github73840134