Skip to main content

Shared chassis (logging, etc.) for JUGS services

Project description

jugs-chassis

jugs-chassis is a shared JUGS 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 JUGS, some capabilities are best delivered as code dependencies rather than API calls.

Using jugs-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 JUGS services can use a common logging standard in later versions.

Installation

Dockerizing and using in services independently

pip install jugs-chassis

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

cd libs/jugs_chassis
pip install .

Developing locally (cloning the repository)

from jugs_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

JUGS

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

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

Roadmap note

jugs-chassis will continue to grow as a shared library for JUGS 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

jugs_chassis-0.1.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

jugs_chassis-0.1.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file jugs_chassis-0.1.1.tar.gz.

File metadata

  • Download URL: jugs_chassis-0.1.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for jugs_chassis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aab4861c9be98f9cc56da1330d780d54f4aafa79f38e8f7a9c6e9b1e2e482236
MD5 063823500d7063abbd218c75a9902201
BLAKE2b-256 4e958554ff87dca04dd8fd5d31177bccd81b1c6276779c9a1925ca67f0d95741

See more details on using hashes here.

File details

Details for the file jugs_chassis-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: jugs_chassis-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for jugs_chassis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d094af19462b8e3da535368382fe8827ebee9bf38f613cd769794b47a9badf1
MD5 def2c8fec8eda6ac913e7a52b83586ee
BLAKE2b-256 1bbbf6f4c0dcec5438dc391eb33ec4fbf5ed7386d53a06145557bd2b434e71ca

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