This release is a pre-release and may not be stable for production use.
bat-core
Execution Runtime Engine and Standard Action Libraries for BAT Automate RPA Platform.
Directory Structure
bat-core/
├── pyproject.toml # Project configuration & dependencies
├── requirements.txt # Package dependencies list
├── README.md # Documentation
├── bat_core/ # Core Python Package
│ ├── __init__.py
│ ├── cli.py # CLI Runner
│ ├── models/ # Flow & Execution Models (Pydantic)
│ │ ├── __init__.py
│ │ ├── flow.py
│ │ └── context.py
│ ├── engine/ # Flow Interpreter & Evaluator Engine
│ │ ├── __init__.py
│ │ ├── interpreter.py
│ │ ├── evaluator.py
│ │ └── logger.py
│ └── actions/ # Action Libraries & Registry
│ ├── __init__.py
│ ├── base.py
│ ├── registry.py
│ ├── logic.py
│ ├── data_excel.py
│ ├── web_playwright.py
│ └── http_api.py
├── examples/ # Sample Flow JSON files
│ └── sample_flow.json
└── tests/ # Unit Tests
└── test_engine.py
คู่มือการใช้งานและการสั่งรันคำสั่ง (CLI Execution Guide)
โมดูล bat-core สามารถสั่งรันกระบวนการอัตโนมัติ (RPA Flow) ผ่าน Command Line Interface (CLI) ได้ดังนี้:
1. การติดตั้งแบบ Editable (สำหรับการพัฒนา)
ติดตั้ง Package และ Dependencies ในสภาพแวดล้อม Python:
pip install -e .
2. รูปแบบคำสั่งการรันพื้นฐาน
รันผ่านสคริปต์ Python Module:
python -m bat_core.cli run examples/sample_flow.json
หรือรันผ่านคำสั่ง CLI สั้น (เมื่อทำการติดตั้ง Package แล้ว):
bat-core run examples/sample_flow.json
3. ตัวเลือกและพารามิเตอร์เสริม (CLI Options)
-
--vars(Override / Inject Variables): ส่งค่าตัวแปรจากภายนอกเข้าไปใน Flow รูปแบบ JSON Stringpython -m bat_core.cli run examples/sample_flow.json --vars "{\"target_url\": \"https://httpbin.org/get\"}"
-
--log-dir(Save Execution Logs): กำหนดไดเรกทอรีสำหรับบันทึกไฟล์ JSON Execution Logpython -m bat_core.cli run examples/sample_flow.json --log-dir "./logs"
4. การรันชุดทดสอบ (Unit Testing)
ทดสอบความถูกต้องของระบบและ Action ทั้งหมด:
python -m pytest tests/
Metadata
Release files for batautomate 0.1.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| batautomate-0.1.0b1.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| batautomate-0.1.0b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.4 kB
Release files / batautomate-0.1.0b1.tar.gz
| Download URL | batautomate-0.1.0b1.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
476bb0728e8364a6044dea17a3f5ec3ba44e1b2807910a4e5e4a8ed7420cdac2
|
|
BLAKE2b-256 checksum How to use checksums |
09768cbfa2e91ea8c90dc7c6259c363266e8cbb801152c3bd35b667b9055a92b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|
Release files / batautomate-0.1.0b1-py3-none-any.whl
| Download URL | batautomate-0.1.0b1-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c2d7e78069e5831592f7d1ea0db13090ee37335f5fbdc9b9ef07f2723059e29
|
|
BLAKE2b-256 checksum How to use checksums |
860216ec649e34d0db5d8234ead6abbf1f305ee88f0a5d5cd642d055626d00c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|