Skip to main content

JustBard's Python based AWS Utilities

Project description

jblib-aws

Author: Justin Bard

This module was written to minimize the need to write the functions I use often.

INSTALL: python3 -m pip install jblibaws


The source code can be viewed here: https://github.com/ANamelessDrake/jblib-aws

More of my projects can be found here: http://justbard.com


from jblibaws import talk_with_dynamo

    class talk_with_dynamo(table, boto_session, region='us-east-1')

        Example: 
            table_name = "table-name"
            boto_session = boto3.session.Session()
            dynamo = talk_with_dynamo(table_name, boto_session) ## Generate Database Object

            response = dynamo.query(partition_key=partition_key, partition_key_attribute=partition_key_attribute, sorting_key=sorting_key, sorting_key_attribute=sorting_key_attribute, index=index_key)
            print ("Resposne: {}".format(response))

            insert_resposne = dynamo.insert(json_object)
            print("Insert Response: {}".format(insert_response))

            update_response = dynamo.update(partition_key_attribute, sorting_key_attribute, update_key, update_attribute)


from jblibaws import talk_with_cognito

    class talk_with_cognito(boto_client, cognito_user_pool_id)

        Example: 

        Functions: 
            get_user_email(cognito_user_id)
            - Gets User Email Address

More Documentation To Come

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jblibaws, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size jblibaws-1.0.3-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page