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
↓ 3 callers
Method
python_name
(&self)
pyo3-macros-backend/src/konst.rs:28
↓ 3 callers
Method
qualname
Gets the [qualified name](https://docs.python.org/3/glossary.html#term-qualified-name) of the `PyType`.
src/types/typeobject.rs:138
↓ 3 callers
Function
raise_lazy
Raises a "lazy" exception state into the Python interpreter. In principle this could be split in two; first a function to create an exception in a no
src/err/err_state.rs:390
↓ 3 callers
Function
reader
()
tests/test_pyself.rs:85
↓ 3 callers
Method
readonly
(&self)
src/buffer.rs:656
↓ 3 callers
Method
release_borrow_mut
(&self)
src/pycell/impl_.rs:141
↓ 3 callers
Function
run_python_script_with_envs
Run a python script using the specified interpreter binary with additional environment variables (e.g. PYTHONPATH) set.
pyo3-build-config/src/impl_.rs:2566
↓ 3 callers
Method
send
(&mut self, value: Bound<'_, PyAny>)
pytests/src/awaitable.rs:48
↓ 3 callers
Method
send
(&self, value: &Bound<'py, PyAny>)
src/types/iterator.rs:84
↓ 3 callers
Method
source
(&self)
pyo3-build-config/src/errors.rs:57
↓ 3 callers
Method
takes_args_and_kwargs
Whether Python hands this protocol an `args`/`kwargs` pair. `tp_new`, `tp_init` and `tp_call` do, so they accept keyword arguments and a `#[pyo3(sign
pyo3-macros-backend/src/pymethod.rs:207
↓ 3 callers
Function
test_dict
Return a dict with `s = Count5()`.
tests/test_static_slots.rs:39
↓ 3 callers
Function
thread_is_attached
()
src/internal/state.rs:38
↓ 3 callers
Method
to_introspection_token_stream
(&self, pyo3_crate_path: &PyO3CratePath)
pyo3-macros-backend/src/py_expr.rs:218
↓ 3 callers
Method
to_vec
(&self)
src/types/bytearray.rs:291
↓ 3 callers
Method
traceback
Returns the traceback of this exception object. # Examples ```rust use pyo3::{exceptions::PyTypeError, Python}; Python::attach(|py| { let err = PyTy
src/err/mod.rs:263
↓ 3 callers
Method
try_borrow
(obj: &Bound<'py, T>)
src/pycell.rs:314
↓ 3 callers
Method
upgrade
(&self)
src/types/weakref/anyref.rs:329
↓ 3 callers
Method
usize_index
(&self, index: isize)
tests/test_proto_methods.rs:360
↓ 3 callers
Method
walk_expr
(&mut self, expr: &Expr)
pyo3-introspection/src/stubs.rs:729
↓ 3 callers
Function
with_critical_section_mutex2
( py: Python<'_>, m1: &'a PyMutex1, m2: &'b PyMutex2, f: F, )
src/sync/critical_section.rs:249
↓ 3 callers
Method
with_mod_exec
(self, exec: ModuleExecSlot)
src/impl_/pymodule.rs:334
↓ 3 callers
Method
write_all
(&mut self, buf: &[u8])
src/types/bytes/writer.rs:198
↓ 3 callers
Method
write_char
(&mut self, c: char)
src/fmt.rs:134
↓ 3 callers
Method
write_py_attached
(&self, _py: Python<'_>)
src/sync.rs:570
↓ 2 callers
Function
PyBytes_AS_STRING
(op: *mut PyObject)
pyo3-ffi/src/cpython/bytesobject.rs:31
↓ 2 callers
Function
PyDateTime_FromTimestamp
(args: *mut PyObject)
pyo3-ffi/src/datetime.rs:817
↓ 2 callers
Function
PyDate_FromTimestamp
(args: *mut PyObject)
pyo3-ffi/src/datetime.rs:823
↓ 2 callers
Function
PyLong_Check
(op: *mut PyObject)
pyo3-ffi/src/longobject.rs:12
↓ 2 callers
Function
PySlot_FUNC
(NAME: c_int, VALUE: *mut c_void)
pyo3-ffi/src/slots.rs:72
↓ 2 callers
Function
PySlot_SIZE
(NAME: c_int, VALUE: Py_ssize_t)
pyo3-ffi/src/slots.rs:86
↓ 2 callers
Function
PyThreadState_GET
()
pyo3-ffi/src/pystate.rs:52
↓ 2 callers
Function
PyTuple_GET_ITEM
(op: *mut PyObject, i: Py_ssize_t)
pyo3-ffi/src/cpython/tupleobject.rs:29
↓ 2 callers
Function
PyTuple_GET_SIZE
(op: *mut PyObject)
pyo3-ffi/src/cpython/tupleobject.rs:23
↓ 2 callers
Function
PyUnicode_IS_COMPACT
(op: *mut PyObject)
pyo3-ffi/src/cpython/unicodeobject.rs:495
↓ 2 callers
Function
PyWeakref_CheckProxy
(op: *mut PyObject)
pyo3-ffi/src/weakrefobject.rs:47
↓ 2 callers
Function
Py_CLEAR
(op: *mut *mut PyObject)
pyo3-ffi/src/refcount.rs:340
↓ 2 callers
Function
Py_Ellipsis
()
pyo3-ffi/src/sliceobject.rs:15
↓ 2 callers
Function
_PyByteArray_CAST
(op: *mut PyObject)
pyo3-ffi/src/cpython/bytearrayobject.rs:25
↓ 2 callers
Function
_PyObject_VectorcallTstate
( tstate: *mut PyThreadState, callable: *mut PyObject, args: *const *mut PyObject, nargsf: siz
pyo3-ffi/src/cpython/abstract_.rs:83
↓ 2 callers
Function
_PyVarObject_CAST
(op: *mut PyObject)
pyo3-ffi/src/object.rs:176
↓ 2 callers
Function
_Py_IsImmortal
(op: *mut PyObject)
pyo3-ffi/src/refcount.rs:134
↓ 2 callers
Method
__eq__
(self, other: object)
pytests/tests/test_comparisons.py:22
↓ 2 callers
Function
__name__
(py: Python<'_>)
src/types/module.rs:585
↓ 2 callers
Method
__ne__
(self, other: object)
pytests/tests/test_comparisons.py:28
↓ 2 callers
Method
__next__
(&mut self, py: Python<'_>)
pytests/src/awaitable.rs:38
↓ 2 callers
Function
_add_extension_module_link_args
( triple: &Triple, mut writer: impl std::io::Write, rustc_minor_version: Option<u32>, )
pyo3-build-config/src/lib.rs:67
↓ 2 callers
Function
_add_python_framework_link_args
( interpreter_config: &InterpreterConfig, triple: &Triple, link_libpython: bool, mut writer: i
pyo3-build-config/src/lib.rs:121
↓ 2 callers
Function
_clippy
( session: nox.Session, *, env: dict[str, str] | None = None, version: tuple[int, int] | None
noxfile.py:301
↓ 2 callers
Function
_clippy_additional_workspaces
(session: nox.Session)
noxfile.py:328
↓ 2 callers
Function
_config_file
Creates a temporary config file which can be repeatedly set to different values.
noxfile.py:2087
↓ 2 callers
Method
_copy_from_slice
(&self, py: Python<'_>, source: &[T], fort: u8)
src/buffer.rs:488
↓ 2 callers
Method
_copy_to_slice
(&self, py: Python<'_>, target: &mut [T], fort: u8)
src/buffer.rs:400
↓ 2 callers
Function
_for_all_version_configs
(session: nox.Session, job: Job)
noxfile.py:2034
↓ 2 callers
Function
_format_ffi_extern
Format extern blocks inside extern_libpython! macros in pyo3-ffi. rustfmt cannot format inside macro invocations, so this temporarily replace
noxfile.py:1038
↓ 2 callers
Function
_get_coverage_env
(*flags: str)
noxfile.py:1932
↓ 2 callers
Method
_get_refcnt
(&self, _py: Python<'_>)
src/instance.rs:1788
↓ 2 callers
Function
_get_rust_default_target
()
noxfile.py:1870
↓ 2 callers
Function
_is_github_actions
()
noxfile.py:2093
↓ 2 callers
Function
_make_wasm
(session: nox.Session, info: WasiInfo, *targets: str)
noxfile.py:569
↓ 2 callers
Function
_parse_supported_interpreter_version
( python_impl: Literal["cpython", "pypy", "graalpy"], )
noxfile.py:56
↓ 2 callers
Function
_test_inplace_binary_operator
(operator: &str, dunder: &str)
tests/test_arithmetics.rs:731
↓ 2 callers
Method
_to_vec
(&self, py: Python<'_>, fort: u8)
src/buffer.rs:438
↓ 2 callers
Method
add
(self, rhs: usize)
src/impl_/pyclass.rs:1244
↓ 2 callers
Method
add_help
(&mut self, help: &str)
pyo3-build-config/src/lib.rs:263
↓ 2 callers
Method
add_submodule
(&self, module: &Bound<'_, PyModule>)
src/types/module.rs:548
↓ 2 callers
Method
add_to_serialization
( self, content: &mut ConcatenationBuilder, pyo3_crate_path: &PyO3CratePath, )
pyo3-macros-backend/src/introspection.rs:394
↓ 2 callers
Function
argument_extraction_error
(py: Python<'_>, arg_name: &str, error: PyErr)
src/impl_/extract_argument.rs:454
↓ 2 callers
Function
array_ptr_as_mut
Replacement for the unstable `<*mut [T; N]>::as_mut_ptr` method, which avoids possibility of type getting lost from using e.g. `.cast()` to change arr
src/internal_tricks.rs:33
↓ 2 callers
Method
as_bytes_mut
(&self)
src/types/bytearray.rs:287
↓ 2 callers
Method
as_mapping
(&self)
src/types/dict.rs:341
↓ 2 callers
Method
as_type_hint
(&self)
pyo3-macros-backend/src/pyfunction/signature.rs:257
↓ 2 callers
Method
ascii
(&self)
pyo3-ffi/src/cpython/unicodeobject.rs:205
↓ 2 callers
Method
assert_dropped
(&self)
tests/test_gc.rs:109
↓ 2 callers
Method
assume_borrowed_or_err
( self, py: Python<'_>, )
src/ffi_ptr_ext.rs:81
↓ 2 callers
Method
assume_borrowed_or_opt
(self, py: Python<'_>)
src/ffi_ptr_ext.rs:93
↓ 2 callers
Function
attribute_stubs
(attribute: &Attribute, imports: &Imports)
pyo3-introspection/src/stubs.rs:358
↓ 2 callers
Function
box_into_non_null
TODO: use Box::into_non_null when stabilized
src/internal_tricks.rs:26
↓ 2 callers
Function
build_guide
(session: nox.Session)
noxfile.py:751
↓ 2 callers
Method
builtins
(&self)
src/types/frame.rs:146
↓ 2 callers
Method
call
Visit `obj`. Note: `obj` accepts a variety of types, including - `&Py<T>` - `&Option<Py<T>>` - `Option<&Py<T>>`
src/pyclass/gc.rs:43
↓ 2 callers
Method
call_positional
( self, function: Borrowed<'_, 'py, PyAny>, token: private::Token, )
src/call.rs:91
↓ 2 callers
Function
check
()
tests/ui/invalid_async.rs:4
↓ 2 callers
Method
check
(&self)
src/impl_/pyclass.rs:1096
↓ 2 callers
Function
check_drop
( py: Python<'py>, method: impl FnOnce(*mut ffi::PyObject) -> Bound<'py, PyAny
src/instance.rs:2632
↓ 2 callers
Function
check_generic
(sig: &syn::Signature)
pyo3-macros-backend/src/pymethod.rs:363
↓ 2 callers
Function
check_rust_src_paths
(output: &[u8], errors: &mut Vec<ui_test::Error>)
tests/test_compile_error.rs:308
↓ 2 callers
Method
clone_ref
(&self, _py: Python<'_>)
src/instance.rs:1816
↓ 2 callers
Method
close
(&mut self)
src/coroutine.rs:156
↓ 2 callers
Function
complex_enum_variant_field_getter
( variant_cls_type: &syn::Type, field_name: &Ident, field_type: &syn::Type, field_attrs: &[syn
pyo3-macros-backend/src/pyclass.rs:2127
↓ 2 callers
Method
concat
(&self, other: &Bound<'_, PySequence>)
src/types/sequence.rs:180
↓ 2 callers
Method
convert
(self, py: Python<'py>)
src/impl_/callback.rs:78
↓ 2 callers
Function
convert_members
Convert a list of members of a module or a class
pyo3-introspection/src/introspection.rs:124
↓ 2 callers
Function
convert_module
( id: &str, name: &str, members: &[String], mut incomplete: bool, docstring: Option<&str>,
pyo3-introspection/src/introspection.rs:80
↓ 2 callers
Method
count
(self)
src/types/set.rs:262
↓ 2 callers
Function
count_line
Count the occurrences of needle in line, case insensitive
examples/word-count/src/lib.rs:25
↓ 2 callers
Function
count_spaces
(bytes: &[u8], mut i: usize)
src/impl_/unindent.rs:126
↓ 2 callers
Function
create_date_from_py_date
( py: Python<'_>, year: i32, month: u8, day: u8, )
src/conversions/time.rs:534
↓ 2 callers
Function
create_time_from_py_time
( py: Python<'_>, hour: u8, minute: u8, second: u8,
src/conversions/time.rs:549
↓ 2 callers
Method
data
(&self)
src/types/bytearray.rs:279
← previous
next →
501–600 of 4,885, ranked by callers