Skip to main content

Generate description tables for your Pydantic's BaseSettings

Project description

GenVars

Generate description tables for your Pydantic BaseSettings models in Markdown.

Usage: poetry run python3 -m genvars [-h] [--output OUTPUT] modules [modules ...]

positional arguments:
  modules          Modules with settings to describe, e.g. common.settings config <...>

options:
  -h, --help       show this help message and exit
  --output OUTPUT  Output file in Markdown.

PostgresSettings

Variable Type Default Description
HOST string
PORT integer
USER string
PASSWORD string
DB string

ManagerSettings

Variable Type Default Description
MAX_CONCURRENT_EVENT_WORKERS integer 10 The maximum number of concurrent tasks in the event loop to process incoming events.
MAX_CONCURRENT_RESTORATION_TASKS integer 10 The maximum number of concurrent tasks in the event loop to process incoming restoration tasks.
MAX_CONCURRENT_RESTORATION_WORKERS integer 10 The maximum number of concurrent restoration workers per restoration task in the event loop to run file-wise restoration. Thus, 10 tasks will spawn 10 workers each, amounting to 100 coroutines running at once.
BATCH_SIZE integer 10 How many files to fetch from the snapshot for restoration at once.

ProductionS3StorageSettings

Variable Type Default Description
CONFIG_FILE_PATH string ~/.aws/config
MAX_CONCURRENT_REQUESTS integer 10 The number of concurrent uploads per directory. The minimum count of threads on my system was 6 with the concurrency value of 1. https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#max-concurrent-requests
MAX_QUEUE_SIZE integer 1000 https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#max-queue-size
MULTIPART_THRESHOLD string 8MB https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#multipart-threshold
MULTIPART_CHUNKSIZE string 8MB https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#multipart-chunksize
MAX_BANDWIDTH string, null None https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#max-bandwidth
ARGS array ['--size-only'] Arbitrary keyword arguments to be passed to the AWS CLI command.
ACCESS_KEY_ID string
SECRET_ACCESS_KEY string
ENDPOINT_URL string
REGION string
BUCKET_NAME string Name of the bucket to be used.

AWSS3CliSettings

Variable Type Default Description
CONFIG_FILE_PATH string ~/.aws/config
MAX_CONCURRENT_REQUESTS integer 10 The number of concurrent uploads per directory. The minimum count of threads on my system was 6 with the concurrency value of 1. https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#max-concurrent-requests
MAX_QUEUE_SIZE integer 1000 https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#max-queue-size
MULTIPART_THRESHOLD string 8MB https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#multipart-threshold
MULTIPART_CHUNKSIZE string 8MB https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#multipart-chunksize
MAX_BANDWIDTH string, null None https://docs.aws.amazon.com/cli/latest/topic/s3-config.html#max-bandwidth
ARGS array ['--size-only'] Arbitrary keyword arguments to be passed to the AWS CLI command.

S3StorageSettings

Variable Type Default Description
ACCESS_KEY_ID string
SECRET_ACCESS_KEY string
ENDPOINT_URL string
REGION string

TapeS3StorageSettings

Variable Type Default Description
ACCESS_KEY_ID string
SECRET_ACCESS_KEY string
ENDPOINT_URL string
REGION string
BUCKET_NAME string Name of the bucket to be used.

BackupManagerSettings

Variable Type Default Description
SCHEMA string http
HOST string
PORT integer

ExporterSettings

Variable Type Default Description
MAX_CONCURRENT_TASKS integer 10 The maximum number of concurrent tasks in the event loop.
DIRECTORIES array

TenacitySettings

Variable Type Default Description
MAX_RETRIES_COUNT integer -1 -1 means infinite retries
WAIT_MULTIPLIER integer 2 Exponential backoff multiplier
MAX_WAIT_TIME integer 10 Maximum wait time in seconds

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genvars-0.1.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genvars-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file genvars-0.1.3.tar.gz.

File metadata

  • Download URL: genvars-0.1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-10022-tuxedo

File hashes

Hashes for genvars-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e0961d945cedf487915cd56d63e32cba9fa9ba62ee4e174e392d3c3e06319cad
MD5 73b6b998e27faebd61a3dd1d649fd167
BLAKE2b-256 a9bced00540a86530518047fc4063e81a297ccc36b3bb9fd41c898c43df46e00

See more details on using hashes here.

File details

Details for the file genvars-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: genvars-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-10022-tuxedo

File hashes

Hashes for genvars-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 be268672136f9af07adb842a75f7d9e60b47ce1a00ffd2f53bdc7c651a28baf8
MD5 9ee65652196cc74f451e5e704a0cbdd3
BLAKE2b-256 b9034f21813a09ade93a288bfbd5a78dc2655840fd8ecf8191c81a594cc57311

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page