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 (testKeyin 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 aconfig.inifile present under the app root folder. - Environment variable
- A
config.iniunder the root folder of the app. An optionalDEFAULT_VALUEcan be provided to the method to return the default if the configuration is not found in any of the mentioned locations.
- Under the specific path within AWS Parameter Store -
-
getDynamicConfig- This method looks for the provided configuration key (testDynKeyin the example above) from the AWS Parameter Store -/APP_CONFIG_DYNAMIC/<App Name>. The app name is read from aconfig.inifile present under the app root folder.
HTTP Client
Middleware
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6805b88971714835389a03e196519d85e544a0293c381e0ba49c9351cf9af08a
|
|
| MD5 |
104ecfd017dac01b10641fe5c044ecaf
|
|
| BLAKE2b-256 |
52197314d35df8c516ac7d567290563fe4d4ef33a1bf7895b069650e4f24c385
|
File details
Details for the file py_jugaad_aws-0.0.4-py3-none-any.whl.
File metadata
- Download URL: py_jugaad_aws-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50f5a44d667ff46605c8bd5da5a382aad065f699c62882040481de3a2bf1ee43
|
|
| MD5 |
26375bb02e7c871a3826c7000767554c
|
|
| BLAKE2b-256 |
61f4ca2bd0c0286559d7db378a47be6165cba1c136be66bd26f5d0cfe32c4ac9
|