Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Downloads defined resources

Project description

Resource downloader based on resource.yml
-----------------------------------------

Usage example: core.py [-f resource.yml] [-o output_directory]

By default resource.yml in a local directory is searched for and files are downloaded to the command's directory.
These options can be overridden as displayed in the usage example.

Reads resource.yml in the following format:

Required fields:

---
- name: <Name of resource>
source: <Filename, directory name, or repository name>

Optional fields added in second example:

---
- name: <Filename, directory name, or repository name>
- name: <Second filename, directory name, or repository name>
protocol: <Defaults based on filename, file extension, and falls back to cURL>
command: <Overrides download procedure. Runs this command directly instead.>
command_args: <Flags for protocol specific command. Note: command setting overrides this.>

Protocols supported:
- bzr
- composer
- curl
- file
- git
- npm
- svn

This version requires Python 3 or later; Python 2 is untested.

Project details


Release history Release notifications

This version
History Node

0.1.0

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page