vein.default package¶

Module contents¶

This module sets up the default flow for the vein package.

Modules Imported:
  • Flow from vein: The main flow class used to manage settings.

  • TEN_MIN_TTL from vein.cache.policies: A caching policy with a time-to-live of ten minutes.

  • BASIC_BACKOFF_POLICY from vein.backoff.policies: A basic backoff policy for retry mechanisms.

vein.default.defaults¶

An instance of the Flow class initialized with default settings for cache and backoff policies.

Type:

Flow

Usage:

The defaults flow can be used throughout the application to access and manage default settings. Internally, this flow is used to set the default cache policy and backoff policy, ensuring consistent behavior across the codebase.

Example:

The defaults flow can be used throughout the application to access and manage default settings.

`python from vein.default import defaults # Accessing cache policy print(defaults.cache_policy) # Accessing backoff policy print(defaults.backoff_policy) `

We love our library so much, we use it ourselves! This default flow shows how vein maintains consistent settings internally. So meta, wow!