💾 Archived View for tris.fyi › pydoc › amethyst.response captured on 2023-04-26 at 13:12:01. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Back to module index

Go to module by name

amethyst

amethyst.response

This module has no docstring.

Classes

Enum


    Generic enumeration.

    Derive from this class to define new enumerations.
    

Response

Response(status_code: amethyst.response.Status, meta: str, content: Optional[bytes] = None)
content = None

Status

An enumeration.
BAD_REQUEST = <Status.BAD_REQUEST: 59>
CERTIFICATE_NOT_AUTHORIZED = <Status.CERTIFICATE_NOT_AUTHORIZED: 61>
CERTIFICATE_NOT_VALID = <Status.CERTIFICATE_NOT_VALID: 62>
CGI_ERROR = <Status.CGI_ERROR: 42>
CLIENT_CERTIFICATE_REQUIRED = <Status.CLIENT_CERTIFICATE_REQUIRED: 60>
GONE = <Status.GONE: 52>
INPUT = <Status.INPUT: 10>
NOT_FOUND = <Status.NOT_FOUND: 51>
PERMANENT_FAILURE = <Status.PERMANENT_FAILURE: 50>
PROXY_ERROR = <Status.PROXY_ERROR: 43>
PROXY_REQUEST_REFUSED = <Status.PROXY_REQUEST_REFUSED: 53>
REDIRECT_PERMANENT = <Status.REDIRECT_PERMANENT: 31>
REDIRECT_TEMPORARY = <Status.REDIRECT_TEMPORARY: 30>
SENSITIVE_INPUT = <Status.SENSITIVE_INPUT: 11>
SERVER_UNAVAILABLE = <Status.SERVER_UNAVAILABLE: 41>
SLOW_DOWN = <Status.SLOW_DOWN: 44>
SUCCESS = <Status.SUCCESS: 20>
TEMPORARY_FAILURE = <Status.TEMPORARY_FAILURE: 40>
name = <types.DynamicClassAttribute object at 0x7f75e3bec2e0>
  The name of the Enum member.
value = <types.DynamicClassAttribute object at 0x7f75e3bec2b0>
  The value of the Enum member.

Functions

dataclass

dataclass(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False)

  Returns the same class as was passed in, with dunder methods
      added based on the fields defined in the class.

      Examines PEP 526 __annotations__ to determine fields.

      If init is true, an __init__() method is added to the class. If
      repr is true, a __repr__() method is added. If order is true, rich
      comparison dunder methods are added. If unsafe_hash is true, a
      __hash__() method function is added. If frozen is true, fields may
      not be assigned to after instance creation. If match_args is true,
      the __match_args__ tuple is added. If kw_only is true, then by
      default all fields are keyword-only. If slots is true, an
      __slots__ attribute is added.
    

Other members

Optional = typing.Optional
  Optional type.

      Optional[X] is equivalent to Union[X, None].