semvec/pypi-packages huggingface dataset:
Flask-Tenable 1.4.13.post1
Flask-Tenable is a thin wrapper for pyTenable that enables the easy integration of pyTenable into flask applications.
License: MIT
Requires Python: >=3.6, <4

Flask-Tenable
=============

[![PyPI version](https://badge.fury.io/py/Flask-Tenable.svg)](https://pypi.org/project/Flask-Tenable)
[![Python version](https://img.shields.io/badge/Python-3.7_%7C_3.8_%7C_3.9_%7C_3.10_%7C_3.11-blue)]()

---

Flask-Tenable is a thin wrapper for [pyTenable](https://pypi.org/project/pyTenable/)
that enables the easy integration of [pyTenable](https://pypi.org/project/pyTenable/)
into [flask](https://pypi.org/project/flask/) applications.

To use the wrapped [pyTenable objects](https://pytenable.readthedocs.io/en/stable/)
app.config must contain the following configs:

| Product   | Required configs                                                          |
|-----------|---------------------------------------------------------------------------|
| Downloads | TENABLE_DOWNLOADS_API_TOKEN                                               |
| Nessus    | TENABLE_NESSUS_HOST, TENABLE_NESSUS_ACCESS_KEY, TENABLE_NESSUS_SECRET_KEY |
| TenableAD | TENABLE_AD_API_KEY                                                        |
| TenableIO | TENABLE_IO_ACCESS_KEY, TENABLE_IO_SECRET_KEY                              |
| TenableOT | TENABLE_OT_API_KEY                                                        |
| TenableSC | TENABLE_SC_HOST, TENABLE_SC_ACCESS_KEY, TENABLE_SC_SECRET_KEY             |

---

### Usage

#### Basic workflow

```python
from flask import Flask
from flask_tenable import Tenable

app = Flask(__name__)

# Add the configs for the products you want to use
app.config['TENABLE_SC_HOST'] = 'localhost:8834'
app.config['TENABLE_SC_ACCESS_KEY'] = '<access_key>'
app.config['TENABLE_SC_SECRET_KEY'] = '<secret_key>'

# Initialize the extension
tenable = Tenable()
tenable.init_app(app)

# Access the pyTenable objects through the tenable object
@app.route('/scans')
def scans():
    return f'Scans in TenableSC: {tenable.sc.scans.list()}'

if __name__ == '__main__':
    app.run()
```

#### Accessing the different pyTenable APIs

```python
from flask import Flask
from flask_tenable import Tenable

app = Flask(__name__)

# Initialize the extension
tenable = Tenable()
tenable.init_app(app)

# Access the APIs with their pyTenable module name
tenable.dl      # Downloads API
tenable.nessus  # Nessus API
tenable.ad      # TenableAD API
tenable.io      # TenableIO API
tenable.ot      # TenableOT API
tenable.sc      # TenableSC API
```
flask-cos 2.1.7
腾讯云对象存储的Flask扩展
License: MIT
Requires Python: >=3.8,<4.0

flask-cos
==========

腾讯云对象存储的Flask扩展, 基于 `codeif/qcos <https://github.com/codeif/qcos>`_

安装
----

通过pip安装::

    pip install flask-cos


使用
----

.. code-block:: python

    from flask_cos import COS
    cos = COS()
    cos.init_app(app)

    key = "test.txt"
    data = "content"
    cos.put_object(key, data)


配置项
------

================    ==================================================================
配置项              说明
================    ==================================================================
COS_SECRET_ID
COS_SECRET_KEY
COS_REGION
COS_APPID
COS_BUCKET
COS_SCHEME          选填，https或者http，默认https，访问api的协议
COS_HOST            选填，可以通过cos.host设置的值，组成文件静态文件url
================    ==================================================================