A lightweight Python
To install the library, run:
To use the library, you will first need to put this at the top of any Python files that you want to use the lowercase values in:
and that is basically it, you can now use it.
Argument repr (string): The unparsed repr.
Error: If you don't pass a repr or pass undefined.
Parses the repr. This is automatically called by the constructor and should only be called if you change the repr.
Get the name of the object type (e.g. in "
<User me>", the object type would be "User").
Returns: The name of the object type
Returns: The unparsed repr.
Get the repr parts. In the case your repr looks like "
<User 123456 Billy>",
["123456", "Billy"] would be returned.
In the case your repr looks like "
<User id=123456 firstName=Billy>",
["id=123456", "firstName=Billy"] would be returned.
If you want actual key-value pairs for this, see
Returns: The list of elements in the repr.
Gives you an object with the key-value pairs named in the repr.
Returns: An object as described above.
Error: If the repr doesn't use key-value pairs.
The source can be found on GitHub.