Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Files

Latest commit

b43023a · Feb 15, 2024

History

History

api

README.md

Description

This is a Post Quantum Cryptography tool,
using Python framework.

Pre-requisite

Python(includes pip) has to be installed on your system in order to run this project.

Installation

  1. To start, clone the qujata repository:
git clone https://github.com/att/qujata.git
cd qujata/api
  1. Install python packages:
pip3 install -r requirements.txt
  1. Running the application:
python3 -m src.main
  1. Application is available now in: http://localhost:3020, curl example:
curl --location 'http://localhost:3020/qujata-api/analyze' \
--header 'Content-Type: application/json' \
--data '{
    "experimentName": "name",
    "description" : "test description",
    "algorithms": ["kyber512"],
    "iterationsCount": [5],
    "messageSizes": [10]
}'
  1. Running unit test:
coverage run -m unittest discover -s tests
coverage html

You can see your coverage on the api/htmlcov/index.html file.
Please make sure you have 100% coverage.