Auswertungs-Globals¶
Dies sind die sicheren, in der Implementierung registrierten Globals für Ausdrücke. Sie stehen in script=-Ausdrücken zur Verfügung; diese Seite zeigt den tatsächlichen Vertrag statt einer manuell gepflegten Teilmenge.
Anwendungsfall¶
Verwende diese Namen direkt in script=-Ausdrücken. Der Guide zur Ausdrucksauswertung enthält vollständige Anwendungsfälle; Import-Anweisungen und nicht gelistete Globals werden nicht unterstützt.
Funktionen¶
abs¶
Zweck: Return the absolute value of the argument.
Signatur: (x, /)
add_days¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime', amount: 'int') -> 'datetime'
add_hours¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime', amount: 'int') -> 'datetime'
add_minutes¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime', amount: 'int') -> 'datetime'
add_months¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime', amount: 'int') -> 'datetime'
add_seconds¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime', amount: 'int') -> 'datetime'
add_weeks¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime', amount: 'int') -> 'datetime'
add_years¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime', amount: 'int') -> 'datetime'
all¶
Zweck: Return True if bool(x) is True for all values x in the iterable.
Signatur: (iterable, /)
any¶
Zweck: Return True if bool(x) is True for any x in the iterable.
Signatur: (iterable, /)
bin¶
Zweck: Return the binary representation of an integer.
Signatur: (number, /)
date_offset¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime', duration: 'str') -> 'datetime'
divmod¶
Zweck: Return the tuple (x//y, x%y). Invariant: div*y + mod == x.
Signatur: (x, y, /)
end_of_day¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime') -> 'datetime'
end_of_month¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime') -> 'datetime'
end_of_year¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime') -> 'datetime'
hex¶
Zweck: Return the hexadecimal representation of an integer.
Signatur: (number, /)
isinstance¶
Zweck: Return whether an object is an instance of a class or of a subclass thereof.
Signatur: (obj, class_or_tuple, /)
len¶
Zweck: Return the number of items in a container.
Signatur: (obj, /)
max¶
Zweck: max(iterable, *[, default=obj, key=func]) -> value
min¶
Zweck: min(iterable, *[, default=obj, key=func]) -> value
now_utc¶
Zweck: Return the current UTC datetime.
Signatur: () -> '_datetime.datetime'
oct¶
Zweck: Return the octal representation of an integer.
Signatur: (number, /)
pow¶
Zweck: Equivalent to baseexp with 2 arguments or baseexp % mod with 3 arguments
Signatur: (base, exp, mod=None)
reduce¶
Zweck: reduce(function, iterable[, initial]) -> value
round¶
Zweck: Round a number to a given precision in decimal digits.
Signatur: (number, ndigits=None)
sorted¶
Zweck: Return a new list containing all items from the iterable in ascending order.
Signatur: (iterable, /, *, key=None, reverse=False)
start_of_day¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime') -> 'datetime'
start_of_month¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime') -> 'datetime'
start_of_year¶
Zweck: Von der Runtime bereitgestellter sicherer Ausdruckstyp function.
Signatur: (value: 'datetime') -> 'datetime'
sum¶
Zweck: Return the sum of a 'start' value (default: 0) plus an iterable of numbers
Signatur: (iterable, /, start=0)
today¶
Zweck: Return the current local date (live wall-clock).
Signatur: () -> '_datetime.date'
type¶
Zweck: Read-only type introspection; blocks the 3-argument class factory form.
Signatur: Akzeptiert oder liefert dynamische Python-Werte; die konkrete Form wird zur Auswertungszeit bestimmt.
type_name¶
Zweck: Return the runtime type name without exposing the class factory form.
Signatur: Akzeptiert oder liefert dynamische Python-Werte; die konkrete Form wird zur Auswertungszeit bestimmt.
Module und Namespaces¶
base64¶
Zweck: Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings
Mitglieder: b64encode, b64decode, urlsafe_b64encode, urlsafe_b64decode
bisect¶
Zweck: Bisection algorithms.
calendar¶
Zweck: Calendar printing functions
Mitglieder: month_name, day_name, isleap, monthrange
collections¶
Zweck: This module implements specialized container datatypes providing
Mitglieder: OrderedDict, defaultdict, Counter, namedtuple, deque
datetime¶
Zweck: Fast implementation of the datetime type.
Mitglieder: datetime, date, time, timedelta, timezone, UTC
decimal¶
Zweck: C decimal arithmetic module
Mitglieder: Decimal, ROUND_HALF_UP
dm¶
Zweck: DATAMIMIC utility functions
Mitglieder: clamp, coalesce, random_datetime, random_ip, randstr, short_uuid, slugify, ulid, urlencode
functools¶
Zweck: functools.py - Tools for working with functions and callable objects
Mitglieder: reduce, partial, lru_cache
hashlib¶
Zweck: hashlib module - A common interface to many hash functions.
Mitglieder: md5, sha256, sha512
heapq¶
Zweck: Heap queue algorithm (a.k.a. priority queue).
hmac¶
Zweck: HMAC (Keyed-Hashing for Message Authentication) module.
Mitglieder: new, compare_digest
ipaddress¶
Zweck: A fast, lightweight IPv4/IPv6 manipulation library in Python.
Mitglieder: ip_address, ip_network
itertools¶
Zweck: Functional tools for creating and using iterators.
Mitglieder: chain, cycle, repeat, islice, product, combinations, permutations, groupby
json¶
Zweck: JSON (JavaScript Object Notation) https://json.org is a subset of
Mitglieder: dumps, loads
math¶
Zweck: This module provides access to the mathematical functions
Mitglieder: ceil, floor, sqrt, sin, cos, tan, log, log10, log2, exp, hypot, degrees, radians, fabs, pi, e
operator¶
Zweck: Operator interface.
Mitglieder: itemgetter, attrgetter
random¶
Zweck: Random variable generators.
Mitglieder: random, randint, randrange, choice, choices, uniform, shuffle, sample
re¶
Zweck: Support for regular expressions (RE).
Mitglieder: compile, match, search, sub, findall, split
statistics¶
Zweck: Basic statistics module.
Mitglieder: mean, median, mode, stdev, variance
string¶
Zweck: A collection of string constants.
Mitglieder: ascii_letters, digits, ascii_lowercase, ascii_uppercase, punctuation
time¶
Zweck: This module provides various functions to manipulate time values.
Mitglieder: time, sleep, monotonic
urllib_parse¶
Zweck: Parse (absolute and relative) URLs.
Mitglieder: urlencode, urlparse, parse_qs
uuid¶
Zweck: UUID objects (universally unique identifiers) according to RFC 4122.
Mitglieder: uuid4, uuid1, UUID
Typen und Werte¶
Decimal¶
Zweck: Construct a new Decimal object. 'value' can be an integer, string, tuple,
Faker¶
Zweck: Proxy class capable of supporting multiple locales
Fraction¶
Zweck: This class implements rational numbers.
PurePath¶
Zweck: Base class for manipulating paths without I/O.
ROUND_HALF_UP¶
Zweck: str(object='') -> str
ZoneInfo¶
Zweck: Abstract base class for time zone info objects.
bool¶
Zweck: bool(x) -> bool
dict¶
Zweck: dict() -> new empty dictionary
enumerate¶
Zweck: Return an enumerate object.
fake¶
Zweck: Proxy class capable of supporting multiple locales
filter¶
Zweck: filter(function or None, iterable) --> filter object
float¶
Zweck: Convert a string or number to a floating point number, if possible.
int¶
Zweck: int([x]) -> integer
list¶
Zweck: Built-in mutable sequence.
map¶
Zweck: map(func, *iterables) --> map object
range¶
Zweck: range(stop) -> range object
reversed¶
Zweck: Return a reverse iterator over the values of the given sequence.
set¶
Zweck: set() -> new empty set object
str¶
Zweck: str(object='') -> str
tuple¶
Zweck: Built-in immutable sequence.
zip¶
Zweck: zip(*iterables, strict=False) --> Yield tuples until an input is exhausted.