deamon
deamon

Reputation: 92539

Python validation API

I'm looking for a Python (<3) validation API something like Java's Bean Validation or Spring validation. I'm not looking for a library that is limited to form validation, since I want to validate domain objects.

Do you know a Python API for validating of domain objects?

Upvotes: 4

Views: 1490

Answers (4)

Shekhar
Shekhar

Reputation: 7245

+1 for formencode and also there is promising pycerberus .

Upvotes: 1

jor
jor

Reputation: 711

The only libraries that are a bit like Java's Bean validation that I know (and have used) are:

  • Zope 3's zope.schema , but this is tied to using zope interfaces I think

  • SQLAlchamy's Elixir, but this is tied to using SQLAlchemy entities

I'm not sure if (or how) these could be used without depending of specific super classes

Upvotes: 1

virhilo
virhilo

Reputation: 6793

maybe you should try formencode? it's not form-only validation library

Upvotes: 2

duffymo
duffymo

Reputation: 308998

Spring.py

Upvotes: 1

Related Questions