Skip to main content

Aloha

License GitHub Workflow Status PyPI version PyPI Downloads Code Activity Recent Code Update

aloha-python is a modern project template (boilerplate) and a versatile utility library (aloha package) designed to build robust, containerized microservices in Python.


Please generously STAR★ our project or donate to us! GitHub Starts

  • To understand the package, read the 📚docs or Ask DeepWiki

  • To contribute or talk to a human: Open an Issue on GitHub Join the Discord Chat Join the Gitter Chat


🚀 Key Features

  • Configuration Management (aloha.config): Lazy-loaded settings (SETTINGS) using HOCON (Human-Optimized Config Object Notation), supporting environment profile overrides (PROFILE_ENV / FILES_CONFIG, with legacy ENV_PROFILE deprecated) and environment variable injection.
  • Concurrent-Safe Logging (aloha.logger): Multi-process safe daily rotating log file handler, console output, and automatic log paths configuration.
  • Database Operators (aloha.db): Pre-built SQLAlchemy-backed connections for PostgreSQL, MySQL, SQLite, DuckDB, MongoDB, Redis, Elasticsearch, and Kafka, with password resolution via a secure PasswordVault wrapper.
  • Encryption & Utilities (aloha.encrypt): Fast helpers for AES (ECB/CBC) encryption, RSA asymmetric key-pair generation/signatures, JWT encoding/decoding, and Base62 hashing.
  • Testing Harness (aloha.testing): Extended UnitTestCase and integration ServiceTestCase structures for testing HTTP endpoints.
  • Binary Code Protection (aloha compile): Utility compiler using Cython to package python source files (.py) into platform-native compiled dynamic libraries (.so/.pyd), protecting intellectual property.

📁 Repository Layout

  • src/: Application-specific codebase, configuration files (src/resource/config/), and unit/integration tests (src/tests/).
  • pkg/: The core aloha utility library source code.
  • tool/: Local CI/CD files and setup helpers (e.g. docker-compose configurations, lifecycle scripts).
  • doc/: Documentation files and AI Agent Skills.
  • notebook/: Jupyter notebooks for interactive analysis.

🛠️ Local Development Quick Start

Local development is fully containerized using Docker & Docker Compose to maintain environment consistency.

1. Launch Dev Container

Run the lifecycle helper script:

# Check port availability and spin up the development container
./tool/cicd/run-dev.sh up

# Open an interactive terminal inside the container
./tool/cicd/run-dev.sh enter

Note: Development ports (PORT_APP and PORT_WEB) are dynamically computed based on your User ID (UID) to avoid conflicts on shared servers.

2. Run Tests

Inside the running container terminal:

# Execute pytest suite
pytest src/

# Run tests with code coverage report
pytest --cov=src src/

3. Production Packaging

To build a production-ready Docker image with optional binary compilation enabled:

source tool/tool.sh
build_image app_common latest src/app-demo.Dockerfile

✍️ Coding Guidelines

When developing in this project, variables should place their type or primary characteristics/role prefix first:

  • Correct: name_service, port_service, svc_ingress, cfg_postgres.
  • Incorrect: service_name, service_port, ingress_service, postgres_config.

For details on local setups, CI/CD specifications, and sub-module APIs, inspect our agent instruction files:

Download files

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

Source Distribution

aloha-2026.912.1238.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

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

aloha-2026.912.1238-py3-none-any.whl (64.1 kB view details)

Uploaded Python 3

File details

Details for the file aloha-2026.912.1238.tar.gz.

File metadata

  • Download URL: aloha-2026.912.1238.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for aloha-2026.912.1238.tar.gz
Algorithm Hash digest
SHA256 b45e37c59fd2a5e2d46c7ae9f43150ab3407987a33eeb703babc3ece826487dc
MD5 eddf1f144e4f14a09d1f61f29e121d30
BLAKE2b-256 baf97f92c3fe362c5cf84a397c7c28f5e7fba8915d8f7952eb5ec9a1af64e297

See more details on using hashes here.

File details

Details for the file aloha-2026.912.1238-py3-none-any.whl.

File metadata

  • Download URL: aloha-2026.912.1238-py3-none-any.whl
  • Upload date:
  • Size: 64.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for aloha-2026.912.1238-py3-none-any.whl
Algorithm Hash digest
SHA256 3e9033cdd6405b7bcaaf2ca5bf489237a9260dabf4953caaa70bd1d9b8d3b935
MD5 59ae52db260fee8a6c0d9fc4db7ab37e
BLAKE2b-256 f900ef6fdab9b500587ede2e77c0ea2658bf50ea2f4ac34974717b727399c8c4

See more details on using hashes here.

Release history Release notifications | RSS feed

2026.912.1257

2 files

This release

2026.912.1238 This release

2 files

2026.912.1147

2 files

2026.827.1651

2 files

2026.709.1129

2 files

2026.629.516

2 files

2026.629.514

2 files

2026.629.513

2 files

2026.625.2112

2 files

2026.624.2141

2 files

2026.624.1754

2 files

2026.623.2212

2 files

2026.623.1940

2 files

2026.623.1623

2 files

2026.422.1708

2 files

2026.422.1518

2 files

2026.422.1517

2 files

2026.422.1457

2 files

2026.422.1432

2 files

2026.421.1753

2 files

2026.421.1752

2 files

2025.1224.1646

2 files

2025.911.622

2 files

2025.910.1726

2 files

2025.829.217

2 files

2025.814.1454

2 files

2025.619.1848

2 files

2024.526.1153

2 files

2024.515.1337

2 files

2022.1124.1907

2 files

2022.1121.838

2 files

2022.1120.1048

2 files

2022.1117.2129

2 files

2022.1012.539

2 files

2022.919.1851

2 files

2022.905.1853

2 files

2022.905.1852

2 files

2022.823.717

2 files

2022.604.1910

2 files

2022.412.1736

2 files

2022.407.702

2 files

2022.406.802

2 files

2022.322.804

2 files

2022.315.1852

2 files

2021.719.1842

3 files

2021.311.1030

3 files

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