Files

60 lines
1.2 KiB
Markdown

# Airlock Libs
A Rust implementation of common Airlock API integrations for use in [AirlockTools](https://git.racooncity.org/brotoskyj/AirlockTools)
## Deployment
To install and use this library in a standalone Python script
### Install Using pip
Follow the instructions [here](https://git.racooncity.org/brotoskyj/-/packages/pypi/airlock-libs/)
### Install Wheel
#### Linux
```bash
cd target/wheels/
python3 -m pip install airlock_libs-<versionNumber>-cp313-manylinux_2_34_x86_64.whl
```
#### Windows
```powershell
cd target/wheels
python3 -m pip install airlock_libs-<versionNumber>-cp313-win_amd64.whl
```
or
### Import DLL/SO
#### Linux
```bash
cd /target/x86_64-pc-windows-gnu/release/
Copy libairlock_libs.so to current project directory
```
#### Windows
```powershell
cd /target/x86_64-unknown-linux-gnu/release/
Copy airlock_libs.dll to current project directory
```
## Usage/Examples
```python
import airlock_libs
def pullExecHistories() {
airlock_libs.pull_policy_exec_histories(api, execution_types, checkpoint_number, policy_names)
}
```
## Features
- Pull Policy Execution Histories
## License
[AGPLv3](https://choosealicense.com/licenses/agpl-3.0/)