semvec/pypi-packages huggingface dataset:
netwrix-api 0.0.7
A library to interact with Netwrix Search API

# Netwrix Search API Module

This is a python3 library to interact with [Netwrix Auditor](https://www.netwrix.com/auditor.html) 


Example:
```
from netwrix_api import NetwrixAPI


filter_data = {
    "what": {"Contains": "GroupTest"},
    "datasource": "Active Directory",
    "objecttype": {"Contains": "Group"}
}
netwrix_host = "netwrixsv01.contoso.com"
username = "Username"
passwd = "ENTERPASSOWRD"
api = NetwrixAPI(netwrix_host, username, passwd)
results = api.queryDB(filter_data)
```
chopt 0.0.6
Choose Options using a CLI Checkbox Menu

# CHOOSE OPTIONS

*A simple CLI checkbox menu interface for choosing options.*

![img](./chopt.gif "Choose Options")

Takes a list of options as an argument and returns a list of selected items from
that list.

Options are chosen by entering their corresponding number or name. Multiple
options can be selected in one go. Choices should be separated by spaces.

Also supported is specifying ranges of numbers, in the form *x..y* or *x-y*
(where *x* and *y* are item numbers from the list, eg) 1..5 or 1-5).

Additionally you can use *..x* or *-x* to specify everything up to the number
*x*, and *x..* or *x-* to specify everything from the number *x* until the last
element.

Finally one can use wildcard globbing to match option name strings. For instance
**.py* would match all files with the extension *.py*.

Reserved words are *toggle*, *reset*, *accept* and *quit* (case insensitive). They can
be used to carry out those respective actions. Typing just the first letter also
carries out that action - ie) *t*, toggles all, *r*, resets, etc.

## INSTALLATION

`pip install chopt`

## CLI USAGE

```
usage: chopt [-h] options [options ...]

Create a checkbox menu from a list of options.

positional arguments:
  options     Options for the menu.

optional arguments:
  -h, --help  show this help message and exit
```

## PYTHON USAGE

```python
from chopt import chopt

my_list = [ 'item1', 'item2', 'item3' ]

chosen = chopt(my_list)

some_interesting_function(chosen)
```

## EXAMPLES

`chopt $(ls ~/src/chopt)`

`chopt $(shuf -n 100 /usr/share/dict/words)`

`chopt options{1..100}`
sanic_csrf 0.1.3
Protection from CSRF attacks for Sanic framework

### sanic_csrf

Works with all modern web-browsers, which support SameSite cookies.
(Firefox 60, Google Chrome 51, Opera 39 and later)

Checks request for CSRF token.
If CSRF is absent or invalid:
    If it's a get request - installs new token in cookie and redirects to same page.
    In other cases - raises 403 exception (forbidden).

Requires some session middleware to be installed.
That session plugin must use such interface:
	```python
    request['session'].get('variable') or request['session']['variable']
    request['session']['variable'] = 4
    ```
For example, this ones will fit:
- 'sanic_session' (https://github.com/subyraman/sanic_session);
- 'sanic_session' (https://github.com/vlad1777d/sanic_session)
    (fork of previous, more convenient middleware installation,
    can be used without package installation);


## Example

A simple example:


```python
    from sanic import Sanic
    from sanic.response import text
    import sanic_session
    import sanic_csrf


    app = Sanic()
    sanic_session.install_middleware(app, 'InMemorySessionInterface')
    sanic_csrf.install_middleware(app)


    @app.route("/")
    async def index(request):
        # interact with the session like a normal dict
        if not request['session'].get('foo'):
            request['session']['foo'] = 0

        request['session']['foo'] += 1

        return text(request['session']['foo'])

    if __name__ == "__main__":
        app.run(host="0.0.0.0", port=8000, debug=True)
```