Derived

Derived

class Derived[source]

Bases: enum.Enum

Describes automatic handling of an argument name

Attributes

Note: attributes inherited from parent classes are not shown here, if any

SNAKE_CASE

Derives the name/key using snake_case

SNAKE_CASE_UPPER_CASE

Derives the name/key using SNAKE_CASE (and sets uppercase, default for env.

KEBAB_CASE

Derives the argument name using kebab-case (default for INI file keys and cmd line flags)

Methods

derive

Returns a derived name from a field name

List of members of Derived

SNAKE_CASE = 1

Derives the name/key using snake_case

SNAKE_CASE_UPPER_CASE = 2

Derives the name/key using SNAKE_CASE (and sets uppercase, default for env. variables)

KEBAB_CASE = 3

Derives the argument name using kebab-case (default for INI file keys and cmd line flags)

derive(name)[source]

Returns a derived name from a field name

Parameters

name (str) – Field name in Python identifier format

Return type

str