Skip to main content

The `icloudservice` class provides a Python interface for interacting with

Project description

icloudservice

Publish icloudservice

PyPI version

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.
  • Rich logging and output formatting.

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) -> AWSCloud

    Initializes 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.

    Returns:

    • An instance of the AWSCloud class.
  • AZURE(subscription_id) -> AzureCloud

    Initializes an Azure Cloud client with the provided subscription ID.

    Parameters:

    • subscription_id: Azure subscription ID.

    Returns:

    • An instance of the AzureCloud class.

AWSCloud Class

Provides access to various AWS cloud services.

Methods:

  • S3Service(bucket_name: str)

    Provides access to AWS S3 service.

    Parameters:

    • bucket_name (str): The name of the S3 bucket.

    Returns:

    • An instance of the S3Service class.
  • EC2Service()

    Provides access to AWS EC2 service.

    Returns:

    • An instance of the EC2Service class.
  • LambdaService()

    Provides access to AWS Lambda service.

    Returns:

    • An instance of the LambdaService class.
  • SNSService()

    Provides access to AWS SNS service.

    Returns:

    • An instance of the SNSService class.
  • SQSService()

    Provides access to AWS SQS service.

    Returns:

    • An instance of the SQSService class.

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.

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

icloudservice-0.8.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

icloudservice-0.8-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file icloudservice-0.8.tar.gz.

File metadata

  • Download URL: icloudservice-0.8.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for icloudservice-0.8.tar.gz
Algorithm Hash digest
SHA256 43c1f42ecbb626e3102e6e7df7ce87e233fb586ab0db758596e33a45851fcf4b
MD5 fe46628047b4491bffb8bf2f7f905c59
BLAKE2b-256 2810f312145e9f701a9ae57a9dc70eb887076d4c092435d4600db764823d4dcc

See more details on using hashes here.

File details

Details for the file icloudservice-0.8-py3-none-any.whl.

File metadata

  • Download URL: icloudservice-0.8-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for icloudservice-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8b33c7ee3ead96d9bace42b6d8d7a086c61137abbc1cf01e604f8e450532bbb7
MD5 19862ae63078c34ed8c69b73f9fb4dfe
BLAKE2b-256 5c2de2fde6ce4efac5b6b5558872de6eaa557fbeea3ce3f035865583be23df70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page