semvec/pypi-packages huggingface dataset:
turbine 1.3.4
A Python 3 tool to harness the google cloud to run shell scripts
License: MIT
Requires Python: >=3.6

# Turbine
A Python 3 tool to harness the google cloud to run shell scripts. In particular, if you have
1. a docker image and
2. many independent, idempotent tasks for that image written as shell scripts,

Turbine allows you to run those tasks on many VMs in parallel on GCE. See [this jupyter notebook](https://github.com/Kasekopf/Turbine/blob/master/example/example_usage.ipynb) for detailed usage.

Turbine is a lot like
* [Google Cloud Run](https://cloud.google.com/run/) except you don't need to hit an HTTP endpoint and it supports large machine types and accelerators;
* [Google Cloud Functions](https://cloud.google.com/functions/) except it supports large machine types and accelerators; and
* [Batch on GKE](https://cloud.google.com/kubernetes-engine/docs/how-to/batch/running-job) except I understand it, it is significantly lighter-weight than Kubernetes, and it provides a path for TPU access.

# Installation
Turbine consists of two components:
1. A controller on the local machine to setup cloud components, enter tasks, and provision VMs.
2. A small shim to run inside of the docker image and retrieve tasks.

For most users, the recommended method to install the controller is via pip:

```
pip install turbine
```

To attach turbine to a docker image, simply install turbine on the image via pip:
```
RUN pip install turbine
```

Note that the `ENTRYPOINT` of the docker image will be overwritten when used by the Turbine controller.

## Dependencies:
* google-cloud-pubsub
* google-cloud-storage
* google-cloud-logging
* google-api-python-client

See [requirements.txt](https://github.com/Kasekopf/Turbine/blob/master/requirements.txt) for detailed version information, if needed.
checkvist 0.0.1.dev3
Checkvist REST API wrapper
License: MIT
Requires Python: >=3.6
Keywords: checkvist,outliner,to-do,todo

[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/nuno-andre/checkvist/main/LICENSE) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/checkvist.svg)](https://pypi.python.org/pypi/checkvist/)

Checkvist
=========

[_Checkvist_][features] is an online list making app with minimalist UI and amazing keyboard and Markdown support. This package is an unofficial Python wrapper library over its [REST API][apidocs].

Setup
-----
```shell
$ pip install checkvist
```

Example
-------
```python
In [1]: from checkvist import Client
   ...:
   ...: client = Client(username=<username>, secret=<secret>) # [1]

In [2]: client.create_list(name='next trip')
   ...: # a new list to organize my next trip
Checklist(archived=False,
          id=700700,
          item_count=0,
          markdown=True,
          name='next trip',
          options=2,
          percent_completed=0.0,
          public=False,
          read_only=False,
          tags={},
          tags_as_text='',
          task_completed=0,
          task_count=0,
          updated_at=datetime.datetime(2020, 11, 28, 10, 0, 0, tzinfo=datetime.timezone.utc),
          user_count=1,
          user_updated_at=None)

In [3]: client.create_task(list_id=700700, content='Search for air tickets', due_date='next friday')
   ...: # on Friday next week, I should have purchased the tickets
Task(assignee_ids=[],
     checklist_id=700700,
     collapsed=False,
     comments_count=0,
     content='Search for air tickets',
     details={},
     due=datetime.date(2020, 12, 11),
     due_user_ids=[170000],
     id=45004500,
     parent_id=0,
     position=1,
     status=0,
     tags={},
     tags_as_text='',
     tasks=[],
     update_line='created by <My Name>',
     updated_at=datetime.datetime(2020, 11, 28, 10, 1, 0, tzinfo=datetime.timezone.utc))
```

**[1]**: params only required if `CHECKVIST_USERNAME` and `CHECKVIST_SECRET` environment variables aren't set.

Links
-----
- [Checkvist features][features]
- [Online demo](https://beta.checkvist.com/checklists/783262-introduction-to-checkvist "Introduction to Checkvist")
- [Feedback](https://checkvist.com/auth/feedback)
- [API docs][apidocs]
- [API mail group](https://groups.google.com/g/checkvist-api)
- [Checkvist UserVoice](https://checkvist.uservoice.com/forums/2121-checkvist-web)


[features]: https://checkvist.com/auth/features "List making on steroids"
[apidocs]: https://checkvist.com/auth/api "Open API"

---

Copyright &copy; 2020 Nuno André
sneact 0.1.1
Sneact is a python library for building user interfaces
License: MIT
Requires Python: >=3.6,<4.0
Keywords: html,web,drs,sneact,jsless,frontend

# Sneact

Sneact is a python library for building user interfaces.

__That's so draft.__


## Hot new features!

### Conditions!

```python
from sneact import Sneact, s, _
from sneact.cond import when, when_not, then
from sneact.html import div, p

scope = {
    "ok_text": "Hello!",
    "not_text": "Hello not!",
    "show_text": True
}
page = (+Sneact(scope)
    <<div>>_
        @when(s.show_text, +then
            <<p>> s.ok_text <<-p>>_
        )
        @when_not(s.show_text, +then
            <<p>> s.not_text <<-p>>_
        )
    <<-div>>_
)
```

##### Result:

```html
<div>
<p>Hello!</p>
</div>
```

### Loops!

```python
from sneact import Sneact, s, _
from sneact.html import div, img
from sneact.loop import for_each, do, item

scope = {
    "images": ["cat.png", "dog.png", "frog.png"]
}
page = (+Sneact(scope)
    <<div>>_
        @for_each(s.images, +do
            <<img(src=item)>>_
        )
    <<-div>>_
)
```

##### Result:

```html
<div>
<img src=cat.png>
<img src=dog.png>
<img src=frog.png>
</div>
```

## Example 1

### Python code

```python
from sneact import Sneact, s, _
from sneact.html import div, p, img

scope = {
    "title": "Tiger",
    "subtitle": "About tigers",
    "image": '"tiger.png"',
}
home_page = (+Sneact(scope)
    <<div>>_
        <<p>> s.title <<-p>>_
        <<p>> s.subtitle <<-p>>_
        <<div>>_
            <<p>> s.text <<-p>>_
            <<img(src=s.image)>>_
        <<-div>>_
    <<-div>>_
)
scope["text"] = "Hello tigers. We love Tigers."
result = home_page.as_html()
```

### Resulting html

```html
<div>
<p>Tiger</p>
<p>About tigers</p>
<div>
<p>Hello tigers. We love Tigers.</p>
<img src="tiger.png">
</div>
</div>
```

[Pytest code link](https://github.com/machineandme/sneact/blob/df9c3c47a6da3d219724240ca298d2240274ac0c/tests/test_sneact.py#L11)

## Example 2


### Python code

```python
from sneact import Sneact, s, _
from sneact.html import p, h1, header, footer

scope = {}
page = (+Sneact(scope)
    <<header>>_
    	**s.header
    <<-header>>_
    <<p>> "Lorem you know" <<-p>>_
    <<footer>>_
    	**s.footer
    <<-footer>>_
)
scope["header"] = (+Sneact(scope)
    <<h1>> "Page" <<-h1>>_
)
scope["footer"] = (+Sneact(scope)
    <<p>> "Copyright Kiselev Nikolay 2020" <<-p>>_
)
result = page.as_html()
```

### Resulting html

```html
<header>
<h1>Page</h1>
</header>
<p>Lorem you know</p>
<footer>
<p>Copyright Kiselev Nikolay 2020</p>
</footer>
```

[Pytest code link](https://github.com/machineandme/sneact/blob/df9c3c47a6da3d219724240ca298d2240274ac0c/tests/test_sneact.py#L49)