semvec/pypi-packages huggingface dataset:
Error-Cats 0.1.0
Extension to return cats! Works with Flask and Sanic.
License: MIT

# Flask/Sanic error cats (and dogs)

Extension that allows you to return error cats instead of regular error pages.

Extension uses:

- https://http.cat/
- https://httpstatusdogs.com/



## Usage

### Flask

```python
from error_cats import FlaskErrorCats
from flask import Flask

app = Flask(__name__)
FlaskErrorCats(app, status_codes=set(range(0, 600)), animal='dog')


@app.route('/<int:status_code>')
def status_code_view(status_code):
    return '', status_code


if __name__ == '__main__':
    app.run()

```


### Sanic

```python
from error_cats import SanicErrorCats
from sanic import Sanic
from sanic.response import json

app = Sanic()
SanicErrorCats(app, status_codes=set(range(0, 600)))


@app.route('/<status_code:int>')
async def status_code_view(request, status_code):
    return json('', status=status_code)


if __name__ == '__main__':
    app.run()
```

## Available parameters


| param | default | value |
|---|---|---|
| `app` | `None` (can be configured later) | Web application (Flask or Sanic) |
| `animal` | `cat` | Available values: `cat`, `dog` |
| `status_codes` | `400...599` | Container with status codes that should be translated into cats |
| `simple_html_template` | `...` | Simple python format string (html). Should contain `{status_cde}` (int) and `{image}` (url) |
dmotd 0.0.2
Dynamic Message Of The Day.
License: MIT

# DMOTD

**D**ynamic **M**essage **O**f **T**he **D**ay is a simple piece of software that can be used to broadcast a MOTD to a group of computers or to join a server and listen for it.

## Installing

This current version is made up of a **Python Package**, which can be installed with

```bash
git clone https://github.com/monolix/dmotd # Clone the repository
cd dmotd # Change working directory
python setup.py install # Install the package
```

If you want to install it in a virtual environment, just run before installing

```sh
source <envdir>/bin/activate
```

## Documentation

You can find all the docs relative to this project on its [wiki](https://github.com/monolix/dmotd/wiki/Docs-homepage).

## Contributing

If you want to contribute to this open source project, you're free to pull-request us! We'll review your submission as soon as we can.
____
##### Did you arrive over here? Go somewhere else! This project is useless.
py-plan 1.0.0
A library of propositional and relational planning algorithms.
License: MIT

.. image:: https://travis-ci.com/cmaclell/py_plan.svg?branch=master
    :target: https://travis-ci.com/cmaclell/py_plan
.. image:: https://coveralls.io/repos/github/cmaclell/py_plan/badge.svg?branch=examples
   :target: https://coveralls.io/github/cmaclell/py_plan?branch=examples

=========
Py Plan
=========

This is a Python library of algorithms that implements various planning
algorithms written by Christopher MacLellan (http://www.christopia.net).
Generally, the system support algorithms for planning in first-order and
propositional representations using a variety of techniques.

Installation
============

You can install this software using pip::

    pip install -U py_plan

You can install the latest version of the code directly from github::

    pip install -U git+https://github.com/cmaclell/py_plan@master

Important Links
===============

- Source code: `<https://github.com/cmaclell/py_plan>`_
- Documentation: `<http://py_plan.readthedocs.org>`_