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
- __repr__(self)
- Returns the string of the private dictionary
- __str__(self)
- Returns the string of the private dictionary
- __contains__(self, route: String)
- Returns a bool if the route is in the keys of the private dictionary
- __getitem__(self, route: String)
- Returns None or a Callable from the private dictionary
- __setitem__(self, route: String, function: Callable)
- Maps a route to the function
- Returns None
- __delitem__(self, route: String)
- Deletes the specified route
- Returns None
- __len__(self)
- Returns the length of a private dictionary
- __bool__(self)
- Returns True if the private dictionary is empty
- get_all_routes(self)
- Returns all registered routes in the private dictionary
- 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.1.0.tar.gz
(3.0 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.1.0.tar.gz.
File metadata
- Download URL: xml_thunder-0.1.0.tar.gz
- Upload date:
- Size: 3.0 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 |
df881f647cd716c5296a733ffd78aca74589fdcde833c0b71a8b6f5042e10538
|
|
| MD5 |
791b522e97d10f5f0a6197ae2de206a4
|
|
| BLAKE2b-256 |
afc1e54f82beeb4d1adbd7157a7df707ed49e5dfd3dc8e7f475447171a1fd95a
|
File details
Details for the file xml_thunder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xml_thunder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 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 |
62a6f3faa8f5053ea68d3e282d263d680dfe3ba96bbd5a1b916a08a2fa78cd05
|
|
| MD5 |
7955f438f815c7ff0b6370cfa10833bd
|
|
| BLAKE2b-256 |
2dedd1732d7de356667d22293bcc1ffa8591c5a6c1170a9a9ee1efa89767a08c
|