libdnf5.common
- class libdnf5.common.EmptyMessage(*args)
Class for passing an empty message.
- format(translate, locale=None)
Returns empty string
- Parameters:
translate (boolean) – ignored
locale (libdnf5::utils::Locale, optional) – ignored
- Return type:
string
- Returns:
empty string object
- thisown
- class libdnf5.common.MapStringMapStringString(*args)
- asdict()
- begin()
- clear()
- count(x)
- empty()
- end()
- erase(*args)
- find(x)
- get_allocator()
- has_key(key)
- items()
- iterator()
- iteritems()
- iterkeys()
- itervalues()
- key_iterator()
- keys()
- lower_bound(x)
- rbegin()
- rend()
- size()
- swap(v)
- thisown
- upper_bound(x)
- value_iterator()
- values()
- class libdnf5.common.MapStringPairStringString(*args)
- asdict()
- begin()
- clear()
- count(x)
- empty()
- end()
- erase(*args)
- find(x)
- get_allocator()
- has_key(key)
- items()
- iterator()
- iteritems()
- iterkeys()
- itervalues()
- key_iterator()
- keys()
- lower_bound(x)
- rbegin()
- rend()
- size()
- swap(v)
- thisown
- upper_bound(x)
- value_iterator()
- values()
- class libdnf5.common.MapStringString(*args)
- asdict()
- begin()
- clear()
- count(x)
- empty()
- end()
- erase(*args)
- find(x)
- get_allocator()
- has_key(key)
- items()
- iterator()
- iteritems()
- iterkeys()
- itervalues()
- key_iterator()
- keys()
- lower_bound(x)
- rbegin()
- rend()
- size()
- swap(v)
- thisown
- upper_bound(x)
- value_iterator()
- values()
- class libdnf5.common.Message(*args, **kwargs)
A base class for passing a message whose formatting, including localization (translation, argument format) is done at the destination. Usage: The user creates a child of this class and implements the format method.
- format(translate, locale=None)
Formats the contained message according to the specified arguments and returns the result as a string.
- Parameters:
translate (boolean) – If true, it will attempt to translate the message to the requested locale.
locale (libdnf5::utils::Locale, optional) – requested locale for translation and argument formating, nullptr = use global/thread locale
- Return type:
string
- Returns:
A string object holding the formatted result.
- thisown
- class libdnf5.common.PreserveOrderMapStringPreserveOrderMapStringString
PreserveOrderMap is an associative container that contains key-value pairs with unique unique keys. It is similar to standard std::map. But it preserves the order of items and the complexity is linear.
- at(*args)
- begin(*args)
- capacity()
- cbegin()
- cend()
- clear()
- count(key)
- crbegin()
- crend()
- empty()
- end(*args)
- erase(*args)
- find(*args)
- insert(value)
- max_size()
- rbegin(*args)
- rend(*args)
- reserve(new_capacity)
- shrink_to_fit()
- size()
- thisown
- class libdnf5.common.PreserveOrderMapStringString
PreserveOrderMap is an associative container that contains key-value pairs with unique unique keys. It is similar to standard std::map. But it preserves the order of items and the complexity is linear.
- at(*args)
- begin(*args)
- capacity()
- cbegin()
- cend()
- clear()
- count(key)
- crbegin()
- crend()
- empty()
- end(*args)
- erase(*args)
- find(*args)
- insert(value)
- max_size()
- rbegin(*args)
- rend(*args)
- reserve(new_capacity)
- shrink_to_fit()
- size()
- thisown
- libdnf5.common.QueryCmp_CONTAINS
Case-sensitive containment match. Applicable to strings.
- libdnf5.common.QueryCmp_ENDSWITH
Case-sensitive ends-with match. Applicable to strings.
- libdnf5.common.QueryCmp_EQ
Equal. The same as EXACT. Applicable to numbers.
- libdnf5.common.QueryCmp_EXACT
Case-sensitive exact match. The same as EQ. Applicable to strings.
- libdnf5.common.QueryCmp_GLOB
Case-sensitive glob match. Applicable to strings.
- libdnf5.common.QueryCmp_GT
Greater than. Applicable to numbers.
- libdnf5.common.QueryCmp_GTE
Greater than or equal to. Applicable to numbers.
- libdnf5.common.QueryCmp_ICASE
Case-insensitive modifier. Must be used with a match.
- libdnf5.common.QueryCmp_ICONTAINS
Case-insensitive containment match. Applicable to strings.
- libdnf5.common.QueryCmp_IENDSWITH
Case-insensitive ends-with match. Applicable to strings.
- libdnf5.common.QueryCmp_IEXACT
Case-insensitive exact match. Applicable to strings.
- libdnf5.common.QueryCmp_IGLOB
Case-insensitive glob match. Applicable to strings.
- libdnf5.common.QueryCmp_IREGEX
Case-insensitive regular expression match. Applicable to strings.
- libdnf5.common.QueryCmp_ISNULL
Value is NULL/None.
- libdnf5.common.QueryCmp_ISTARTSWITH
Case-insensitive starts-with match. Applicable to strings.
- libdnf5.common.QueryCmp_LT
Less than. Applicable to numbers.
- libdnf5.common.QueryCmp_LTE
Less than or equal to. Applicable to numbers.
- libdnf5.common.QueryCmp_NEQ
Not equal. The same as NOT_EXACT. Applicable to numbers.
- libdnf5.common.QueryCmp_NOT
Negation modifier. Must be used with a match.
- libdnf5.common.QueryCmp_NOT_CONTAINS
Negative case-sensitive containment match. Applicable to strings.
- libdnf5.common.QueryCmp_NOT_EXACT
Negative case-sensitive exact match. The same as NEQ. Applicable to strings.
- libdnf5.common.QueryCmp_NOT_GLOB
Negative case-sensitive glob match. Applicable to strings.
- libdnf5.common.QueryCmp_NOT_ICONTAINS
Negative case-insensitive containment match. Applicable to strings.
- libdnf5.common.QueryCmp_NOT_IEXACT
Negative case-insensitive exact match. Applicable to strings.
- libdnf5.common.QueryCmp_NOT_IGLOB
Negative case-insensitive glob match. Applicable to strings.
- libdnf5.common.QueryCmp_REGEX
Case-sensitive regular expression match. Applicable to strings.
- libdnf5.common.QueryCmp_STARTSWITH
Case-sensitive starts-with match. Applicable to strings.
- class libdnf5.common.SetString(*args)
- add(x)
- append(x)
- begin()
- clear()
- count(x)
- discard(x)
- empty()
- end()
- equal_range(x)
- erase(*args)
- find(x)
- insert(__x)
- iterator()
- lower_bound(x)
- rbegin()
- rend()
- size()
- swap(v)
- thisown
- upper_bound(x)
- class libdnf5.common.SwigPyIterator(*args, **kwargs)
- advance(n)
- copy()
- decr(n=1)
- distance(x)
- equal(x)
- incr(n=1)
- next()
- previous()
- thisown
- value()
- class libdnf5.common.VectorPairStringString(*args)
- append(x)
- assign(n, x)
- back()
- begin()
- capacity()
- clear()
- empty()
- end()
- erase(*args)
- front()
- get_allocator()
- insert(*args)
- iterator()
- pop()
- pop_back()
- push_back(x)
- rbegin()
- rend()
- reserve(n)
- size()
- swap(v)
- thisown
- class libdnf5.common.VectorString(*args)
- append(x)
- assign(n, x)
- back()
- begin()
- capacity()
- clear()
- empty()
- end()
- erase(*args)
- front()
- get_allocator()
- insert(*args)
- iterator()
- pop()
- pop_back()
- push_back(x)
- rbegin()
- rend()
- reserve(n)
- size()
- swap(v)
- thisown
- libdnf5.common.create_attributes_from_getters_and_setters(cls)
- libdnf5.common.cvar
- libdnf5.common.match_int64(*args)
- libdnf5.common.match_string(*args)
- libdnf5.common.msg_err_exact_one_object