Skip to main content

Swarm Systems Lab Python Simulator

Project description

ssl_simulator

Swarm Systems Lab Python Simulator

⚠️ Warning: This project is a work in progress

Installation

pip install ssl_simulator

Usage

import ssl_simulator

# Example usage
result = ssl_simulator.hello()
print(result)

Development

This project follows the SSL Golden Path for streamlined Python development.

Quick Setup

# Clone the repository
git clone https://github.com/Swarm-Systems-Lab/ssl-simulator
cd ssl_simulator

# One-command setup (installs uv, creates .venv, installs dependencies)
just setup

# Verify everything works
just test

Common Commands

All project tasks are managed via just. Run just --list to see all available commands.

Essential commands:

just setup          # Initial environment setup
just test           # Run full test suite (what CI runs)
just test-fast      # Quick parallel tests (skip slow tests)
just lint           # Check code style
just typecheck      # Check types
just security       # Run security scans
just check-all      # Full CI simulation (run before pushing!)
just build          # Build package

just docs           # Start documentation server

Testing workflows:

just test-one test_name      # Run specific test
just test-multi-py           # Test on Python 3.10-3.14
uv run pytest -vv            # Verbose output
uv run pytest --pdb          # Debug on failure

Development Tools

  • Package Manager: uv - Fast Rust-based Python package manager
  • Task Runner: just - Command runner for project tasks
  • Linting: ruff - Fast linter and formatter
  • Type Checking: ty (mypy wrapper) - Static type analysis
  • Testing: pytest with coverage and parallel execution
  • Security: semgrep - Security vulnerability scanning

Project Structure

ssl_simulator/
├── src/ssl_simulator/     # Source code (importable package)
├── tests/                      # Test files (mirrors src structure)

├── docs/                       # Documentation (MkDocs)


├── examples/                   # Usage examples

├── pyproject.toml              # Project metadata and dependencies
├── justfile                    # Task definitions
└── uv.lock                     # Locked dependencies

Documentation

Full documentation is available at https://github.com/Swarm-Systems-Lab/ssl-simulator/blob/main/docs

Build locally:

just docs        # Start server at http://localhost:8000 with live reload
just docs-build  # Build static documentation

Examples

See the examples/ directory for usage examples.

Run the basic example:

just example
# Or directly:
uv run python examples/basic_usage.py

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Before submitting a PR:

just check-all  # Runs lint, security, test, typecheck, pre-commit

License

MIT

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

ssl_simulator-0.4.5.tar.gz (67.8 kB view details)

Uploaded Source

Built Distribution

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

ssl_simulator-0.4.5-py3-none-any.whl (95.5 kB view details)

Uploaded Python 3

File details

Details for the file ssl_simulator-0.4.5.tar.gz.

File metadata

  • Download URL: ssl_simulator-0.4.5.tar.gz
  • Upload date:
  • Size: 67.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for ssl_simulator-0.4.5.tar.gz
Algorithm Hash digest
SHA256 4ec5b43eb5a2bdcc10ae16f03e725ba3fba7df65fa97312ee0dd45e253276052
MD5 b194249b7ccc662a6c9be86938bc0097
BLAKE2b-256 0d7d7d88b513924284b999fdc06bac7ce18d26500e991f9c40e62e6f2584e498

See more details on using hashes here.

File details

Details for the file ssl_simulator-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: ssl_simulator-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 95.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for ssl_simulator-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9a7cae84087ba4e1c53b9d6c29c1787f906e705a9465dc59893b21878b7cc00e
MD5 5c5554de303dc3f381ac6c1dc80b9417
BLAKE2b-256 3c9035c44c0feac15131e44031abaacce860a2cbb4cfdcde0478e5346a526ccf

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