fast pythonic installer for projects using yaml config
Project description
fast-installer
make fast install configurations using config file:
Install
pip3 install fast-installer
Usage
cli:
fastinstall # this will run current directory config.yaml file.
to install all steps:
fastisntall -a
for more:
fastinstall -h
config file
Example
options:
- description: "Zsh configurations"
key: zsh
steps:
- description: "Linking files"
links:
~/.zshrc.d: assets/zsh/zshrc.d/
~/.zshrc: assets/zsh/zshrc
shell:
- echo "test"
- command: ls not_exists
allow_fail: true
- command: tail -f /dev/null
allow_fail: true
timeout: 1 # 1 seconds
Structure
| Key | Type | Is Required | Comments |
|---|---|---|---|
| options | list | yes | list of options |
option
a dictionary with the following keys:
| Key | Type | Is Required | Comments |
|---|---|---|---|
| description | string | yes | |
| key | string | yes | |
| steps | list | yes | list of steps |
The steps will be run from the first to the last.
step
a dictionary with the following keys:
| Key | Type | Is Required | Comments |
|---|---|---|---|
| description | string | yes | |
| links | dictionary | no | make a soft link |
| shell | dictionary/string | no | execute shell command |
links
a dictionary where the key is the dest soft link location and value is the source location.
Example
links:
~/.zshrc.d: assets/zsh/zshrc.d/
shell
execute a shell command. can be either a string (which is the shell command to be executed). or a dictionary:
| Key | Type | Is Required | Comments |
|---|---|---|---|
| command | string | yes | command to be executed |
| allow_fail | bool | no | allow command to fail - default True |
| timeout | int | no | timeout for the command - default 10 seconds |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fast_installer-1.2.0-py3-none-any.whl.
File metadata
- Download URL: fast_installer-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e58629a8fae46e3ede657a2a9cf85fee5383737609e027206a3873b8d7a3fd4e
|
|
| MD5 |
6894d1a6e7af26bcaf4bef792493dff3
|
|
| BLAKE2b-256 |
749ccd6f9c2586eaad3481e1ef6dff9227f28dd18699a6bbd230b506fc0f38ed
|