Saravanan666/pypi-org huggingface dataset:
Package: cloudshell-scriptfoundry
Cloudshell ScriptfoundryA CLI tool to generate, package and upload cloudshell orchestration scripts.
This tool is an optional add-on to theshellfoundryshell development
cli tool.
"Scriptfoundry" has shellfoundry as a dependency, and re-uses the same cli configuration.Installationpip install cloudshell-scriptfoundryBasic UsageConfigure "Shellfoundry" Credentials (shared by "Scriptfoundry")shellfoundry config host localhost
shellfoundry config username admin
shellfoundry config password adminTo check configured values:shellfoundry configSeeShellfoundry Referencefor more info.Generate new project:scriptfoundry new setup_config_firewall --template setupZip and upload to cloudshell:cd setup_config_firewall
scriptfoundry update setup_config_firewallCommands OverviewUsage: scriptfoundry [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  new      Create new script from template
  pack     Create script zip archive
  update   Create zip archive and update on CloudShell
  version  Display scriptfoundry versionTemplate Generation"New" command generates script template.
The templates map to the orchestration script "types" in cloudshell (setup, teardown, default, save, restore, resource).Usage: scriptfoundry new [OPTIONS] NAME

  Create new script from template

Options:
  --template [setup|teardown|save|restore|blueprint|resource]
                                  Specify script template 'type'. Defaults to
                                  'blueprint'.  [required]

  --output TEXT                   (Optional) - Specify path to output
                                  directory. Defaults to current directory.

  --help                          Show this message and exit.Offline ModeOnline mode will pull cookiecutter templates
fromgithub repoTo Setup up Offline mode:download templates
fromgithub release pageUnzip templates and copy to designated location on client dev machineSet Shellfoundry config "online_mode" to FalseAdd custom config key to shellfoundry config, with the templates path as valueSample Configuration:shellfoundry config online_mode False
shellfoundry config script_template_location "C:\cloudshell_dev_files\cloudshell-script-templates-0.1.0"Dev HelperIt can be useful to use the api generator helper to get api session without having to add credentials to debug file.
With this helper, no need to erase credentials and no accidentally commiting secrets to source control.fromscriptfoundry.utilities.api_generatorimportAutomationApiGeneratorSANDBOX_ID="<DEBUG_SANDBOX_ID>"api=AutomationApiGenerator().create_client()sb_details=api.GetReservationDetails(SANDBOX_ID,disableCache=True).ReservationDescriptionDependenciesScriptfoundry is built on top of shellfoundry, and its underlying open-source dependenciesshellfoundry- cloudshell config managementCookiecutter- script template generationClick- CLI interfaceLicenseFree Software: MIT License
Package: cloud-shepherd
ShepherdA.k.a.cloud-shepherd.This is a tool for controlling a stable of hosts listed in anAnsibleinventory file.  (By the use of
non-standard Ansible variables that identify the cloud provider, region
and ID of the host.)  It can also show their status.Unlike Ansible, the purpose of Shepherd is to manage hosts without
having to log into them.  Actions are perfomed by contacting the API of
one or more cloud providers.Shepherd is intended to be used likevirshor service(1).  Currently,
onlyAWSis supported.  For certain tasks, it is friendlier than
vendor-provided tools likeaws-cli(ec2subcommand).Specifying the inventory fileThe filename can either be put into theANSIBLE_INVENTORYenvironment variable,
or supplied on the command line with--inventory-file=/x/y/z(short option is-i).Why not use Ansible's Dynamic Inventory feature?TheDynamic Inventoryplugin allow Ansible to pull down
a list of hosts from a cloud provider and then manage them.However, it can be handy to keep track hosts with names that are
different from those in the AWS EC2 instance name tag, for example.
Therefore the intent of Shepherd is to make the inventory file the locus
of host management.  It is deliberately not dynamic.InstallationRunpip3 install cloud-shepherdSetupThe following extra host variables must (unless specified) be present in
the inventory file otherwise the host will not be operated on and a
warning will be shown:cloud_provider-- choices:awscloud_account--optional(account ID for AWS)cloud_regioncloud_instance_idAMakefileis provided (seeshepherd/Makefile) that uses an
internal AWK script to generate an Ansible inventory file from your.ssh/configfile.  This brings all the regular Ansible variables across from corresponding
SSH settings in the file.Note that the Makefile currently ignores all hosts in.ssh/configthat
aren't preceeded by a comment line that starts with an AWS EC2 instance ID.YMMV.UsageShepherd takes an action argument on the command line, plus a host
pattern that will match one or more hosts in the inventory file.  The
program can be invoked in one of two ways.virshmode:shepherd <action> <host-pattern>
shepherd list...where<action>is one of:-dominfostartrebootshutdowndestroyOr service(1) mode:shepherd <host-pattern> <action>...where<action>is one of:-statusfullstatusstartrestartstopkillAlso, the following AWS action names can be used instead:startrebootstopterminateOptionsExamplesLicenceGNU General Public License v3.0 or laterSeeCOPYINGto see the full text.
Package: cloudsigma
pycloudsigma allows you to easily manage your entire infrastructure from within Python.Creating a server is as simple as:import cloudsigma
server = cloudsigma.resource.Server()
test_server = { 'name': 'My Test Server', 'cpu': 1000, 'mem': 512 * 1024 ** 2, 'vnc_password': 'test_server' }
my_test_server = server.create(test_server)For more examples, please visitpycloudsigma.For more detailed information about CloudSigma, please visit theAPI documentation.
Package: cloudsnorkel.cdk-rds-sanitized-snapshots
CDK Construct for RDS Sanitized SnapshotsPeriodically take snapshots of RDS databases, sanitize them, and share with selected accounts.Use this to automate your development and/or QA database creation, instead of forcing them to use a database that was
created last year and was kind of kept in shape by random acts of kindness. Developers and QA love real data and this
lets you create non-production databases with sanitized production data. Use the sanitization step to delete passwords,
remove credit card numbers, eliminate PII, etc.SeeConstructs Hubfor installation instructions and API in all supported languages.OverviewThis project supplies a CDK construct that sets up a step function and a timer to execute this function. The
function will create a sanitized snapshot of a given database and share it with configured accounts. Those accounts can
then create new databases from those snapshots.The step function does the following to create the snapshot:Get a snapshot of the given database by either:Finding the latest snapshot for the given databaseCreating and waiting for a new fresh snapshotRe-encrypt snapshot if KMS key is suppliedCreate a temporary database from the snapshotWait for the database to be readyReset the master password on the temporary database to a random passwordWait for the password to be setUse a Fargate task to connect to the temporary database and run configured SQL statements to sanitize the dataTake a snapshot of the temporary databaseOptionally share the snapshot with other accounts (if you have separate accounts for developers/QA)Delete temporary database and snapshotUsageConfirm you're using CDK v2Install the appropriate packagePythonpip install cloudsnorkel.cdk-rds-sanitized-snapshotsTypeScript or JavaScriptnpm i @cloudsnorkel/cdk-rds-sanitized-snapshotsJava<dependency><groupId>com.cloudsnorkel</groupId><artifactId>cdk.rds.sanitized-snapshots</artifactId></dependency>Gogo get github.com/CloudSnorkel/cdk-rds-sanitized-snapshots-go/cloudsnorkelcdkrdssanitizedsnapshots.NETdotnet add package CloudSnorkel.Cdk.Rds.SanitizedSnapshotsUseRdsSanitizedSnapshotterconstruct in your code (starting with default arguments is fine)Code Sampleletvpc:ec2.Vpc;letdatabaseInstance:rds.DatabaseInstance;newRdsSanitizedSnapshotter(this,'Snapshotter',{vpc:vpc,databaseInstance:databaseInstance,script:'USE mydb; UPDATE users SET ssn =\'0000000000\'',})EncryptionThe new snapshot will be encrypted with the same key used by the original database. If the original database wasn't
encrypted, the snapshot won't be encrypted either. To add another step that changes the key, use the KMS key parameter.SeeAWS documentationfor instructions
on giving other accounts access to the key.TroubleshootingCheck the status of the state machine for the step function. Click on the failed step and check out the input, output
and exception.Testingnpm run bundle && npm run integ:default:deploy
Package: cloudspeak
CloudSpeak - Azure Backend Abstractions for PythonCloudSpeak is a Python package that simplifies and abstracts the usage of Azure as a backend for specific Python data structures. It provides easy-to-use classes and methods for working with Azure Blob Storage and Azure Queue Storage, allowing you to seamlessly integrate Azure services into your Python applications.FeaturesCloudSpeak offers the following key features:Azure Blob Storage Interaction:Easily iterate through containers, create and delete them, and access individual blob files.File Upload and Download:Seamlessly upload and download files to and from Azure Blob Storage with built-in tracking of upload and download progress.Azure Blob Storage Lock Management:Efficiently manage locks offered by Azure Blob Storage to synchronize multiple processes.Remote Dictionaries:Create and manage dictionaries hosted entirely in Azure Blob Storage. You can choose between indexed dictionaries (with a maintained index for key retrieval) and non-indexed dictionaries for faster access to dictionary keys.Remote Queues:Create, send, and receive messages using a user-friendly interface, with Azure Storage as the backend.Getting StartedTo get started with CloudSpeak, follow these simple steps:Install CloudSpeak using pip:pipinstallcloudspeakImport the necessary modules and set up Azure credentials:fromcloudspeak.azureimportAzureCredentialsfromcloudspeak.azureimportAzureFactorycredentials=AzureCredentials()credentials.connection_string_storage="YOUR_CONNECTION_STRING"factory=AzureFactory(credentials=credentials)Use CloudSpeak to interact with Azure services. For example, to access blob storage:service=factory.service_storagecontainer=service.containers["example"]# Uploading content to a blob file named "file"file=container["file"]file.data=b"test"progress=file.upload()progress.join()# Downloading content from a blob file named "file"file=container["file"]progress=file.download()progress.join()downloaded_data=file.dataCreate and use remote queues:queue=factory.queue("example",create=True)queue.push("hello")message=queue.pop(wait_time=-1)# Automatically release the message from the queue when exiting the 'with' block.withmessage:print(message.content)Access remote dictionaries:factory=AzureFactory(credentials=credentials)# Create a non-indexed remote dictionaryad=factory.dictionary('container','example',create_container=False,indexed=False)ad["key"]="value"print(ad["key"])Transferring with progress:Abstractions OverviewCloudSpeak provides two main abstractions:AbstractionDescriptionRemote DictionariesDictionaries hosted entirely in Azure Blob Storage. Choose between indexed or non-indexed versions for various use cases.Remote QueuesUser-friendly interface for managing queues with Azure Storage as the backend.DocumentationFor detailed documentation and examples, please refer to theCloudSpeak Documentation.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: cloud-sql-instance-manager
Cloud SQL Instance ManagerA command-line tool for managing GCP cloud_sql_proxy connections to a number of instances.
It can automatically import your GCP project's Cloud SQL instances, assign ports to them, and start and stop the proxies.InstallationUse the package managerpipto install cloud_sql_instance_manager.pipinstallcloud_sql_instance_managerYou will need to havegcloud command lineinstalled and logged in withgcloud auth loginThe manager will default to using the output ofwhich cloud_sql_proxyto determine the location of the cloud_sql_proxy executable. You can override this withcloud_sqlconfig--path/FULL/PATH/TO/EXECUTABLEUsageImporting from gcloudEnsure you are authenticated with gcloud command line.cloud_sqlimportThe instance manager will import any (new) instances and automatically assign them ports.If you want to specify a different project to your current default, thencloud_sqlimport--projectYOUR-PROJECT-NAMEIf you want to remove any old instances that are not found in your cloud project, add the --tidy flag.cloud_sql import --project YOUR-PROJECT-NAME --tidyNicknamesBy default, instances are given a nickname of everything proceeding "-instance-" in the full name. For example -test-application-instance-9956326571963535019will get the nicknametest-applicationYou can amend the nickname withcloud_sqlupdateORIGINAL-NICKNAME--nickNEW-NICKNAMEAt any point, you can have more than one instance with the same nickname but different projects, and you can differentiate with--project PROJECT-NAMEIAMSet whether the manager will start the proxy with--enable_iam_logincloud_sqlupdateNICKNAME--iamtrueStarting an instancecloud_sqlstartNICK-NAMEStarting all default instancescloud_sqlstartdefaultAdd--project YOUR-PROJECTto start only default instances for a particular projectStopping an instancecloud_sqlstopNICK-NAMEStopping all running instancescloud_sqlstopallListing instancesList all instancescloud_sqllistList all instances for a projectcloud_sqllist--projectYOUR-PROJECTList all running instancescloud_sqllist-runningTestsTo run with coveragepipinstallcoverage
coveragerun-mpytestReleasingInstallbuildandtwine.pipinstalltwinebuildBuild withpython-mbuildRelease to test withtwineupload-rtestpypidist/*Release to live withtwineupload-rpypidist/*ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMITTODO ListExport to DBeaverUse nickname or name interchangeably
Package: cloudssh
EC2 SSH connections helperAn SSH connection helper for AWScloudsshallows you to quickly connect to EC2 instances using their
names or instance IDs.It will call the AWS SDK to find the instance public IP address and open
a SSH connection in a subprocess.Example:EC2You can connect to this instance with:cssh devYou can also use theauto-completion featureby building a local
index of your AWS instances then callingcloudsshwithout any
argument.cssh --build_index
# The instances index has been stored in ~/.cloudssh/.

cssh
# Start typing an instance name and press [TAB] to auto complete.Or search instances by name with:cssh --build_index
# The instances index has been stored in ~/.cloudssh/.

cssh --search http
# Found "web-http-prod", connect? [Y/n]:Or lookup an instance details:cssh web-http-prod --info
# * Network
# Public ID: 123.***.***.***
# Private ID: 10.***.***.***
#
# * VPC/subnet
# VPC ID: vpc-******
# Subnet ID: subnet-******
#
# * Misc
# Instance name: web-http-prod
# Instance ID: i-******
# Instance type: t2.xlarge
# Launch date: 2019-10-12 15:44:36+00:00
#
# * Tags
#   product = web_cluster
#   environment = production
#   Name = web-http-prodExample:EC2Installation and usagepip3installcloudsshawsconfigure# To configure your AWS credentialscsshmyserver# Call the module followed by the name of one of your serversAdvanced configurationYou can optionally create a file~/.cloudssh/cloudssh.cfg(seeexample).
Package: cloud-ssh-config
Autocomplete SSH hosts for AWSSetup autocompletionTo get it working you need to installbash-completionandboto3python library.On MacOS X run:$ brew install bash-completionCreate symlink to.bash_autocompletionfile in your home folder:$ ln -sf  $(pwd)/.bash_autocompletion ~/Import.bash_autocompletionin your~/.bashrc:$ echo 'source ~/.bash_autocompletion' >> ~/.bashrc
$ . ~/.bash.rcInstallingThe easiest way to install cloud_ssh_config is to use pip:$ pip install cloud_ssh_configor from sources:$ git clone https://github.com/DmitriyLyalyuev/cloud_ssh_config.git
$ cd cloud_ssh_config
$ python3 setup.py installGenerating/updating ssh configCreate for sshconfig.dfolder:$ mkdir -p ~/.ssh/config.dTo generate or update ssh config for AWS hosts run:cloud_ssh_config aws > ~/.ssh/config.d/awsUse-hor--helpkey to get help and options.UsageTo test autocompletion enter in terminal:$ ssh host_[TAB]Supported cloud providersAWSTo get it working you need to run:$ pip install awscli
$ aws configureEnter your credentials to get access to the AWS API.Or you can useenvironment variables.DigitalOceanBefore use it you need registertokenand run it like:$ cloud_ssh_config digitalocean --token place_your_token_here
Package: cloudsteak
CloudSteak - Cloud Tools by The1bitChange log - version 0.0.0.10RequirementsLinux OS or Windows OSPython (2.7)It will also install the following packages:Azure-Cli 2.0AWS-ClidocoptBasic installpip install cloudsteak –upgrade
(install without cache: pip install cloudsteak –no-cache-dir  )You can find the detailed documentation inhttps://github.com/the1bit/cloudsteak.Please read the license related information.LICENSECopyright (c) 2018 Tibor KissPermission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: cloudstor
cloudstorSimple python tool to interface with the AARNET cloudstor (owncloud) deployment via webdavThis is a simple webdav interface to the very specific implementation of the owncloud storage
solution that is available to all Australian researchers to store and share their data.
(Seehttps://www.aarnet.edu.au/.../cloudstorfor details of this service)The github repository for this project is located athttps://github.com/underworldcode/cloudstor
Package: cloud-storage
Cloud StorageWhy this is built?In order to provide interface for upload, download, and exceptions for AWS S3 and GCS.If you have use cases using both Cloud Storage in one project, You might want to try this package.I’m also using this on production as well.Installationpipinstallcloud-storageHow to use# For Google Cloud Storage>>>fromcloud_storageimportGoogleCloudStorage>>>storage=GoogleCloudStorage()# For AWS S3>>>storage=S3CloudStorageBoto3()# using factory>>>fromcloud_storageimportcreate_storage_client>>>gcs_storage=create_storage_client('gcs')>>>s3_storage=create_storage_client('s3')
Package: cloud-storage-client
Installpip3 install cloud-storage-clientDeploypython3 setup.py sdist
twine upload dist/*Example usagefrom cloud_storage_client import storage
import os

storageClient = storage.StorageClient(
    os.environ['STORAGE_PROVIDER'], # GOOGLE_CLOUD_STORAGE = 'GCS', AMAZON_S3 = 'S3', AZURE_BLOB_STORAGE = 'ABS'
    os.environ['STORAGE_BUCKET_NAME'],
    os.getenv('STORAGE_ACCESS_KEY'),
    os.getenv('STORAGE_SECRET_KEY'))

# Delete single file
storageClient.delete_file('path/file.py')

# Delete a virtual folder
storageClient.delete_folder('path')

# Download a folder
storageClient.download_folder('folder_destination_name', '/Users/user/Downloads')

# Upload a local file
storageClient.upload_file('/Users/user/Documents/my-file.yaml', 'my-file.yaml')

# Download single file
storageClient.download_file('virtual_path', 'file.py', '/Users/user/Documents')

# Upload a folder
storageClient.upload_folder('folder_destination_name', '/Users/user/Documents', do_tar=False, do_compress=False)

# Upload local files
storageClient.upload_files('folder_destination_name', ['file01.py', 'file02.py'], '/Users/user/Documents', do_tar=False, do_compress=False)

# List remote files over a virtual path / directory
storageClient.list_files_folder('folder_destination_name')
Package: cloud-storage-clients
cloud-storage-clientscloud-storage-clientsis a Python library for having an unique interface over different cloud storage providers.
It can be used to connect a python client to providers.
This package is maintained byPicsellia.This has been conceived for you to override classes.
For example, override VaultRepository if you retrieve credentials in another way.
You can create or override factories of client to add some additional parameters.InstallationAdd it to yourpoetryenvironmentpoetryaddcloud-storage-clientsOr use the package managerpipto install it.pipinstallcloud-storage-clientsUsageBasic client usage to retrieve a specific object name from an S3 bucketfromcloud_storage_clients.connectorimportConnectorfromcloud_storage_clients.s3.clientimportS3Clientconnector=Connector(client_type="s3",bucket="my-bucket")client=S3Client(connector,{"access_key_id":"access-key","secret_access_key":"secret-access-key"})withopen("/path/object-name.jpg","wb")asfile:response=client.get("object-name.jpg")file.write(response.content)Pool Instanciationfromcloud_storage_clients.connectorimportConnectorfromcloud_storage_clients.s3.factoryimportS3ClientFactoryfromcloud_storage_clients.repositories.vault_adapterimportDefaultVaultAdapter,TokenCredentialsfromcloud_storage_clients.repositories.vaultimportVaultCredentialRepositoryfromcloud_storage_clients.poolimportClientPool# Login to your Vault by creating a VaultAdapter and its repositoryvault_adapter=DefaultVaultAdapter(url="http://localhost:7200",credentials=TokenCredentials(token="vault_token",unseal_key="unseal_key"))repository=VaultCredentialRepository(adapter=vault_adapter)# Instantiate a ClientPool and add an S3ClientFactory for minio client_typepool=ClientPool(default_repository=repository)pool.register_factory("minio",factory=S3ClientFactory())# Create a connector objectconnector=Connector(client_type="minio",bucket="my-bucket")# Use pool to instantiate a client that have its credentials in Vaultclient=pool.get_client(connector)# Generate a presigned url that an user without access to your bucket can downloadpresigned_url=client.get_download_url("object-name",3600).url