Parser for Eve Online - extract item name and quantity from a string
Project description
Eve Parse
Parser for Eve Online - extract item name and quantity from a string, and return values with type_id
Install
pip install eveparse
Usage
The parse()
function takes a single-line string. It is designed to fail fast and will raise ParserError if it is unable to parse the string.
import eveparse
string = "Ragnarok 1"
try:
type_id, name, quantity = eveparse.parse(string)
except eveparse.ParserError as error:
print(error)
else:
print(type_id, name, quantity)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eveparse-0.0.1.tar.gz
(362.2 kB
view details)
Built Distribution
eveparse-0.0.1-py3-none-any.whl
(348.9 kB
view details)
File details
Details for the file eveparse-0.0.1.tar.gz
.
File metadata
- Download URL: eveparse-0.0.1.tar.gz
- Upload date:
- Size: 362.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0093ff85336b5aceaf6d7a68b138b66866ea048bf396704618371744fedf0e47 |
|
MD5 | d8915aabb09e9cab5057ee59baaa8244 |
|
BLAKE2b-256 | 1b8e5e46e6af9f8c826491f46f23c95307e82b3ad3cce8a814b2f064455a518c |
File details
Details for the file eveparse-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: eveparse-0.0.1-py3-none-any.whl
- Upload date:
- Size: 348.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ac32cfad28c928280221f1c6baf502a1212a81c6e9d962061768d65b10a9b30 |
|
MD5 | f7af57246c86110fcd21470142a50c98 |
|
BLAKE2b-256 | c9d2422e92d61485dcb380a7b45358b9a0fd0cdb1fed84e0733c2600ef369d79 |