Skip to main content

Check OSRS Grand Exchange prices from the command line. Includes module functionality to check item full price history.

Project description

GPPC (Gold Piece Price Checker)

Check OSRS Grand Exchange prices from the command line. Includes module functionality.

Usage

Installation

$ pip install gppc
$ git clone https://github.com/moxxos/gppc.git
$ cd gppc
$ pip install .

Get the price and recent 24h change of many different Grand Exchange items.

$ gppc 'gold bar' coal
$ gppc gold_bar coal

Image

Import as a module

>>> import gppc
>>> gppc.search('coal')

New Feature

Create item instances to check item recent history.

>>> from gppc import Item
>>> coal = Item('coal')
>>> coal.recent_historical
           Price Average    Volume
Date           
2022-06-09   161     160  46780917
2022-06-10   164     160  13746833
2022-06-11   164     160  44698810
...          ...     ...       ...
2022-12-02   171     163  24461683
2022-12-03   174     163  43027137
2022-12-04   173     163  25469205
[179 rows x 3 columns]

Save multiple item histories for future use.

>>> coal.save_historical()
SAVED ITEM: Coal, id: 453
179 NEW DATES CREATED
179 RECORDS UPDATED

>>> bond.save_historical()
SAVED ITEM: Old school bond, id: 13190
179 RECORDS UPDATED

Check item full history at a later date if past history is saved.

>>> coal.full_historical
           Price Average    Volume
Date           
2022-06-09   161     160  46780917
2022-06-10   164     160  13746833
2022-06-11   164     160  44698810
...          ...     ...       ...
2023-12-02   171     163  24461683
2023-12-03   174     163  43027137
2023-12-04   173     163  25469205
[544 rows x 3 columns]

Updates

CHANGELOG

TODO

  • Finish command line display
  • Add tests and documentation

[0.1.6.] - 2022-12-04

New Item module

[0.1.5.] - 2022-10-18

Display output now works on Windows.

Added image caching.

[0.1.4] - 2022-10-07

Removed pycache from repo.

Added MANIFEST.in to process CHANGELOG.md during build process.

[0.1.3] - 2022-10-07

Fixed README and description for build and setup.

PYPI description now renders correctly.

[0.1.1] - 2022-10-06

Now works. Also displays item images.

[0.1.0] - 2022-09-12

Configured pyproject.toml

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

gppc-0.1.6.tar.gz (22.7 kB view hashes)

Uploaded Source

Built Distribution

gppc-0.1.6-py3-none-any.whl (22.6 kB view hashes)

Uploaded Python 3

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