Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aio-libs/multidict
/ functions
Functions
2,179 in github.com/aio-libs/multidict
⨍
Functions
2,179
◇
Types & classes
153
↳
Endpoints
27
↓ 247 callers
Function
any_multidict_class
Return a class object of a mutable multidict implementation.
tests/conftest.py:118
↓ 179 callers
Method
items
(self)
tests/test_multidict.py:3773
↓ 155 callers
Function
cls
Make a callable from multidict module, requested by name.
tests/test_multidict.py:64
↓ 110 callers
Method
keys
(self)
tests/test_multidict.py:3770
↓ 104 callers
Method
add
(self, key: str, value: object)
tests/hypothesis_helpers.py:103
↓ 86 callers
Function
case_insensitive_multidict_class
Return a case-insensitive mutable multidict class.
tests/conftest.py:135
↓ 65 callers
Function
case_sensitive_multidict_class
Return a case-sensitive mutable multidict class.
tests/conftest.py:127
↓ 59 callers
Method
getall
(self, key: str, default: object = None)
tests/test_to_dict.py:184
↓ 55 callers
Method
update
(self, pairs: Iterable[_Pair])
tests/hypothesis_helpers.py:152
↓ 53 callers
Function
case_insensitive_str_class
Return a case-insensitive string class.
tests/conftest.py:143
↓ 51 callers
Method
add
(self, key: str, value: _V)
multidict/_multidict_py.py:1121
↓ 47 callers
Function
get_mod_state
multidict/_testcapi.c:19
↓ 43 callers
Method
extend
(self, pairs: Iterable[_Pair])
tests/hypothesis_helpers.py:181
↓ 43 callers
Function
kind_is_compact
Code reaches a neighbouring entry, an entry's identity and its hash only through these and the accessors in freethreading.h, passing the kind of
multidict/_multilib/htkeys.h:205
↓ 42 callers
Method
watch
(self, md: object, user_data: object)
tests/test_capi.py:718
↓ 40 callers
Method
values
Return a new view of the dictionary's values.
multidict/_multidict_py.py:1046
↓ 37 callers
Method
items
Return a new view of the dictionary's items as ``(key, value)`` pairs.
multidict/_multidict_py.py:1042
↓ 35 callers
Method
copy
Return a copy of itself.
multidict/_multidict_py.py:1127
↓ 34 callers
Method
get
(self, key: str, /)
multidict/_multidict_py.py:1022
↓ 33 callers
Function
any_multidict_proxy_class
Return an immutable multidict implementation class object.
tests/conftest.py:155
↓ 30 callers
Method
drain
Every event so far, emptying the log. Draining also drops the log's own references to the watched multidict, which each recorded even
tests/test_capi.py:724
↓ 28 callers
Method
clear
(self)
tests/hypothesis_helpers.py:188
↓ 25 callers
Function
_keys
(size: int)
benchmarks/operations.py:116
↓ 24 callers
Function
multidict_getversion_callable
Return a ``getversion()`` function for current implementation.
tests/conftest.py:180
↓ 21 callers
Method
to_dict
Return a dict with lists of all values for each key. Deliberately concrete, not abstract: ``MultiMapping`` is public, so requiring a
multidict/_abc.py:45
↓ 20 callers
Method
iter_hash
(self, hash_: int)
multidict/_multidict_py.py:851
↓ 20 callers
Method
setdefault
(self, key: str, default: object)
tests/hypothesis_helpers.py:145
↓ 18 callers
Method
kinds
(self)
tests/test_capi.py:735
↓ 18 callers
Method
merge
(self, pairs: Iterable[_Pair])
tests/hypothesis_helpers.py:184
↓ 17 callers
Function
entry_is_hole
Whether entry is a hole (deleted or never filled). The key is NULL exactly when the identity is, in every kind, for a caller holding md's critic
multidict/_multilib/htkeys.h:239
↓ 17 callers
Method
extend
Extend current MultiDict with more values. This method must be used instead of update.
multidict/_multidict_py.py:1135
↓ 17 callers
Method
popall
(self, key: str)
tests/hypothesis_helpers.py:131
↓ 17 callers
Method
popitem
(self)
tests/hypothesis_helpers.py:140
↓ 17 callers
Method
popone
(self, key: str)
tests/hypothesis_helpers.py:122
↓ 16 callers
Method
_identity
(self, key: str)
multidict/_multidict_py.py:652
↓ 15 callers
Method
getone
(self, key: str, default: object = None)
tests/test_to_dict.py:190
↓ 13 callers
Method
_incr_version
(self)
multidict/_multidict_py.py:1482
↓ 13 callers
Method
iter_entries
(self, reverse: bool = False)
multidict/_multidict_py.py:879
↓ 13 callers
Function
md_key_fits
Whether a compact table of md can hold `key`: a MultiDict's key must be its own identity, a CIMultiDict's an exact istr, whose identity is then
multidict/_multilib/hashtable.h:36
↓ 13 callers
Function
md_len
multidict/_multilib/hashtable.h:932
↓ 13 callers
Method
run
(self, *args: str, write_bytecode: bool = False)
benchmarks/callgrind_driver.py:169
↓ 12 callers
Function
IStr_CheckExact
multidict/multidict_capi.h:46
↓ 12 callers
Method
isdisjoint
(self, other: Iterable[object])
multidict/_multidict_py.py:637
↓ 12 callers
Function
watched_class
(request: pytest.FixtureRequest)
tests/test_watched_benchmarks.py:42
↓ 11 callers
Function
_pairs
(count: int)
tests/test_freelist.py:49
↓ 11 callers
Function
atomic_load_ptr
multidict/_multilib/atomic_helpers.h:121
↓ 11 callers
Function
bump_version
md->version is the cursor into md's own block, advanced under md's critical section, so a mutation touches neither thread-local storage nor a sh
multidict/_multilib/freethreading.h:154
↓ 11 callers
Function
compact_key_hash_ci
multidict/_multilib/htkeys.h:260
↓ 11 callers
Function
compact_key_hash_cs
The hash of a compact entry's identity, read from the key itself: a str's cached hash, or the canonical form's hash an istr keeps, set before th
multidict/_multilib/htkeys.h:249
↓ 11 callers
Function
unicode_hash
Returns the identity's hash, or -1 if hashing raised. */
multidict/_multilib/htkeys.h:702
↓ 10 callers
Function
PyIter_NextItem
multidict/_multilib/pythoncapi_compat.h:1763
↓ 9 callers
Method
__sizeof__
(self)
multidict/_multidict_py.py:732
↓ 9 callers
Function
as_anystr
multidict/_multilib/htkeys.h:45
↓ 9 callers
Function
compact_key_identity_ci
multidict/_multilib/htkeys.h:219
↓ 8 callers
Function
_htkeys_mask
multidict/_multilib/htkeys.h:187
↓ 8 callers
Function
_view_binop
Runs `op` for whichever operand is an items view (`items`) or a keys view, under its multidict's critical section if `lock`. */
multidict/_multilib/views.h:197
↓ 8 callers
Function
atomic_store_ptr
multidict/_multilib/atomic_helpers.h:144
↓ 8 callers
Method
clear
Remove all items from MultiDict.
multidict/_multidict_py.py:1221
↓ 8 callers
Function
compact_key_identity_cs
The identity of a compact entry's key: the key itself in a MultiDict's table (_cs), the istr's canonical in a CIMultiDict's (_ci). */
multidict/_multilib/htkeys.h:213
↓ 8 callers
Method
getall
(self, key: str)
multidict/_multidict_py.py:972
↓ 8 callers
Function
load_value
multidict/_multilib/freethreading.h:211
↓ 8 callers
Method
update
Update the dictionary, overwriting existing keys.
multidict/_multidict_py.py:1386
↓ 7 callers
Function
Py_GetConstant
multidict/_multilib/pythoncapi_compat.h:1268
↓ 7 callers
Method
__init__
(self, arg: object)
tests/test_types.py:206
↓ 7 callers
Function
_multidict_parse_key_default
Binds the (key, default=<missing>) arguments of getall(), getone(), get(), setdefault(), popone(), pop() and popall(). */
multidict/_multidict.c:353
↓ 7 callers
Method
_parse_args
( self, arg: MDArg[_V], kwargs: Mapping[str, _V], )
multidict/_multidict_py.py:1144
↓ 7 callers
Function
get_member_regex
(member)
tools/upgrade_pythoncapi.py:64
↓ 7 callers
Function
md_ensure_key
A stored key was checked to be a str when it went in, so only a CIMultiDict's plain str needs work. */
multidict/_multilib/identity.h:384
↓ 7 callers
Function
md_walk_all
Calls `visitor` once for every live entry, in insertion order. Returns how many entries were visited, or -1 with an exception set. The caller holds
multidict/_multilib/walk.h:76
↓ 7 callers
Function
reflist_init
multidict/_multilib/reflist.h:50
↓ 6 callers
Function
MultiDict_AddWatcher
multidict/multidict_capi.h:254
↓ 6 callers
Method
__init__
(self)
tests/test_multidict.py:3706
↓ 6 callers
Method
__length_hint__
(self)
tests/test_multidict.py:3900
↓ 6 callers
Method
__new__
(cls, *args: object, **kwargs: object)
tests/test_multidict.py:130
↓ 6 callers
Method
_add_with_hash
(self, entry: _Entry[_V], absent: bool = False)
multidict/_multidict_py.py:1519
↓ 6 callers
Function
_ci_items
(md: Any)
tests/test_table_kinds.py:211
↓ 6 callers
Function
_iter_lock
Return the lock a view iterator over `md` should take per step.
multidict/_multidict_py.py:88
↓ 6 callers
Method
_parse_item
(self, arg: tuple[str, _V] | _T)
multidict/_multidict_py.py:281
↓ 6 callers
Function
_type_error_to_notimplemented
The answer of a set operator to an operand it cannot iterate over. */
multidict/_multilib/views.h:176
↓ 6 callers
Function
add_used
multidict/_multilib/freethreading.h:71
↓ 6 callers
Method
getone
(self, key: str)
multidict/_multidict_py.py:998
↓ 6 callers
Function
istr_canonical
multidict/_multilib/istr_object.h:20
↓ 6 callers
Method
keys
Return a new view of the dictionary's keys.
multidict/_multidict_py.py:1038
↓ 6 callers
Function
md_calc_identity_hash
Reads only `key`, md->is_ci and md->state, all fixed for md's lifetime, so the caller need not hold md's critical section. */
multidict/_multilib/identity.h:335
↓ 6 callers
Function
md_check_version
Returns -1 with RuntimeError set if md was mutated, or got a new table, since `version` was read from it; 0 otherwise. */
multidict/_multilib/dict.h:87
↓ 5 callers
Method
__init__
(self, arg: MDArg[_V] = None, /, **kwargs: _V)
multidict/_multidict_py.py:941
↓ 5 callers
Method
_indices
(self, key: str)
tests/hypothesis_helpers.py:93
↓ 5 callers
Method
add
(self, key: str, value: int)
tests/test_hypothesis_multidict.py:59
↓ 5 callers
Function
case_sensitive_multidict_proxy_class
Return a case-sensitive immutable multidict class.
tests/conftest.py:164
↓ 5 callers
Function
check_for_leak
()
tests/isolated/multidict_pop.py:34
↓ 5 callers
Function
estimate_log2_keysize
estimate_keysize is reverse function of USABLE_FRACTION. * * This can be used to reserve enough size to insert n entries without * resizing. */
multidict/_multilib/htkeys.h:492
↓ 5 callers
Function
htkeys_new_unfilled
An empty table whose entries are left as they came, for a caller that writes the front of the array itself and calls htkeys_zero_entries() for t
multidict/_multilib/htkeys.h:651
↓ 5 callers
Function
htkeys_zero_entries
Zeroes the entries from `from` on. A caller that fills the front of the table itself needs this for the rest: ASSERT_CONSISTENT() reads every en
multidict/_multilib/htkeys.h:638
↓ 5 callers
Function
md_add_with_hash
multidict/_multilib/hashtable.h:1190
↓ 5 callers
Function
md_calc_identity
multidict/_multilib/identity.h:226
↓ 5 callers
Function
md_identity_or_new
md_borrow_identity() for a call that computes the identity when it cannot borrow it, with each test of the key run once: the identity is borrowe
multidict/_multilib/identity.h:279
↓ 5 callers
Function
md_identity_release
Drops the identity md_identity_or_new() handed out if it is a new reference: only the key itself and an exact istr's canonical are borrowed. */
multidict/_multilib/identity.h:297
↓ 5 callers
Function
md_repr
multidict/_multilib/repr.h:173
↓ 5 callers
Function
reflist_clear
Decrefs every collected ref; `lst` is empty again afterwards
multidict/_multilib/reflist.h:198
↓ 5 callers
Method
unwatch
(self, md: object)
tests/test_capi.py:721
next →
1–100 of 2,179, ranked by callers