Fields¶
Internal class delegating to a module, and displaying warnings when module attributes deprecated in acme.fields are accessed.
- class acme.fields.RFC3339Field(json_name: str, default: Optional[Any] = None, omitempty: bool = False, decoder: Optional[Callable[[Any], Any]] = None, encoder: Optional[Callable[[Any], Any]] = None)[source]¶
RFC3339 field encoder/decoder.
Handles decoding/encoding between RFC3339 strings and aware (not naive)
datetime.datetime
objects (e.g.datetime.datetime.now(pytz.utc)
).
- class acme.fields.Resource(resource_type: str, *args: Any, **kwargs: Any)[source]¶
Resource MITM field.