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
↓ 2 callers
Function
module_initialization
( full_name: &str, name: &syn::Ident, ctx: &Ctx, module_exec: TokenStream, is_submodule: b
pyo3-macros-backend/src/module.rs:537
↓ 2 callers
Function
module_introspection_code
( pyo3_crate_path: &PyO3CratePath, name: &str, members: impl IntoIterator<Item = &'a Ident>, m
pyo3-macros-backend/src/introspection.rs:28
↓ 2 callers
Function
module_stub_files
Generates the [type stubs](https://typing.readthedocs.io/en/latest/source/stubs.html) of a given module. It returns a map between the file name and th
pyo3-introspection/src/stubs.rs:17
↓ 2 callers
Method
name
(&self)
pyo3-macros-backend/src/method.rs:76
↓ 2 callers
Function
name_ptr
(name: Option<&CStr>)
src/types/capsule.rs:685
↓ 2 callers
Method
next
(&mut self)
src/types/list.rs:600
↓ 2 callers
Method
next_back
(&mut self)
src/types/tuple.rs:473
↓ 2 callers
Method
next_back
(&mut self)
src/types/list.rs:786
↓ 2 callers
Function
normalize_src_blocks
Strips line:col information from src file references in error messages. e.g. the following block: ``` --> src/impl_/extract_argument.rs:226:8 | 220
tests/test_compile_error.rs:271
↓ 2 callers
Method
nth_back
(&mut self, n: usize)
src/types/list.rs:794
↓ 2 callers
Method
null_terminated_python_name
Null-terminated Python name
pyo3-macros-backend/src/konst.rs:37
↓ 2 callers
Function
opt_to_pyobj
(opt: Option<&Bound<'_, PyTzInfo>>)
src/types/datetime.rs:1019
↓ 2 callers
Function
parse_script_output
(output: &str)
pyo3-build-config/src/impl_.rs:2054
↓ 2 callers
Method
position
(&mut self, mut predicate: P)
src/types/dict.rs:668
↓ 2 callers
Function
positional_only_py
(a, /, b)
pytests/tests/test_pyfunctions.py:90
↓ 2 callers
Function
print_feature_cfgs
Detects features which `pyo3` and `pyo3-ffi` depend upon internally, and prints the appropriate `cargo:rustc-cfg` and `cargo:rustc-check-cfg` directiv
pyo3-build-config/src/lib.rs:275
↓ 2 callers
Function
print_libpython_rpath_link_args
Emit libpython rpath link args if appropriate for the target and interpreter config. This form exists for pyo3-ffi where `get()` cannot be called.
pyo3-build-config/src/lib.rs:293
↓ 2 callers
Method
ptraceback
(&self, py: Python<'py>)
src/err/err_state.rs:174
↓ 2 callers
Method
push
(&mut self, v: usize)
examples/plugin/plugin_api/src/lib.rs:22
↓ 2 callers
Function
py_date_to_naive_date
( py_date: impl core::ops::Deref<Target = impl PyDateAccess>, )
src/conversions/chrono.rs:613
↓ 2 callers
Method
py_super
(&self)
src/types/any.rs:1291
↓ 2 callers
Function
py_time_to_naive_time
( py_time: impl core::ops::Deref<Target = impl PyTimeAccess>, )
src/conversions/chrono.rs:624
↓ 2 callers
Function
pyclass_richcmp
( options: &PyClassPyO3Options, cls: &syn::Type, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:2461
↓ 2 callers
Function
pyclass_richcmp_arms
( options: &PyClassPyO3Options, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:2313
↓ 2 callers
Function
pylong_visit_digits
( obj: Borrowed<'_, '_, PyAny>, f: impl FnOnce(bool, i64, Option<&[u32]>) -> PyResult<R>, )
src/conversions/std/num.rs:457
↓ 2 callers
Function
python_fib
(py: Python<'_>)
src/conversions/num_bigint.rs:547
↓ 2 callers
Method
python_name
(&self)
pyo3-macros-backend/src/pyclass.rs:829
↓ 2 callers
Function
python_zoneinfo
(py: Python<'py>, timezone: &str)
src/conversions/jiff.rs:1057
↓ 2 callers
Method
read_py_attached
(&self, _py: Python<'_>)
src/sync.rs:547
↓ 2 callers
Method
release
Releases the buffer object, freeing the reference to the Python object which owns the buffer. This will automatically be called on drop.
src/buffer.rs:591
↓ 2 callers
Method
required_positional_parameters
(&self)
pyo3-macros-backend/src/pyfunction/signature.rs:294
↓ 2 callers
Method
resize
(&self, len: usize)
src/types/bytearray.rs:302
↓ 2 callers
Method
return_self
(mut self)
pyo3-macros-backend/src/pymethod.rs:1487
↓ 2 callers
Function
run_python_script
Run a python script using the specified interpreter binary.
pyo3-build-config/src/impl_.rs:2560
↓ 2 callers
Method
run_python_script
Run a python script using the [`InterpreterConfig::executable`]. # Panics This function will panic if the [`executable`](InterpreterConfig::executab
pyo3-build-config/src/impl_.rs:870
↓ 2 callers
Function
rustc_minor_version
()
pyo3-build-config/src/lib.rs:315
↓ 2 callers
Function
secondary_slots
(slots: &'static PrimaryModuleSlots)
src/impl_/pymodule.rs:283
↓ 2 callers
Method
self_arg
( &self, cls: Option<&syn::Type>, error_mode: ExtractErrorMode, self_conversio
pyo3-macros-backend/src/method.rs:268
↓ 2 callers
Function
serialize_for_introspection
(expr: &PyStaticExpr, mut output: &mut [u8])
src/inspect.rs:124
↓ 2 callers
Method
set
Set the contents of this config file to the given implementation and version.
noxfile.py:2060
↓ 2 callers
Method
set_error
(&mut self)
src/fmt.rs:113
↓ 2 callers
Method
set_item
Sets the item at the specified index. Raises `IndexError` if the index is out of range.
src/types/list.rs:335
↓ 2 callers
Method
set_option
(&mut self, option: PyClassPyO3Option)
pyo3-macros-backend/src/pyclass.rs:207
↓ 2 callers
Method
setattr
(&self, attr_name: N, value: V)
src/types/any.rs:886
↓ 2 callers
Function
setdefault_result_from_nonerror_return_code
(code: PyResult<core::ffi::c_int>)
src/types/dict.rs:411
↓ 2 callers
Method
shape
(&self)
src/buffer.rs:697
↓ 2 callers
Method
skip_first_rust_argument_in_python_signature
(&self)
pyo3-macros-backend/src/method.rs:245
↓ 2 callers
Function
slice_copy_from_slice
Replacement for `slice::copy_from_slice`, which is const from 1.87
src/impl_/concat.rs:40
↓ 2 callers
Method
slice_pointer_internal
(&self, contiguous: bool)
src/buffer.rs:363
↓ 2 callers
Method
span
(&self)
pyo3-macros-backend/src/pyfunction.rs:161
↓ 2 callers
Method
start
(&self)
src/types/range.rs:75
↓ 2 callers
Method
suppress_build_script_link_lines
Whether to suppress emitting of `cargo:rustc-link-*` lines from the build script.
pyo3-build-config/src/impl_.rs:361
↓ 2 callers
Method
take_error
(&mut self)
src/fmt.rs:103
↓ 2 callers
Method
take_pyo3_options
(&mut self, attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/module.rs:58
↓ 2 callers
Method
take_pyo3_options
(&mut self, attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/pyclass.rs:201
↓ 2 callers
Method
text_signature_call_signature
Creates the parenthesised arguments list for `__text_signature__` snippet based on this spec's signature and/or attributes. Prepend the callable name
pyo3-macros-backend/src/method.rs:1124
↓ 2 callers
Function
timedelta_class
(py: Python<'_>)
src/conversions/std/time.rs:410
↓ 2 callers
Method
to_cargo_dep_env
Serialize the `InterpreterConfig` and print it to the environment for Cargo to pass along to dependent packages during build time. NB: writing to the
pyo3-build-config/src/impl_.rs:813
↓ 2 callers
Method
to_list
(&self)
src/types/tuple.rs:343
↓ 2 callers
Method
to_tokens
(&self, tokens: &mut TokenStream)
pyo3-macros-backend/src/pymethod.rs:2005
↓ 2 callers
Method
too_many_positional_arguments
(&self, args_provided: usize)
src/impl_/extract_argument.rs:844
↓ 2 callers
Function
trampoline_unraisable
(body: F, ctx: *mut ffi::PyObject)
src/impl_/trampoline.rs:367
↓ 2 callers
Method
try_borrow_mut
(&self)
src/instance.rs:612
↓ 2 callers
Method
try_borrow_mut
(&self)
src/pycell/impl_.rs:136
↓ 2 callers
Method
try_fold
(&mut self, init: B, mut f: F)
src/types/list.rs:657
↓ 2 callers
Function
type_checker
(session: nox.Session, command: Iterable[str])
pytests/noxfile.py:76
↓ 2 callers
Function
unescape
(escaped: &str)
pyo3-build-config/src/impl_.rs:2751
↓ 2 callers
Function
unindent_bytes
This is a reimplementation of the `indoc` crate's unindent functionality: 1. Count the leading spaces of each line, ignoring the first line and any l
src/impl_/unindent.rs:12
↓ 2 callers
Function
unix_epoch_py
(py: Python<'_>)
src/conversions/std/time.rs:147
↓ 2 callers
Method
update
(&self, other: &Bound<'_, PyMapping>)
src/types/dict.rs:349
↓ 2 callers
Method
value
(&self)
src/types/float.rs:82
↓ 2 callers
Method
wake_by_ref
(self: &Arc<Self>)
src/coroutine/waker.rs:43
↓ 2 callers
Method
walk_attribute
(&mut self, attribute: &Attribute)
pyo3-introspection/src/stubs.rs:686
↓ 2 callers
Method
walk_function
(&mut self, function: &Function)
pyo3-introspection/src/stubs.rs:695
↓ 2 callers
Method
with_abi_info
(self)
src/impl_/pymodule.rs:396
↓ 2 callers
Method
with_doc
(self, doc: &'static CStr)
src/impl_/pymodule.rs:412
↓ 2 callers
Method
with_gil_used
(self, gil_used: bool)
src/impl_/pymodule.rs:346
↓ 2 callers
Method
with_name
(self, name: &'static CStr)
src/impl_/pymodule.rs:379
↓ 2 callers
Function
wrap_in_runtime_error
(py: Python<'_>, err: PyErr, message: String)
src/impl_/pyclass/lazy_type_object.rs:286
↓ 2 callers
Function
wrap_into_pyobject
As `wrap_into_ptr`, but produces a `PyResult<Py<PyAny>>`. The Python token expression is supplied by the caller.
pyo3-macros-backend/src/quotes.rs:29
↓ 2 callers
Method
write_bytes
(&mut self, bytes: &[u8])
src/types/bytes/writer.rs:104
↓ 2 callers
Function
write_expr_and_move_forward
( value: &PyStaticExpr, output: &'a mut [u8], )
src/inspect.rs:383
↓ 2 callers
Function
write_slice_and_move_forward
(value: &[u8], output: &'a mut [u8])
src/inspect.rs:365
↓ 1 callers
Method
NotImplemented
(self)
src/marker.rs:682
↓ 1 callers
Function
PyAnySet_CheckExact
(ob: *mut PyObject)
pyo3-ffi/src/setobject.rs:71
↓ 1 callers
Function
PyDateTime_DATE_GET_TZINFO
Retrieve the tzinfo component of a `PyDateTime_DateTime`. Returns a pointer to a `PyObject` that should be either NULL or an instance of a `datetime.t
pyo3-ffi/src/datetime.rs:243
↓ 1 callers
Function
PyDateTime_TIME_GET_TZINFO
Retrieve the tzinfo component of a `PyDateTime_Time`. Returns a pointer to a `PyObject` that should be either NULL or an instance of a `datetime.tzinf
pyo3-ffi/src/datetime.rs:293
↓ 1 callers
Function
PyDateTime_TimeZone_UTC
()
pyo3-ffi/src/datetime.rs:638
↓ 1 callers
Function
PyDictItems_Check
(op: *mut PyObject)
pyo3-ffi/src/dictobject.rs:121
↓ 1 callers
Function
PyDictKeys_Check
(op: *mut PyObject)
pyo3-ffi/src/dictobject.rs:109
↓ 1 callers
Function
PyDict_Check
(op: *mut PyObject)
pyo3-ffi/src/dictobject.rs:13
↓ 1 callers
Function
PyDict_CheckExact
(op: *mut PyObject)
pyo3-ffi/src/dictobject.rs:19
↓ 1 callers
Function
PyExceptionClass_Check
(x: *mut PyObject)
pyo3-ffi/src/pyerrors.rs:89
↓ 1 callers
Function
PyFloat_AS_DOUBLE
(op: *mut PyObject)
pyo3-ffi/src/cpython/floatobject.rs:24
↓ 1 callers
Function
PyFrozenDict_Check
(op: *mut PyObject)
pyo3-ffi/src/cpython/dictobject.rs:65
↓ 1 callers
Function
PyFrozenDict_CheckExact
(op: *mut PyObject)
pyo3-ffi/src/cpython/dictobject.rs:59
↓ 1 callers
Function
PyGILState_Ensure
()
pyo3-ffi/src/pystate.rs:105
↓ 1 callers
Function
PyList_GET_ITEM
(op: *mut PyObject, i: Py_ssize_t)
pyo3-ffi/src/cpython/listobject.rs:46
↓ 1 callers
Function
PyList_GET_SIZE
(op: *mut PyObject)
pyo3-ffi/src/cpython/listobject.rs:31
↓ 1 callers
Function
PyList_SET_ITEM
(op: *mut PyObject, i: Py_ssize_t, v: *mut PyObject)
pyo3-ffi/src/cpython/listobject.rs:53
← previous
next →
701–800 of 4,885, ranked by callers