Skip to main content

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


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