AWS Lambda helpers
Project description
keliya_lib
keliya_lib is a Python package designed to streamline AWS Lambda development with DynamoDB. It facilitates database queries, logging, and permissions management for Lambda functions.
Features
- Simplified DynamoDB queries
- Enhanced logging capabilities
- Fine-grained permissions management
Installation
You can install keliya_lib via pip:
pip install keliya_lib
Usage
Here's a brief overview of how to use keliya_lib in your AWS Lambda functions:
DynamoDB Queries
from keliya_lib import db_handler
# Perform a insert query
result = db_handler.insert(services_table, event['body'])
Logging
from keliya_lib import log_handler
# Initialize logger
logger = log_handler.logger
# Log an info message
logger.info('This is an info message')
# Log an error message
logger.error('An error occurred')
Permissions Management
Permissions management feature helps manage user permissions for accessing Lambda functions.
from keliya_lib import permission_handler
# check Permission
permission_handler.check_permission(tenant, current_user_id, table_name, http_method)
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 keliya_lib-0.3.2.tar.gz.
File metadata
- Download URL: keliya_lib-0.3.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebae608a4d0ec11baf359fa8854f16342abdcc00f5f7d6baecceac92f78516cb
|
|
| MD5 |
cff7b8e20a597bd7d2908fdf18c9f5fa
|
|
| BLAKE2b-256 |
d3f78abac519ecab10e777121a64085f81b8ddcbc35bb5b03d77baadb15f890c
|
File details
Details for the file keliya_lib-0.3.2-py3-none-any.whl.
File metadata
- Download URL: keliya_lib-0.3.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1db9b4c18ae207565d9a23e9d09c48eeea42eead9817c1818e009bfc73a2f75
|
|
| MD5 |
94591e6a29d4baa70aecd12f6d7bd543
|
|
| BLAKE2b-256 |
539dfc7054584e22db1be66935130c9ad16e4bd4225a1fade482015cc5e32f50
|