semvec/pypi-packages huggingface dataset:
poliduckie-segmentation 0.1.17.1
Segmentation from the Poliduckie team.
License: MIT
Requires Python: >=3.6
Keywords: segmentation,duckietown,tensorflow

# Poliduckies common packages
[![PyPI version](https://badge.fury.io/py/poliduckie_segmentation.svg)](https://badge.fury.io/py/poliduckie_segmentation)


A package ready to be installed that provides the work made by the Poliduckie team

```
pip install poliduckie-segmentation
```

### Example for segmentation
```python
from poliduckie_segmentation.segmentation import Segmentation

image = [...]
segmentation = Segmentation()

# To predict:
prediction = segmentation.predict(image)

# To get the model:
segmentation.get_model()

# To get the model summary:
segmentation.get_model_summary()

```

### Example for MPC
```python
from poliduckie_segmentation.control import MPC

M = MPC()

# x = state, r = reference (with N=10 be like r=[[0.1, 0.1]]*10)
next_action = M.mpc(x, r)

```

### Example for Model
```python
from poliduckie_segmentation.model import Model

F = Model()

x, y, theta = 0,0,0
action = [1,1] # linear and angular speed
next_state = F.step(x, y, theta, previous_speed, previous_angular_speed, action)

# To use as action left and right wheel speed:
F.step_wheel_speed(x, y, theta, previous_speed, previous_angular_speed, action)

```
flask-smorest-sqla 0.2.2
Adds SQLAlchemy support to a Flask-Smorest REST API
License: MIT
Requires Python: >=3.9,<4.0

=======================
flask-smorest-sqla
=======================

Flask REST API without the cruft
==================================

This packages builds upon `flask-smorest <https://github.com/marshmallow-code/flask-smorest>`_ and SQLAlchemy, to provide ORM integration and a boilerplate-free REST implementation with:

- CRUD endpoints
- [To do] Access Authorisation
- [To do] Authentication

Install
============

::

    pip install flask-smorest-sql


Quickstart
============

With a Flask-Smorest `api` object registered:

::

    class Test(db.Model):
        """Test model."""
        id = db.Column(db.Integer, primary_key=True)
        name = db.Column(db.String(128))

    with app.app_context():
        db.create_all()

    bp = CRUDBlueprint("Test", __name__, db=db, url_prefix="/test", model_class=TestModel)
    api.register_blueprint(bp)


Will create all CRUD endpoints for resource `Test` at URL `/test`.


Documentation
=============

Full documentation is available at http://flask-smorest-sqla.readthedocs.io/.


License
============

MIT licensed. See the `LICENSE <https://github.com/marshmallow-code/flask-smorest/blob/master/LICENSE>`_ file for more details.