semvec/pypi-packages huggingface dataset:
quart-csrf 0.2
Quart CSRF Protection
License: MIT
Requires Python: >=3.7

Quart-Csrf
==========

Quart-Csrf is an extension for [Quart](https://gitlab.com/pgjones/quart) to provide CSRF protection.
The code is taked from [Flask-WTF](https://github.com/lepture/flask-wtf).

Usage
-----

To enable CSRF protection globally for a Quart app, you have to create an CSRFProtect and
initialise it with the application,
```python
from quart_csrf import CSRFProtect

app = Quart(__name__)
CSRFProtect(app)
```

or via the factory pattern,
```python
csrf = CSRFProtect()

def create_app():
    app = Quart(__name__)
    csrf.init_app(app)
    return app
```

Note: CSRF protection requires a secret key to securely sign the token. By default this will
use the QUART app's SECRET_KEY. If you'd like to use a separate token you can set QUART_CSRF_SECRET_KEY.

HTML Forms: render a hidden input with the token in the form.
```html
<form method="post">
    <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
</form>
```

JavaScript Requests: When sending an AJAX request, add the X-CSRFToken header to it. For example, in jQuery you can configure all requests to send the token.
```html
<meta name="csrf-token" content="{{ csrf_token() }}">

<script>
    var csrf_token = $('meta[name=csrf-token]').attr('content');
    // var csrf_token = "{{ csrf_token() }}";

    $.ajaxSetup({
        beforeSend: function(xhr, settings) {
            if (!/^(GET|HEAD|OPTIONS|TRACE)$/i.test(settings.type) && !this.crossDomain) {
                xhr.setRequestHeader("X-CSRFToken", csrf_token);
            }
        }
    });
</script>
```

Contributing
------------

Quart-Csrf is developed on [GitLab](https://gitlab.com/wcorrales/quart-csrf). You are very welcome to
open [issues](https://gitlab.com/wcorrales/quart-csrf/issues) or
propose [merge requests](https://gitlab.com/wcorrales/quart-csrf/merge_requests).

Help
----

This README is the best place to start, after that try opening an
[issue](https://gitlab.com/wcorrales/quart-csrf/issues).
airflow-cyberark-secrets-backend 0.1.0
An Airflow custom secrets backend for CyberArk CCP
License: MIT
Requires Python: >=3.6

# airflow-cyberark-secrets-backend
This is a secrets backend for CyberArk CCP (central credential provider)
for the Apache Airflow platform. It will allow one to pull connections and 
variables from their CyberArk safes via the CCP.

This library has been tested with Airflow 1.10.14.

Documentation for CyberArk CCP can be found [here](https://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/11.2/en/Content/CCP/Calling-the-Web-Service-using-REST.htm?tocpath=Developer%7CCentral%20Credential%20Provider%7CCall%20the%20Central%20Credential%20Provider%20Web%20Service%20from%20Your%20Application%20Code%7C_____2) . 

Documentation for Airflow secrets backends can be found [here](https://airflow.apache.org/docs/apache-airflow/1.10.14/howto/use-alternative-secrets-backend.html?highlight=secrets)

## Usage
`pip install airflow-cyberark-secrets-backend`

Update your `airflow.cfg` with the following
```
[secrets]
backend = airflow_cyberark_secrets_backend.CyberArkSecretsBackend

backend_kwargs = {"app_id": "/files/var.json", "ccp_url": "/files/conn.json", "safe": "", "verify": "/path/to/ssl/cert.pem" }
```

The backend_kwargs:
- app_id : The application ID for CCP
- ccp_url : The host URL for CCP AIM, excluding query params
- safe : The secrets safe
- verify : The SSL cert path to for CCP SSL, can be False for disable, can be env var `CYBERARK_SSL`, default `False`

This library expects and requires your CyberArk response to have the
the following properties (will be mapped mapped to Airflow keys). This
map is a band-aid required from the little configuration CyberArk PAM (11.xx)
allows.

- AccountDescription : svc_account
- ApplicationName : schema
- Address : host
- Comment : extra
- Content : password
- LogonDomain : login
- Port : port

> AccountDescription : svc_account field is used to fetch password from
> rotating secret where the fetched secret is statis, i.e. if you fetch `secret1`
> which is static, if you specify the CCP URL for `secret2` which rotates it will
> fetch metadata for `secret1` and fill in password from `secret2` in its response

## Development
PRs welcomed.

The following will install in editable mode with all required development tools.
```bash
pip install -e '.[dev]'
```

Please format (`black`) and lint (`pylint`) before submitting PR.
DrawExcel 1.5
Tool that draws VBA structure of your MS Excel file.
License: MIT

# DrawExcel
Tool that draws VBA structure of your MS Excel file. 
It will scan VBA code in a MS Excel file and draws a visual diagram of its structure (Sheets, modules, forms ...) in an interractive SVG file.


## Requirement

It works only if you are on Windows OS with Microsoft Excel  


## Overview

This tool is primary to help people escape the Excel nightmare. It shows an overview of an Excel file structure. This aim to help developpers who need to maintain, update and document an Excel file that contain VBA.  


## How to generate the output

DrawExcel.DrawExcel( '--Your Excel file folder--' , '--Your excel file name (including extension)--')  


## Output Example:
![](https://github.com/brochuJP/DrawExcel/blob/main/docs/_MAIN.jpg?raw=true)

When you are working with a complex Excel file, you may find that some VB components are chaotic. In order to have a better view of some section of your graph, click on the section name at the header of the sub zone to see a deeper view. 

For example if we click on Sheet3 we will see the following:

![](https://github.com/brochuJP/DrawExcel/blob/main/docs/Sheet3.jpg?raw=true)
  
By doing this you can can have a deeper view of you graph.
## Dependencies


- All code is written in Python 3.
- Some code depends on:
  - pandas
  - win32com.client
  - graphviz