💾 Archived View for tris.fyi › pydoc › amethyst.request captured on 2022-03-01 at 16:05:31. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

➡️ Next capture (2022-04-28)

🚧 View Differences

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

Back to module index

Go to module by name

amethyst

amethyst.request

This module has no docstring.

Classes

Connection

Connection(server: amethyst.server.Server, peer_addr: str, peer_cert: Optional[bytes] = None)
peer_cert = None

Context

Context(host: str, orig_path: str, path: str, query: Optional[str], conn: amethyst.request.Connection, data: Dict[str, Any] = <factory>)

Server

get_server(self)
handle_connection(self, reader, writer)

Functions

dataclass

dataclass(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=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.
    

field

field(*, default=<dataclasses._MISSING_TYPE object at 0x7f02275c3610>, default_factory=<dataclasses._MISSING_TYPE object at 0x7f02275c3610>, init=True, repr=True, hash=None, compare=True, metadata=None)

  Return an object to identify dataclass fields.

      default is the default value of the field.  default_factory is a
      0-argument function called to initialize a field's value.  If init
      is True, the field will be a parameter to the class's __init__()
      function.  If repr is True, the field will be included in the
      object's repr().  If hash is True, the field will be included in
      the object's hash().  If compare is True, the field will be used
      in comparison functions.  metadata, if specified, must be a
      mapping which is stored but not otherwise examined by dataclass.

      It is an error to specify both default and default_factory.
    

Other members

Any = typing.Any
  Special type indicating an unconstrained type.

      - Any is compatible with every type.
      - Any assumed to have all methods.
      - All values assumed to be instances of Any.

      Note that all the above statements are true from the point of view of
      static type checkers. At runtime, Any should not be used with instance
      or class checks.
    
Dict = typing.Dict
  A generic version of dict.
Optional = typing.Optional
  Optional type.

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