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 .venvpython -m venv .venvorpython3 -m venv .venv -
Activate the virtual environment:
source .venv/bin/activate.venv\scripts\activateor.venv\scripts\activate.bator navigate to route and runactivate.batIt 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 piporpython3 -m pip install --upgrade pipwindowspython -m pip install --upgrade pip -
Install dependencies
py -3 -m pip install -r requirements.txtpython -m pip install -r requirements.txtorpython3 -m pip install -r requirements.txtapt-get install python3-tkpython3 -m pip install m-r requirements.txtuse
python3 -m pip install --upgrade pipif necessary.
-
With the virtual environment activated, run the following console command:
uvicorn app:app --reload --port 5000in case you need to delete cache use
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rffor root open
http://127.0.0.1:5000/for swagger open
http://127.0.0.1:5000/docs