Expand description
Various types defined by the Python interpreter such as int, str and tuple.
Modulesยง
- any ๐
- boolobject ๐
- bytearray ๐
- bytes
- See
PyBytesfor more info. This mod also contains its helper typePyBytesWriter. - capsule
- Python capsules and related types.
- code
- Python code objects and related types.
- complex ๐
- datetime
- Safe Rust wrappers for types defined in the Python
datetimelibrary - dict
- Python dictionaries and related types.
- ellipsis ๐
- float ๐
- frame ๐
Non- GraalPyand non-Py_LIMITED_APIand non-PyPy - frozenset
- Python frozen sets and related types.
- function ๐
- Python function objects.
- genericalias ๐
- int ๐
- iter
- Iteration over Python collections.
- iterator
- Python iterators and related types.
- list
- Python lists and related types.
- mapping ๐
- mappingproxy
- Python mapping proxies and related types.
- memoryview ๐
- module ๐
- none ๐
- notimplemented ๐
- pysuper ๐
- range ๐
- sequence ๐
- set
- Python sets and related types.
- slice
- Python slices and related types.
- string
- Python strings and related types.
- traceback ๐
- tuple
- Python tuples and related types.
- typeobject ๐
- weakref ๐
Structsยง
- PyAny
- Represents any Python object.
- PyBool
- Represents a Python
bool. - PyByte
Array - Represents a Python
bytearray. - PyBytes
- Represents a Python
bytesobject. - PyCFunction
- Represents a builtin Python function object.
- PyCapsule
- Represents a Python Capsule as described in Capsules:
- PyCode
- Represents a Python code object.
- PyComplex
- Represents a Python
complexobject. - PyDate
- Bindings around
datetime.date. - PyDate
Time - Bindings for
datetime.datetime. - PyDelta
- Bindings for
datetime.timedelta. - PyDict
- Represents a Python
dict. - PyDict
Items Neither GraalPynorPyPynorRustPython - Represents a Python
dict_items. - PyDict
Keys Neither GraalPynorPyPynorRustPython - Represents a Python
dict_keys. - PyDict
Values Neither GraalPynorPyPynorRustPython - Represents a Python
dict_values. - PyEllipsis
- Represents the Python
Ellipsisobject. - PyFloat
- Represents a Python
floatobject. - PyFrame
Non- GraalPyand non-Py_LIMITED_APIand non-PyPy - Represents a Python frame.
- PyFrozen
Set - Represents a Python
frozenset. - PyFunction
- Represents a Python function object.
- PyGeneric
Alias - Represents a Python
types.GenericAliasobject. - PyInt
- Represents a Python
intobject. - PyIterator
- A Python iterator object.
- PyList
- Represents a Python
list. - PyMapping
- Represents a reference to a Python object supporting the mapping protocol.
- PyMapping
Proxy - Represents a Python
mappingproxy. - PyMemory
View - Represents a Python
memoryview. - PyModule
- Represents a Python
moduleobject. - PyNone
- Represents the Python
Noneobject. - PyNot
Implemented - Represents the Python
NotImplementedobject. - PyRange
- Represents a Python
range. - PySequence
- Represents a reference to a Python object supporting the sequence protocol.
- PySet
- Represents a Python
set. - PySlice
- Represents a Python
slice. - PyString
- Represents a Python
string(a Unicode string object). - PySuper
- Represents a Python
superobject. - PyTime
- Bindings for
datetime.time. - PyTraceback
- Represents a Python traceback.
- PyTuple
- Represents a Python
tupleobject. - PyType
- Represents a reference to a Python
typeobject. - PyTz
Info - Bindings for
datetime.tzinfo. - PyWeakref
- Represents any Python
weakrefreference. - PyWeakref
Proxy - Represents any Python
weakrefProxy type. - PyWeakref
Reference - Represents a Python
weakref.ReferenceType.
Traitsยง
- Deref
ToPy Any - Python objects that have a base type.
- Into
PyDict - Conversion trait that allows a sequence of tuples to be converted into
PyDictPrimary use case for this trait iscallandcall_methodmethods as keywords argument. - PyAny
Methods - This trait represents the Python APIs which are usable on all Python objects.
- PyBool
Methods - Implementation of functionality for
PyBool. - PyByte
Array Methods - Implementation of functionality for
PyByteArray. - PyBytes
Methods - Implementation of functionality for
PyBytes. - PyCapsule
Methods - Implementation of functionality for
PyCapsule. - PyCode
Methods - Implementation of functionality for
PyCode. - PyComplex
Methods - Implementation of functionality for
PyComplex. - PyDate
Access Non- Py_LIMITED_API - Trait for accessing the date components of a struct containing a date.
- PyDelta
Access Non- Py_LIMITED_API - Trait for accessing the components of a struct containing a timedelta.
- PyDict
Methods - Implementation of functionality for
PyDict. - PyFloat
Methods - Implementation of functionality for
PyFloat. - PyFrame
Methods Non- GraalPyand non-Py_LIMITED_APIand non-PyPy - Implementation of functionality for
PyFrame. - PyFrozen
SetMethods - Implementation of functionality for
PyFrozenSet. - PyList
Methods - Implementation of functionality for
PyList. - PyMapping
Methods - Implementation of functionality for
PyMapping. - PyMapping
Proxy Methods - Implementation of functionality for
PyMappingProxy. - PyModule
Methods - Implementation of functionality for
PyModule. - PyRange
Methods - Implementation of functionality for
PyRange. - PySequence
Methods - Implementation of functionality for
PySequence. - PySet
Methods - Implementation of functionality for
PySet. - PySlice
Methods - Implementation of functionality for
PySlice. - PyString
Methods - Implementation of functionality for
PyString. - PyTime
Access Non- Py_LIMITED_API - Trait for accessing the time components of a struct containing a time.
- PyTraceback
Methods - Implementation of functionality for
PyTraceback. - PyTuple
Methods - Implementation of functionality for
PyTuple. - PyType
Methods - Implementation of functionality for
PyType. - PyTz
Info Access - Trait for accessing the components of a struct containing a tzinfo.
- PyWeakref
Methods - Implementation of functionality for
PyWeakref.
Type Aliasesยง
- Capsule
Name Deprecated - Deprecated alias for
capsule::CapsuleName. - PyCode
Input Deprecated - Deprecated alias for
code::PyCodeInput. - PyFrozen
SetBuilder Deprecated - Deprecated alias for
frozenset::PyFrozenSetBuilder. - PyMutex
Deprecated Py_3_13and non-Py_LIMITED_API - Deprecated alias for
crate::sync::PyMutex. - PyMutex
Guard Deprecated Py_3_13and non-Py_LIMITED_API - Deprecated alias for
crate::sync::PyMutexGuard. - PySend
Result Deprecated Py_3_10and non-PyPy - Deprecated alias for
iterator::PySendResult. - PySlice
Indices Deprecated - Deprecated alias for
slice::PySliceIndices. - PyString
Data Deprecated Non- Py_LIMITED_API - Deprecated alias for
string::PyStringData.