A collection of AWS clients, and a secrets manager.
Project description
mediqaws
A collection of AWS clients, and asecrets manager.
Install
pip install mediqaws
Usage
from mediqaws.clients import S3
profile_name = "..."
bucket_name = "..."
object_key_prefix = "..."
file_path = "..."
with S3(profile_name=profile_name) as s3:
object_key = s3.upload(file_path, bucket_name, object_key_prefix)
print(object_key)
from mediqaws.secrets_manager import SecretsManager
secrets_manager = SecretsManager()
secret = secrets_manager.get_secret(os.getenv("SECRET_NAME"))
print(secret)
See more examples under tests directory.
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
mediqaws-0.0.6.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mediqaws-0.0.6.tar.gz.
File metadata
- Download URL: mediqaws-0.0.6.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6134f8442f99f8b3ac360e36ee3159b248b10ca5fe99a0be310c14fac35b08db
|
|
| MD5 |
563718c61a246469cac35937fbe5ddf4
|
|
| BLAKE2b-256 |
068bab5f6ba23680cead8339bc09ae2e5545216be28b2fb4588a8137379dba25
|
File details
Details for the file mediqaws-0.0.6-py3-none-any.whl.
File metadata
- Download URL: mediqaws-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7da21ad6a308554b60c3e8d8e010c8214e2cdeeb3869458ae051944443bcd6cf
|
|
| MD5 |
1b6410ee6f467a7db4a2a7e5c54b54eb
|
|
| BLAKE2b-256 |
34924c6346c5e1af072b366199b916aea1050af49766149935645e3c7e83ceaa
|