Cloud Simplify is a package for handling aws services with simple functions
Project description
norconnect
Under construction! Not ready for use yet! Currently experimenting and planning!
Developed by Rayasam Sanjeev Rao for Cloud services (c) 2022
Services included
1.SQS
2.SNS
3.SECRETS MANAGER
4.SQS
Examples of How To Use (AWS Service)
Testing on Python file
from norconnect.classes import AWS
from norconnect.constants import AWSServices
sqs_url='https://sqs.ap-southeast-1.amazonaws.com/....../sqs.fifo'
saws=AWS(services=[AWSServices.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
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 norconnect.classes import AWS
from norconnect.constants import AWSServices
app = Flask("test-ms")
saws=AWS(services=[AWSServices.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 norconnect.classes import AWS
from norconnect.constants import AWSServices
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
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
norconnect-0.0.12.tar.gz
(6.1 kB
view details)
File details
Details for the file norconnect-0.0.12.tar.gz.
File metadata
- Download URL: norconnect-0.0.12.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3b87c334d7ef6e28081581c8c142c0af763805d75aa082942beeab3f4add77d
|
|
| MD5 |
840c96c59e1c2c163954909a52635bea
|
|
| BLAKE2b-256 |
859e4d647568fb93a7934da31798e1b37d870f55121ee39207cf9244395d304b
|