Skip to main content

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


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)

Uploaded Source

Built Distribution

eveparse-1.0.0-py3-none-any.whl (349.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page