Skip to main content

Propano

A lightweight, open-source network anomaly detection package leveraging Facebook Prophet for time-series modeling.

Propano leverages Facebook Prophet to detect anomalies in time-series data. Our approach integrates domain knowledge, anomaly scoring, continuity analysis, and proximity analysis to reduce noise and false positives—helping detect meaningful anomalies rather than isolated outliers.

Few inputs a user can use to detect the anomalies.

✔ Domain Knowledge: Static cut-off lower and upper bounds for a metric. Currently, it is static, we intend to derive dynamic suggestion of this value as an insight to the users. Data points lying beyond this range will be considered for the anomaly detection. Ex: If a CPU usage has spike from 20% to 60% and the lower bound is set to 70%, then this spike would be ignored.

✔ Anomaly Scoring: Sigmoid based scoring(0 - 1) with scale factor can be used by the consumers to set the threshold for anomalies based on the sensitivity(Low, Medium, High sensitivity). Low Sensitivity: Anomalous points with scores above 0.9 Medium Sensitivity: Anomalous points with scores above 0.7 High Sensitivity: Anomalous points with scores above 0.5 Custom Threshold also supported. Anomalies detection in this step are considered for further process.

✔ Continuity Analysis: Consumers of the library can specify the period of continuity of the anomalous behaviour. Anomalies detection in this step are considered for further process.

✔ Proximity Analysis: This will reduce the clutter's in the final anomalous points detected. Start and end of the block of anomalies(range) is shown in the final output. If the data is crossing the trend, deviation from the anomalous range values are intelligently considered as well.

Getting Started

pip install propano

OR

pip3 install propano

Project Structure

propano/
├── src/
│   ├── propano/
│   │   ├── __init__.py
│   │   ├── anomaly_detector.py   # Core anomaly detection logic
│   │   ├── cli.py                # Command-line interface (CLI)
│   │   ├── utils.py              # Helper functions (e.g., data preprocessing)
│   │   ├── visualization.py      # Functions for plotting anomalies
│   ├── tests/
│   │   ├── test_anomaly_detector.py  # Unit tests
│   │   ├── test_cli.py               # Unit tests for CLI
│   │   ├── test_utils.py
│   ├── data/
│   │   ├── raw/                  # Raw network traffic data
│   │   │   ├── sample_network_data.csv
│   │   ├── processed/             # Preprocessed data files
│   │   │   ├── cleaned_data.csv
│   ├── notebooks/
│   │   ├── anomaly_detection_demo.ipynb  # Jupyter notebook example
├── examples/
│   ├── example_usage.py          # Example script demonstrating package usage
├── docs/
│   ├── README.md                 # Project documentation
│   ├── CONTRIBUTING.md           # Guidelines for contributors
├── .github/
│   ├── workflows/
│   │   ├── ci.yml                 # GitHub Actions CI/CD workflow
├── setup.py                      # Package setup script
├── requirements.txt              # Dependencies
├── LICENSE                       # Open-source license
├── .gitignore                    # Ignore unnecessary files

Useful Commands for the Developers

To install the dependencies

pip install -r requirements.txt

To Build and Upload to PyPI

python -m build
pip uninstall propano -y && pip install .
twine upload dist/*

Metadata

Release files for propano 0.1.2

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

Source distribution (sdist)

Source distribution for propano 0.1.2
File Size Uploaded Provenance Actions
propano-0.1.2.tar.gz 1.0 MB Without provenance Details for propano-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for propano 0.1.2
File Interpreter ABI Platform Actions
propano-0.1.2-py3-none-any.whl Python 3 none any Details for propano-0.1.2-py3-none-any.whl

Total release size: 1.0 MB

Release files / propano-0.1.2.tar.gz

Download URL propano-0.1.2.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
57a1470c1df3ef2b973349f9e75cf0dd6de76f4c007e68f7dc858f539317abfd
BLAKE2b-256 checksum
How to use checksums
ed9d0ef24077aa552b28f4fd9591a684abb68a4b6780c73661cf943193e2ae14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release files / propano-0.1.2-py3-none-any.whl

Download URL propano-0.1.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dbbb7d8dc301d3f342f9050af6172283f84a8f04e7cb4ef979c06d025017de9
BLAKE2b-256 checksum
How to use checksums
45c242e0a910a96d0e4dbcc9a99269aecfeffd5edf4dfc8a2ee5958e5cc967ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Security for propano 0.1.2

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