pypara

pypara.accounting

pypara.accounting.accounts
    __all__ = Account, AccountType, COA, Code, ReadChartOfAccounts
    class Account(Protocol)
        __init__(self, *args, **kwargs)
        coa [property:r]
        code [property:r]
        name [property:r]
        parent [property:r]
        type [property:r]
    class AccountType(Enum)
        ASSETS = 'ASSETS' [member]
        LIABILITIES = 'LIABILITIES' [member]
        EQUITIES = 'EQUITIES' [member]
        REVENUES = 'REVENUES' [member]
        EXPENSES = 'EXPENSES' [member]
    class COA(object)
        [dataclass fields: _accounts, _subaccounts]
        Node [type]
        __delattr__(self, name)
        __eq__(self, other)
        __hash__(self)
        __init__(self, _accounts=<_HAS_DEFAULT_FACTORY_CLASS>, _subaccounts=<_HAS_DEFAULT_FACTORY_CLASS>, rootspec=None)
        __iter__(self)
        __post_init__(self, rootspec)
        __replace__(self, /, **changes)
        __repr__(self)
        __setattr__(self, name, value)
        accounts [property:r]
        add(self, parent, code, name)
        find(self, code)
        nodify(self, account)
        print(self)
        rootspec [NoneType]
        structure [property:r]
        subaccounts(self, account)
        toplevel [property:r]
    Code [NewType]
    Enum = enum.Enum
    InitVar = dataclasses.InitVar
    class ReadChartOfAccounts(Protocol)
        __call__(self)
        __init__(self, *args, **kwargs)
    class RootAccount(object)
        [dataclass fields: code, name, type, coa]
        __delattr__(self, name)
        __eq__(self, other)
        __hash__(self)
        __init__(self, code, name, type, coa)
        __replace__(self, /, **changes)
        __repr__(self)
        __setattr__(self, name, value)
        parent [property:r]
    class SubAccount(object)
        [dataclass fields: code, name, parent]
        __delattr__(self, name)
        __eq__(self, other)
        __hash__(self)
        __init__(self, code, name, parent)
        __replace__(self, /, **changes)
        __repr__(self)
        __setattr__(self, name, value)
        coa [property:r]
        type [property:r]
    dataclass = dataclasses.dataclass
    field = dataclasses.field

pypara.accounting.generic
    __all__ = Balance
    class Balance(object)
        [dataclass fields: date, value]
        __delattr__(self, name)
        __eq__(self, other)
        __hash__(self)
        __init__(self, date, value)
        __replace__(self, /, **changes)
        __repr__(self)
        __setattr__(self, name, value)
    Quantity [NewType]
    dataclass = dataclasses.dataclass

pypara.accounting.journaling
    __all__ = Direction, JournalEntry, Posting, ReadJournalEntries
    Account = pypara.accounting.accounts.Account
    AccountType = pypara.accounting.accounts.AccountType
    Amount [NewType]
    DateRange = pypara.commons.zeitgeist.DateRange
    class Direction(Enum)
        INC = 1 [member]
        DEC = -1 [member]
        of(cls, quantity) [classmethod]
    Enum = enum.Enum
    Guid [NewType]
    class JournalEntry()
        [dataclass fields: date, description, source, postings, guid]
        __delattr__(self, name)
        __eq__(self, other)
        __hash__(self)
        __init__(self, date, description, source)
        __replace__(self, /, **changes)
        __repr__(self)
        __setattr__(self, name, value)
        credits [property:r]
        debits [property:r]
        decrements [property:r]
        increments [property:r]
        post(self, date, account, quantity)
        validate(self)
    class Posting()
        [dataclass fields: journal, date, account, direction, amount]
        __delattr__(self, name)
        __eq__(self, other)
        __hash__(self)
        __init__(self, journal, date, account, direction, amount)
        __replace__(self, /, **changes)
        __repr__(self)
        __setattr__(self, name, value)
        is_credit [property:r]
        is_debit [property:r]
    Quantity [NewType]
    class ReadJournalEntries(Protocol)
        __call__(self, period)
        __init__(self, *args, **kwargs)
    dataclass = dataclasses.dataclass
    field = dataclasses.field
    isum = pypara.commons.numbers.isum
    makeguid = pypara.commons.guid.makeguid

pypara.accounting.ledger
    __all__ = GeneralLedger, GeneralLedgerProgram, InitialBalances, Ledger, LedgerEntry, ReadInitialBalances, build_general_ledger, compile_general_ledger_program
    Account = pypara.accounting.accounts.Account
    Amount [NewType]
    Balance = pypara.accounting.generic.Balance
    DateRange = pypara.commons.zeitgeist.DateRange
    Decimal = decimal.Decimal
    class GeneralLedger()
        [dataclass fields: period, ledgers]
        __eq__(self, other)
        __hash__ = None
        __init__(self, period, ledgers)
        __replace__(self, /, **changes)
        __repr__(self)
    class GeneralLedgerProgram(Protocol)
        __call__(self, period)
        __init__(self, *args, **kwargs)
    InitialBalances [type alias]
    JournalEntry = pypara.accounting.journaling.JournalEntry
    class Ledger()
        [dataclass fields: account, initial, entries]
        __eq__(self, other)
        __hash__ = None
        __init__(self, account, initial)
        __replace__(self, /, **changes)
        __repr__(self)
        add(self, posting)
    class LedgerEntry()
        [dataclass fields: ledger, posting, balance]
        __eq__(self, other)
        __hash__ = None
        __init__(self, ledger, posting, balance)
        __replace__(self, /, **changes)
        __repr__(self)
        amount [property:r]
        cntraccts [property:r]
        credit [property:r]
        date [property:r]
        debit [property:r]
        description [property:r]
        is_credit [property:r]
        is_debit [property:r]
    Posting = pypara.accounting.journaling.Posting
    Quantity [NewType]
    class ReadInitialBalances(Protocol)
        __call__(self, period)
        __init__(self, *args, **kwargs)
    ReadJournalEntries = pypara.accounting.journaling.ReadJournalEntries
    build_general_ledger(period, journal, initial)
    compile_general_ledger_program(read_initial_balances, read_journal_entries)
    dataclass = dataclasses.dataclass
    field = dataclasses.field

pypara.commons

pypara.commons.errors
    __all__ = ProgrammingError
    class ProgrammingError(Exception)
        passert(cls, condition, message=None) [classmethod]

pypara.commons.functional
    __all__ = identity
    chunk(lst, n)
    identity(x)

pypara.commons.guid
    __all__ = Guid, makeguid
    Guid [NewType]
    makeguid()
    uuid4 = uuid.uuid4

pypara.commons.numbers
    __all__ = Amount, CENT, DecimalLike, HUNDRED, MaxPrecision, MaxPrecisionQuantizer, NaturalNumber, Numeric, ONE, PositiveInteger, Quantity, Quantizer12, Quantizer2, Quantizer4, Quantizer8, ZERO, isum, make_quantizer, quantize12, quantize2, quantize4, quantize8, sign
    Amount [NewType]
    CENT [Decimal]
    Decimal = decimal.Decimal
    DecimalLike [TypeVar]
    HUNDRED [Decimal]
    MaxPrecision [int]
    MaxPrecisionQuantizer [Decimal]
    class NaturalNumber(int)
        __new__(cls, value) [staticmethod]
    Numeric [TypeVar]
    ONE [Decimal]
    class PositiveInteger(int)
        __new__(cls, value) [staticmethod]
    Quantity [NewType]
    Quantizer12 [Decimal]
    Quantizer2 [Decimal]
    Quantizer4 [Decimal]
    Quantizer8 [Decimal]
    ZERO [Decimal]
    isum(xs, start=None)
    make_quantize_func(quantizer)
    make_quantizer(precision)
    normalize(value)
    quantize12(x)
    quantize2(x)
    quantize4(x)
    quantize8(x)
    sign(x)
    weirdiv(dividend, divisor)

pypara.commons.zeitgeist
    __all__ = Date, DateRange, DateTime, FinancialPeriods, OpenDateRange, PeriodStarts, Time, TimeDelta, ensure_date, ensure_datetime, get_month_end, get_month_start, get_now, get_period_starts, get_prev_weekday, get_prev_year_end, get_quarter_end, get_quarter_end_stream, get_quarter_start, get_today, get_tomorrow, get_week_end, get_week_start, get_year_end, get_year_half_end, get_year_half_start, get_year_start, get_yesterday, make_financial_periods
    Date = datetime.date
    class DateRange(Iterable)
        [dataclass fields: since, until]
        __delattr__(self, name)
        __eq__(self, other)
        __hash__(self)
        __init__(self, since, until)
        __iter__(self)
        __post_init__(self)
        __replace__(self, /, **changes)
        __repr__(self)
        __setattr__(self, name, value)
        cover(cls, first, *rest) [classmethod]
        dtd(cls, date) [classmethod]
        endpoints [property:r]
        mtd(cls, date) [classmethod]
        of(cls, since, until) [classmethod]
        ordered(cls, date1, date2) [classmethod]
        pivotal(cls, pivot, n_prev, n_next) [classmethod]
        since_prev_year_end(self, years=1, weekday=False)
        year(cls, year) [classmethod]
        ytd(cls, date) [classmethod]
    DateTime = datetime.datetime
    FinancialPeriods [type alias]
    NaturalNumber = pypara.commons.numbers.NaturalNumber
    class OpenDateRange(object)
        __init__(self, start=None, end=None)
        endpoints [property:r]
        has_end [property:r]
        has_start [property:r]
        is_finite [property:r]
        range [property:r]
    ParserError = dateutil.parser._parser.ParserError
    PeriodStarts [type alias]
    PositiveInteger = pypara.commons.numbers.PositiveInteger
    Time = datetime.time
    TimeDelta = datetime.timedelta
    dataclass = dataclasses.dataclass
    ensure_date(value, **kwargs)
    ensure_datetime(value, **kwargs)
    get_month_end(x=None)
    get_month_start(x=None)
    get_now(**kwargs)
    get_period_starts(x=None)
    get_prev_weekday(x=None)
    get_prev_year_end(x=None, years=1)
    get_quarter_end(x=None)
    get_quarter_end_stream(x=None)
    get_quarter_start(x=None)
    get_today(**kwargs)
    get_tomorrow(x=None)
    get_week_end(x=None)
    get_week_start(x=None)
    get_year_end(x=None)
    get_year_half_end(x=None)
    get_year_half_start(x=None)
    get_year_start(x=None)
    get_yesterday(x=None)
    isleap = calendar.isleap
    make_financial_periods(date, lookback)
    parse = dateutil.parser._parser.parse
    relativedelta = dateutil.relativedelta.relativedelta

pypara.currencies
    __all__ = Currencies, Currency, CurrencyLookupError, CurrencyRegistry, CurrencyType
    Currencies [CurrencyRegistry]
    class Currency(object)
        [dataclass fields: code, name, decimals, type, quantizer, hashcache]
        __delattr__(self, name)
        __eq__(self, other)
        __ge__(self, other)
        __gt__(self, other)
        __hash__(self)
        __init__(self, code, name, decimals, type, quantizer, hashcache)
        __le__(self, other)
        __lt__(self, other)
        __replace__(self, /, **changes)
        __repr__(self)
        __setattr__(self, name, value)
        of(cls, code, name, decimals, ctype) [classmethod]
        quantize(self, qty)
    class CurrencyLookupError(LookupError)
        __init__(self, code)
    class CurrencyRegistry(object)
        __contains__(self, code)
        __enter__(self)
        __exit__(self, exc_type, exc_value, tracebackx)
        __getitem__(self, code)
        __init__(self)
        __len__(self)
        __new__(cls) [staticmethod]
        all [property:r]
        codenames [property:r]
        codes [property:r]
        get(self, code, default=None)
        has(self, code)
    class CurrencyType(Enum)
        MONEY = 'Money' [member]
        METAL = 'Precious Metal' [member]
        CRYPTO = 'Crypto Currency' [member]
        ALTERNATIVE = 'Alternative' [member]
    Decimal = decimal.Decimal
    Enum = enum.Enum
    MaxPrecisionQuantizer [Decimal]
    ProgrammingError = pypara.commons.errors.ProgrammingError
    ZERO [Decimal]
    dataclass = dataclasses.dataclass
    make_quantizer = pypara.commons.numbers.make_quantizer
    register [method]

pypara.dcc
    __all__ = DCC, DCCRegistry
    Currencies [CurrencyRegistry]
    Currency = pypara.currencies.Currency
    class DCC(tuple)
        [tuple fields: name, altnames, currencies, calculate_fraction_method]
        __getnewargs__(self)
        __new__(_cls, name, altnames, currencies, calculate_fraction_method) [staticmethod]
        __replace__(self, /, **kwds)
        __repr__(self)
        __slots__ = <tuple>
        altnames [_tuplegetter]
        calculate_daily_fraction(self, start, asof, end, freq=None)
        calculate_fraction(self, start, asof, end, freq=None)
        calculate_fraction_method [_tuplegetter]
        coupon(self, principal, rate, start, asof, end, freq, eom=None)
        currencies [_tuplegetter]
        interest(self, principal, rate, start, asof, end=None, freq=None)
        name [_tuplegetter]
    DCCRegistry [DCCRegistryMachinery]
    class DCCRegistryMachinery(object)
        __init__(self)
        find(self, name)
        register(self, dcc)
        registry [property:r]
        table [property:r]
    DCFC [type alias]
    Date = datetime.date
    Decimal = decimal.Decimal
    Money = pypara.monetary.Money
    ONE [Decimal]
    ZERO [Decimal]
    chain = itertools.chain
    dcc(name, altnames=None, ccys=None)
    dcfc_30_360_german(start, asof, end, freq=None)
    dcfc_30_360_isda(start, asof, end, freq=None)
    dcfc_30_360_us(start, asof, end, freq=None)
    dcfc_30_e_360(start, asof, end, freq=None)
    dcfc_30_e_plus_360(start, asof, end, freq=None)
    dcfc_act_360(start, asof, end, freq=None)
    dcfc_act_365_a(start, asof, end, freq=None)
    dcfc_act_365_f(start, asof, end, freq=None)
    dcfc_act_365_l(start, asof, end, freq=None)
    dcfc_act_act(start, asof, end, freq=None)
    dcfc_act_act_icma(start, asof, end, freq=None)
    dcfc_nl_365(start, asof, end, freq=None)
    relativedelta = dateutil.relativedelta.relativedelta

pypara.exchange
    __all__ = FXRate, FXRateLookupError, FXRateService
    Currency = pypara.currencies.Currency
    Date = datetime.date
    Decimal = decimal.Decimal
    class FXRate(tuple)
        [tuple fields: ccy1, ccy2, date, value]
        __getnewargs__(self)
        __invert__(self)
        __new__(_cls, ccy1, ccy2, date, value) [staticmethod]
        __replace__(self, /, **kwds)
        __repr__(self)
        __slots__ = <tuple>
        ccy1 [_tuplegetter]
        ccy2 [_tuplegetter]
        date [_tuplegetter]
        of(cls, ccy1, ccy2, date, value) [classmethod]
        value [_tuplegetter]
    class FXRateLookupError(LookupError)
        __init__(self, ccy1, ccy2, asof)
    class FXRateService(object)
        TQuery [type alias]
        default [NoneType]
        queries(self, queries, strict=False)
        query(self, ccy1, ccy2, asof, strict=False)
    ONE [Decimal]
    ZERO [Decimal]

pypara.monetary
    __all__ = IncompatibleCurrencyError, MonetaryOperationException, Money, NoMoney, NoPrice, NoneMoney, NonePrice, Price, SomeMoney, SomePrice
    Currency = pypara.currencies.Currency
    Date = datetime.date
    Decimal = decimal.Decimal
    DivisionByZero = decimal.DivisionByZero
    FXRateLookupError = pypara.exchange.FXRateLookupError
    FXRateService = pypara.exchange.FXRateService
    class IncompatibleCurrencyError(ValueError)
        __init__(self, ccy1, ccy2, operation='<Unspecified>')
    InvalidOperation = decimal.InvalidOperation
    class MonetaryOperationException(TypeError)
    class Money(ABC)
        __abs__(self)
        __add__(self, other)
        __bool__(self)
        __eq__(self, other)
        __float__(self)
        __floordiv__(self, other)
        __ge__(self, other)
        __gt__(self, other)
        __hash__ = None
        __int__(self)
        __le__(self, other)
        __lt__(self, other)
        __mul__(self, other)
        __neg__(self)
        __pos__(self)
        __round__(self, ndigits=0)
        __slots__ = <tuple>
        __sub__(self, other)
        __truediv__(self, other)
        abs(self)
        add(self, other)
        as_boolean(self)
        as_float(self)
        as_integer(self)
        ccy_or(self, default)
        ccy_or_none(self)
        convert(self, to, asof=None, strict=False)
        defined [property:r]
        dimap(self, f, e)
        divide(self, other)
        dov_or(self, default)
        dov_or_none(self)
        floor_divide(self, other)
        fmap(self, f)
        gt(self, other)
        gte(self, other)
        is_equal(self, other)
        is_none(x) [staticmethod]
        is_some(x) [staticmethod]
        lt(self, other)
        lte(self, other)
        multiply(self, other)
        na(cls) [classmethod]
        negative(self)
        of(cls, ccy, qty, dov) [classmethod]
        or_else(self, e)
        positive(self)
        price [property:r]
        qty_map(self, f, e)
        qty_or(self, default)
        qty_or_else(self, e)
        qty_or_none(self)
        qty_or_zero(self)
        round(self, ndigits=0)
        scalar_add(self, other)
        scalar_subtract(self, other)
        subtract(self, other)
        undefined [property:r]
        with_ccy(self, ccy)
        with_dov(self, dov)
        with_qty(self, qty)
    NoMoney [NoneMoney]
    NoPrice [NonePrice]
    class NoneMoney(Money)
        __abs__(self)
        __add__(self, other)
        __bool__(self)
        __eq__(self, other)
        __float__(self)
        __floordiv__(self, other)
        __ge__(self, other)
        __gt__(self, other)
        __hash__ = None
        __int__(self)
        __le__(self, other)
        __lt__(self, other)
        __mul__(self, other)
        __neg__(self)
        __pos__(self)
        __slots__ = <tuple>
        __sub__(self, other)
        __truediv__(self, other)
        abs(self)
        add(self, other)
        as_boolean(self)
        as_float(self)
        as_integer(self)
        ccy_or(self, default)
        ccy_or_none(self)
        convert(self, to, asof=None, strict=False)
        defined [property:r]
        dimap(self, f, e)
        divide(self, other)
        dov_or(self, default)
        dov_or_none(self)
        floor_divide(self, other)
        fmap(self, f)
        gt(self, other)
        gte(self, other)
        is_equal(self, other)
        lt(self, other)
        lte(self, other)
        multiply(self, other)
        negative(self)
        or_else(self, e)
        positive(self)
        price [property:r]
        qty_map(self, f, e)
        qty_or(self, default)
        qty_or_else(self, e)
        qty_or_none(self)
        qty_or_zero(self)
        round(self, ndigits=0)
        scalar_add(self, other)
        scalar_subtract(self, other)
        subtract(self, other)
        undefined [property:r]
        with_ccy(self, ccy)
        with_dov(self, dov)
        with_qty(self, qty)
    class NonePrice(Price)
        __abs__(self)
        __add__(self, other)
        __bool__(self)
        __eq__(self, other)
        __float__(self)
        __floordiv__(self, other)
        __ge__(self, other)
        __gt__(self, other)
        __hash__ = None
        __int__(self)
        __le__(self, other)
        __lt__(self, other)
        __mul__(self, other)
        __neg__(self)
        __pos__(self)
        __slots__ = <tuple>
        __sub__(self, other)
        __truediv__(self, other)
        abs(self)
        add(self, other)
        as_boolean(self)
        as_float(self)
        as_integer(self)
        ccy_or(self, default)
        ccy_or_none(self)
        convert(self, to, asof=None, strict=False)
        defined [property:r]
        dimap(self, f, e)
        divide(self, other)
        dov_or(self, default)
        dov_or_none(self)
        floor_divide(self, other)
        fmap(self, f)
        gt(self, other)
        gte(self, other)
        is_equal(self, other)
        lt(self, other)
        lte(self, other)
        money [property:r]
        multiply(self, other)
        negative(self)
        or_else(self, e)
        positive(self)
        qty_map(self, f, e)
        qty_or(self, default)
        qty_or_else(self, e)
        qty_or_none(self)
        qty_or_zero(self)
        round(self, ndigits=0)
        scalar_add(self, other)
        scalar_subtract(self, other)
        subtract(self, other)
        times(self, other)
        undefined [property:r]
        with_ccy(self, ccy)
        with_dov(self, dov)
        with_qty(self, qty)
    Numeric [TypeVar]
    class Price(ABC)
        __abs__(self)
        __add__(self, other)
        __bool__(self)
        __eq__(self, other)
        __float__(self)
        __floordiv__(self, other)
        __ge__(self, other)
        __gt__(self, other)
        __hash__ = None
        __int__(self)
        __le__(self, other)
        __lt__(self, other)
        __mul__(self, other)
        __neg__(self)
        __pos__(self)
        __round__(self, ndigits=0)
        __slots__ = <tuple>
        __sub__(self, other)
        __truediv__(self, other)
        abs(self)
        add(self, other)
        as_boolean(self)
        as_float(self)
        as_integer(self)
        ccy_or(self, default)
        ccy_or_none(self)
        convert(self, to, asof=None, strict=False)
        defined [property:r]
        dimap(self, f, e)
        divide(self, other)
        dov_or(self, default)
        dov_or_none(self)
        floor_divide(self, other)
        fmap(self, f)
        gt(self, other)
        gte(self, other)
        is_equal(self, other)
        is_none(x) [staticmethod]
        is_some(x) [staticmethod]
        lt(self, other)
        lte(self, other)
        money [property:r]
        multiply(self, other)
        na(cls) [classmethod]
        negative(self)
        of(cls, ccy, qty, dov) [classmethod]
        or_else(self, e)
        positive(self)
        qty_map(self, f, e)
        qty_or(self, default)
        qty_or_else(self, e)
        qty_or_none(self)
        qty_or_zero(self)
        round(self, ndigits=0)
        scalar_add(self, other)
        scalar_subtract(self, other)
        subtract(self, other)
        times(self, other)
        undefined [property:r]
        with_ccy(self, ccy)
        with_dov(self, dov)
        with_qty(self, qty)
    ProgrammingError = pypara.commons.errors.ProgrammingError
    class SomeMoney(Money, SomeMoney)
        [tuple fields: ccy, qty, dov]
        __abs__(self)
        __add__(self, other)
        __bool__(self)
        __eq__(self, other)
        __float__(self)
        __floordiv__(self, other)
        __ge__(self, other)
        __gt__(self, other)
        __hash__ = None
        __int__(self)
        __le__(self, other)
        __lt__(self, other)
        __mul__(self, other)
        __neg__(self)
        __pos__(self)
        __slots__ = <tuple>
        __sub__(self, other)
        __truediv__(self, other)
        abs(self)
        add(self, other)
        as_boolean(self)
        as_float(self)
        as_integer(self)
        ccy_or(self, default)
        ccy_or_none(self)
        convert(self, to, asof=None, strict=False)
        defined [property:r]
        dimap(self, f, e)
        divide(self, other)
        dov_or(self, default)
        dov_or_none(self)
        floor_divide(self, other)
        fmap(self, f)
        gt(self, other)
        gte(self, other)
        is_equal(self, other)
        lt(self, other)
        lte(self, other)
        multiply(self, other)
        negative(self)
        or_else(self, e)
        positive(self)
        price [property:r]
        qty_map(self, f, e)
        qty_or(self, default)
        qty_or_else(self, e)
        qty_or_none(self)
        qty_or_zero(self)
        round(self, ndigits=0)
        scalar_add(self, other)
        scalar_subtract(self, other)
        subtract(self, other)
        undefined [property:r]
        with_ccy(self, ccy)
        with_dov(self, dov)
        with_qty(self, qty)
    class SomePrice(Price, SomePrice)
        [tuple fields: ccy, qty, dov]
        __abs__(self)
        __add__(self, other)
        __bool__(self)
        __eq__(self, other)
        __float__(self)
        __floordiv__(self, other)
        __ge__(self, other)
        __gt__(self, other)
        __hash__ = None
        __int__(self)
        __le__(self, other)
        __lt__(self, other)
        __mul__(self, other)
        __neg__(self)
        __pos__(self)
        __slots__ = <tuple>
        __sub__(self, other)
        __truediv__(self, other)
        abs(self)
        add(self, other)
        as_boolean(self)
        as_float(self)
        as_integer(self)
        ccy_or(self, default)
        ccy_or_none(self)
        convert(self, to, asof=None, strict=False)
        defined [property:r]
        dimap(self, f, e)
        divide(self, other)
        dov_or(self, default)
        dov_or_none(self)
        floor_divide(self, other)
        fmap(self, f)
        gt(self, other)
        gte(self, other)
        is_equal(self, other)
        lt(self, other)
        lte(self, other)
        money [property:r]
        multiply(self, other)
        negative(self)
        or_else(self, e)
        positive(self)
        qty_map(self, f, e)
        qty_or(self, default)
        qty_or_else(self, e)
        qty_or_none(self)
        qty_or_zero(self)
        round(self, ndigits=0)
        scalar_add(self, other)
        scalar_subtract(self, other)
        subtract(self, other)
        times(self, other)
        undefined [property:r]
        with_ccy(self, ccy)
        with_dov(self, dov)
        with_qty(self, qty)
    ZERO [Decimal]

