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
Function
extract_str_cast_success
(bench: &mut Bencher<'_>)
pyo3-benches/benches/bench_extract.rs:30
Function
extract_str_extract_fail
(bench: &mut Bencher<'_>)
pyo3-benches/benches/bench_extract.rs:18
Function
extract_str_extract_success
(bench: &mut Bencher<'_>)
pyo3-benches/benches/bench_extract.rs:10
Function
extract_struct_field
( obj: &'a Bound<'py, PyAny>, struct_name: &str, field_name: &str, )
src/impl_/frompyobject.rs:46
Function
extract_struct_field_with
( extractor: fn(&'a Bound<'py, PyAny>) -> PyResult<T>, obj: &'a Bound<'py, PyAny>, struct_name: &s
src/impl_/frompyobject.rs:65
Function
extract_traceback
Flattens a chain of errors into a single string.
src/impl_/frompyobject.rs:35
Function
extract_traceback
Helper function that concatenates the error message from each error in the traceback into a single string that can be tested.
tests/test_pyfunction.rs:418
Function
extract_traceback
Helper function that concatenates the error message from each error in the traceback into a single string that can be tested.
tests/test_frompyobject.rs:16
Function
extract_tuple_struct_field
( obj: &'a Bound<'py, PyAny>, struct_name: &str, index: usize, )
src/impl_/frompyobject.rs:96
Function
extract_tuple_struct_field_with
( extractor: fn(&'a Bound<'py, PyAny>) -> PyResult<T>, obj: &'a Bound<'py, PyAny>, struct_name: &s
src/impl_/frompyobject.rs:115
Method
extract_unit_variant_data
( variant: &mut syn::Variant, )
pyo3-macros-backend/src/pyclass.rs:618
Function
f
(#[pyo3(from_py_with = "bytes_from_py")] _bytes: Vec<u8>)
tests/ui/invalid_argument_attributes.rs:27
Function
fail_callback
(_py: Python<'_>, _event: ContextEvent<'_, '_>)
src/types/context.rs:548
Function
fail_to_open_file
()
tests/test_exceptions.rs:16
Function
failed_to_extract_enum
( py: Python<'_>, type_name: &str, variant_names: &[&str], error_names: &[&str], errors: &
src/impl_/frompyobject.rs:7
Function
failed_to_fetch
()
src/err/mod.rs:662
Method
fails_to_init
()
tests/test_class_attributes.rs:165
Method
fast
Method with low overhead to benchmark method call performance.
pyo3-benches/benches/bench_pyclass.rs:31
Method
fastcall_cfunction_with_keywords
( ml_name: &'static CStr, cfunction: ffi::PyCFunctionFastWithKeywords, ml_doc: &'stati
src/impl_/pymethods.rs:197
Method
fetch
(py: Python<'_>)
src/err/mod.rs:336
Function
fetching_normalized_panic_exception_resumes_unwind
()
src/err/mod.rs:858
Function
fetching_panic_exception_resumes_unwind
()
src/err/mod.rs:841
Function
ffi_check
(session: nox.Session)
noxfile.py:1343
Function
fibonacci_generator
()
src/types/iterator.rs:241
Function
fibonacci_generator_bound
()
src/types/iterator.rs:298
Method
field_input_type
(from_py_with: &Option<FromPyWithAttribute>, ty: &syn::Type)
pyo3-macros-backend/src/frompyobject.rs:482
Method
field_output_type
(into_py_with: &Option<IntoPyWithAttribute>, ty: &syn::Type)
pyo3-macros-backend/src/intopyobject.rs:388
Method
filename
(&self)
src/types/module.rs:481
Method
find
(&mut self, mut predicate: P)
src/types/list.rs:711
Method
find_map
(&mut self, mut f: F)
src/types/dict.rs:651
Method
find_map
(&mut self, mut f: F)
src/types/list.rs:729
Function
first_argument_not_module
( _string: &str, //~^ ERROR: the trait bound `&str: From<&pyo3::Bound<'_, pyo3::types::PyModule>>` is
tests/ui/invalid_pyfunctions.rs:39
Function
first_time_init
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_pyclass.rs:37
Method
fixed_offset
Equivalent to `datetime.timezone` constructor
src/types/datetime.rs:888
Method
flags
(mut self, flags: c_int)
src/impl_/pymethods.rs:229
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
pyo3-build-config/src/errors.rs:51
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
pyo3-build-config/src/impl_.rs:1017
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
pyo3-macros-backend/src/method.rs:1241
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
pytests/src/comparisons.rs:107
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
pyo3-ffi/src/methodobject.rs:207
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
pyo3-ffi/src/object.rs:81
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/buffer.rs:62
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/instance.rs:763
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/pycell.rs:510
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/pybacked.rs:102
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/pyclass/guard.rs:299
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/platform/thread/thread_local.rs:32
Method
fmt
(&self, f: &mut ::core::fmt::Formatter<'_>)
src/tests/hygiene/pyclass.rs:142
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/err/mod.rs:673
Method
fmt
(&self, f: &mut core::fmt::Formatter<'_>)
src/err/cast_error.rs:98
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/impl_/pymethods.rs:265
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/test_compile_error.rs:399
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/test_arithmetics.rs:395
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
tests/test_various.rs:183
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
tests/test_exceptions.rs:48
Method
fmt
(&self, f: &mut Formatter<'_>)
tests/test_class_formatting.rs:17
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
tests/ui/invalid_result_conversion.rs:20
Method
fmt
(&self, f: &mut Formatter<'_>)
tests/ui/invalid_pyclass_args.rs:130
Method
fold
(zoned: &Zoned)
src/conversions/jiff.rs:297
Function
foo
(x: u32)
src/types/capsule.rs:743
Function
foo
( _py: crate::Python<'_>, _m: &crate::Bound<'_, crate::types::PyModule>, )
src/tests/hygiene/pymodule.rs:9
Function
foo
(x: i32)
tests/test_pyfunction.rs:587
Function
foo
()
tests/test_append_to_inittab.rs:7
Function
foo
()
tests/ui/invalid_pymodule_glob.rs:6
Function
foo
()
tests/ui/invalid_pyclass_item.rs:4
Function
foo
~^ ERROR: use of deprecated constant `module_with_pyfn::PYFN_ATTRIBUTE`: `pyfn` will be removed in a future PyO3 version, use declarative `#[pymodule]
tests/ui/deprecated_pyfn.rs:9
Method
foo
(&self)
tests/test_class_conversion.rs:41
Method
foo
(&self)
tests/test_class_basics.rs:99
Method
foo
(&self)
tests/ui/invalid_async.rs:19
Function
for_all_fields
(input: proc_macro::TokenStream)
pyo3-ffi-check/macro/src/lib.rs:190
Function
for_all_functions
(_input: proc_macro::TokenStream)
pyo3-ffi-check/macro/src/lib.rs:640
Function
for_all_statics
(input: proc_macro::TokenStream)
pyo3-ffi-check/macro/src/lib.rs:127
Function
for_all_structs
(input: proc_macro::TokenStream)
pyo3-ffi-check/macro/src/lib.rs:29
Function
format_complex
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_pystring_from_fmt.rs:13
Function
format_ffi_extern
(session: nox.Session)
noxfile.py:1157
Function
format_guide
(session: nox.Session)
noxfile.py:989
Function
format_simple
(b: &mut Bencher<'_>)
pyo3-benches/benches/bench_pystring_from_fmt.rs:5
Function
format_traceback
()
src/types/traceback.rs:136
Function
free_with_freelist
Implementation of tp_free for `freelist` classes. # Safety - `obj` must be a valid pointer to an instance of T (not a subclass). - The calling thread
src/impl_/pyclass.rs:1019
Method
from
(value: String)
pyo3-build-config/src/errors.rs:81
Method
from
(value: PyFunctionWarningAttribute)
pyo3-macros-backend/src/pyfunction.rs:121
Method
from
(element: PyExpr)
pyo3-macros-backend/src/introspection.rs:503
Method
from
(value: u32)
pyo3-ffi/src/cpython/unicodeobject.rs:254
Method
from
(instance: &'a Bound<'py, T>)
src/instance.rs:1219
Method
from
(other: PyBorrowError)
src/pycell.rs:736
Method
from
(py_bytes: Bound<'_, PyBytes>)
src/pybacked.rs:264
Method
from
(value: T)
src/pyclass_init.rs:245
Method
from
Creates a new Python `bytearray` object from another Python object that implements the buffer protocol.
src/types/bytearray.rs:102
Method
from
Creates a new Python `memoryview` object from another Python object that implements the buffer protocol.
src/types/memoryview.rs:37
Method
from
(value: PyClassGuardError<'_, '_>)
src/pyclass/guard.rs:398
Method
from
(t: T)
src/platform/sync.rs:115
Method
from
(e: jiff::Error)
src/conversions/jiff.rs:568
Method
from
(value: &NaiveDate)
src/conversions/chrono.rs:568
Method
from
(mut error: anyhow::Error)
src/conversions/anyhow.rs:114
Method
from
(mut error: Report)
src/conversions/eyre.rs:120
Method
from
(err: Bound<'py, T>)
src/err/mod.rs:755
Method
from
(err: PyErr)
src/err/impls.rs:10
Method
from
(err: CastError<'_, '_>)
src/err/cast_error.rs:85
Method
from
(err: MyError)
tests/test_various.rs:190
Method
from
(_error: CustomError)
tests/test_class_new.rs:193
← previous
next →
2,401–2,500 of 4,885, ranked by callers