pypicloud.scripts module

Commandline scripts

pypicloud.scripts.bucket_validate(name)[source]

Check for valid bucket name

pypicloud.scripts.export_access(argv=None)[source]

Dump the access control data to a universal format

pypicloud.scripts.gen_password(argv=None)[source]

Generate a salted password

pypicloud.scripts.import_access(argv=None)[source]

Load the access control data from a dump file or stdin

This operation is idempotent and graceful. It will not clobber your existing ACL.

pypicloud.scripts.make_config(argv=None)[source]

Create a server config file

pypicloud.scripts.migrate_packages(argv=None)[source]

Migrate packages from one storage backend to another

Create two config.ini files that are configured to use different storage backends. All packages will be migrated from the storage backend in the first to the storage backend in the second.

ex: pypicloud-migrate-packages file_config.ini s3_config.ini

pypicloud.scripts.prompt(msg, default=<object object>, validate=None)[source]

Prompt user for input

pypicloud.scripts.prompt_option(text, choices, default=<object object>)[source]

Prompt the user to choose one of a list of options

pypicloud.scripts.promptyn(msg, default=None)[source]

Display a blocking prompt until the user confirms

pypicloud.scripts.storage_account_name_validate(name)[source]

Check for valid storage account name

pypicloud.scripts.wrapped_input(msg)[source]

Wraps input for tests