LocalCloudForge
Overview
LocalCloudForge is a library designed to simplify the process of working with AWS services in your local development environment. This library enables you to run your AWS service interactions locally, making it easier to test and develop your applications without incurring unnecessary costs. With just a simple decorator, you can enhance your development workflow, allowing you to focus on building your applications without worrying about cloud expenses.
Features
- Effortless Integration: Simply decorate any function that instantiates an AWS service with @forge_local, and it will automatically execute in your local environment.
- Support for Multiple AWS Services: Integrate with various AWS services like S3, SNS, SQS, Lambda, and more without additional configuration. You can check for avaiable services here
Getting Started
Requirements
To get started, ensure you have the following installed:
pip install boto3 localstack-client
Running LocalStack
Start LocalStack using Docker with the following command:
docker run -p 4566:4566 -p 4571:4571 localstack/localstack
Configuring AWS CLI for LocalStack
To interact with your LocalStack instance using the AWS CLI, you'll need to configure your AWS CLI settings. Add the following configurations to your AWS config and credentials files:
Update your AWS Config:
Create or edit ~/.aws/config:
[profile localstack]
region = us-east-1
output = json
endpoint_url = http://localhost:4566
Update your AWS Credentials:
Create or edit ~/.aws/credentials:
[localstack]
aws_access_key_id = test
aws_secret_access_key = test
Using the AWS CLI with LocalStack
Once configured, you can execute AWS CLI commands using the LocalStack profile. Simply add the --profile localstack flag to your AWS CLI commands:
aws s3 ls --profile localstack
Example Usage
Here's a quick example of how to use the @forge_local decorator:
from local_cloud_forge import forge_local
@forge_local
def create_bucket(bucket_name):
s3_client = boto3.client('s3')
s3_client.create_bucket(Bucket=bucket_name)
print(f"Bucket '{bucket_name}' created.")
Metadata
Release files for localcloudforge 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| localcloudforge-0.2.0.tar.gz | 3.5 kB | Without provenance | Details for localcloudforge-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| localcloudforge-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for localcloudforge-0.2.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / localcloudforge-0.2.0.tar.gz
| Download URL | localcloudforge-0.2.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1525ecca24319ae981b64cd073296eed23b09578cf72741dc2f140ae4d3c7664
|
|
BLAKE2b-256 checksum How to use checksums |
b9ea27b7f5c0f4f37cc059000f1a6d0b894ae36a3b8f523ec3ea70177ef57611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.4
|
Release files / localcloudforge-0.2.0-py3-none-any.whl
| Download URL | localcloudforge-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0384a383acbc26fbec01d8ead6e41a9cc357b5c78b9473c60b137999214e4c46
|
|
BLAKE2b-256 checksum How to use checksums |
3717b9b7624eb277330efc126a9a1b2050cee961dcfd20edb9272d51a5e6be73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.4
|
Security for localcloudforge 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.