MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

↓ 15 callersMethodcall0
Calls the object without arguments. This is equivalent to the Python expression `self()`.
src/instance.rs:1967
↓ 15 callersMethodcall_method1
(&self, name: N, args: A)
src/types/any.rs:1133
↓ 15 callersMethodcontains
(&self, value: V)
src/types/any.rs:1278
↓ 15 callersMethodfinish
(self)
pyo3-build-config/src/lib.rs:268
↓ 15 callersMethodimport
Imports the Python module with the specified name.
src/marker.rs:658
↓ 15 callersMethoditer
Returns an iterator over this list's items.
src/types/list.rs:426
↓ 15 callersFunctionnew_py_datetime_ob
(py: Python<'py>, name: &str, args: A)
src/conversions/jiff.rs:1030
↓ 15 callersMethodtarget_abi
The ABI to use for the compilation target. See the documentation for the PythonAbi enum for more details. Serialized to `target_abi`.
pyo3-build-config/src/impl_.rs:303
↓ 15 callersMethodto_str
(&self)
src/types/string.rs:354
↓ 15 callersMethodtry_iter
(&self)
src/types/any.rs:1194
↓ 15 callersMethodwith_critical_section
( &mut self, f: impl FnOnce(&mut Index, &mut Length, &Bound<'py, PyList>) -> R, )
src/types/list.rs:583
↓ 14 callersMethodadd_function
(&self, fun: Bound<'_, PyCFunction>)
src/types/module.rs:558
↓ 14 callersMethodas_ptr
(&self)
src/instance.rs:853
↓ 14 callersMethodassume_owned_unchecked
(self, py: Python<'_>)
src/ffi_ptr_ext.rs:72
↓ 14 callersMethodcontext
(self, message: impl Into<String>)
pyo3-build-config/src/errors.rs:112
↓ 14 callersMethodextract
(&'a self)
src/types/any.rs:1207
↓ 14 callersMethodfree_threaded
(self)
pyo3-build-config/src/impl_.rs:956
↓ 14 callersFunctiongenerate_unique_module_name
(base: &str)
tests/test_utils/mod.rs:285
↓ 14 callersFunctionget_doc
Collects all #[doc = "..."] attributes into a TokenStream evaluating to a string. If this doc is for a callable, the provided `text_signature` can be
pyo3-macros-backend/src/utils.rs:87
↓ 14 callersMethodlen
(&self)
src/conversions/std/num.rs:520
↓ 13 callersMethodas_str
(&self)
pyo3-build-config/src/impl_.rs:1906
↓ 13 callersMethodclone_ref
(&self, py: Python<'_>)
src/err/mod.rs:580
↓ 13 callersFunctiondrop_check
()
tests/test_gc.rs:83
↓ 13 callersMethodget
( &self, py: Python<'_>, capacity: usize, )
src/impl_/freelist.rs:28
↓ 13 callersFunctionget_ssize_index
Convert an usize index into a Py_ssize_t index, clamping overflow to PY_SSIZE_T_MAX.
src/internal_tricks.rs:21
↓ 13 callersMethodinto_bound_py_any
(self, py: Python<'py>)
src/conversion.rs:225
↓ 13 callersMethodinto_pyobject
(self, py: Python<'py>)
src/types/tuple.rs:1475
↓ 13 callersMethodsetattr
Sets an attribute value. This is equivalent to the Python expression `self.attr_name = value`. To avoid repeated temporary allocations of Python str
src/instance.rs:1931
↓ 13 callersFunctionwith_critical_section
(object: &Bound<'_, PyAny>, f: F)
src/sync/critical_section.rs:132
↓ 12 callersFunctionPy_DECREF
(op: *mut PyObject)
pyo3-ffi/src/refcount.rs:269
↓ 12 callersMethodclone_ref
(slf: &'a Bound<'py, Self>)
tests/test_pyself.rs:20
↓ 12 callersMethoddisplay
Prints a standard traceback to `sys.stderr`.
src/err/mod.rs:383
↓ 12 callersMethodfind
(&mut self, mut predicate: P)
src/types/dict.rs:634
↓ 12 callersMethodget
( &self, py: Python<'_>, key: &str, default: Option<Py<PyAny>>, )
tests/test_mapping.rs:63
↓ 12 callersMethodto_cow
(&self)
src/types/string.rs:358
↓ 12 callersMethodto_string_lossy
Convert the raw data to a Rust string, possibly with data loss. Invalid code points will be replaced with `U+FFFD REPLACEMENT CHARACTER`. Returns a
src/types/string.rs:116
↓ 11 callersMethod_get_refcnt
(&self)
src/types/any.rs:1334
↓ 11 callersMethodas_mut
(&mut self)
src/pycell.rs:555
↓ 11 callersMethodas_super
Borrows a shared reference to `PyRef<T::BaseType>`. With the help of this method, you can access attributes and call methods on the superclass withou
src/pycell.rs:454
↓ 11 callersMethodassert_drops_with_gc
(&self, object: *mut pyo3::ffi::PyObject)
tests/test_gc.rs:114
↓ 11 callersMethodassert_not_dropped
(&self)
tests/test_gc.rs:104
↓ 11 callersMethodassume_borrowed_unchecked
(self, py: Python<'_>)
src/ffi_ptr_ext.rs:112
↓ 11 callersMethodbind_borrowed
(&'a self, py: Python<'py>)
src/instance.rs:1759
↓ 11 callersFunctionenv_var
Gets an external environment variable, and registers the build script to rerun if the variable changes.
pyo3-build-config/src/impl_.rs:56
↓ 11 callersMethodextract
(ob: Borrowed<'_, '_, PyAny>)
src/conversions/chrono.rs:126
↓ 11 callersMethodget_class_object
(&self)
src/instance.rs:757
↓ 11 callersFunctioninner
( create_reference: impl for<'py> FnOnce( &Bound<'py, PyAny>,
src/types/weakref/anyref.rs:374
↓ 11 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/chrono.rs:79
↓ 11 callersMethodlib_dir
The directory containing the Python library to link against. The effectively controls the `cargo:rustc-link-search=native=<path>` value to add an add
pyo3-build-config/src/impl_.rs:331
↓ 11 callersMethodwrite_unraisable
(self, py: Python<'_>, obj: Option<&Bound<'_, PyAny>>)
src/err/mod.rs:484
↓ 10 callersFunctionPyType_FastSubclass
(t: *mut PyTypeObject, f: c_ulong)
pyo3-ffi/src/object.rs:738
↓ 10 callersMethodcall1
Calls the object with only positional arguments. This is equivalent to the Python expression `self(*args)`.
src/instance.rs:1957
↓ 10 callersMethodget_or_init
(&self, py: Python<'_>, f: F)
src/sync/once_lock.rs:61
↓ 10 callersMethodget_or_try_init
Like `get_or_init`, but accepts a fallible initialization function. If it fails, the cell is left uninitialized. See the type-level documentation for
src/sync/once_lock.rs:74
↓ 10 callersMethodimplementation
The Python implementation flavor. Serialized to `implementation`.
pyo3-build-config/src/impl_.rs:281
↓ 10 callersMethodinto_ptr
(self)
src/pycell.rs:305
↓ 10 callersMethodlen
Returns the length of the list.
src/types/list.rs:253
↓ 10 callersFunctiontrampoline
(body: F)
src/impl_/trampoline.rs:302
↓ 10 callersMethodwrite
(&mut self, buf: &[u8])
src/types/bytes/writer.rs:168
↓ 9 callersMethodadd_argument
( &mut self, signature: &mut PythonSignature, name: String, default_value: Opt
pyo3-macros-backend/src/pyfunction/signature.rs:327
↓ 9 callersMethodcopy
(&self)
src/types/dict.rs:219
↓ 9 callersMethoddict
(&self)
src/types/module.rs:435
↓ 9 callersMethodextract
( self, ident: &syn::Ident, arg: &FnArg<'_>, extract_error_mode: ExtractErrorM
pyo3-macros-backend/src/pymethod.rs:1203
↓ 9 callersMethodextract
(ob: Borrowed<'_, '_, PyAny>)
src/conversions/time.rs:175
↓ 9 callersMethodget
(&self, _py: Python<'_>)
src/sync/once_lock.rs:52
↓ 9 callersFunctioninner
(slf: *mut ffi::PyObject, f: Func)
src/impl_/trampoline.rs:128
↓ 9 callersMethodinto_bound
(self)
src/instance.rs:916
↓ 9 callersMethodname
(self)
noxfile.py:2082
↓ 9 callersMethodserialize_expr
(&self, expr: &Expr, buffer: &mut String)
pyo3-introspection/src/stubs.rs:525
↓ 9 callersFunctiontake_pyo3_options
(attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/attributes.rs:429
↓ 9 callersMethodto_any
(self)
src/instance.rs:1002
↓ 8 callersFunctionPyDateTime_IMPORT
Populates the `PyDateTimeAPI` object
pyo3-ffi/src/datetime.rs:611
↓ 8 callersFunctionacquire_watcher_test_lock
()
src/types/context.rs:448
↓ 8 callersMethodadd_introspection
(&mut self, data: TokenStream)
pyo3-macros-backend/src/pymethod.rs:34
↓ 8 callersMethodas_ref
(&self)
src/instance.rs:809
↓ 8 callersMethodas_unbound
(&self)
src/instance.rs:904
↓ 8 callersFunctioncargo_env_var
Gets an environment variable owned by cargo. Environment variables set by cargo are expected to be valid UTF8.
pyo3-build-config/src/impl_.rs:50
↓ 8 callersFunctionclean_type
(mut t: Type, self_type: Option<&Type>)
pyo3-macros-backend/src/py_expr.rs:357
↓ 8 callersMethoddata
(&self)
src/types/string.rs:375
↓ 8 callersMethodget_hour
(&self)
src/types/datetime.rs:505
↓ 8 callersMethodget_microsecond
(&self)
src/types/datetime.rs:538
↓ 8 callersMethodget_minute
(&self)
src/types/datetime.rs:516
↓ 8 callersMethodget_second
(&self)
src/types/datetime.rs:527
↓ 8 callersMethodget_type
Returns the type of this exception. # Examples ```rust use pyo3::{prelude::*, exceptions::PyTypeError, types::PyType}; Python::attach(|py| { let err
src/err/mod.rs:216
↓ 8 callersMethodinto_pyobject
(self, py: Python<'py>)
src/conversions/time.rs:136
↓ 8 callersMethoditer
(&self)
src/types/dict.rs:318
↓ 8 callersMethodnext_unchecked
Safety: the dict should be locked with a critical section on the free-threaded build and otherwise not shared between threads in code that releases th
src/types/dict.rs:462
↓ 8 callersMethodpointer_checked
(&self, name: Option<&CStr>)
src/types/capsule.rs:551
↓ 8 callersFunctionsafe_cast_c_int_to_u16
(val: c_int)
pyo3-ffi/src/slots.rs:53
↓ 8 callersMethodset
(&mut self, bit_offset: usize, bit_width: u8, val: u64)
pyo3-ffi/src/cpython/unicodeobject.rs:95
↓ 8 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/once_lock.rs:93
↓ 8 callersMethodsort
Sorts the list in-place. Equivalent to the Python expression `l.sort()`.
src/types/list.rs:441
↓ 8 callersFunctionsplit_off_python_arg
Split an argument of pyo3::Python from the front of the arg list, if present
pyo3-macros-backend/src/pymethod.rs:1059
↓ 8 callersMethodstr
(&self)
src/types/any.rs:1226
↓ 8 callersMethodunwrap_or_compile_error
(self)
pyo3-macros/src/lib.rs:254
↓ 8 callersMethodwith_context
(self, message: impl FnOnce() -> String)
pyo3-build-config/src/errors.rs:119
↓ 8 callersMethodwith_critical_section
(&mut self, dict: &Bound<'_, PyDict>, f: F)
src/types/dict.rs:521
↓ 7 callersFunctionPy_INCREF
(op: *mut PyObject)
pyo3-ffi/src/refcount.rs:191
↓ 7 callersFunction_PyFunction_CAST
(func: *mut PyObject)
pyo3-ffi/src/cpython/funcobject.rs:98
↓ 7 callersMethodadd
(&self, other: &MethodWithPyClassArg)
tests/test_methods.rs:851
← previousnext →101–200 of 4,885, ranked by callers