A tool for adding items to the inhibition list via API
Project description
# inhibitor_tool
## Introduction
`inhibitor_tool` is a Python CLI tool for adding items to an inhibition list via an API, with authentication handled via `auth_token`.
## Installation
```bash
pip install inhibitor_tool
Usage
-
Configure
auth_tokenand load environment variables:echo 'export INHIBITOR_USERNAME="your_username"' >> ~/.auth_token echo 'export INHIBITOR_PASSWORD="your_password"' >> ~/.auth_token echo 'export AUTH_API="https://auth.example.com/token"' >> ~/.auth_token echo 'export INHIBITOR_API="https://inhibitor.example.com/add"' >> ~/.auth_token source ~/.auth_token
-
Inhibit an item:
inhibitor-tool "Malicious IP: 192.168.1.1"
The default TTL is 3 hours.
-
Specify a custom TTL:
inhibitor-tool "Malicious IP: 192.168.1.1" --ttl 3600
Here,
ttl=3600means the item will be inhibited for 1 hour.
Open-Source Information
- Author: mmwei3
- Email: mmwei3@iflytek.com
- Date: 2025-03-16
- License: MIT License
---
## **8. LICENSE (MIT 开源协议)**
```text
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction...
9. requirements.txt (依赖)
requests
10. 打包与安装
打包
python setup.py sdist bdist_wheel
安装
pip install dist/inhibitor_tool-1.0.0-py3-none-any.whl
卸载
pip uninstall inhibitor_tool
这个项目提供了一个完全可配置的 CLI 工具,用于通过 API 执行抑制操作(Inhibition),支持鉴权和 pip 安装。
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inhibitor_tool-1.0.0.tar.gz.
File metadata
- Download URL: inhibitor_tool-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.20 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58e23409afd1677ecec39a30ede0d7d25b2c4350d6aff600bb484350a4841ab9
|
|
| MD5 |
c1775cd2d401b23af2960adb80bbf45e
|
|
| BLAKE2b-256 |
93c0d6a92b3a60c89f274754e9fa15006da4294dfb88fd3d5a7385726d53bb1b
|
File details
Details for the file inhibitor_tool-1.0.0-py3-none-any.whl.
File metadata
- Download URL: inhibitor_tool-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.20 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ce4c51f053cd615d5707c590671a1e2c39b3f9a7e4316c8b25a9d2562fc37b2
|
|
| MD5 |
2f5c5416592502a5688df8bd4971ce46
|
|
| BLAKE2b-256 |
015959967e655165ad8c58426c393c56e5ce767ee3398e372023cbc744f2402f
|