rehab - manage your dependencies
rehab is a very simple tool, that runs a set of commands only if a given file has been changed since the last run
install
only:
pip install rehab
configuration
crate a configuration file:
# basic rehab configuration, default values will be pretty similar
EXAMPLE_CONFIG = {
# where your repositories will checkout to
'repodir': '/var/repos/',
# list of repositories: type, name and other params
'repositories': [
['git', 'git@github.com:kvbik/rehab.git', 'master'],
],
# run commands for each file which has changed since the last run
'updatehooks': {
'git@github.com:kvbik/rehab.git': [
['requirements.txt', 'pip install -r requirements.txt'],
['requirements.txt', 'python setup.py develop'],
['setup.py', 'python setup.py develop'],
],
},
}
import yaml
with open('/etc/my-rehab.yml', 'w') as f:
f.write(yaml.dump(EXAMPLE_CONFIG))
and call:
rehab update -c /etc/my-rehab.yml -d /var/my-rehab.yml
Metadata
Release files for rehab 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rehab-0.1.tar.gz | 24.3 kB | Without provenance | Details for rehab-0.1.tar.gz |
Release files / rehab-0.1.tar.gz
| Download URL | rehab-0.1.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4466325f924733704a01611e030e1314d0c674784c8193a4a59f8922e8538111
|
|
BLAKE2b-256 checksum How to use checksums |
a6a2021b318430055f1f3301cac9899fac907294e180b07e37edd49bf6be6d52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rehab 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.