icloudservice
icloudservice is a Python library for cloud integration services with AWS and Azure. This library helps streamline cloud service interactions and management.
Features
- Integration with AWS and Azure cloud services.
- Provides easy-to-use methods for interacting with cloud resources.
Installation
You can install icloudservice via pip:
pip install icloudservice
API Reference
icloudservice Module
Provider Class
The Provider class is used to create cloud service clients for AWS and Azure. It provides methods to initialize clients with appropriate credentials and configurations.
Methods:
-
AWS(access_key: str, secret_key: str,region: str = None) -> AWSCloudInitializes an AWS Cloud client with the provided access key and secret key.
Parameters:
access_key(str): AWS access key ID.secret_key(str): AWS secret access key.region(str,optional): The AWS region to use. Default to None.
Returns:
- An instance of the
AWSCloudclass.
-
AZURE(subscription_id) -> AzureCloudInitializes an Azure Cloud client with the provided subscription ID.
Parameters:
subscription_id: Azure subscription ID.
Returns:
- An instance of the
AzureCloudclass.
AWSCloud Class
Provides access to various AWS cloud services.
Methods:
-
S3Service(bucket_name: str,region: str = None)Provides access to AWS S3 service.
Parameters:
bucket_name(str): The name of the S3 bucket.region(str): The region of the S3 bucket to use.Default to None.
Returns:
- An instance of the
S3Serviceclass.
-
EC2Service()Provides access to AWS EC2 service.
Returns:
- An instance of the
EC2Serviceclass.
- An instance of the
-
LambdaService()Provides access to AWS Lambda service.
Returns:
- An instance of the
LambdaServiceclass.
- An instance of the
-
SNSService()Provides access to AWS SNS service.
Returns:
- An instance of the
SNSServiceclass.
- An instance of the
-
SQSService()Provides access to AWS SQS service.
Returns:
- An instance of the
SQSServiceclass.
- An instance of the
AzureCloud Class
Provides access to various Azure cloud services.
Methods:
-
BlobService()Provides access to Azur
Example:
from icloudservice import Provider
# Initialize Provider
provider = Provider()
# Create AWS service client
aws_services = provider.AWS(access_key='your-access-key-id', secret_key='your-secret-access-key')
# Access S3 service
s3_service = aws_services.S3Service('bucket_name')
# Access EC2 service
ec2_service = aws_services.EC2Service()
# Access Lambda service
lambda_service = aws_services.LambdaService()
# Access SNS service
sns_service = aws_services.SNSService()
# Access SQS service
sqs_service = aws_services.SQSService()
from icloudservice import Provider
# Initialize Provider
provider = Provider()
# Create Azure service client
azure_services = provider.AZURE(subscription_id='your-subscription-id')
# Access Azure Blob Storage service
blob_service = azure_services.BlobService()
# Access Azure Virtual Machines service
vm_service = azure_services.VMService()
# Access Azure Functions service
functions_service = azure_services.FunctionsService()
# Access Azure Event Hubs service
event_hubs_service = azure_services.EventHubsService()
# Access Azure Service Bus service
service_bus_service = azure_services.ServiceBusService()
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for icloudservice 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| icloudservice-0.9.3.tar.gz | 12.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| icloudservice-0.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / icloudservice-0.9.3.tar.gz
| Download URL | icloudservice-0.9.3.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed3d2838e8291fb891ea79ce791d534e530377942ae26677dfff023d0d90ea82
|
|
BLAKE2b-256 checksum How to use checksums |
a7d5932da6d6ae066439da4720c6900a149ecd3fa87cc12ed76f1b0f95239cc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / icloudservice-0.9.3-py3-none-any.whl
| Download URL | icloudservice-0.9.3-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
736a5fc9792c01873933f9fde547dece47bd5fb67e091d6a5ea8047758aeeaf7
|
|
BLAKE2b-256 checksum How to use checksums |
584ccc8eb1014566680619eb4167e4e7f47fd86e6eb0b8de4994e33204d25552
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|