A web application that lets you view YGOJSON data.
Project description
YJViewer
A web application that lets you view YGOJSON data.
Running Locally
You'll need a modern version of Python, at least 3.8, to run this code. To install YJViewer from PyPI:
python3 -m pip install yjviewer
Or to install it if you have the repository downloaded:
python3 -m pip install -e .
From there, you can run this application using flask
:
flask --app yjviewer --debug run
It should then load the database and give you a URL to connect to (by default, http://localhost:5000/).
If you don't have the database downloaded, it will download it for you, but it will NOT automatically update an outdated database. You will have to either delete data
or redownload it yourself, if you want an updated dataset!
Running in Production
Short answer: Don't.
Long answer: This is a web application meant to be accessed by one person: you. I have not created this with scalability in mind. If you try to serve this to a network, expect problems if you get a lot of people accessing it. Furthermore, we do not cache the images we get from cross-site sources, such as Yugipedia or YGOPRODECK, and those sites have strict policies about hotlinking images from them. If you expose a YJViewer server to the outer world, expect those two sites to get mad at you if you're popular enough. I don't have the money to set up a YJViewer server myself, and even if I did solve the image-hotlinking problem, I don't know if I would have the time to maintain such a website. So don't use this in production, and don't ask me to use this in production. Saying that, if you do want to help me make YJViewer production-ready, see Contributing, below.
Contributing
PRs are always welcome! To set up YJViewer for development, follow these steps after checking out the repository:
python3 -m pip install -e .[dev,test]
pre-commit install
Changelog
0.1.0
Initial version.
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
Built Distribution
File details
Details for the file yjviewer-0.1.0.tar.gz
.
File metadata
- Download URL: yjviewer-0.1.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1f8a8cab675677781c7b670c7821ad58342e6ed6886c5c08afeb4febcab2493 |
|
MD5 | 72513c8ab6ccefefdbc5b1fec4809cda |
|
BLAKE2b-256 | 4b0a283711c7d89aed236ed26fdea9b4390fadbb334bb793e7e82f309b12032e |
File details
Details for the file yjviewer-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: yjviewer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c0fae5ffc1c1435320e25832a0772de508a5a5c763b55e3bc0f31677a364ec |
|
MD5 | a12c91797b568f519434fc030f5678d8 |
|
BLAKE2b-256 | 1c3dec3f00ad2d945a1417c7e96b0225ba45ac0b55577e4c6a093d2c35558412 |