semvec/pypi-packages huggingface dataset:
alteryx-gallery-py 1.0.1
Connect to Alteryx Gallery using API
License: MIT

# alteryx_gallery_py

A lightweight Python wrapper for the Alteryx gallery API.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install alteryx_gallery_py.

```bash
pip install alteryx_gallery_py
```

## Usage

```python
import zipfile
import io

from alteryx_gallery_py import Subscriptions

gallery_url = "http://devalteryx.continuus-technologies.com/gallery/"
api_key = 'INSERT API KEY'
client_secret = 'INSERT API SECRET'

# Initiate Subscription Object
sub = Subscriptions(api_key, client_secret, gallery_url)

# Search for a workflow in gallery
workflows = sub.get_workflows(search="pizza survey")
pizza_app_id = workflows[0]["id"]

# Get Questions for a workflow
questions = sub.get_questions(pizza_app_id)

# Run an app
answers = [
    {"name": "Question 1","value": "True"},
    {"name": "Question 2","value": "Cheese"},
    {"name": "Question 3","value": 150}
]
job_run = sub.create_job(pizza_app_id, questions=answers, priority="0")

# Get job status
job_status = sub.get_job(job_run["id"])
output_id = job_status["outputs"][0]["id"]

# List all jobs for an Alteryx app
all_pizza_jobs = sub.list_jobs(pizza_app_id)

# Get job output
job_output = sub.get_job_output(job_run["id"], output_id)

# Download an Alteryx Analytics App
app_package = sub.download_app(pizza_app_id)
z = zipfile.ZipFile(io.BytesIO(app_package))
z.extractall("./")
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
django-inlinecss-redux 0.4.0
A Django app useful for inlining CSS (primarily for e-mails)
License: MIT
Keywords: html,css,inline,style,email


[![Build Status](https://travis-ci.org/roverdotcom/django-inlinecss.svg?branch=master)](https://travis-ci.org/roverdotcom/django-inlinecss)

## About

Inlining CSS is necessary for email generation and sending
but is currently a surprisingly large hassle.

This library aims to make it a breeze in the Django
template language.

## Usage

#### Step 1: Dependencies

- BeautifulSoup
- cssutils
- Python 3.6+
- Django 2.2+


#### Step 2: Install django_inlinecss

Add ```django_inlinecss``` to your ```settings.py```:

```python
INSTALLED_APPS = (
        'django.contrib.auth',
        'django.contrib.webdesign',
        'django.contrib.contenttypes',
        '...',
        '...',
        '...',
        'django_inlinecss')
```

#### Step 3: Use the templatetag

1. Place your CSS file somewhere staticfiles can find it
2. Create your template:

```html
{% load inlinecss %}
{% inlinecss "css/extra-padding.css" %}
    <html>
        <body>
            <div class='lots-o-padding'>
                Something in need of styling.
            </div>
        </body>
    </html>
{% endinlinecss %}
```

#### Step 4: Prepare to be Wowed

```html
<html>
    <body>
        <div style="padding-left: 10px; padding-right: 10px; padding-top: 10px;" class="lots-o-padding">
            Something in need of styling.
        </div>
    </body>
</html>
```

## Acknowledgements

This is a fork of django-inlinecss, with updates for newer versions of Python
and Django.

Thanks to Tanner Netterville for his efforts on [Pynliner](https://github.com/rennat/pynliner).

Thanks to Thomas Yip for his unit tests on the `soupselect` module. These tests
helped on getting the core CSS2 selectors to work.

## License

MIT license. See LICENSE.md for more detail.