MCPcopy Index your code

hub / github.com/data-apis/python-record-api / functions

Functions2,475 in github.com/data-apis/python-record-api

↓ 38 callersMethodtrace
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 callersMethodpop
return the top item on the stack and removes it from the stack
record_api/core.py:342
↓ 26 callersMethoditems
usage.scipy: 1
data/typing/collections.abc.py:5
↓ 18 callersFunctionunify
(types: typing.Iterable[OutputType])
record_api/type_analysis.py:74
↓ 17 callersMethodassertCalls
(self, *calls)
record_api/test.py:29
↓ 17 callersMethodprocess
( self, keyed_args: Tuple, fn: Callable, args: Iterable, kwargs: Mapping = {} )
record_api/core.py:362
↓ 14 callersMethodappend
usage.dask: 2
data/typing/pandas.core.series.py:388
↓ 12 callersFunctionpreprocess
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 callersFunctionrecord_method
(inst: OutputType, name: str, s: Signature)
record_api/infer_apis.py:393
↓ 10 callersFunctionsig
(metadata: Metadata, *args: OutputType)
record_api/infer_apis.py:309
↓ 9 callersFunctionmerge_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 callersFunctionis_unknown
(tp: object)
record_api/type_analysis.py:174
↓ 6 callersFunctioncreate_type
(o: object)
record_api/type_analysis.py:62
↓ 6 callersFunctionshould_output
(o: OutputType)
record_api/infer_apis.py:248
↓ 6 callersMethodsplit
usage.dask: 8
data/typing/pandas.core.strings.py:51
↓ 6 callersFunctionto_output
(tp: InputType)
record_api/type_analysis.py:168
↓ 5 callersMethodclose
usage.scipy: 1
data/typing/numpy.lib.npyio.py:13
↓ 5 callersMethodfrom_input
(cls, input: NamedInput)
record_api/type_analysis.py:382
↓ 5 callersMethodget
usage.dask: 10
data/typing/pandas.core.frame.py:724
↓ 5 callersMethodpop_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 callersMethodstartswith
usage.pandas: 9
data/typing/numpy.py:10986
↓ 4 callersFunctionadd_list
(l: typing.List[T], a: T)
record_api/apis.py:879
↓ 4 callersFunctioncreate_overloads
Copies signature to create overloads. Needs to copy because we inplace update the signature later on
record_api/apis.py:162
↓ 4 callersFunctionmove
Moves keys from right to left, making sure to use original ordering in r
record_api/apis.py:765
↓ 4 callersFunctionpartial_key_ordering
(d: typing.Dict[str, Type])
record_api/apis.py:707
↓ 4 callersFunctionsort_items
(d: typing.Dict[str, V])
record_api/apis.py:308
↓ 3 callersMethodadd
usage.dask: 7
data/typing/pandas.core.series.py:355
↓ 3 callersFunctionany
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 callersFunctionassign_properties
( p: typing.Dict[str, typing.Tuple[Metadata, Type]], is_classvar=False )
record_api/apis.py:279
↓ 3 callersFunctionencode_module_value
For all things not in builtins, return the module name, otherwise just return the name
record_api/core.py:92
↓ 3 callersFunctionfunction_defs
Exports CST for functions plus overloads
record_api/apis.py:315
↓ 3 callersMethodsafe_create
(cls, tp_i: NamedInput)
record_api/type_analysis.py:407
↓ 2 callersFunctionbad_name
(name: str)
record_api/apis.py:29
↓ 2 callersFunctionfinalize
()
record_api/core.py:602
↓ 2 callersMethodfunction_def
( self, name: str, type: typing.Literal["function", "classmethod", "method"],
record_api/apis.py:407
↓ 2 callersFunctionfunction_def_with_overloads
( name: str, overloads: typing.List[Signature], fn: Signature, type: typing.Literal["function"
record_api/apis.py:332
↓ 2 callersFunctionget_tracer
()
record_api/core.py:33
↓ 2 callersFunctiongetmodulename
(v)
record_api/core.py:42
↓ 2 callersMethodior_constructor
(self, other: typing.Optional[Signature])
record_api/apis.py:224
↓ 2 callersMethodjoin
usage.dask: 31
data/typing/pandas.core.frame.py:820
↓ 2 callersMethodjson
(self, **kwargs)
record_api/apis.py:82
↓ 2 callersMethodmean
usage.scipy: 187
data/typing/numpy.py:8972
↓ 2 callersFunctionmerge_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 callersFunctionmetadata_lines
(m: Metadata)
record_api/apis.py:702
↓ 2 callersMethodop_BUILD_TUPLE_UNPACK
(self)
record_api/core.py:410
↓ 2 callersFunctionpossibly_order_dict
Resort dict by topographical sorting of order
record_api/apis.py:717
↓ 2 callersMethodreshape
usage.dask: 1 usage.scipy: 2
data/typing/numpy.py:8419
↓ 2 callersMethodsetUp
(self)
record_api/test.py:13
↓ 2 callersFunctionsetup
()
record_api/core.py:595
↓ 2 callersFunctionslice_dict
Slices n off the front of the dict
record_api/apis.py:752
↓ 2 callersMethodsort
usage.dask: 4 usage.matplotlib: 4 usage.pandas: 3 usage.sample-usage: 2 usage.scipy: 20 usage.skimage
data/typing/numpy.py:10430
↓ 2 callersFunctionunify_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 callersFunctionupdate_list
(l: typing.List[T], *others: typing.Iterable[T])
record_api/apis.py:884
↓ 1 callersMethod__enter__
(self)
record_api/core.py:552
↓ 1 callersMethod__exit__
(self, exc_type, exc_val, exc_tb)
record_api/core.py:555
↓ 1 callersFunction__main__
()
record_api/line_counts.py:24
↓ 1 callersFunction__main__
()
record_api/infer_apis.py:24
↓ 1 callersFunction__main__
()
record_api/write_api.py:32
↓ 1 callersFunction__main__
()
record_api/combine_apis.py:17
↓ 1 callersMethod_copy_kw_only
(self, other: Signature)
record_api/apis.py:653
↓ 1 callersMethod_copy_pos_only
(self, other: Signature)
record_api/apis.py:560
↓ 1 callersMethod_copy_pos_or_kw
(self, other: Signature)
record_api/apis.py:610
↓ 1 callersMethod_copy_var_kw
(self, other: Signature)
record_api/apis.py:689
↓ 1 callersMethod_copy_var_pos
(self, other: Signature)
record_api/apis.py:646
↓ 1 callersFunction_unify_output_tp
( cls: typing.Type[OUTPUT_TYPE], tps: typing.Iterable[OUTPUT_TYPE] )
record_api/type_analysis.py:120
↓ 1 callersMethodas_dict
Turn into dict, ignoring empty values
record_api/core.py:236
↓ 1 callersMethodastype
usage.pandas: 1 usage.skimage: 2
data/typing/numpy.py:8613
↓ 1 callersMethodbasis
usage.sample-usage: 1
data/typing/numpy.polynomial.chebyshev.py:9
↓ 1 callersMethodbody
(self, indent: int)
record_api/apis.py:428
↓ 1 callersMethodclass_def
(self, name: str)
record_api/apis.py:202
↓ 1 callersMethodcontent_equal
Returns true if all fields besides metadata are equal
record_api/apis.py:539
↓ 1 callersMethodcopy
usage.dask: 1 usage.scipy: 168
data/typing/numpy.py:8958
↓ 1 callersMethodcreate
(cls, fn, args, kwargs)
record_api/core.py:248
↓ 1 callersMethoddecode
usage.matplotlib: 1
data/typing/numpy.py:5696
↓ 1 callersMethoddocstring
(self, indent: int)
record_api/apis.py:432
↓ 1 callersFunctionencode
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 callersFunctionfn
()
record_api/sample_usage.py:4
↓ 1 callersMethodfrom_bound_params
( cls, pos_only: typing.List[typing.Tuple[str, object]] = [], pos_or_kw: typing.List[t
record_api/apis.py:517
↓ 1 callersMethodfrom_params
( cls, args: typing.List[object] = [], kwargs: typing.Dict[str, object] = {} )
record_api/apis.py:506
↓ 1 callersFunctionlines_in_file
https://gist.github.com/zed/0ac760859e614cd03652#file-gistfile1-py-L41
record_api/jsonl.py:53
↓ 1 callersFunctionlog_call
( location: str, fn: Callable, args: Iterable = (), kwargs: Mapping[str, Any] = {}, )
record_api/core.py:271
↓ 1 callersMethodparameters
( self, type: typing.Literal["function", "classmethod", "method"] )
record_api/apis.py:437
↓ 1 callersFunctionparse_line
( n: int, function: object, params=None, bound_params=None, )
record_api/infer_apis.py:44
↓ 1 callersFunctionprocess_function
(f: OutputType, s: Signature)
record_api/infer_apis.py:56
↓ 1 callersMethodrandom
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 callersFunctionread_lines
(path, n: int, stream: io.TextIOWrapper)
record_api/jsonl.py:30
↓ 1 callersMethodreduce
usage.matplotlib: 8 usage.pandas: 5 usage.sample-usage: 1 usage.scipy: 24 usage.skimage: 6 usage.skle
data/typing/numpy.py:11301
↓ 1 callersFunctionsafe_signature
If fn is hashable, cache it, otherwise dont use cached version
record_api/core.py:213
↓ 1 callersMethodshould_trace
(self, *values)
record_api/core.py:558
↓ 1 callersMethodshould_trace_frame
(self, frame)
record_api/core.py:583
↓ 1 callersFunctionsignature
(fn)
record_api/core.py:209
↓ 1 callersMethodto_output
(self)
record_api/type_analysis.py:230
↓ 1 callersMethodunify
(cls, tps: typing.Iterable[NoneOutput])
record_api/type_analysis.py:182
↓ 1 callersMethodvalidate_again
Use to manually validate for debugging when fields change
record_api/apis.py:56
↓ 1 callersFunctionwrite
(path: str, **kwargs)
record_api/jsonl.py:40
↓ 1 callersFunctionwrite_line
(o: dict, buffer=buffer)
record_api/jsonl.py:44
MethodA1
usage.scipy: 3 usage.sklearn: 1
data/typing/numpy.matrixlib.defmatrix.py:5
MethodTOS
(self)
record_api/core.py:331
MethodTOS1
(self)
record_api/core.py:335
MethodTOS2
(self)
record_api/core.py:339
next →1–100 of 2,475, ranked by callers