Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/data-apis/python-record-api
/ functions
Functions
2,475 in github.com/data-apis/python-record-api
⨍
Functions
2,475
◇
Types & classes
258
↳
Endpoints
2
↓ 38 callers
Method
trace
use exec so that it is called in child scope. alternatively could use IIFE but this is more verbose in the tests
record_api/test.py:19
↓ 28 callers
Method
pop
return the top item on the stack and removes it from the stack
record_api/core.py:342
↓ 26 callers
Method
items
usage.scipy: 1
data/typing/collections.abc.py:5
↓ 18 callers
Function
unify
(types: typing.Iterable[OutputType])
record_api/type_analysis.py:74
↓ 17 callers
Method
assertCalls
(self, *calls)
record_api/test.py:29
↓ 17 callers
Method
process
( self, keyed_args: Tuple, fn: Callable, args: Iterable, kwargs: Mapping = {} )
record_api/core.py:362
↓ 14 callers
Method
append
usage.dask: 2
data/typing/pandas.core.series.py:388
↓ 12 callers
Function
preprocess
Preserves lists, strings, and None. Tuples and dicts are recursed. All others primitive subclasses are replaced with their types. A
record_api/core.py:163
↓ 11 callers
Function
record_method
(inst: OutputType, name: str, s: Signature)
record_api/infer_apis.py:393
↓ 10 callers
Function
sig
(metadata: Metadata, *args: OutputType)
record_api/infer_apis.py:309
↓ 9 callers
Function
merge_intersection
Moves all keys that are present in both left and right only to left, using function to merge them!
record_api/apis.py:785
↓ 8 callers
Function
is_unknown
(tp: object)
record_api/type_analysis.py:174
↓ 6 callers
Function
create_type
(o: object)
record_api/type_analysis.py:62
↓ 6 callers
Function
should_output
(o: OutputType)
record_api/infer_apis.py:248
↓ 6 callers
Method
split
usage.dask: 8
data/typing/pandas.core.strings.py:51
↓ 6 callers
Function
to_output
(tp: InputType)
record_api/type_analysis.py:168
↓ 5 callers
Method
close
usage.scipy: 1
data/typing/numpy.lib.npyio.py:13
↓ 5 callers
Method
from_input
(cls, input: NamedInput)
record_api/type_analysis.py:382
↓ 5 callers
Method
get
usage.dask: 10
data/typing/pandas.core.frame.py:724
↓ 5 callers
Method
pop_n
removes the top N items from the stack and returns them so the top item is on the left.
record_api/core.py:353
↓ 5 callers
Method
startswith
usage.pandas: 9
data/typing/numpy.py:10986
↓ 4 callers
Function
add_list
(l: typing.List[T], a: T)
record_api/apis.py:879
↓ 4 callers
Function
create_overloads
Copies signature to create overloads. Needs to copy because we inplace update the signature later on
record_api/apis.py:162
↓ 4 callers
Function
move
Moves keys from right to left, making sure to use original ordering in r
record_api/apis.py:765
↓ 4 callers
Function
partial_key_ordering
(d: typing.Dict[str, Type])
record_api/apis.py:707
↓ 4 callers
Function
sort_items
(d: typing.Dict[str, V])
record_api/apis.py:308
↓ 3 callers
Method
add
usage.dask: 7
data/typing/pandas.core.series.py:355
↓ 3 callers
Function
any
usage.dask: 81 usage.matplotlib: 16 usage.pandas: 46 usage.scipy: 206 usage.skimage: 36 usage.sklearn: 83 usage.xarray: 2
data/typing/numpy.py:2037
↓ 3 callers
Function
assign_properties
( p: typing.Dict[str, typing.Tuple[Metadata, Type]], is_classvar=False )
record_api/apis.py:279
↓ 3 callers
Function
encode_module_value
For all things not in builtins, return the module name, otherwise just return the name
record_api/core.py:92
↓ 3 callers
Function
function_defs
Exports CST for functions plus overloads
record_api/apis.py:315
↓ 3 callers
Method
safe_create
(cls, tp_i: NamedInput)
record_api/type_analysis.py:407
↓ 2 callers
Function
bad_name
(name: str)
record_api/apis.py:29
↓ 2 callers
Function
finalize
()
record_api/core.py:602
↓ 2 callers
Method
function_def
( self, name: str, type: typing.Literal["function", "classmethod", "method"],
record_api/apis.py:407
↓ 2 callers
Function
function_def_with_overloads
( name: str, overloads: typing.List[Signature], fn: Signature, type: typing.Literal["function"
record_api/apis.py:332
↓ 2 callers
Function
get_tracer
()
record_api/core.py:33
↓ 2 callers
Function
getmodulename
(v)
record_api/core.py:42
↓ 2 callers
Method
ior_constructor
(self, other: typing.Optional[Signature])
record_api/apis.py:224
↓ 2 callers
Method
join
usage.dask: 31
data/typing/pandas.core.frame.py:820
↓ 2 callers
Method
json
(self, **kwargs)
record_api/apis.py:82
↓ 2 callers
Method
mean
usage.scipy: 187
data/typing/numpy.py:8972
↓ 2 callers
Function
merge_overloads
Merges the two lists of overloads, updating the old list. Any signatures that match, we take the union of their metadata.
record_api/apis.py:852
↓ 2 callers
Function
metadata_lines
(m: Metadata)
record_api/apis.py:702
↓ 2 callers
Method
op_BUILD_TUPLE_UNPACK
(self)
record_api/core.py:410
↓ 2 callers
Function
possibly_order_dict
Resort dict by topographical sorting of order
record_api/apis.py:717
↓ 2 callers
Method
reshape
usage.dask: 1 usage.scipy: 2
data/typing/numpy.py:8419
↓ 2 callers
Method
setUp
(self)
record_api/test.py:13
↓ 2 callers
Function
setup
()
record_api/core.py:595
↓ 2 callers
Function
slice_dict
Slices n off the front of the dict
record_api/apis.py:752
↓ 2 callers
Method
sort
usage.dask: 4 usage.matplotlib: 4 usage.pandas: 3 usage.sample-usage: 2 usage.scipy: 20 usage.skimage
data/typing/numpy.py:10430
↓ 2 callers
Function
unify_named_types
Verifies the names are the same and unifies the types. Returns None if no args passed in or all are none
record_api/apis.py:726
↓ 2 callers
Function
update_list
(l: typing.List[T], *others: typing.Iterable[T])
record_api/apis.py:884
↓ 1 callers
Method
__enter__
(self)
record_api/core.py:552
↓ 1 callers
Method
__exit__
(self, exc_type, exc_val, exc_tb)
record_api/core.py:555
↓ 1 callers
Function
__main__
()
record_api/line_counts.py:24
↓ 1 callers
Function
__main__
()
record_api/infer_apis.py:24
↓ 1 callers
Function
__main__
()
record_api/write_api.py:32
↓ 1 callers
Function
__main__
()
record_api/combine_apis.py:17
↓ 1 callers
Method
_copy_kw_only
(self, other: Signature)
record_api/apis.py:653
↓ 1 callers
Method
_copy_pos_only
(self, other: Signature)
record_api/apis.py:560
↓ 1 callers
Method
_copy_pos_or_kw
(self, other: Signature)
record_api/apis.py:610
↓ 1 callers
Method
_copy_var_kw
(self, other: Signature)
record_api/apis.py:689
↓ 1 callers
Method
_copy_var_pos
(self, other: Signature)
record_api/apis.py:646
↓ 1 callers
Function
_unify_output_tp
( cls: typing.Type[OUTPUT_TYPE], tps: typing.Iterable[OUTPUT_TYPE] )
record_api/type_analysis.py:120
↓ 1 callers
Method
as_dict
Turn into dict, ignoring empty values
record_api/core.py:236
↓ 1 callers
Method
astype
usage.pandas: 1 usage.skimage: 2
data/typing/numpy.py:8613
↓ 1 callers
Method
basis
usage.sample-usage: 1
data/typing/numpy.polynomial.chebyshev.py:9
↓ 1 callers
Method
body
(self, indent: int)
record_api/apis.py:428
↓ 1 callers
Method
class_def
(self, name: str)
record_api/apis.py:202
↓ 1 callers
Method
content_equal
Returns true if all fields besides metadata are equal
record_api/apis.py:539
↓ 1 callers
Method
copy
usage.dask: 1 usage.scipy: 168
data/typing/numpy.py:8958
↓ 1 callers
Method
create
(cls, fn, args, kwargs)
record_api/core.py:248
↓ 1 callers
Method
decode
usage.matplotlib: 1
data/typing/numpy.py:5696
↓ 1 callers
Method
docstring
(self, indent: int)
record_api/apis.py:432
↓ 1 callers
Function
encode
Encodes an object for serialization. Type is always serialized as well If falsy is returned, the value is not included.
record_api/core.py:51
↓ 1 callers
Function
fn
()
record_api/sample_usage.py:4
↓ 1 callers
Method
from_bound_params
( cls, pos_only: typing.List[typing.Tuple[str, object]] = [], pos_or_kw: typing.List[t
record_api/apis.py:517
↓ 1 callers
Method
from_params
( cls, args: typing.List[object] = [], kwargs: typing.Dict[str, object] = {} )
record_api/apis.py:506
↓ 1 callers
Function
lines_in_file
https://gist.github.com/zed/0ac760859e614cd03652#file-gistfile1-py-L41
record_api/jsonl.py:53
↓ 1 callers
Function
log_call
( location: str, fn: Callable, args: Iterable = (), kwargs: Mapping[str, Any] = {}, )
record_api/core.py:271
↓ 1 callers
Method
parameters
( self, type: typing.Literal["function", "classmethod", "method"] )
record_api/apis.py:437
↓ 1 callers
Function
parse_line
( n: int, function: object, params=None, bound_params=None, )
record_api/infer_apis.py:44
↓ 1 callers
Function
process_function
(f: OutputType, s: Signature)
record_api/infer_apis.py:56
↓ 1 callers
Method
random
usage.dask: 157 usage.matplotlib: 24 usage.pandas: 35 usage.sample-usage: 1 usage.scipy: 220 usage.sk
data/typing/numpy.random.mtrand.py:442
↓ 1 callers
Function
read_lines
(path, n: int, stream: io.TextIOWrapper)
record_api/jsonl.py:30
↓ 1 callers
Method
reduce
usage.matplotlib: 8 usage.pandas: 5 usage.sample-usage: 1 usage.scipy: 24 usage.skimage: 6 usage.skle
data/typing/numpy.py:11301
↓ 1 callers
Function
safe_signature
If fn is hashable, cache it, otherwise dont use cached version
record_api/core.py:213
↓ 1 callers
Method
should_trace
(self, *values)
record_api/core.py:558
↓ 1 callers
Method
should_trace_frame
(self, frame)
record_api/core.py:583
↓ 1 callers
Function
signature
(fn)
record_api/core.py:209
↓ 1 callers
Method
to_output
(self)
record_api/type_analysis.py:230
↓ 1 callers
Method
unify
(cls, tps: typing.Iterable[NoneOutput])
record_api/type_analysis.py:182
↓ 1 callers
Method
validate_again
Use to manually validate for debugging when fields change
record_api/apis.py:56
↓ 1 callers
Function
write
(path: str, **kwargs)
record_api/jsonl.py:40
↓ 1 callers
Function
write_line
(o: dict, buffer=buffer)
record_api/jsonl.py:44
Method
A1
usage.scipy: 3 usage.sklearn: 1
data/typing/numpy.matrixlib.defmatrix.py:5
Method
TOS
(self)
record_api/core.py:331
Method
TOS1
(self)
record_api/core.py:335
Method
TOS2
(self)
record_api/core.py:339
next →
1–100 of 2,475, ranked by callers