Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudpipe/cloudpickle
/ functions
Functions
348 in github.com/cloudpipe/cloudpickle
⨍
Functions
348
◇
Types & classes
48
↓ 84 callers
Function
pickle_depickle
Helper function to test whether object pickled with cloudpickle can be depickled with pickle
tests/cloudpickle_test.py:70
↓ 12 callers
Function
assert_run_python_script
Utility to help check pickleability of objects defined in __main__ The script provided in the source code should return 0 and not print anyth
tests/testutils.py:179
↓ 12 callers
Method
join
(self)
tests/cloudpickle_test.py:2076
↓ 11 callers
Function
f
()
tests/cloudpickle_testpkg/_cloudpickle_testpkg/__init__.py:31
↓ 11 callers
Method
run
Synchronous remote function call
tests/testutils.py:144
↓ 11 callers
Function
subprocess_worker
(protocol=None)
tests/testutils.py:173
↓ 7 callers
Function
load_obj
(filename, check_deprecation_warning="auto")
tests/test_backward_compat.py:20
↓ 6 callers
Function
_should_pickle_by_reference
Test whether an function or a class should be pickled by reference Pickling by reference means by that the object (typically a function or a
cloudpickle/cloudpickle.py:239
↓ 6 callers
Function
check_deterministic_pickle
Check that two pickle output are bitwise equal. If it is not the case, print the diff between the disassembled pickle payloads. This hel
tests/testutils.py:219
↓ 6 callers
Method
dump
(self, obj)
cloudpickle/cloudpickle.py:1325
↓ 5 callers
Function
_lookup_module_and_qualname
(obj, name=None)
cloudpickle/cloudpickle.py:275
↓ 5 callers
Method
f
A function with no closure cells
tests/cloudpickle_test.py:293
↓ 4 callers
Method
close
(self)
tests/testutils.py:168
↓ 4 callers
Function
dumps
Serialize obj as a string of bytes allocated in memory protocol defaults to cloudpickle.DEFAULT_PROTOCOL which is an alias to pickle.HIGHEST_
cloudpickle/cloudpickle.py:1543
↓ 4 callers
Function
list_registry_pickle_by_value
()
cloudpickle/cloudpickle.py:176
↓ 4 callers
Method
method
(self)
tests/cloudpickle_test.py:94
↓ 4 callers
Function
register_pickle_by_value
Register a module to make its functions and classes picklable by value. By default, functions and classes that are attributes of an importable
cloudpickle/cloudpickle.py:127
↓ 4 callers
Function
unregister_pickle_by_value
Unregister that the input module should be pickled by value.
cloudpickle/cloudpickle.py:166
↓ 3 callers
Function
_get_or_create_tracker_id
(class_def)
cloudpickle/cloudpickle.py:107
↓ 3 callers
Function
_lookup_class_or_track
(class_tracker_id, class_def)
cloudpickle/cloudpickle.py:117
↓ 3 callers
Function
_make_empty_cell
()
cloudpickle/cloudpickle.py:526
↓ 3 callers
Method
some_method
(self, x)
tests/cloudpickle_test.py:424
↓ 3 callers
Function
subprocess_pickle_echo
Echo function with a child Python process Pickle the input data into a buffer, send it to a subprocess via stdin, expect the subprocess to unp
tests/testutils.py:83
↓ 2 callers
Method
_check_dynamic_module
(self, mod)
tests/cloudpickle_test.py:540
↓ 2 callers
Function
_class_getstate
(obj)
cloudpickle/cloudpickle.py:757
↓ 2 callers
Function
_dynamic_class_reduce
Save a class that can't be referenced as a module attribute. This method is used to serialize classes that are defined inside functions, or t
cloudpickle/cloudpickle.py:1056
↓ 2 callers
Method
_dynamic_function_reduce
Reduce a function that is not pickleable via attribute lookup.
cloudpickle/cloudpickle.py:1272
↓ 2 callers
Function
_escape
(raw_filepath)
tests/cloudpickle_test.py:77
↓ 2 callers
Function
_extract_class_dict
Retrieve a copy of the dict of a class without the inherited method.
cloudpickle/cloudpickle.py:426
↓ 2 callers
Function
_getattribute
(obj, name)
cloudpickle/cloudpickle.py:196
↓ 2 callers
Function
_is_registered_pickle_by_value
(module)
cloudpickle/cloudpickle.py:180
↓ 2 callers
Function
_make_cwd_env
Helper to prepare environment for the child processes
tests/testutils.py:32
↓ 2 callers
Method
_save_reduce_pickle5
( self, func, args, state=None, listitems=None,
cloudpickle/cloudpickle.py:1422
↓ 2 callers
Function
_whichmodule
Find the module an object belongs to. This function differs from ``pickle.whichmodule`` in two ways: - it does not mangle the cases where obj
cloudpickle/cloudpickle.py:205
↓ 2 callers
Function
g
(x)
tests/testutils.py:23
↓ 2 callers
Method
one
(self)
tests/cloudpickle_test.py:421
↓ 2 callers
Function
run_in_notebook
(code, timeout=10)
tests/cloudpickle_ipykernel_test.py:19
↓ 2 callers
Method
some_classmethod
A classmethod
tests/cloudpickle_test.py:1266
↓ 2 callers
Method
some_staticmethod
A staticmethod
tests/cloudpickle_test.py:1271
↓ 2 callers
Function
subprocess_pickle_string
Retrieve pickle string of an object generated by a child Python process Pickle the input data into a buffer, send it to a subprocess via stdi
tests/testutils.py:43
↓ 2 callers
Method
test_cm
(cls)
tests/cloudpickle_test.py:502
↓ 1 callers
Method
__reduce__
(self)
tests/cloudpickle_test.py:66
↓ 1 callers
Function
_all_types_to_test
()
tests/cloudpickle_test.py:3146
↓ 1 callers
Function
_class_getnewargs
(obj)
cloudpickle/cloudpickle.py:672
↓ 1 callers
Function
_class_reduce
Select the reducer depending on the dynamic nature of the class obj.
cloudpickle/cloudpickle.py:1083
↓ 1 callers
Function
_decompose_typevar
(obj)
cloudpickle/cloudpickle.py:609
↓ 1 callers
Function
_enum_getnewargs
(obj)
cloudpickle/cloudpickle.py:691
↓ 1 callers
Function
_enum_getstate
(obj)
cloudpickle/cloudpickle.py:802
↓ 1 callers
Function
_extract_code_globals
Find all globals names read or written to by codeblock co.
cloudpickle/cloudpickle.py:315
↓ 1 callers
Function
_find_imported_submodules
Find currently imported submodules used by a function. Submodules used by a function need to be detected and referenced for the function to w
cloudpickle/cloudpickle.py:340
↓ 1 callers
Method
_function_getnewargs
(self, func)
cloudpickle/cloudpickle.py:1292
↓ 1 callers
Function
_function_getstate
(func)
cloudpickle/cloudpickle.py:714
↓ 1 callers
Method
_function_reduce
Reducer for function objects. If obj is a top-level attribute of a file-backed module, this reducer returns NotImplemented, making th
cloudpickle/cloudpickle.py:1278
↓ 1 callers
Function
_get_bases
(typ)
cloudpickle/cloudpickle.py:633
↓ 1 callers
Function
_maybe_remove
(list_, item)
tests/cloudpickle_test.py:82
↓ 1 callers
Function
_read_all_bytes
(stream_in, chunk_size=4096)
tests/testutils.py:97
↓ 1 callers
Function
_walk_global_ops
Yield referenced name for global-referencing instructions in code.
cloudpickle/cloudpickle.py:418
↓ 1 callers
Method
check_logger
(self, name)
tests/cloudpickle_test.py:1196
↓ 1 callers
Function
dump_obj
(obj, filename)
tests/generate_old_pickles.py:28
↓ 1 callers
Method
foo
()
tests/cloudpickle_test.py:204
↓ 1 callers
Method
is_green
(self)
tests/cloudpickle_test.py:2373
↓ 1 callers
Method
it_works
(self)
tests/cloudpickle_test.py:384
↓ 1 callers
Function
local_function
()
tests/mock_local_folder/mod.py:12
↓ 1 callers
Function
make_local_function
()
tests/testutils.py:22
↓ 1 callers
Method
method_c
(self)
tests/cloudpickle_test.py:108
↓ 1 callers
Function
module_function
()
tests/cloudpickle_testpkg/_cloudpickle_testpkg/mod.py:59
↓ 1 callers
Function
nested_function
(b)
tests/generate_old_pickles.py:36
↓ 1 callers
Function
nested_function_factory
()
tests/generate_old_pickles.py:33
↓ 1 callers
Function
package_function
Function living inside a package, not a simple module
tests/cloudpickle_testpkg/_cloudpickle_testpkg/__init__.py:5
↓ 1 callers
Function
pickle_echo
Read a pickle from stdin and pickle it back to stdout
tests/testutils.py:107
↓ 1 callers
Function
relative_imports_factory
Factory creating dynamically-defined functions using relative imports Relative import of functions living both inside modules and packages are
tests/cloudpickle_testpkg/_cloudpickle_testpkg/__init__.py:24
↓ 1 callers
Method
save_global
Main dispatch method. The name of this method is somewhat misleading: all types get dispatched here.
cloudpickle/cloudpickle.py:1455
↓ 1 callers
Method
save_pypy_builtin_func
Save pypy equivalent of builtin functions. PyPy does not have the concept of builtin-functions. Instead, builtin-functions ar
cloudpickle/cloudpickle.py:1496
↓ 1 callers
Method
test_sm
()
tests/cloudpickle_test.py:498
Function
__getattr__
(name)
cloudpickle/cloudpickle_fast.py:13
Method
__getattr__
(self, item)
tests/cloudpickle_test.py:167
Method
__getattr__
(self, name)
tests/cloudpickle_test.py:1475
Method
__getattr__
(self, name)
tests/cloudpickle_test.py:1546
Method
__getattribute__
(self, name)
tests/cloudpickle_test.py:2537
Method
__ini__
(self)
tests/cloudpickle_test.py:1472
Method
__init__
(self, file, protocol=None, buffer_callback=None)
cloudpickle/cloudpickle.py:1332
Method
__init__
(self, exc)
tests/cloudpickle_test.py:63
Method
__init__
(self, value)
tests/cloudpickle_test.py:418
Method
__init__
Class definition with explicit __init__
tests/cloudpickle_test.py:2121
Method
__init__
(self)
tests/cloudpickle_test.py:2322
Method
__init__
(self)
tests/cloudpickle_test.py:2336
Method
__init__
(self, protocol=None)
tests/testutils.py:139
Method
__init__
(self, attribute)
tests/generate_old_pickles.py:53
Method
__init__
(self, attribute: T)
tests/generate_old_pickles.py:80
Method
__reduce__
(cls)
cloudpickle/cloudpickle.py:516
Method
__reduce__
(self)
tests/cloudpickle_test.py:194
Method
__reduce__
(self)
tests/cloudpickle_test.py:628
Method
__reduce__
(self)
tests/cloudpickle_testpkg/_cloudpickle_testpkg/__init__.py:19
Method
__type__
(self)
tests/cloudpickle_test.py:2751
Method
__values__
(self)
tests/cloudpickle_test.py:2741
Method
_add_to_registry
(v, k)
tests/cloudpickle_test.py:2949
Function
_builtin_type
(name)
cloudpickle/cloudpickle.py:409
Method
_call_from_registry
(k)
tests/cloudpickle_test.py:2953
Function
_cell_reduce
Cell (containing values of a function's free variables) reducer.
cloudpickle/cloudpickle.py:952
Function
_class_setstate
(obj, state)
cloudpickle/cloudpickle.py:1178
next →
1–100 of 348, ranked by callers