semvec/pypi-packages huggingface dataset:
wagtailmakeup 1.1.0
Wagtail Makeup
License: MIT
Requires Python: >=3.8
Keywords: wagtail,django

# Wagtail Makeup

![tests](https://github.com/kevinhowbrook/wagtail-makeup/workflows/Tests/badge.svg)
[![codecov](https://codecov.io/gh/kevinhowbrook/wagtail-makeup/branch/main/graph/badge.svg?token=A4H7PFEL9J)](https://codecov.io/gh/kevinhowbrook/wagtail-makeup)

Tired of having no images locally when you need them? Don't want to fill your computer up with images?
Use Wagtail Makeup ;)

## Installation

Wagtail makeup depends on python unsplash:

```bash
pip install python-unsplash wagtailmakeup
```

## Configuration

Sign up for an Unsplash api key and add this to your settings:

```python
# settings.py
WAGTAIL_UNSPLASH = {
    "CLIENT_ID": "",
    "CLIENT_SECRET": ""
}
```

The API is rate limited to 50 request/hour... you can apply for a [higher rate limit](https://help.unsplash.com/en/articles/3887917-when-should-i-apply-for-a-higher-rate-limit).

## Using

You probably don't want this in your production settings, so add the following to you local.py settings:

```python
INSTALLED_APPS.append('wagtailmakeup')
```

Wagtail Makeup works by providing a new management command:

```bash
python manage.py make_up [search query] [amount of images]
```

So you want to replace all your broken images on your site with dogs (who wouldn't)
you can do it like this:

```python
python manage.py make_up dogs 10
```

Note: the amount value is the number of images to download, the higher this is, the more variance you will get 😎

## Contributing

Contributions are welcome, please see our [contributing guide](docs/CONTRIBUTING.md) for more details.
cron-task 0.1.1
Script runner based on interval
License: MIT
Requires Python: >=3.8,<4.0

# cron-task

Simple task runner for pythonista


## Usage

```python
from cron_task import Executor

def task():
    print('some task')

worker = Executor()
worker.every(1).seconds.execute(task)

# Start task runner
worker.start()

# Stop task runner
worker.stop()

# Manually run executor
while True:
    worker.run_scheduled()
```