Skip to main content

A python wrapper for Albion data Project

Project description

A simple wrapper for the Albion Data Project API

Install

Install using pip

python3 -m pip install albion-data

Features

  • check price of items

# price of t4 and t5 bag at lymhurst quality 1
from albion_data import get_price
get_price(["T4_BAG","T5_BAG"],"Lymhurst",1)
  • check history of item

#get daily history of t4 bag at lymhurst of quality 1
from albion_data import get_history
get_history("T4_BAG","Lymhurst",1,time_scale=24)
  • System for making arithemetic expressions

The values are lazy loaded.

#check if t4 leather refining is profitable in fort sterling without focus
from albion_data import Var
t4leather = Var("T4_LEATHER","Fort Sterling","sell_price_min")
t4hide = Var("T4_HIDE","Fort Sterling","sell_price_min")
t3leather = Var("T3_LEATHER","Fort Sterling","sell_price_min")
if (2 * t4hide + t3leather) < t4leather: #triggers a single API call
    print("refine t4hide")
else:
    print("not worth it")

NOTES

  • The item ids and market names can be found here

  • Use &,|,~ for logical and,or,not when making arithemetic expressions with Var. why not and,or,not?

  • the PYPI name of package and all API might change until v1

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

albion_data-0.2.1.tar.gz (4.0 kB view hashes)

Uploaded Source

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