Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

py-jugaad-aws

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

py-jugaad-aws

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

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc