Skip to main content

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

Project details


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-test-1.0.1.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file m-run-script-test-1.0.1.tar.gz.

File metadata

  • Download URL: m-run-script-test-1.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.7

File hashes

Hashes for m-run-script-test-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bdde8ab71018b1582219a6fd204d429fb0ec5ce678eb36ffb1efb42715ba6baa
MD5 26c78f90d08719670fb2e06247caff4c
BLAKE2b-256 f55024312cbc56fb51eb83a469e94ef948441aaa55b29e47ea181f2d4b2ef584

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page