A library implementing C++’s custom literal suffixes using pure Python

A module implementing custom literal suffixes using pure Python. custom-literals
mimics C++’s user-defined literals (UDLs) by defining literal suffixes that can
be accessed as attributes of literal values, such as numeric constants, string
literals and more.
(c) RocketRace 2022-present. See LICENSE file for more.
See the examples/
directory for more.
Function decorator syntax:
from custom_literals import literal
from datetime import timedelta
@literal(float, int, name="s")
def seconds(self):
return timedelta(seconds=self)
@