semvec/pypi-packages huggingface dataset:
redmab 0.0.5
Multi-Armed Bandit implementation in redis
License: MIT
Keywords: redis multi-armed bandit

RedMab
======
*RedMab: Multi-Armed Bandit Experiments backed by Redis in python*

|BuildStatus| |CoverageStatus| |Version| |Python| |Docs|


Requirements
------------

The *redmab* package requires Python 2.7 or higher.


Installation
------------

To install, use pip:

.. code-block::

    $ pip install redmab

or from source:

.. code-block::

    $ python setup.py install



Documentation
-------------
Find **RedMab** documentation on `Read the Docs <http://redmab.readthedocs.io/en/latest/>`_.


.. |BuildStatus| image:: https://travis-ci.org/72squared/redmab.svg?branch=master
    :target: https://travis-ci.org/72squared/redmab

.. |CoverageStatus| image:: https://coveralls.io/repos/github/72squared/redmab/badge.svg?branch=master
    :target: https://coveralls.io/github/72squared/redmab?branch=master

.. |Version| image:: https://badge.fury.io/py/redmab.svg
    :target: https://badge.fury.io/py/redmab

.. |Python| image:: https://img.shields.io/badge/python-2.7,3.4,pypy-blue.svg
    :target:  https://pypi.python.org/pypi/redmab/

.. |Docs| image:: https://readthedocs.org/projects/redmab/badge/?version=latest
    :target: http://redmab.readthedocs.org/en/latest/
    :alt: Documentation Status


0.0.4 (March 15, 2018)
----------------------

* fixing typo in update_success method.


0.0.3 (March 15, 2018)
----------------------

* build automation fixes



0.0.2 (March 15, 2018)
----------------------

* redpipe 2.0 compat.



0.0.1 (March 01, 2018)
----------------------

* Initial version. Very alpha.
Flask-PynamoDB 0.0.2
Flask-PynamoDB is an extension for integrating with PynamoDB
License: MIT

# Flask-PynamoDB

[![codecov](https://codecov.io/gh/bl4ckst0ne/flask-pynamodb/branch/main/graph/badge.svg)](https://codecov.io/gh/bl4ckst0ne/flask-pynamodb)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![PyPI](https://img.shields.io/pypi/v/Flask-PynamoDB)
![Python](https://img.shields.io/pypi/pyversions/Flask-PynamoDB.svg)


Flask-PynamoDB is an externsion for [Flask](https://flask.palletsprojects.com/en/1.1.x/) that integrates with [DynamoDB](https://aws.amazon.com/dynamodb/) using the powerful [PynamoDB](https://pynamodb.readthedocs.io/en/latest/) library.

Flask-PynamoDB simplfies the configuration of PynamoDB for your application, as well as adds utilities for better integration with PynamoDB.

## Installation

You can install & update the library using [pip](https://pip.pypa.io/en/stable/):

```python
python -m pip install -U Flask-PynamoDB
```

or:

```python
pip install -U Flask-PynamoDB
```

## Quickstart

```python
from uuid import uuid4
from typing import List

from flask import Flask, render_template
from flask_pynamodb import PynamoDB
from pynamodb.attributes import BooleanAttribute, UnicodeAttribute


class Config:
    DYNAMODB_HOST = "http://localhost:8000"
    DYNAMODB_AWS_ACCESS_KEY_ID = "test"
    DYNAMODB_AWS_SECRET_ACCESS_KEY = "test"
    DYNAMODB_READ_CAPACITY_UNITS = 10
    DYNAMODB_WRITE_CAPACITY_UNITS = 10


app = Flask(__name__)
app.config.from_object(Config)
db = PynamoDB(app)


class Todo(db.Model):
    class Meta:
        table_name = "todo"

    id = UnicodeAttribute(hash_key=True)
    name = UnicodeAttribute()
    description = UnicodeAttribute()
    done = BooleanAttribute(default=False)


@app.route("/")
def index() -> List[str]:
    return [todo.name for i in Todo.scan()]

```