Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.


Stay organized with collections Save and categorize content based on your preferences.

Wrap various types as instances of a validator.

Used to allow shorthand for common validator types. It converts the following types to the following Validators:

  • strings -> Regex
  • type -> Type
  • collection -> Options
  • Validator -> Itself

validator Object to wrap in a validator.

Validator instance that wraps the given value.

AttributeDefinitionError If validator is not one of the above described types.