Skip to main content

Cloud Simplify is a package for handling aws services with simple functions

Project description

simplify

Under construction! Not ready for use yet! Currently experimenting and planning!

Developed by R Sanjeev Rao for Cloud services (c) 2022

Examples of How To Use (AWS Service)

Testing on Python file

from simplifyaws.classes import SimplifyAWS
from simplifyaws.constants import Services
sqs_url='https://sqs.ap-southeast-1.amazonaws.com/....../sqs.fifo'

saws=SimplifyAWS(services=[Services.SQS],region="**************",aws_access_key="*********",aws_secret_key="************",secrets_name='stage/repo')


def print_data(data):
    print(data)
    return True


saws.create_sqs_loop(sqs_url=sqs_url,callback=print_data,name='Print_Loop')
saws.run_sqs_loops()
time.sleep(10)

Flask Example run.py

from app import app

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=5000, debug=True)
__init__.py
from flask import Flask
from simplifyaws.classes import SimplifyAWS
from simplifyaws.constants import Services

app = Flask("test-ms")
saws=SimplifyAWS(services=[Services.SQS],region="**************",aws_access_key="*********",aws_secret_key="************",  secrets_name='stage/repo')

print(saws.get_secrets())
# from .test import start_testing
# start_testing(saws)
test.py
import time
from simplifyaws.classes import SimplifyAWS
from simplifyaws.constants import Services


def start_testing():

    sqs_url='https://sqs.ap-southeast-1.amazonaws.com/....../sqs.fifo'
    

    def print_data(data):
        print(data)
        return True

    saws.create_sqs_loop(sqs_url=sqs_url,callback=print_data,name='Print_Loop')
    saws.run_sqs_loops()

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

norconnect-0.0.10.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file norconnect-0.0.10.tar.gz.

File metadata

  • Download URL: norconnect-0.0.10.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for norconnect-0.0.10.tar.gz
Algorithm Hash digest
SHA256 b7962e96af2ee3114d412d20dc9ebf87d412d63100f8e0cb6c43e888b9744653
MD5 2f99b61faab85ecca2da0fbfd46d7c00
BLAKE2b-256 e96d9adee955f5eb21e7f22c96563fd0e5fb1807a2abb8c10616f8096d6b51e3

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