pypicloud.scripts module¶
Commandline scripts
- pypicloud.scripts.export_access(argv=None)[source]¶
Dump the access control data to a universal format
- 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.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