Skip to main content

An OldSchool RuneScape API wrapper for Python.

Project description

yew-logs yew

yew is an OldSchool RuneScape API wrapper for Python. It lets you invoke entities of OSRS as Python objects.

Installation

Install from PyPi:

pip install yew

You can also install the development version from the repository as:

pip install git+https://github.com/bharat-nair/yew.git@development

Usage

Fetch an item:

from yew.item import Item

rune_scimmy = Item(id="1333")
rune_scimmy.examine     # "A vicious, curved sword."
rune_scimmy.highalch    # 15360

Fetch the latest prices:

prices = rune_scimmy.prices(interval="latest")
prices.high_price		# '15.1k'
str(prices.high_price_time)		# '2024-04-04 12:12:12'

Fetch a player:

from yew.player import Player

lynx_titan = Player("Lynx Titan")
lynx_titan.cooking.level	# 99
lynx_titan.cooking.xp		# 200000000

Contributing

All contributions are welcome! If you would like to propose a new feature or raise a bug you have encountered, please create a new Github issue. Make sure to provide a concise title and a descriptive description, going over the aspects of your feature or bug.

If you would like to contribute to the development of yew, all relevant PRs are welcome. To get started:

  • Fork this repository.
  • Install dependencies by running:
    pip install -r requirements.txt
    
    Note that it might be beneficial to create a Python virtual environment to keep your local dependencies clean.
  • Raise a PR to the development branch, once you have made your changes and pushed them.

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

yew-0.1.1.dev1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yew-0.1.1.dev1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file yew-0.1.1.dev1.tar.gz.

File metadata

  • Download URL: yew-0.1.1.dev1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for yew-0.1.1.dev1.tar.gz
Algorithm Hash digest
SHA256 7900ff4b5459804de3bd7f1e985b97a8386b181d5b7188dbd01e2ba3251964e8
MD5 b9cbfd85e0ee7009866754c1334a3712
BLAKE2b-256 6a0e6a390b04d2e5cc10809b36db2eb0f3b48895d39f66f35507ebd96b4f4cbc

See more details on using hashes here.

File details

Details for the file yew-0.1.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: yew-0.1.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for yew-0.1.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe844a7b790055f800a5f8837e2cc7eeab5bb27a5aaa930907e8732449f9970
MD5 aa540f4029083fc210ffd1633b13a04d
BLAKE2b-256 596ecc28757025de1f2e8e41b8286099701a27846ff31bbe894830d97b0304af

See more details on using hashes here.

Supported by

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