pydantic_xlsx.money

This module defines some frequently used currencies for convince.

View Source
"""
This module defines some frequently used currencies for convince.
"""

from .types import Money


class Euro(Money):
    """Definition for Euro."""
    minor_unit = 2
    code = "€"
    code_before_amount = False
    delimiter = ","
    thousands_separator = "."


class SwissFranc(Money):
    """Defines Swiss franc."""
    minor_unit = 2
    code = "CHF"
    code_before_amount = False
    delimiter = "."
    thousands_separator = " "


class UnitedStatesDollar(Money):
    """Defines United States dollar."""
    minor_unit = 2
    code = "$"
    code_before_amount = False
    delimiter = "."
    thousands_separator = ","
View Source
class Euro(Money):
    """Definition for Euro."""
    minor_unit = 2
    code = "€"
    code_before_amount = False
    delimiter = ","
    thousands_separator = "."

Definition for Euro.

#   minor_unit = 2
#   code = '€'
#   code_before_amount = False
#   delimiter = ','
#   thousands_separator = '.'
Inherited Members
pydantic_xlsx.types.Money
Money
amount
validate
number_format
builtins.float
conjugate
as_integer_ratio
fromhex
hex
is_integer
real
imag
#   class SwissFranc(pydantic_xlsx.types.Money):
View Source
class SwissFranc(Money):
    """Defines Swiss franc."""
    minor_unit = 2
    code = "CHF"
    code_before_amount = False
    delimiter = "."
    thousands_separator = " "

Defines Swiss franc.

#   minor_unit = 2
#   code = 'CHF'
#   code_before_amount = False
#   delimiter = '.'
#   thousands_separator = ' '
Inherited Members
pydantic_xlsx.types.Money
Money
amount
validate
number_format
builtins.float
conjugate
as_integer_ratio
fromhex
hex
is_integer
real
imag
#   class UnitedStatesDollar(pydantic_xlsx.types.Money):
View Source
class UnitedStatesDollar(Money):
    """Defines United States dollar."""
    minor_unit = 2
    code = "$"
    code_before_amount = False
    delimiter = "."
    thousands_separator = ","

Defines United States dollar.

#   minor_unit = 2
#   code = '$'
#   code_before_amount = False
#   delimiter = '.'
#   thousands_separator = ','
Inherited Members
pydantic_xlsx.types.Money
Money
amount
validate
number_format
builtins.float
conjugate
as_integer_ratio
fromhex
hex
is_integer
real
imag