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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uhg-0.2.3.tar.gz.
File metadata
- Download URL: uhg-0.2.3.tar.gz
- Upload date:
- Size: 70.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00cf25afa127630c727b3961820b6db87b3eeeb933346dd6885ecf73cd8f4d67
|
|
| MD5 |
4c71a460f63be0376944921c7b65b241
|
|
| BLAKE2b-256 |
32b538a4e47d974999303e607754c372917569532db12b48fde985fa02add461
|
File details
Details for the file uhg-0.2.3-py3-none-any.whl.
File metadata
- Download URL: uhg-0.2.3-py3-none-any.whl
- Upload date:
- Size: 38.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc0970e3dcadc6d73c0aa9f0ffca8f216b8f1ace052bf696916c363fc64ab15
|
|
| MD5 |
33c839c132a931013cc20f711753b649
|
|
| BLAKE2b-256 |
9ca3b44ee13d937b3135455cbf16d0846df153c761e0f103793545bd42c3a87d
|