Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyO3/pyo3
/ functions
Functions
4,885 in github.com/PyO3/pyo3
⨍
Functions
4,885
◇
Types & classes
1,305
↳
Endpoints
2
↓ 1 callers
Function
run_code
()
pyo3-ffi/examples/sequential/tests/test.rs:122
↓ 1 callers
Method
run_python_script_with_envs
Run a python script using the [`InterpreterConfig::executable`] with additional environment variables (e.g. PYTHONPATH) set. # Panics This function
pyo3-build-config/src/impl_.rs:884
↓ 1 callers
Function
sanitize_stable_abi_version
( stable_abi_version: Option<PythonVersion>, version: PythonVersion, )
pyo3-build-config/src/impl_.rs:77
↓ 1 callers
Function
say_hello
()
examples/decorator/tests/example.py:5
↓ 1 callers
Function
search_lib_dir
recursive search for _sysconfigdata, returns all possibilities of sysconfigdata paths
pyo3-build-config/src/impl_.rs:2249
↓ 1 callers
Function
search_sequential
(contents: &str, needle: &str)
examples/word-count/src/lib.rs:15
↓ 1 callers
Method
self_conversion_policy
(mut self, policy: SelfConversionPolicy)
pyo3-macros-backend/src/pymethod.rs:1786
↓ 1 callers
Function
sequential_clear
(module: *mut PyObject)
pyo3-ffi/examples/sequential/src/module.rs:99
↓ 1 callers
Method
serialize
(self, pyo3_crate_path: &PyO3CratePath)
pyo3-macros-backend/src/introspection.rs:388
↓ 1 callers
Method
serialize_elts
(&self, elts: &[Expr], buffer: &mut String)
pyo3-introspection/src/stubs.rs:623
↓ 1 callers
Function
serialize_type_hint
(hint: TokenStream, pyo3_crate_path: &PyO3CratePath)
pyo3-macros-backend/src/introspection.rs:508
↓ 1 callers
Function
serialized_container_len_for_introspection
(elts: &[PyStaticExpr])
src/inspect.rs:410
↓ 1 callers
Function
serialized_len_for_introspection
(expr: &PyStaticExpr)
src/inspect.rs:225
↓ 1 callers
Method
set_ascii
(&mut self, val: c_uint)
pyo3-ffi/src/cpython/unicodeobject.rs:210
↓ 1 callers
Method
set_bit
(&mut self, index: usize, val: bool)
pyo3-ffi/src/cpython/unicodeobject.rs:58
↓ 1 callers
Method
set_compact
(&mut self, val: c_uint)
pyo3-ffi/src/cpython/unicodeobject.rs:198
↓ 1 callers
Method
set_context
Set the context associated with the exception, pass `None` to clear it.
src/err/mod.rs:625
↓ 1 callers
Method
set_crate
(&mut self, path: CrateAttribute)
pyo3-macros-backend/src/pyimpl.rs:71
↓ 1 callers
Function
set_data
(data: &Mutex<Py<PyByteArray>>, new: Bound<'_, PyByteArray>)
src/types/bytearray.rs:519
↓ 1 callers
Method
set_default
(&self, key: K, default_value: V)
src/types/dict.rs:361
↓ 1 callers
Method
set_default_with_result
( &self, key: K, default_value: V, )
src/types/dict.rs:382
↓ 1 callers
Method
set_interned
(&mut self, val: c_uint)
pyo3-ffi/src/cpython/unicodeobject.rs:174
↓ 1 callers
Method
set_is_basetype
(mut self, is_basetype: bool)
src/pyclass/create_type_object.rs:309
↓ 1 callers
Method
set_item
(&self, key: K, value: V)
src/types/mapping.rs:149
↓ 1 callers
Method
set_kind
(&mut self, val: c_uint)
pyo3-ffi/src/cpython/unicodeobject.rs:186
↓ 1 callers
Function
set_module_attribute
(attrs: &mut Vec<syn::Attribute>, module_name: &str)
pyo3-macros-backend/src/module.rs:722
↓ 1 callers
Method
set_name
(&mut self, name: NameAttribute)
pyo3-macros-backend/src/konst.rs:93
↓ 1 callers
Method
set_option
(&mut self, option: ContainerAttribute)
pyo3-macros-backend/src/derive_attributes.rs:75
↓ 1 callers
Method
set_ptraceback
(&self, py: Python<'py>, tb: Option<Bound<'py, PyTraceback>>)
src/err/err_state.rs:191
↓ 1 callers
Method
set_ready
(&mut self, val: c_uint)
pyo3-ffi/src/cpython/unicodeobject.rs:244
↓ 1 callers
Method
set_result
(&self, py: Python<'_>)
src/coroutine/waker.rs:71
↓ 1 callers
Method
set_slice
(&self, i1: usize, i2: usize, v: &Bound<'_, PyAny>)
src/types/sequence.rs:252
↓ 1 callers
Method
set_slice
(&self, low: usize, high: usize, seq: &Bound<'_, PyAny>)
src/types/list.rs:358
↓ 1 callers
Function
set_span_recursively
(tokens: TokenStream, span: Span)
pyo3-macros-backend/src/utils.rs:349
↓ 1 callers
Method
set_statically_allocated
(&mut self, val: c_uint)
pyo3-ffi/src/cpython/unicodeobject.rs:227
↓ 1 callers
Function
should_use_raw_dylib_linking
Whether to use raw-dylib linking. Currently, this only applies if all of the following are true: - The target OS is Windows. - The Python library nam
pyo3-ffi/build.rs:236
↓ 1 callers
Function
simple_args_kwargs_py
(a, b=None, *args, c=None, **kwargs)
pytests/tests/test_pyfunctions.py:62
↓ 1 callers
Function
simple_args_py
(a, b=None, *args, c=None)
pytests/tests/test_pyfunctions.py:34
↓ 1 callers
Function
simple_enum_default_methods
( cls: &'a syn::Ident, unit_variant_names: impl IntoIterator< Item = (&'a syn::Ident, Cow<'a,
pyo3-macros-backend/src/pyclass.rs:1865
↓ 1 callers
Function
simple_kwargs_py
(a, b=None, c=None, **kwargs)
pytests/tests/test_pyfunctions.py:48
↓ 1 callers
Function
simple_py
(a, b=None, *, c=None)
pytests/tests/test_pyfunctions.py:20
↓ 1 callers
Method
size_hint
(&self)
src/types/frozenset.rs:225
↓ 1 callers
Method
size_hint
(&self)
src/types/iterator.rs:121
↓ 1 callers
Method
size_hint
(&self)
src/types/list.rs:617
↓ 1 callers
Method
size_hint
(&self)
src/types/set.rs:256
↓ 1 callers
Function
slugify
Convert a term to a URL-friendly anchor slug.
guide/glossary_linker.py:25
↓ 1 callers
Function
some_wrap
(obj: TokenStream, ctx: &Ctx)
pyo3-macros-backend/src/quotes.rs:5
↓ 1 callers
Function
spawn_dropper
A detached thread trickling drops into the pool, as a real workload would.
pyo3-benches/benches/bench_attach_scaling.rs:72
↓ 1 callers
Function
spin_freelist
(py: Python<'_>, data: usize)
tests/test_gc.rs:57
↓ 1 callers
Function
standard_element_type_from_type_char
(type_char: u8)
src/buffer.rs:182
↓ 1 callers
Function
starts_with
(entry: &DirEntry, pat: &str)
pyo3-build-config/src/impl_.rs:2114
↓ 1 callers
Method
static_method
()
pytests/src/pyclasses.rs:268
↓ 1 callers
Method
step
(&self)
src/types/range.rs:83
↓ 1 callers
Method
stop
(&self)
src/types/range.rs:79
↓ 1 callers
Method
strides
(&self)
src/buffer.rs:706
↓ 1 callers
Function
submit_methods_inventory
( ty: &syn::Type, methods: Vec<TokenStream>, proto_impls: Vec<TokenStream>, ctx: &Ctx, )
pyo3-macros-backend/src/pyimpl.rs:373
↓ 1 callers
Function
submodule
(module: &Bound<'_, PyModule>)
tests/test_module.rs:349
↓ 1 callers
Function
submodule_with_init_fn
(module: &Bound<'_, PyModule>)
tests/test_module.rs:355
↓ 1 callers
Method
suboffsets
(&self)
src/buffer.rs:716
↓ 1 callers
Method
take
(py: Python<'_>)
src/err/err_state.rs:205
↓ 1 callers
Function
take_ident
(read: &mut &str, tracker: &mut usize)
pyo3-macros-backend/src/attributes.rs:78
↓ 1 callers
Function
take_int
(read: &mut &str, tracker: &mut usize)
pyo3-macros-backend/src/attributes.rs:61
↓ 1 callers
Function
test
(session: nox.Session)
noxfile.py:104
↓ 1 callers
Function
test_not_send_detach
(py: Python<'_>)
tests/ui/not_send.rs:4
↓ 1 callers
Function
test_py
(session: nox.Session)
noxfile.py:194
↓ 1 callers
Function
test_rust
(session: nox.Session)
noxfile.py:110
↓ 1 callers
Method
text_signature
(&self, self_argument: Option<&str>)
pyo3-macros-backend/src/pyfunction/signature.rs:609
↓ 1 callers
Method
throw
(&mut self, py: Python<'_>, exc: Py<PyAny>)
src/coroutine.rs:152
↓ 1 callers
Method
timezone
Equivalent to `zoneinfo.ZoneInfo` constructor
src/types/datetime.rs:873
↓ 1 callers
Method
to_array
(&self)
src/conversions/std/num.rs:316
↓ 1 callers
Method
to_kwargs_mut
(&mut self)
pyo3-macros-backend/src/method.rs:130
↓ 1 callers
Method
to_tuple
Return a new tuple containing the contents of the list; equivalent to the Python expression `tuple(list)`. This method is equivalent to `self.as_sequ
src/types/list.rs:453
↓ 1 callers
Method
to_varargs_mut
(&mut self)
pyo3-macros-backend/src/method.rs:108
↓ 1 callers
Function
tp_dealloc
Implementation of tp_dealloc. # Safety - `slf` must be a valid pointer to an instance of the type at `type_obj` or a subclass. - `slf` must not be use
src/pycell/impl_.rs:283
↓ 1 callers
Method
traverse_dict
(&self, visit: ffi::visitproc, arg: *mut c_void)
src/impl_/pyclass.rs:141
↓ 1 callers
Function
traverse_eq
(f: Option<ffi::traverseproc>, g: ffi::traverseproc)
src/impl_/pymethods.rs:510
↓ 1 callers
Method
try_borrow
(&self)
src/pycell/impl_.rs:128
↓ 1 callers
Method
try_borrow_mut
(obj: &'a Py<T>)
src/pyclass/guard.rs:629
↓ 1 callers
Function
try_date
(year: i16, month: i8, day: i8)
src/conversions/jiff.rs:1077
↓ 1 callers
Method
try_fold
(&mut self, init: B, mut f: F)
src/types/dict.rs:583
↓ 1 callers
Method
try_init
(&self, py: Python<'py>)
src/impl_/pyclass/lazy_type_object.rs:70
↓ 1 callers
Function
try_init_once_cell_py_attached
( cell: &'a once_cell::sync::OnceCell<T>, _py: Python<'_>, f: F, )
src/sync/once_lock.rs:195
↓ 1 callers
Function
try_install_binary
(package: str, constraint: str)
pytests/noxfile.py:24
↓ 1 callers
Function
try_new_from_iter
( py: Python<'py>, mut elements: impl ExactSizeIterator<Item = PyResult<Bound<'py, PyAny>>>, )
src/types/tuple.rs:36
↓ 1 callers
Method
try_rfold
(&mut self, init: B, mut f: F)
src/types/list.rs:820
↓ 1 callers
Function
try_time
(hour: i8, min: i8, sec: i8, micro: i32)
src/conversions/jiff.rs:1084
↓ 1 callers
Method
ty
(&self)
pyo3-macros-backend/src/method.rs:86
↓ 1 callers
Method
type_doc
(mut self, type_doc: &'static CStr)
src/pyclass/create_type_object.rs:330
↓ 1 callers
Function
type_object_init_failed
(py: Python<'_>, err: PyErr, type_name: &str)
src/impl_/pyclass/lazy_type_object.rs:269
↓ 1 callers
Function
typing_or_extensions_if_not_3_15
The module to import `typing` features new in Python 3.15 from: `typing` itself when targeting 3.15 or newer, `typing_extensions` otherwise.
src/impl_/introspection.rs:60
↓ 1 callers
Method
tzname
(self, dt)
pytests/tests/test_datetime.py:22
↓ 1 callers
Method
unexpected_keyword_argument
(&self, argument: PyArg<'_>)
src/impl_/extract_argument.rs:877
↓ 1 callers
Function
unhex
(hex: u8)
pyo3-build-config/src/impl_.rs:2757
↓ 1 callers
Method
uninstall
(&self, py: Python<'_>)
tests/test_utils/mod.rs:217
↓ 1 callers
Function
unique_element_id
()
pyo3-macros-backend/src/introspection.rs:646
↓ 1 callers
Method
unpack
(self)
src/types/dict.rs:836
↓ 1 callers
Function
unwrap_ty_group
(mut ty: &syn::Type)
pyo3-macros-backend/src/utils.rs:186
↓ 1 callers
Method
update_if_missing
(&self, other: &Bound<'_, PyMapping>)
src/types/dict.rs:355
↓ 1 callers
Method
utcoffset
(self, dt)
pytests/tests/test_datetime.py:16
↓ 1 callers
Method
value
(&self)
tests/test_coroutine.rs:426
← previous
next →
1,301–1,400 of 4,885, ranked by callers