A viewer for Patpat
Project description
Patpat-viewer
A viewer for Patpat
Installation
Install Patpat-viewer by PyPI
pip install patpat-viewer
Usage
After installation, running the FLASK server will enter the sample environment. As different systems have different methods for setting environment variables, operations may vary:
Windows:
> set FLASK_APP=patpat_viewer
> set FLASK_ENV=production
> flask run
Linux:
$ export FLASK_APP=patpat_viewer
$ export FLASK_ENV=production
$ flask run
Before starting the server, specify the answers of Patpat patpat_env
by changing the environment variables:
Windows:
...
> set PATPAT_ENV=<Absolute path of patpat_env>
> flask run
Linux:
...
$ export PATPAT_ENV=<Absolute path of patpat_env>
$ flask run
Example in Windows
We recommend using conda to manage environments. A clean environment makes me feel comfortable and can also prevent hair loss.
(base)> conda create --name=patpat python=3.10
...
(base)> conda activate patpat
(patpat)> pip install patpat-viewer
...
(patpat)> set FLASK_APP=patpat_viewer
(patpat)> set FLASK_ENV=production
(patpat)> set PATPAT_ENV=D:\patpat_env
(patpat)> flask run
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
patpat-viewer-0.0.6.tar.gz
(1.1 MB
view hashes)
Built Distribution
Close
Hashes for patpat_viewer-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c03d4c8479608a712657de3de8b522b4024cd4a81f4eb97ebd0d22ce527d02fb |
|
MD5 | cc0a61cb2049fa0ec61892927b16ffb0 |
|
BLAKE2b-256 | d8da21a7adddea12e1c2795d76984866e3a08e133963a90ca971fcef55ab8096 |