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.6.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

safeline-0.0.6-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file safeline-0.0.6.tar.gz.

File metadata

  • Download URL: safeline-0.0.6.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for safeline-0.0.6.tar.gz
Algorithm Hash digest
SHA256 42b2f39c1951355f5c30cadd16f2faf1b9eed1639631ff88bbee520961ae43ec
MD5 85dd5531f1808c847c66e2393b826e78
BLAKE2b-256 eda33e1fada7de80a2dba0c207d97939c96fee7304c7f1d83162eed12a6e0e5f

See more details on using hashes here.

File details

Details for the file safeline-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: safeline-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for safeline-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5894f20b8030052ea748a3e564c301c9b54b5b05a98a3a4fbbf38ee1e8487829
MD5 b7b94aba05be30056c9856fd3698d7d1
BLAKE2b-256 bea120bf759b3516af29a23eb0dc170954826d5b3b3a9466096818ca0add8129

See more details on using hashes here.

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