Locale de

faker.providers.address

class faker.providers.address.de.Provider(generator: Any)

Bases: Provider

address() str
Example:

‘791 Crist Parks, Sashabury, IL 86039-9874’

building_number() str
Example:

‘791’

city() str
Example:

‘Sashabury’

city_suffix() str
Example:

‘town’

country() str
country_code(representation: str = 'alpha-2') str
current_country() str
current_country_code() str
postcode() str
Example:

86039-9874

street_address() str
Example:

‘791 Crist Parks’

street_name() str
Example:

‘Crist Parks’

street_suffix() str
Example:

‘Avenue’

faker.providers.color

class faker.providers.color.de.Provider(generator: Any)

Bases: Provider

Color provider for de locale. Source: https://www.sttmedia.com/colornames

color(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None, color_format: str = 'hex') str

Generate a color in a human-friendly way.

Under the hood, this method first creates a color represented in the HSV color model and then converts it to the desired color_format. The argument hue controls the H value according to the following rules:

  • If the value is a number from 0 to 360, it will serve as the H value of the generated color.

  • If the value is a tuple/list of 2 numbers from 0 to 360, the color’s H value will be randomly selected from that range.

  • If the value is a valid string, the color’s H value will be randomly selected from the H range corresponding to the supplied string. Valid values are 'monochrome', 'red', 'orange', 'yellow', 'green', 'blue', 'purple', and 'pink'.

The argument luminosity influences both S and V values and is partially affected by hue as well. The finer details of this relationship are somewhat involved, so please refer to the source code instead if you wish to dig deeper. To keep the interface simple, this argument either can be omitted or can accept the following string values:'bright', 'dark', 'light', or 'random'.

The argument color_format controls in which color model the color is represented. Valid values are 'hsv', 'hsl', 'rgb', or 'hex' (default).

Sample:

hue=’red’

Sample:

luminosity=’light’

Sample:

hue=(100, 200), color_format=’rgb’

Sample:

hue=’orange’, luminosity=’bright’

Sample:

hue=135, luminosity=’dark’, color_format=’hsv’

Sample:

hue=(300, 20), luminosity=’random’, color_format=’hsl’

color_hsl(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None) Tuple[int, int, int]

Generate a HSL color tuple in a human-friendly way.

color_hsv(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None) Tuple[int, int, int]

Generate a HSV color tuple in a human-friendly way.

color_name() str

Generate a color name.

color_rgb(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None) Tuple[int, int, int]

Generate a RGB color tuple of integers in a human-friendly way.

color_rgb_float(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None) Tuple[float, float, float]

Generate a RGB color tuple of floats in a human-friendly way.

hex_color() str

Generate a color formatted as a hex triplet.

rgb_color() str

Generate a color formatted as a comma-separated RGB value.

rgb_css_color() str

Generate a color formatted as a CSS rgb() function.

safe_color_name() str

Generate a web-safe color name.

safe_hex_color() str

Generate a web-safe color formatted as a hex triplet.

faker.providers.currency

class faker.providers.currency.de.Provider(generator: Any)

Bases: Provider

cryptocurrency() Tuple[str, str]
cryptocurrency_code() str
cryptocurrency_name() str
currency() Tuple[str, str]
currency_code() str
currency_name() str
currency_symbol(code: str | None = None) str
Example:

$

pricetag() str