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)

License

This project is licensed under the MIT License - see the 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.3.5.tar.gz (3.9 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.3.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keliya_lib-0.3.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for keliya_lib-0.3.5.tar.gz
Algorithm Hash digest
SHA256 e28eb362d35b795814b94b177f0936ef1f70ad31c85ac6ccfaecffe237b19a82
MD5 d6227a57410c068677ad3f6a24d9dc4e
BLAKE2b-256 d1c6947639d45c08be8b9efb170febf26e8ec713a0dfa5d8a3e434ac20c21f47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keliya_lib-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for keliya_lib-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3d27f4ea8a3a9803962ffde1467adcf6e313747a19b7d8a7b62d0b2b5cb25903
MD5 36eeb595433b3213cf6cc8155c4cc51e
BLAKE2b-256 8054459c8a155ead8914717d15291e3328da38052db2d6712b905efd8b9a0f96

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