safeline


Namesafeline JSON
Version 0.0.6 PyPI version JSON
download
home_pageNone
SummaryA simple SDK for SafeLine CE.
upload_time2024-07-04 04:12:20
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
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/ed/a3/3e1fada7de80a2dba0c207d97939c96fee7304c7f1d83162eed12a6e0e5f/safeline-0.0.6.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.6",
    "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": "bea120bf759b3516af29a23eb0dc170954826d5b3b3a9466096818ca0add8129",
                "md5": "b7b94aba05be30056c9856fd3698d7d1",
                "sha256": "5894f20b8030052ea748a3e564c301c9b54b5b05a98a3a4fbbf38ee1e8487829"
            },
            "downloads": -1,
            "filename": "safeline-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b7b94aba05be30056c9856fd3698d7d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4527,
            "upload_time": "2024-07-04T04:12:18",
            "upload_time_iso_8601": "2024-07-04T04:12:18.501834Z",
            "url": "https://files.pythonhosted.org/packages/be/a1/20bf759b3516af29a23eb0dc170954826d5b3b3a9466096818ca0add8129/safeline-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eda33e1fada7de80a2dba0c207d97939c96fee7304c7f1d83162eed12a6e0e5f",
                "md5": "85dd5531f1808c847c66e2393b826e78",
                "sha256": "42b2f39c1951355f5c30cadd16f2faf1b9eed1639631ff88bbee520961ae43ec"
            },
            "downloads": -1,
            "filename": "safeline-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "85dd5531f1808c847c66e2393b826e78",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4347,
            "upload_time": "2024-07-04T04:12:20",
            "upload_time_iso_8601": "2024-07-04T04:12:20.173091Z",
            "url": "https://files.pythonhosted.org/packages/ed/a3/3e1fada7de80a2dba0c207d97939c96fee7304c7f1d83162eed12a6e0e5f/safeline-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-04 04:12:20",
    "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"
}
        
Elapsed time: 0.86885s