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.
-----------------------------------------
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.