Skip to main content

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)

# Initialize logger
logger = log_handler.logger


## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

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

keliya_lib-0.2.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

keliya_lib-0.2.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file keliya_lib-0.2.3.tar.gz.

File metadata

  • Download URL: keliya_lib-0.2.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for keliya_lib-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cbb12a60c36d596c4fc9fda8efb5f2e5083a4caa85ad4f4897c793d92edac70d
MD5 c057fbfc78995ee957eb831d1e50efc3
BLAKE2b-256 158fbcd391169c297bb82f218f4e3238bc77e0c80beeedeaec3a336f77fa5a96

See more details on using hashes here.

File details

Details for the file keliya_lib-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: keliya_lib-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for keliya_lib-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6f75de9f44b081362df902abaaaac9a7ff6c3b9964cd36ed8b99b03086d43c84
MD5 641e87156e382d5cdd9be479b6162c35
BLAKE2b-256 21911c15bdecbdcd3b7891708e39b301fb8ba23aaac46f21cf09cdbc3f5eb522

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