Skip to main content

A simple SDK for SafeLine CE.

Project description

Python SafeLine is a python wrapper for the SafeLine WAF

Install

pip install safeline  

Example

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)

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

safeline-0.0.5.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

safeline-0.0.5-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page