louvijan
louvijan is a tool to control the script pipeline (not limited to Python scripts), which means that scripts can be executed in a specified order. In addition, it is recommended because it is lightweight, fast and easy to use.
Why does it have this strange name? Because it is similar to the pronunciation "li煤shu菒xi脿n" of pipeline in Chinese.
Installation
You can install louvijan with pip:
pip install louvijan
Examples
In one word, easy to use! After reading, please show your thumb.
If you have a series of scripts that need to be executed in a certain order, as shown in the figure:
In the figure, A to G represent scripts respectively. First execute A, then execute B, C, D at the same time, then execute E, F at the same time, and finally execute G.
Let's describe it with louvijan:
from louvijan import PipeLine
PipeLine('A', ['B', 'C', 'D'], ['E', 'F'], 'G')()
If you want to execute B, C, D on a remote server, you can create a new configuration file remote.conf:
[remote]
ip = 127.0.0.1
port = 22
username = root
password = 123456
This is the case with louvijan:
PipeLine('A', Python(['B', 'C', 'D'], config='remote.conf'), ['E', 'F'], 'G')()
It is able to also send you an email after the script execution succeeds or fails or regardless of success or failure, by adding options in the configuration file like this:
[email]
host = smtp.qq.com
username = 12345
port = 25
authcode = ************
sender = tanyee@qq.com
receivers = one@qq.com, two@qq.com, three@qq.com
send_mail_flag = always
You can execute the following statement to generate a configuration template file:
from louvijan import Config
Config().template()
By setting the configuration file and multiple nested PipeLine, you can construct a variety of complex pipeline projects.
Moreover, it can print the information during the scripts running to the log file.
For more details, see example.py.
Metadata
Release files for louvijan 0.1.3
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 |
|---|---|---|---|---|
| louvijan-0.1.3.tar.gz | 10.6 kB | Without provenance | Details for louvijan-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| louvijan-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for louvijan-0.1.3-py3-none-any.whl |
Total release size: 23.6 kB
Release files / louvijan-0.1.3.tar.gz
| Download URL | louvijan-0.1.3.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7920f57721040cac7af7bb597c4717e4834872afa488cefedb7a29b2b72548f
|
|
BLAKE2b-256 checksum How to use checksums |
7c9c6eca821b531727193d18d0e699c4e174c14dd74dd2db9247fae39bca2828
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / louvijan-0.1.3-py3-none-any.whl
| Download URL | louvijan-0.1.3-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ca6f511a5a84b8ba5bf88346d4a16f234f13da08751d47c4061509866c7d884
|
|
BLAKE2b-256 checksum How to use checksums |
1cc3afd5132c3b16c8c9236de0a0ae699ac3ff2c7499a0343ae288763d938022
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for louvijan 0.1.3
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.