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-1.0.0.tar.gz
(363.7 kB
view hashes)
Built Distribution
eveparse-1.0.0-py3-none-any.whl
(349.4 kB
view hashes)