PyStation
PyStation is a Playstation Store crawler that lets the users to gather information about a specific game or a number of discounted games.
PyStation can either be used as a command line tool or an API. The CLI results can either be printed on the command line or displayed on the screen with addition of the games images.
Installation
PyStation in not yet available on PyPI. Forking the project is always an option.
Current Features
- Title
- Price (Discounted price only available for the multi options)
- Image (Only on the gui option)
Possible Future Development
- Description and Publisher of the game
- Multiple single game searches
- Better code organization
- Publishing as a CLI tool and API to PYPI
- Improve the gui
- Main menu
- More beautiful interface
- etc.
CLI Tool Usage
pystation [options] [args]
Options:
-h, --help show this help message and exit
-s SINGLE [SINGLE ...], --single SINGLE [SINGLE ...]
Get a single game price and information.
-gs GUI_SINGLE [GUI_SINGLE ...], --gui_single GUI_SINGLE [GUI_SINGLE ...]
Same as single but with gui and picture
-m, --multi Get all the sale prices and titles
-gm, --gui_multi Same as multi but with gui and picture
Using the gui feature doesn't have any other benefit than seeing the images.
In order to get your desired currency for the prices, you need to specify the country.
It is specified by adding -c country after the options and args.
For e.g.
pystation -s minecraft -c germany
Some languages that don't use letters may have unexpectable behavior as the text capturing is done for lating alphabets.
API Usage
The single and multi functions in the station.py file are the most useful as the other ones are mainly helpers for these two.
The country here is just any country name e.g. Finland.
from pystation.station import single, multi
single(title, [country]) -> [[full title, price]]
multi([country]) -> [[full title, og price, discounted price] * x]
A few notes about the implementations
First I was only going to do CLI but as the project went on, I decided to expand to GUI as well. Tkinter was chosen there as it is the easiest option to develop GUI features on Python.
All external library dependancies were chosen for their ease and fit for the project. Usage of too sophisticated libraries would've been a waste of time and resources.
Both the single and the multi funtion uses the search_store function. It's unnecessary for the multi to be checked for no results or be passed through the search_game function. It is made this way as it doesn't add too much time and saves a few lines of redundant code.
All files are formatted using black.
Metadata
Release files for PyPlayStation 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyPlayStation-0.0.1.tar.gz | 10.4 kB | Without provenance | Details for PyPlayStation-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyPlayStation-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for PyPlayStation-0.0.1-py3-none-any.whl |
Total release size: 23.6 kB
Release files / PyPlayStation-0.0.1.tar.gz
| Download URL | PyPlayStation-0.0.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6520d33272f0df696e906057eeae25e36ef74d67ba49b31dbde8e821ef6cda28
|
|
BLAKE2b-256 checksum How to use checksums |
577432120cb9263f19504a43e82598fc92e35b677ba8809abaf432e02688e36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / PyPlayStation-0.0.1-py3-none-any.whl
| Download URL | PyPlayStation-0.0.1-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7d8b146298e20e46e7cc3b7365d0eadb0d88fe2cd9e23e22fb25d118e8a0b08
|
|
BLAKE2b-256 checksum How to use checksums |
29ee38eb85015df834dc8bc7f2cacf94a0eb57d44e6b8129b2b2f2c0b397787b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for PyPlayStation 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.