semvec/pypi-packages huggingface dataset:
stories-pydantic 0.6.0
Use pydantic models as stories context contract.
License: BSD-2-Clause
Requires Python: >=3.6,<3.10

# Stories pydantic

[![azure-devops-builds](https://img.shields.io/azure-devops/build/proofit404/stories-pydantic/20?style=flat-square)](https://dev.azure.com/proofit404/stories-pydantic/_build/latest?definitionId=20&branchName=master)
[![azure-devops-coverage](https://img.shields.io/azure-devops/coverage/proofit404/stories-pydantic/20?style=flat-square)](https://dev.azure.com/proofit404/stories-pydantic/_build/latest?definitionId=20&branchName=master)
[![pypi](https://img.shields.io/pypi/v/stories-pydantic?style=flat-square)](https://pypi.org/project/stories-pydantic)
[![python](https://img.shields.io/pypi/pyversions/stories-pydantic?style=flat-square)](https://pypi.org/project/stories-pydantic)

Use pydantic models as stories context contract.

**[Documentation](https://proofit404.github.io/stories-pydantic) |
[Source Code](https://github.com/proofit404/stories-pydantic) |
[Task Tracker](https://github.com/proofit404/stories-pydantic/issues)**

A paragraph of text explaining the goal of the library…

## Pros

- A feature
- B feature
- etc

## Example

A line of text explaining snippet below…

```pycon

>>> from pydantic import BaseModel
>>> from stories import Success
>>> from stories_pydantic import story

>>> class Purchase(BaseModel):
...
...     @story
...     def make(I):
...         I.find_user
...
...     def find_user(self, state):
...         return Success()

>>> Purchase().make()

```

In the same time we could use pydantic model as a state contract.

```pycon

>>> from stories_pydantic import contract

>>> @contract(Purchase.make)
... class State(BaseModel):
...
...     user: str

```

## Questions

If you have any questions, feel free to create an issue in our
[Task Tracker](https://github.com/proofit404/stories-pydantic/issues). We have
the
[question label](https://github.com/proofit404/stories-pydantic/issues?q=is%3Aopen+is%3Aissue+label%3Aquestion)
exactly for this purpose.

## Enterprise support

If you have an issue with any version of the library, you can apply for a paid
enterprise support contract. This will guarantee you that no breaking changes
will happen to you. No matter how old version you're using at the moment. All
necessary features and bug fixes will be backported in a way that serves your
needs.

Please contact [proofit404@gmail.com](mailto:proofit404@gmail.com) if you're
interested in it.

## License

`stories-pydantic` library is offered under the two clause BSD license.

<p align="center">&mdash; ⭐️ &mdash;</p>
<p align="center"><i>The `stories-pydantic` library is part of the SOLID python family.</i></p>
stories-marshmallow 0.2.0
Use marshmallow schemas as stories context contract.
License: BSD-2-Clause
Requires Python: >=3.6,<3.10

# Stories marshmallow

[![azure-devops-builds](https://img.shields.io/azure-devops/build/proofit404/stories-marshmallow/19?style=flat-square)](https://dev.azure.com/proofit404/stories-marshmallow/_build/latest?definitionId=19&branchName=master)
[![azure-devops-coverage](https://img.shields.io/azure-devops/coverage/proofit404/stories-marshmallow/19?style=flat-square)](https://dev.azure.com/proofit404/stories-marshmallow/_build/latest?definitionId=19&branchName=master)
[![pypi](https://img.shields.io/pypi/v/stories-marshmallow?style=flat-square)](https://pypi.org/project/stories-marshmallow)
[![python](https://img.shields.io/pypi/pyversions/stories-marshmallow?style=flat-square)](https://pypi.org/project/stories-marshmallow)

Use marshmallow schemas as stories context contract.

**[Documentation](https://proofit404.github.io/stories-marshmallow) |
[Source Code](https://github.com/proofit404/stories-marshmallow) |
[Task Tracker](https://github.com/proofit404/stories-marshmallow/issues)**

A paragraph of text explaining the goal of the library…

## Pros

- A feature
- B feature
- etc

## Example

A line of text explaining snippet below…

```pycon

>>> from marshmallow import Schema
>>> from marshmallow.fields import String
>>> from stories import story, Success
>>> from stories_marshmallow import contract

>>> class Purchase:
...
...     @story
...     def make(I):
...         I.find_user
...
...     def find_user(self, state):
...         return Success()

>>> @contract(Purchase.make)
... class State(Schema):
...
...     user = String()

```

## Questions

If you have any questions, feel free to create an issue in our
[Task Tracker](https://github.com/proofit404/stories-marshmallow/issues). We
have the
[question label](https://github.com/proofit404/stories-marshmallow/issues?q=is%3Aopen+is%3Aissue+label%3Aquestion)
exactly for this purpose.

## Enterprise support

If you have an issue with any version of the library, you can apply for a paid
enterprise support contract. This will guarantee you that no breaking changes
will happen to you. No matter how old version you're using at the moment. All
necessary features and bug fixes will be backported in a way that serves your
needs.

Please contact [proofit404@gmail.com](mailto:proofit404@gmail.com) if you're
interested in it.

## License

`stories-marshmallow` library is offered under the two clause BSD license.

<p align="center">&mdash; ⭐️ &mdash;</p>
<p align="center"><i>The `stories-marshmallow` library is part of the SOLID python family.</i></p>