Skip to main content

Steps to setup environments to run code

It is suggeseted to maintain 2 different environments to run the code,one for the scan component and the other to run the application.

The below steps are for setting up the environment using Anaconda. Please refer to the below link for more details:

https://docs.anaconda.com/anaconda/install/index.html

Steps to Run the code

  1. Ensure you are in the complai directory

Optional Steps to RUN/RERUN SCAN

  1. Create and switch to new Anaconda Environment: "conda create -n python=3.8" "conda activate "

  2. Install complai_scan using pip, using below code. "pip install

  3. To run the scan , move to the respective directory. For e.g. : "cd titanic"

  4. Run the code using the below command. "python run_binary.py"

Steps to LAUNCH APP

  1. Create and switch to new Anaconda Environment: "conda create -n python=3.8" "conda activate "

  2. Move to the complai_ui directory using the below command. "cd compali_ui"

  3. Install app dependencies (Preferably in a new env), using the below command "pip install -r requirements.txt"

  4. Run the below command to launch the stramlit app. "streamlit run app.py"

Note: If you are on Dark Theme then please go to settings of the streamlit app and select Theme as Light. Changing Theme is very easy as explained in this link https://blog.streamlit.io/content/images/2021/08/Theming-1--No-Padding---1-.gif

Steps to Configure YAML

  1. This project requires the user to configure 2 yaml files. For e.g. :"tiatnic_config.yaml" and "tiatnic_policy.yaml"

Please refer to the yaml files for further information

Metadata

Release files for complai-test 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for complai-test 0.1
File Size Uploaded
complai_test-0.1.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for complai-test 0.1
File Interpreter ABI Platform
complai_test-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 56.5 kB

Release files / complai_test-0.1.tar.gz

Download URL complai_test-0.1.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5ce1956d9a06d2f06e84a84c35657b2983b51e5d8e2c678a8f88067ea278008e
BLAKE2b-256 checksum
How to use checksums
e409e0034ede6657116bd3748942461d5af33fe51f58593f6c2bdbd4b7b28414
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.14 Darwin/23.5.0

Release files / complai_test-0.1-py3-none-any.whl

Download URL complai_test-0.1-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e3e259e5794a4e872db74a93bf2dab1ef6ae368b8f1443486917a96dbff6ea5
BLAKE2b-256 checksum
How to use checksums
d16819a077698a7eb3fd604b0c327c5a3a3dc57cb61b2b433b45891d71230519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.14 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page