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
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 eveparse-1.0.0.tar.gz.
File metadata
- Download URL: eveparse-1.0.0.tar.gz
- Upload date:
- Size: 363.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79af8004fcad51c9d91fe55cb042d0cd16f5d06a493c4a369284582475ccc819
|
|
| MD5 |
919f3246988944c08ccb2b59bfbc9567
|
|
| BLAKE2b-256 |
3af7e888e70ac07166a014c07654a1081b92184c8870603443a80f5d93c705e3
|
File details
Details for the file eveparse-1.0.0-py3-none-any.whl.
File metadata
- Download URL: eveparse-1.0.0-py3-none-any.whl
- Upload date:
- Size: 349.4 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 |
8374e197023decbd3fa3ed6d5da1bd8cb7e40c5dd032ef2260ae69a6eccbb14b
|
|
| MD5 |
2a9b705010fcc718f1d13c7da6d88ef9
|
|
| BLAKE2b-256 |
fb343e7d9c9c6f0bc0a3a7b2471de3891503a369039269a89eb22d5159a95a26
|