Skip to main content

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.from_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

Fetch an NPC (uses data from the OSRS Wiki):

from yew.npc import Npc

edgeville_master = Npc.from_wiki("Vannaka")
edgeville_master.name # 'Vannaka'
edgeville_master.race # 'Human'
edgeville_master.examine # 'He looks dangerous'
edgeville_master.locations # ['Edgeville Dungeon']

rodent = Npc.from_wiki("Rat")
rodent.examine # 'Apopular dwarven delicacy'
rodent.level # 1
rodent.aggresive # False
rodent.hitpoints # 2
rodent.attack # 1
rodent.strength # 1

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.

Metadata

Release files for yew 0.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yew 0.12.1
File Size Uploaded
yew-0.12.1.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yew 0.12.1
File Interpreter ABI Platform
yew-0.12.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / yew-0.12.1.tar.gz

Download URL yew-0.12.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1368d1ce8f5c33e06e810b7e900a5bf249b41e20929b00f4fb3b131377a9ea3d
BLAKE2b-256 checksum
How to use checksums
bc160fd56a91bdb2b90c328f879b0b5ab425c2481a248f22e614c985a51dc700
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / yew-0.12.1-py3-none-any.whl

Download URL yew-0.12.1-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e6340a7f3dec61d095eaa8640fb9abfe9026de1872ed639889833eedb7c811f
BLAKE2b-256 checksum
How to use checksums
0d3b444f0caead2dd421fe339ddb73c90a6235b8b160f64b411db05682e6cc24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page