Name | safeline JSON |
Version |
0.0.5
JSON |
| download |
home_page | None |
Summary | A simple SDK for SafeLine CE. |
upload_time | 2024-04-10 09:19:14 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
waf
safeline
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
Python SafeLine is a python wrapper for the `SafeLine WAF`
### Install
``` shell
pip install safeline
```
### Example
``` python3
import safeline
if __name__ == '__main__':
BASE_URL = "https://xxx.com"
USERNAME = "admin"
PASSWORD = "xxxx"
OTP_SECRET = "IX62FxxxxxxxxxxW2WB4C"
waf = SafeLine(BASE_URL,
USERNAME,
PASSWORD,
OTP_SECRET
)
# list all certification
print(waf.certification.list)
# certification
waf.certification.update(cert_id, crt, key)
# ip_group
waf.ip_group.update(ipgroup_id, ipgroup_list)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "safeline",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "waf, safeline",
"author": null,
"author_email": "AlliotTech <alliot@iots.vip>",
"download_url": "https://files.pythonhosted.org/packages/f2/9e/2a5a4a390a51394c2f76b2128a2657fc7eb8480423f3c3ea3da5fbf6c5b1/safeline-0.0.5.tar.gz",
"platform": null,
"description": "Python SafeLine is a python wrapper for the `SafeLine WAF` \n### Install \n``` shell \npip install safeline \n```\n\n### Example \n``` python3 \nimport safeline\n\nif __name__ == '__main__':\n BASE_URL = \"https://xxx.com\"\n USERNAME = \"admin\"\n PASSWORD = \"xxxx\"\n\n OTP_SECRET = \"IX62FxxxxxxxxxxW2WB4C\"\n\n waf = SafeLine(BASE_URL,\n USERNAME,\n PASSWORD,\n OTP_SECRET\n )\n\n # list all certification \n print(waf.certification.list)\n \n # certification \n waf.certification.update(cert_id, crt, key)\n \n # ip_group\n waf.ip_group.update(ipgroup_id, ipgroup_list)\n\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "A simple SDK for SafeLine CE.",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://github.com/AlliotTech/python-safeline",
"Issues": "https://github.com/AlliotTech/python-safeline/issues"
},
"split_keywords": [
"waf",
" safeline"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "246ee456bb25615750b275e2599cc945c8bc35d68f675dcd48a4bdd479500953",
"md5": "c8c71b06c5f5bde5c97324c704e15b72",
"sha256": "3fe855ab52e74f1d3061322c436066bc8b7d9164384a4dcf8d0ada65a429772b"
},
"downloads": -1,
"filename": "safeline-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c8c71b06c5f5bde5c97324c704e15b72",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4519,
"upload_time": "2024-04-10T09:19:12",
"upload_time_iso_8601": "2024-04-10T09:19:12.947484Z",
"url": "https://files.pythonhosted.org/packages/24/6e/e456bb25615750b275e2599cc945c8bc35d68f675dcd48a4bdd479500953/safeline-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f29e2a5a4a390a51394c2f76b2128a2657fc7eb8480423f3c3ea3da5fbf6c5b1",
"md5": "4f233d63c466cda9628502ceb8fa224c",
"sha256": "a4018e09894f0577ab023f4d46f111e0334a3fdafeca6ef7254bec5d8ed9317f"
},
"downloads": -1,
"filename": "safeline-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "4f233d63c466cda9628502ceb8fa224c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4340,
"upload_time": "2024-04-10T09:19:14",
"upload_time_iso_8601": "2024-04-10T09:19:14.588611Z",
"url": "https://files.pythonhosted.org/packages/f2/9e/2a5a4a390a51394c2f76b2128a2657fc7eb8480423f3c3ea3da5fbf6c5b1/safeline-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-10 09:19:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AlliotTech",
"github_project": "python-safeline",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "safeline"
}