Using PKI Express on Python
This article describes how to use PKI Express on Python
The sample project shows the usage of PKI Express together with the Web PKI browser component on a Python project. It is hosted on GitHub:
If you are using a previous version of Ptyhon, please contact us.
Running the project
- Install PKI Express
- Download the project or clone the repository
- In a command prompt, navigate to the folder
Python/Flaskand run the command
pip install -r requirements.txtto download the dependencies
- Define the
FLASK_APPenvironment variable to define the name of app the should be run:
- Run the web application:
python -m flask run
- Access the URL: http://localhost:5000
Optionally, you can create and activate a "virtualenv" to avoid mixing library versions:
virtualenv <venv> source bin/activate (on Windows: ./<venv>/Scripts/activate)
In order to use PKI Express on Python, you must includ the PyPi package pkiexpress
To add it to your project, add the line below to your
After that, do a
pip install -r requirements.txt to download the package and its dependencies.
The package is open-source, hosted on GitHub. Feel free to fork it if you need to make any customizations, and even submit an pull request.