Skip to main content

Universal Hyperbolic Geometry library using pure projective operations

Project description

Universal Hyperbolic Geometry (UHG) Library

A pure implementation of Universal Hyperbolic Geometry using projective operations, optimized for cybersecurity applications.

Features

Core Features

  • Pure projective geometry implementation
  • No differential geometry or manifold assumptions
  • Cross-ratio preservation throughout
  • Numerically stable operations

Advanced Features

  • UHG Metric Learning
  • Multi-head Attention Mechanism
  • Threat Correlation Engine
  • Pattern Recognition
  • Anomaly Detection

Cybersecurity Applications

  • Network Traffic Analysis
  • System Event Correlation
  • Behavioral Pattern Detection
  • Threat Intelligence Integration
  • Zero-Day Attack Detection

Installation

Basic installation:

pip install uhg

With security features:

pip install uhg[security]

With visualization tools:

pip install uhg[viz]

Quick Start

from uhg import (
    ProjectiveUHG,
    UHGMultiHeadAttention,
    ThreatCorrelation
)

# Initialize threat correlation
correlation = ThreatCorrelation(
    feature_dim=8,
    num_heads=4
)

# Create indicators
indicators = [
    ThreatIndicator(
        ThreatIndicatorType.NETWORK,
        value="suspicious_pattern",
        confidence=0.9,
        context={
            "port": 443,
            "protocol": "TCP",
            "bytes_out": 1024
        }
    ),
    ThreatIndicator(
        ThreatIndicatorType.SYSTEM,
        value="malicious_process",
        confidence=0.85,
        context={
            "pid": 1234,
            "memory_usage": 50000,
            "api_calls": 15
        }
    )
]

# Analyze relationships
groups = correlation.get_correlation_groups(indicators)
relationships = correlation.analyze_indicator_relationships(indicators)

Documentation

Full documentation is available at uhg.readthedocs.io.

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uhg-0.2.6.tar.gz (78.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uhg-0.2.6-py3-none-any.whl (47.7 kB view details)

Uploaded Python 3

File details

Details for the file uhg-0.2.6.tar.gz.

File metadata

  • Download URL: uhg-0.2.6.tar.gz
  • Upload date:
  • Size: 78.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for uhg-0.2.6.tar.gz
Algorithm Hash digest
SHA256 795ffb3b4bffaf2b0e7e0e1e2440f94bae1e0f36afb0a0349a9693c4953e6b61
MD5 bdc4b04aa09f12680171fcff128e379c
BLAKE2b-256 20808cd052aea13df656a4b510596bc05d7e3377b08e09bc5e462b6d565cf0a5

See more details on using hashes here.

File details

Details for the file uhg-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: uhg-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 47.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for uhg-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 54056dbe4b4c19efb6c856be80279e9d5ec4d1f42584b7b9cf099863a208a1e6
MD5 986d13dcd2cd20e915213c440f1bfadb
BLAKE2b-256 1884758c0a93fb5fc9e67ff39850041ade6b16ee38ab64d37b5cc911871c26ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page