Skip to main content

Python libraries to ease development of APIs and event driven apps for AWS serverless architecture

Project description

py-jugaad-aws

The Jugaad libraries are designed to be minimalist but effective in providing essential frameworks to help build multi-tenant SaaS platforms.

The python libraries in this package ease development of APIs and event driven apps for AWS serverless architecture and is primarily tested with AWS Chalice framework.

Usage Guide

Logging

from jugaad_aws import log
logger = log.STLogger.getLogger(__name__)
logger.info("useful logs...")

The logger instance created above is same as the logger instance available from the package logging

App Configuration

from jugaad_aws import config
testvalue = config.getStaticConfig("testKey","DEFAULT_VALUE")
testDynValue = config.getDynamicConfig("testDynKey","DEFAULT_VALUE")

The config instance has two main methods:

  • getStaticConfig - This method looks for the provided configuration key (testKey in the example above) in the following sequence:

    • Under the specific path within AWS Parameter Store - /APP_CONFIG_STATIC/<App Name>/. The app name is read from a config.ini file present under the app root folder.
    • Environment variable
    • A config.ini under the root folder of the app. An optional DEFAULT_VALUE can be provided to the method to return the default if the configuration is not found in any of the mentioned locations.
  • getDynamicConfig - This method looks for the provided configuration key (testDynKey in the example above) from the AWS Parameter Store - /APP_CONFIG_DYNAMIC/<App Name>. The app name is read from a config.ini file present under the app root folder.

HTTP Client

Middleware

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

py_jugaad_aws-0.0.4.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

py_jugaad_aws-0.0.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file py_jugaad_aws-0.0.4.tar.gz.

File metadata

  • Download URL: py_jugaad_aws-0.0.4.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for py_jugaad_aws-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6805b88971714835389a03e196519d85e544a0293c381e0ba49c9351cf9af08a
MD5 104ecfd017dac01b10641fe5c044ecaf
BLAKE2b-256 52197314d35df8c516ac7d567290563fe4d4ef33a1bf7895b069650e4f24c385

See more details on using hashes here.

File details

Details for the file py_jugaad_aws-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for py_jugaad_aws-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 50f5a44d667ff46605c8bd5da5a382aad065f699c62882040481de3a2bf1ee43
MD5 26375bb02e7c871a3826c7000767554c
BLAKE2b-256 61f4ca2bd0c0286559d7db378a47be6165cba1c136be66bd26f5d0cfe32c4ac9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page