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

Log - 1.0.1

- update

Log - 1.0.2

- chạy script theo thứ tự

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.2.tar.gz (8.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for m-run-script-test-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0b4c370def88b70abe2cc1737cc176700e53f150a5c9f4ace3309f87cd0cef7f
MD5 d5fefeb83bfdafdcba9d2b8a016f7b7b
BLAKE2b-256 05a2deca00367338eaed3b46e825bc7ff8b0f2b864944d672ffcf484971e65fd

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