Skip to main content

A web application that lets you view YGOJSON data.

Project description

YJViewer

YJViewer's front page. YJViewer searching for cards. YJViewer at a card page.

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.2.4

  • Added support for the new red and blue foil secret rares.

0.2.3

  • Support for YGOJSON 0.5.0.

0.2.2

  • Fixed bug with the random sealed product button.

0.2.1

  • Removed deprecated use of boxImage property.

0.2.0

  • Added support for viewing sealed products.
  • Added support for viewing set pack distributions.

0.1.1

  • Fix image loading.
  • Add filtering to card printing display.

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

yjviewer-0.2.4.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yjviewer-0.2.4-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file yjviewer-0.2.4.tar.gz.

File metadata

  • Download URL: yjviewer-0.2.4.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for yjviewer-0.2.4.tar.gz
Algorithm Hash digest
SHA256 816b56ca45aaf388454f3a50564797196601a9f901763af6f1f6614ba1a97393
MD5 55bd2d56f9f13e1c07b88baf310b4a26
BLAKE2b-256 d78beb4e884ad2f9e7ca2cd3c68844b78bf0a6ec2812c5fa2a3275e1d0699281

See more details on using hashes here.

File details

Details for the file yjviewer-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: yjviewer-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for yjviewer-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0db1e616cc02eeef1122bf57ba82e85ca84645c497fda38ec3d0e4c89c268fc6
MD5 122d177875e894e8c83db6575aed4e3e
BLAKE2b-256 b2c5d10aa19ab9e5b051f9b60c3dd82fdb11b01d6719bfc898339bac9286763c

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