Skip to main content

Shared chassis (logging, etc.) for Sabu services

Project description

sabu-chassis

sabu-chassis is a shared Sabu library that provides reusable utilities for multiple services.

It is designed for cross-cutting concerns that should be imported directly by services (for example: logging setup and shared runtime conventions), instead of being exposed as a standalone service.

Why this package exists

In Sabu, some capabilities are best delivered as code dependencies rather than API calls.

Using sabu-chassis as a dependency makes it easier to:

  • Reuse the same behavior across services.
  • Keep service internals consistent.
  • Ship functionality (not inter-service data exchange) in a versioned Python package.

Current scope

At the moment, the primary implemented utility is logging configuration.

The logging setup is currently tuned for one service context. As the microservices chassis effort progresses, this will be normalized so all Sabu services can use a common logging standard in later versions.

Installation

Dockerizing and using in services independently

pip install sabu-chassis

Installing as a dependency (e.g., inside Dockerized services)

cd libs/sabu_chassis
pip install .

Developing locally (cloning the repository)

from sabu_chassis.logging import configure_logging, set_request_id

configure_logging()
set_request_id('req-123')

Optional environment variables commonly used by the logging module include:

  • LOG_LEVEL
  • WERKZEUG_LEVEL
  • LOG_SERVICE
  • LOG_ENV
  • LOG_DIR_BASE

Sabu

Sabu is a sector-based carbon-emission evaluation framework built with a microservices architecture.

Each module runs as an independent service. Current services focus on building life-cycle assessment and city-scale geospatial cleaning/validation workflows. Alongside services, Sabu also includes shared Python libraries such as sabu-chassis to provide reusable internal functionality.

Roadmap note

sabu-chassis will continue to grow as a shared library for Sabu services, with future versions expanding beyond logging into additional standardized service utilities.

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

sabu_chassis-0.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

sabu_chassis-0.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file sabu_chassis-0.1.0.tar.gz.

File metadata

  • Download URL: sabu_chassis-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sabu_chassis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e5ee5994e553a5b84ff71bb495dec2cb65756a0c4873276433dd21e350b0780
MD5 0f25017ec193b73351f9cf9362b03145
BLAKE2b-256 7e901bd25a13b29a69398333ec88493efd69f7d2c451d28e8efacd121b7d75a0

See more details on using hashes here.

File details

Details for the file sabu_chassis-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sabu_chassis-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sabu_chassis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccbfce03c67c241d8c4ec145dea90ac699814b7e3797887d904992803413862d
MD5 68f57c5bbb87a0ff6da86979ede297ce
BLAKE2b-256 ebc2b234d8f07d725f4471e579941eab709a3845515b1e6ae2258454cd315f6e

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