معرفی شرکت ها


OSRSBytes-1.2.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

An all-in-one OSRS Library with Hiscores and Grand Exchange Market Information
ویژگی مقدار
سیستم عامل OS Independent
نام فایل OSRSBytes-1.2.3
نام OSRSBytes
نسخه کتابخانه 1.2.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Coffee Fueled Deadlines
ایمیل نویسنده cookm0803@gmail.com
آدرس صفحه اصلی https://github.com/Coffee-fueled-deadlines/OSRSBytes
آدرس اینترنتی https://pypi.org/project/OSRSBytes/
مجوز -
# OSRSBytes ## Updates [20201004] __Bug Fix__: * Fixed a bug with buylimits that caused entire package to crash if anything failed to parse. __Currently implemented in v1.2.2__: * Hiscores Shelve-caching (reduces the number of calls to the api). __Fixes currently implemented in v1.2.2__: * Previously, ItemID and ItemName each had their own dictionary to allow users to search by either ItemID or ItemName. This was dumb of me, so I instead implemented one dictionary that was keyed by ItemName. You can still search by ItemID thanks to the `self.__normalize_input()` method which will ensure that anything you input is converted to item name. If you put in `int(1213)` or `str(1213)` the method will, ultimately, return `"rune dagger"` __hotfix__: * Fixed an issue with package not installing from pip ## Introduction OSRSBytes is an all-in-one Python library for Old School Runescape (OSRS) that features Item Information Lookup, Hiscores, and Market information from RSBuddy. ### Installation: ``` pip install OSRSBytes ``` ### Upgrade ``` pip install OSRSBytes --upgrade ``` ### Example Invocation (Hiscores) ```python from OSRSBytes import Hiscores user = Hiscores('Zezima', 'N') # Lets display some information print("Current level:", user.skill('attack', 'level')) print("Current rank:", user.skill('attack', 'rank')) print("Current exp:", user.skill('attack', 'experience')) print("Exp remaining:", user.skill('attack','exp_to_next_level')) ``` ### Example Invocation (Items) ```python from OSRSBytes import Items items = Items() # Lets get information on this item print('Is Members:', items.isMembers('rune dagger')) print("Item ID:", items.getItemID('rune dagger')) print('Sell Average:', items.getSellAverage('rune dagger')) print('Sell Quantity:', items.getSellQuantity('rune dagger')) print('Buy Average:', items.getBuyAverage('rune dagger')) print('Buy Quantity:', items.getBuyQuantity('rune dagger')) print('Buy Limit:', items.getBuyLimit('fire rune')) print('Shop Price:', items.getShopPrice('rune dagger')) print('High Alch Value:', items.getHighAlchValue('rune dagger')) print('Low Alch Value:', items.getLowAlchValue('rune dagger')) # In addition, all items can be called by Item ID as well print('Item Name:', items.getName('1213')) print('Sell Average:', items.getSellAverage('1213')) ``` ### Contributing Prior to contributing, please consider the following before committing code: 1. Do not leave commented lines in code (i.e. `#print('test')` 1. Try to write your code as cleanly and readable as possible 1. Whenever possible, do not use third party packages, try your hardest to utilize built-in python packages Thank you for your considerations


نحوه نصب


نصب پکیج whl OSRSBytes-1.2.3:

    pip install OSRSBytes-1.2.3.whl


نصب پکیج tar.gz OSRSBytes-1.2.3:

    pip install OSRSBytes-1.2.3.tar.gz