XML Thunder is a compact library used to create xml parsers
Project description
XML Thunder
Installation
pip install xml_thunder
Usage
XML Thunder provides a class called 'Lightning'. The Lightning class's primary purpose is used for creating an XML parser. The Lightning class provides the following methods:
- __init__(self)
- Initializes an empty private dictionary
- __getitem__(self, route: String)
- Returns None or a Callable from the private dictionary
- __len__(self)
- Returns the length of a private dictionary
- __bool__(self)
- Returns True if the private dictionary is empty
- get_route(self, route: String)
- Returns a registered route if there is one at 'route'
- get_all_routes(self)
- Returns all registered routes in the private dictionary
- add_route(self, path: String, function: Callable)
- Adds a route at 'path' with 'function' as the value
- Returns None
- route(self, path: String)
- Creates a route for the provided 'path'
- 'path' is any valid xPath
- Note that this method is a decorator and should be used as such
- parse(self, xml_like_document: String | FileObject)
- The entrypoint for parsing xml strings/files
- Returns None
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
xml_thunder-0.0.2.tar.gz
(3.1 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 xml_thunder-0.0.2.tar.gz.
File metadata
- Download URL: xml_thunder-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5e732ce4600306e324992e5d2554f837d3827459e947f0fb8c7a2b86ea872e7
|
|
| MD5 |
4f1ff64fa4091e2845f8b20b633f2568
|
|
| BLAKE2b-256 |
e0586bddef9489b7d5e326edb4f1173401578dc66ef559b491f219a75d7a3de3
|
File details
Details for the file xml_thunder-0.0.2-py3-none-any.whl.
File metadata
- Download URL: xml_thunder-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ffded456b997dde5af7cabb5349549c0e9af7eecd9e154631f3cc2bd3f9f9eb
|
|
| MD5 |
475a329c164135c233fa6c8c13f98f81
|
|
| BLAKE2b-256 |
d5c1149bc781549bb6fa5a705b6388dc663cb1bf4624a9d3a6992dce5dc6df87
|