Dirty-models

Latest version: v0.12.4

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.10.1

0.9.0

0.8.1

0.6.0

0.5.1

- Added a easy way to get model structure. It will be used by autodoc libraries as sphinx or json-schema.

0.5.0

- Added autolist parameter to ArrayField. It allows to assign a single item to a list field,
so it will be converted to a list with this value.

python

class ExampleModel(BaseModel):
array_field = ArrayField(field_type=StringField(), autolist=True)

model = ExampleModel()
model.array_field = 'foo'
assert model.array_field[0] is 'foo'

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.