MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

↓ 5 callersFunctionpython_utc
(py: Python<'_>)
src/conversions/chrono.rs:1241
↓ 5 callersFunctionrun_context_switch
(py: Python<'_>)
src/types/context.rs:452
↓ 5 callersMethodset
Set the value in the cell. If the cell has already been written, `Err(value)` will be returned containing the new value which was not written.
src/sync.rs:148
↓ 5 callersFunctionsum_as_string
( _self: *mut PyObject, args: *mut *mut PyObject, nargs: Py_ssize_t, )
pyo3-ffi/examples/string-sum/src/lib.rs:141
↓ 5 callersMethodto_vec
(&self)
src/conversions/std/num.rs:309
↓ 5 callersFunctiontraverse_object
Traverse `obj` with the given `visitor` function. This is guaranteed to not temporarily release the thread state as long as `visitor` cannot; which al
tests/test_gc.rs:1174
↓ 5 callersMethodtry_iter
(&'a self)
src/types/mappingproxy.rs:121
↓ 5 callersMethodtry_with
(&'static self, f: F)
src/platform/thread/thread_local.rs:67
↓ 5 callersFunctionunindent
Equivalent of the `unindent!` macro, but works at runtime.
src/impl_/unindent.rs:172
↓ 5 callersFunctionuse_pyo3_cfgs
.
pyo3-build-config/src/lib.rs:42
↓ 5 callersMethodwrite_str
(&mut self, s: &str)
src/fmt.rs:121
↓ 4 callersFunctionPySlot_DATA
(NAME: c_int, VALUE: *mut c_void)
pyo3-ffi/src/slots.rs:62
↓ 4 callersFunctionPyType_HasFeature
(ty: *mut PyTypeObject, feature: c_ulong)
pyo3-ffi/src/object.rs:723
↓ 4 callersFunctionPyUnicode_DATA
(op: *mut PyObject)
pyo3-ffi/src/cpython/unicodeobject.rs:549
↓ 4 callersFunctionPy_SIZE
(ob: *mut PyObject)
pyo3-ffi/src/object.rs:237
↓ 4 callersFunctionPy_True
()
pyo3-ffi/src/boolobject.rs:42
↓ 4 callersFunction_get_subclasses
( py: Python<'py>, py_type: &str, args: &str, )
src/types/datetime.rs:1146
↓ 4 callersFunction_test_binary_operator
(operator: &str, dunder: &str)
tests/test_arithmetics.rs:717
↓ 4 callersMethodadd
(&self, name: N, value: V)
src/types/module.rs:499
↓ 4 callersMethodadd
(&self, key: K)
src/types/set.rs:190
↓ 4 callersMethodapply_build_env
(mut self)
pyo3-build-config/src/impl_.rs:901
↓ 4 callersFunctionapply_renaming_rule
(rule: RenamingRule, name: &str)
pyo3-macros-backend/src/utils.rs:250
↓ 4 callersMethodas_bytes
(&self)
src/types/bytes.rs:208
↓ 4 callersMethodas_mut_slice
(&'a self, _py: Python<'a>)
src/buffer.rs:283
↓ 4 callersMethodas_ptr
(&self)
src/fmt.rs:108
↓ 4 callersMethodas_sequence
(&self)
src/types/tuple.rs:279
↓ 4 callersMethodas_sequence
Returns `self` cast as a `PySequence`.
src/types/list.rs:271
↓ 4 callersMethodas_str
(&self)
src/pybacked.rs:51
↓ 4 callersMethodas_super
Borrows a shared reference to `PyClassGuard<T::BaseType>`. With the help of this method, you can access attributes and call methods on the superclass
src/pyclass/guard.rs:209
↓ 4 callersFunctionattribute_introspection_code
( pyo3_crate_path: &PyO3CratePath, parent: Option<&Type>, name: String, value: PyExpr, rus
pyo3-macros-backend/src/introspection.rs:179
↓ 4 callersMethodbuild_script_outputs
(&self)
pyo3-build-config/src/impl_.rs:378
↓ 4 callersMethodcall_method1
Calls a method on the object with only positional arguments. This is equivalent to the Python expression `self.name(*args)`. To avoid repeated tempo
src/instance.rs:2000
↓ 4 callersMethodcompile
Compiles code in the given context. `input` decides whether `code` is treated as - [`PyCodeInput::Eval`]: an isolated expression - [`PyCodeInput::Fil
src/types/code.rs:57
↓ 4 callersFunctiondefault_cross_compile
Generates "default" cross compilation information for the target. This should work for most CPython extension modules when targeting Windows, macOS a
pyo3-build-config/src/impl_.rs:2348
↓ 4 callersFunctiondefault_lib_name_unix
( abi: PythonAbi, mut use_stable_abi_lib: bool, ld_version: Option<&str>, )
pyo3-build-config/src/impl_.rs:2525
↓ 4 callersMethoddel_item
(&self, key: K)
src/types/any.rs:1183
↓ 4 callersMethodemit
(self, pyo3_crate_path: &PyO3CratePath)
pyo3-macros-backend/src/introspection.rs:379
↓ 4 callersMethodexecutable
Path of host `python` executable. This is a valid executable capable of running on the host/building machine. For configurations derived by invoking
pyo3-build-config/src/impl_.rs:342
↓ 4 callersMethodextra_build_script_lines
Additional lines to `println!()` from Cargo build scripts. Serialized to multiple `extra_build_script_line` values.
pyo3-build-config/src/impl_.rs:368
↓ 4 callersMethodextract
(obj: Borrowed<'_, 'py, PyAny>)
src/conversions/std/vec.rs:70
↓ 4 callersMethodextract
(ob: Borrowed<'_, '_, PyAny>)
src/conversions/std/path.rs:24
↓ 4 callersMethodfixup
(mut self)
pyo3-build-config/src/impl_.rs:2018
↓ 4 callersFunctionfunction_introspection_code
( pyo3_crate_path: &PyO3CratePath, ident: Option<&Ident>, name: &str, signature: &FunctionSign
pyo3-macros-backend/src/introspection.rs:116
↓ 4 callersFunctiongenerate_default_protocol_slot
( cls: &syn::Type, method: &mut syn::ImplItemFn, slot: &SlotDef, #[cfg(feature = "experimental
pyo3-macros-backend/src/pyclass.rs:1840
↓ 4 callersMethodget
Get a immutable reference to the value wrapped by a PyMutex # Safety The caller must ensure the critical section is not released while the reference
src/sync/critical_section.rs:116
↓ 4 callersFunctionget_abi3_version
Gets the minimum supported Python version from PyO3 `abi3-py*` features. Must be called from a PyO3 crate build script. Returns None if an `abi3-py*`
pyo3-build-config/src/impl_.rs:1619
↓ 4 callersFunctionget_abi3t_version
Gets the minimum supported Python version from PyO3 `abi3t-py*` features. Must be called from a PyO3 crate build script. Returns None if an `abi3t-py
pyo3-build-config/src/impl_.rs:1637
↓ 4 callersMethodget_borrowed_item_unchecked
(&'a self, index: usize)
src/types/tuple.rs:307
↓ 4 callersFunctionget_cfg_attributes
(attrs: &[syn::Attribute])
pyo3-macros-backend/src/pyimpl.rs:388
↓ 4 callersFunctionget_conversion_type_hint
( Ctx { pyo3_path, .. }: &Ctx, konst: &Ident, cls: &Ident, )
pyo3-macros-backend/src/pyclass.rs:3255
↓ 4 callersMethodget_fold
(&self)
src/types/datetime.rs:549
↓ 4 callersMethodget_mut
Get a mutable reference to the data wrapped by a PyMutex # Safety The caller must ensure the closure cannot implicitly release the critical section.
src/sync/critical_section.rs:97
↓ 4 callersMethodget_or_try_init
(&self, py: Python<'py>)
src/impl_/pyclass/lazy_type_object.rs:60
↓ 4 callersFunctionget_pyo3_options
(attr: &syn::Attribute)
pyo3-macros-backend/src/attributes.rs:399
↓ 4 callersMethodget_type
(&self)
src/types/any.rs:1198
↓ 4 callersMethodhandle_error
(self, extract: TokenStream, ctx: &Ctx)
pyo3-macros-backend/src/method.rs:428
↓ 4 callersMethodhasattr
(&self, attr_name: N)
src/types/any.rs:845
↓ 4 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/std/osstr.rs:33
↓ 4 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/std/array.rs:27
↓ 4 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/std/cstring.rs:28
↓ 4 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/std/map.rs:31
↓ 4 callersFunctionintrospection_id_const
Generates a new unique identifier for linking introspection objects together
pyo3-macros-backend/src/introspection.rs:638
↓ 4 callersFunctionis_linking_libpython_for_target
Checks if we need to link to `libpython` for the target. Must be called from a PyO3 crate build script.
pyo3-build-config/src/impl_.rs:1665
↓ 4 callersMethoditer_borrowed
Iterates over the contents of this dictionary without incrementing reference counts. # Safety It must be known that this dictionary will not be modif
src/types/dict.rs:427
↓ 4 callersMethodlen
(&self)
src/types/frozendict.rs:179
↓ 4 callersMethodmake_all_parameters_positional_only
Makes every positional parameter positional-only, exactly as a trailing `/` in a signature does. Deliberately leaves keyword-only parameters alone.
pyo3-macros-backend/src/pyfunction/signature.rs:303
↓ 4 callersFunctionmake_interpreter_config
Generates an interpreter config suitable for the build host.
pyo3-build-config/src/impl_.rs:2706
↓ 4 callersMethodmatch_pattern
(&self)
pyo3-macros-backend/src/intopyobject.rs:188
↓ 4 callersFunctionmethod_introspection_code
( spec: &FnSpec<'_>, attrs: &[syn::Attribute], parent: &syn::Type, is_returning_not_implemente
pyo3-macros-backend/src/pyimpl.rs:396
↓ 4 callersMethodnull_terminated_python_name
(&self)
pyo3-macros-backend/src/pymethod.rs:1083
↓ 4 callersFunctionpush_docstring
Appends a `"""`-quoted docstring indented by `indent`, starting on a fresh line.
pyo3-introspection/src/stubs.rs:313
↓ 4 callersMethodpy
(&self)
src/instance.rs:840
↓ 4 callersFunctionpython_utc
(py: Python<'_>)
src/conversions/jiff.rs:1047
↓ 4 callersMethodregister_decref
(&self, obj: Py<PyAny>)
src/internal/state.rs:219
↓ 4 callersFunctionsay_hello
()
examples/decorator/tests/test_.py:6
↓ 4 callersMethodset_cause
Set the cause associated with the exception, pass `None` to clear it.
src/err/mod.rs:601
↓ 4 callersMethodset_context
(&self, context: *mut c_void)
src/types/capsule.rs:527
↓ 4 callersMethodset_item
(&self, key: K, value: V)
src/types/dict.rs:270
↓ 4 callersMethodset_len
(&mut self, new_len: usize)
src/types/bytes/writer.rs:93
↓ 4 callersMethodshared
Whether link library is shared. Serialized to `shared`.
pyo3-build-config/src/impl_.rs:295
↓ 4 callersMethodspan
(&self)
pyo3-macros-backend/src/pyclass.rs:354
↓ 4 callersFunctiontake_attributes
Takes attributes from an attribute vector. For each attribute in `attrs`, `extractor` is called. If `extractor` returns `Ok(true)`, then the attribut
pyo3-macros-backend/src/attributes.rs:414
↓ 4 callersFunctiontarget_triple_from_env
Gets the compilation target triple from environment variables set by Cargo. Must be called from a crate build script.
pyo3-build-config/src/impl_.rs:70
↓ 4 callersMethodto_cstr_stream
(&self, ctx: &Ctx)
pyo3-macros-backend/src/utils.rs:146
↓ 4 callersMethodtry_borrow
(obj: &'a Py<T>)
src/pyclass/guard.rs:100
↓ 4 callersMethodversion_info
Gets the running Python interpreter version as a struct similar to `sys.version_info`. # Examples ```rust # use pyo3::Python; Python::attach(|py| { /
src/marker.rs:717
↓ 4 callersFunctionwith_critical_section2
(a: &Bound<'_, PyAny>, b: &Bound<'_, PyAny>, f: F)
src/sync/critical_section.rs:159
↓ 4 callersFunctionwith_critical_section_mutex
( _py: Python<'_>, mutex: &'a PyMutex, f: F, )
src/sync/critical_section.rs:197
↓ 3 callersFunctionPyCFunction_NewEx
( ml: *mut PyMethodDef, slf: *mut PyObject, module: *mut PyObject, )
pyo3-ffi/src/methodobject.rs:222
↓ 3 callersFunctionPyEval_RestoreThread
(tstate: *mut PyThreadState)
pyo3-ffi/src/ceval.rs:154
↓ 3 callersFunctionPyList_Check
(op: *mut PyObject)
pyo3-ffi/src/listobject.rs:15
↓ 3 callersFunctionPySlot_END
()
pyo3-ffi/src/slots.rs:146
↓ 3 callersFunctionPyTuple_SET_ITEM
(op: *mut PyObject, i: Py_ssize_t, v: *mut PyObject)
pyo3-ffi/src/cpython/tupleobject.rs:36
↓ 3 callersFunctionPy_CompileString
(string: *const c_char, p: *const c_char, s: c_int)
pyo3-ffi/src/pythonrun.rs:26
↓ 3 callersFunctionPy_False
()
pyo3-ffi/src/boolobject.rs:30
↓ 3 callersFunctionPy_Is
(x: *mut PyObject, y: *mut PyObject)
pyo3-ffi/src/object.rs:183
↓ 3 callersFunctionPy_NotImplemented
()
pyo3-ffi/src/object.rs:690
↓ 3 callersFunctionPy_REFCNT
(ob: *mut PyObject)
pyo3-ffi/src/refcount.rs:87
↓ 3 callersFunction_PyList_CAST
(op: *mut PyObject)
pyo3-ffi/src/cpython/listobject.rs:24
↓ 3 callersFunction_Py_atomic_load_ssize_relaxed
(value: *const Py_ssize_t)
pyo3-ffi/src/cpython/pyatomic.rs:96
← previousnext →301–400 of 4,885, ranked by callers