Skip to content

Commit 87caa9b

Browse files
committed
Update README.md
1 parent 2d46c4e commit 87caa9b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# pydantic-collections
22

3+
[![Build Status](https://app.travis-ci.com/romis2012/pydantic-collections.svg?branch=master)](https://app.travis-ci.com/romis2012/pydantic-collections)
4+
[![Coverage Status](https://coveralls.io/repos/github/romis2012/pydantic-collections/badge.svg?branch=master)](https://coveralls.io/github/romis2012/pydantic-collections?branch=master)
5+
36
The `pydantic-collections` package provides `BaseCollectionModel` class that allows you
47
to manipulate collections of [pydantic](https://github.com/samuelcolvin/pydantic) models
58
(and any other types supported by pydantic).
@@ -18,7 +21,7 @@ pip install pydantic-collections
1821

1922
## Usage
2023

21-
#### basic usage
24+
#### Basic usage
2225
```python
2326

2427
from datetime import datetime
@@ -51,7 +54,7 @@ print(users.json())
5154
#> [{"id": 1, "name": "Bender", "birth_date": "2010-04-01T12:59:59"}, {"id": 2, "name": "Balaganov", "birth_date": "2020-04-01T12:59:59"}]
5255
```
5356

54-
#### strict assignment validation
57+
#### Strict assignment validation
5558

5659
By default `BaseCollectionModel` has a strict assignment check
5760
```python
@@ -77,7 +80,7 @@ assert users[0].__class__ is User
7780
assert users[0].id == 1
7881
```
7982

80-
#### using as a model field
83+
#### Using as a model field
8184

8285
`BaseCollectionModel` is a subclass of `BaseModel`, so you can use it as a model field
8386
```python

0 commit comments

Comments
 (0)