Thư viện xử lý kiểm tra quyền theo logic ABAC (Attribute-based access control)
Project description
Run Script
Thư viện xử lý chạy các script của project mỗi khi deploy version mới, sau khi chạy xong thì lưu lại vết script đã chạy để lần sau không chạy lại nữa.
Cài đặt:
$ pip3 install m-run-script
Sử dụng:
Chạy các script của project:
from mobio.libs.run_script import MobioRunScript
VERSION_CONFIG = {
"every_deploy": {
"script": [
"PYTHONPATH=./ python3.8 -u sync_mongodb_index.py",
"PYTHONPATH=./ python3.8 -u sync_kafka_topic.py"
]
},
"version": {
1: ["PYTHONPATH=./ python3.8 -u scripts/script_1.py",
"PYTHONPATH=./ python3.8 -u scripts/script_2.py"],
2: ["PYTHONPATH=./ python3.8 -u scripts/script_3.py"]
}
}
MobioRunScript().run_script_by_version(VERSION_CONFIG)
Log - 1.0.0
- release sdk
Log - 1.0.1
- update
Log - 1.0.2
- chạy script theo thứ tự
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
m-run-script-1.0.2.tar.gz
(8.1 kB
view hashes)