Skip to main content

Developing

Requirements

  • Python 3.11 or 3.12 (Download)

  • uv (Download)

  • wkhtmltopdf (used to generate PDF reports)

    • Windows: (Download)

    • Linux: sudo apt-get install wkhtmltopdf

    • macOS:

    curl -L https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-2/wkhtmltox-0.12.6-2.macos-cocoa.pkg -O
    
    installer -pkg wkhtmltox-0.12.6-2.macos-cocoa.pkg -target ~
    

Running the app

GPT settings

You can configure your OpenAI access when running the app via Settings page, or using environment variables.

Default values:

OPENAI_API_MODEL="gpt-5.4-mini"
OPENAI_TYPE="OpenAI" ## Other option available: Azure OpenAI
AZURE_AUTH_TYPE="Azure Key" # if OPENAI_TYPE==Azure OpenAI
DEFAULT_EMBEDDING_MODEL = "text-embedding-3-small"

OpenAI

OPENAI_API_KEY=<OPENAI_API_KEY>

Azure OpenAI

OPENAI_TYPE="Azure OpenAI"
AZURE_OPENAI_VERSION=2023-12-01-preview
AZURE_OPENAI_ENDPOINT="https://<ENDPOINT>.azure.com/"
OPENAI_API_KEY=<AZURE_OPENAI_API_KEY>

#If Azure OpenAI using Managed Identity:
AZURE_AUTH_TYPE="Managed Identity"

Running locally

Windows: Search and open the app Windows Powershell on Windows start menu

Linux and Mac: Open Terminal

For any OS:

Navigate to the folder where you cloned this repo.

Use cd + the path to the folder. For example:

cd C:\Users\user01\projects\intelligence-toolkit

Run uv sync --extra dev and wait for the packages installation.

Run the app:

Run uv run poe run_streamlit, and it will automatically open the app in your default browser in localhost:8081

Use the API

You can also replicate the examples in your own environment running pip install intelligence-toolkit or uv add intelligence-toolkit.

See the documentation and an example of how to run the code with your data to obtain results without the need to run the UI.

Running with docker

  • Minimum disk space: 8GB
  • Minimum memory: 4GB

Download, install and then open docker app: https://www.docker.com/products/docker-desktop/

Then, open a terminal: Windows: Search and open the app Windows Powershell on Windows start menu

Linux and Mac: Open Terminal

For any OS:

Navigate to the folder where you cloned this repo.

Use cd + the path to the folder. For example:

cd C:\Users\user01\projects\intelligence-toolkit

Build the container:

docker build . -t intelligence-toolkit

Once the build is finished, run the docker container:

  • via terminal:

    docker run -d --name intelligence-toolkit -p 80:80 intelligence-toolkit

Open localhost:80

Note that docker might sleep and you might need to start it again. Open Docker Desktop, in the left menu click on Container and press play on intelligence-toolkit.

Lifecycle Scripts

For Lifecycle scripts it utilizes uv and poethepoet to manage build scripts.

Available scripts are:

  • uv run poe test_unit - This will execute unit tests on api.
  • uv run poe test_smoke - This will execute smoke tests on api.
  • uv run poe check - This will perform a suite of static checks across the package, including:
    • formatting
    • documentation formatting
    • linting
    • security patterns
    • type-checking
  • uv run poe fix - This will apply any available auto-fixes to the package. Usually this is just formatting fixes.
  • uv run poe fix_unsafe - This will apply any available auto-fixes to the package, including those that may be unsafe.
  • uv run poe format - Explicitly run the formatter across the package.

Metadata

Release files for intelligence-toolkit 0.2.0

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

Source distribution (sdist)

Source distribution for intelligence-toolkit 0.2.0
File Size Uploaded Provenance Actions
intelligence_toolkit-0.2.0.tar.gz 4.0 MB Without provenance Details for intelligence_toolkit-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for intelligence-toolkit 0.2.0
File Interpreter ABI Platform Actions
intelligence_toolkit-0.2.0-py3-none-any.whl Python 3 none any Details for intelligence_toolkit-0.2.0-py3-none-any.whl

Total release size: 4.5 MB

Release files / intelligence_toolkit-0.2.0.tar.gz

Download URL intelligence_toolkit-0.2.0.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
81b4afb6d565e50ecdcc89c37e6674ccbf9e3da351c313eb8c85c7fcfaa1ce0a
BLAKE2b-256 checksum
How to use checksums
28d7147c3a45c3c3b263ea8ec148eb154100ad1f604bf4d599127c4dd92d37ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release files / intelligence_toolkit-0.2.0-py3-none-any.whl

Download URL intelligence_toolkit-0.2.0-py3-none-any.whl
Size 482.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28ea505bebe5df0e20bb3735802e82723f0e9da6d5d88ae1868fb9fb6432660c
BLAKE2b-256 checksum
How to use checksums
87ec1296671c1adac667b56a31a8785ac5f093095866dc73e424de3ec3b5ab67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Security for intelligence-toolkit 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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