This repository is based on the implementation of a simple python implementation of PayU Hub End To End Encryption.
-
Create a virtual environment with the command
py -3 -m venv .venv
python -m venv .venv
orpython3 -m venv .venv
-
Activate the virtual environment:
source .venv/bin/activate
.venv\scripts\activate
or.venv\scripts\activate.bat
or navigate to route and runactivate.bat
It should appear (venv) in the console. Whenever a new console is executed, the virtual machine has a libraries and dependencies other than those found in the normal Windows environment, this to maintain the integrity of the applications in the operating system.
linux or mac
pip install --upgrade pip
orpython3 -m pip install --upgrade pip
windowspython -m pip install --upgrade pip
-
Install dependencies
py -3 -m pip install -r requirements.txt
python -m pip install -r requirements.txt
orpython3 -m pip install -r requirements.txt
apt-get install python3-tk
python3 -m pip install m-r requirements.txt
use
python3 -m pip install --upgrade pip
if necessary.
-
With the virtual environment activated, run the following console command:
uvicorn app:app --reload --port 5000
in case you need to delete cache use
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
for root open
http://127.0.0.1:5000/
for swagger open
http://127.0.0.1:5000/docs