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.dev0.tar.gz (6.5 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.dev0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yew-0.1.1.dev0.tar.gz
  • Upload date:
  • Size: 6.5 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.dev0.tar.gz
Algorithm Hash digest
SHA256 9be6a3f6712a2c6d7ba2bbc4679c53487db25c3401436280915cdd60b278a41d
MD5 34c4d33937b9864338b502fbf3b4710e
BLAKE2b-256 8211f54ebd6056abf0b4e16df7ad2a7dd4ce96649fe2854303aec277197fc46e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yew-0.1.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 b07f9fb6996b104a00f8ce2b6c8a6f4f3b41d467cf13f3fb0bbe9d20a2d0a24f
MD5 8af4f54b364edc62bbe6fe17f5b6edb2
BLAKE2b-256 74c7ce7a2892a0f5317abdbde85a62719da63743d1726e8a936904ff0ee19541

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