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 details)

Uploaded Source

File details

Details for the file albion_data-0.2.1.tar.gz.

File metadata

  • Download URL: albion_data-0.2.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0

File hashes

Hashes for albion_data-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3a427a038251d50ba378c42fbf108e8dee1afb2aba9e0b1a117280716285b054
MD5 1be63599ffc651b7dbc992a4c77e2aed
BLAKE2b-256 2322ea4ff87254ab77cedbcc3f32896127de34fae658e9265fd85522bb12cd99

See more details on using hashes here.

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