MCPcopy Create free account

hub / github.com/ardanlabs/python-go / functions

Functions89 in github.com/ardanlabs/python-go

↓ 6 callersFunctionNewOutliers
NewOutliers returns an new Outliers using moduleName.funcName Python function
py-in-mem/outliers.go:38
↓ 5 callersMethodClose
Close flushes all trades to the database and prevents any future trading.
sqlite/trades/trades.go:114
↓ 5 callersMethodClose
Close frees the underlying Python function You can't use the object after closing it
py-in-mem/outliers.go:85
↓ 4 callersMethodAdd
Add stores a trade into the buffer. Once the buffer is full, the trades are flushed to the database.
sqlite/trades/trades.go:79
↓ 4 callersMethodDetect
(ctx context.Context, in *OutliersRequest, opts ...grpc.CallOption)
grpc/pb/outliers.pb.go:325
↓ 4 callersMethodDetect
Detect returns slice of outliers indices
py-in-mem/outliers.go:53
↓ 3 callersMethodDescriptor
Deprecated: Use Metric.ProtoReflect.Descriptor instead.
grpc/pb/outliers.pb.go:71
↓ 3 callersFunctionNewDB
NewDB constructs a Trades value for managing stock trades in a SQLite database. This API is not thread safe.
sqlite/trades/trades.go:54
↓ 3 callersFunctionfile_outliers_proto_rawDescGZIP
()
grpc/pb/outliers.pb.go:224
↓ 3 callersFunctionpyLastError
Python last error
py-in-mem/outliers.go:114
↓ 2 callersFunctionCheckSignatures
CheckSignatures calculates sha1 signatures for files in rootDir and compare them with signatures found at "sha1sum.txt" in the same directory. It'll r
pyext/checksig.go:18
↓ 2 callersMethodFlush
Flush inserts pending trades into the database.
sqlite/trades/trades.go:95
↓ 2 callersFunctionNewOutliersClient
(cc grpc.ClientConnInterface)
grpc/pb/outliers.pb.go:332
↓ 2 callersFunctioncheck_signatures
Check (in parallel) digital signature of all files in root_dir. We assume there's a sha1sum.txt file under root_dir
pyext/checksig.py:21
↓ 2 callersFunctiondummyData
()
grpc/client.go:35
↓ 2 callersFunctiongenData
()
py-in-mem/outliers_test.go:10
↓ 2 callersFunctiontempFile
(require *require.Assertions)
sqlite/trades/trades_test.go:15
↓ 2 callersFunctionverify
export verify
pyext/export.go:6
↓ 1 callersMethodBench
(context.Context, *pb.Empty)
pyext/bench/server.go:17
↓ 1 callersFunctionTimestamp
Timestamp converts time.Time to protobuf *Timestamp
grpc/client.go:57
↓ 1 callersFunctionadd_OutliersServicer_to_server
(servicer, server)
grpc/py/outliers_pb2_grpc.py:33
↓ 1 callersFunctionaverage_price
Return average price in df grouped by (stock, buy)
sqlite/analyze_trades.py:27
↓ 1 callersFunctioncArrToSlice
Create a new []int from a *C.long
py-in-mem/outliers.go:128
↓ 1 callersFunctioncall
(chan)
pyext/bench/client.py:7
↓ 1 callersFunctioncollatzStep
(n int)
lisp/collatz.go:7
↓ 1 callersFunctioncollatz_step
(n)
lisp/collatz.py:1
↓ 1 callersFunctionfileSig
fileSig returns the fileName sha1 digital signature of the specified file.
pyext/checksig.go:50
↓ 1 callersFunctionfile_outliers_proto_init
()
grpc/pb/outliers.pb.go:251
↓ 1 callersFunctionfind_outliers
Return indices where values more than 2 standard deviations from mean
grpc/py/server.py:11
↓ 1 callersFunctiongenData
()
py-in-mem/example.go:9
↓ 1 callersFunctioninitialize
initialize Python & numpy, idempotent
py-in-mem/outliers.go:25
↓ 1 callersFunctionloadPyFunc
loadPyFunc loads a Python function by module and function name
py-in-mem/outliers.go:94
↓ 1 callersFunctionload_trades
Load trades from db_file in given time range.
sqlite/analyze_trades.py:14
↓ 1 callersFunctionparseSigFile
parseSigFile parses the signature file and returns a map of path->signature.
pyext/checksig.go:66
FunctionBenchmarkAdd
(b *testing.B)
sqlite/trades/trades_test.go:44
FunctionBenchmarkClient
(b *testing.B)
grpc/client_test.go:13
FunctionBenchmarkOutliers
(b *testing.B)
py-in-mem/outliers_test.go:59
MethodDescriptor
Deprecated: Use OutliersRequest.ProtoReflect.Descriptor instead.
grpc/pb/outliers.pb.go:132
MethodDescriptor
Deprecated: Use OutliersResponse.ProtoReflect.Descriptor instead.
grpc/pb/outliers.pb.go:179
MethodDetect
(self, request, context)
grpc/py/server.py:19
MethodDetect
Missing associated documentation comment in .proto file
grpc/py/outliers_pb2_grpc.py:26
MethodDetect
(request, target, options=(), channel_credentials=None, call_c
grpc/py/outliers_pb2_grpc.py:51
MethodDetect
(ctx context.Context, in *OutliersRequest, opts ...grpc.CallOption)
grpc/pb/outliers.pb.go:336
MethodDetect
(context.Context, *OutliersRequest)
grpc/pb/outliers.pb.go:347
MethodDetect
(context.Context, *OutliersRequest)
grpc/pb/outliers.pb.go:354
FunctionExample
()
py-in-mem/example.go:13
FunctionExampleDB
()
sqlite/trades/trades_test.go:66
MethodGetIndices
()
grpc/pb/outliers.pb.go:183
MethodGetMetrics
()
grpc/pb/outliers.pb.go:136
MethodGetName
()
grpc/pb/outliers.pb.go:82
MethodGetTime
()
grpc/pb/outliers.pb.go:75
MethodGetValue
()
grpc/pb/outliers.pb.go:89
MethodProtoMessage
()
grpc/pb/outliers.pb.go:56
MethodProtoMessage
()
grpc/pb/outliers.pb.go:117
MethodProtoMessage
()
grpc/pb/outliers.pb.go:164
MethodProtoReflect
()
grpc/pb/outliers.pb.go:58
MethodProtoReflect
()
grpc/pb/outliers.pb.go:119
MethodProtoReflect
()
grpc/pb/outliers.pb.go:166
FunctionRegisterOutliersServer
(s *grpc.Server, srv OutliersServer)
grpc/pb/outliers.pb.go:358
MethodReset
()
grpc/pb/outliers.pb.go:43
MethodReset
()
grpc/pb/outliers.pb.go:104
MethodReset
()
grpc/pb/outliers.pb.go:151
MethodString
()
grpc/pb/outliers.pb.go:52
MethodString
()
grpc/pb/outliers.pb.go:113
MethodString
()
grpc/pb/outliers.pb.go:160
FunctionTestAdd
(t *testing.T)
sqlite/trades/trades_test.go:22
FunctionTestDetect
(t *testing.T)
py-in-mem/outliers_test.go:25
FunctionTestLogs
(t *testing.T)
pyext/checksig_test.go:7
FunctionTestNil
(t *testing.T)
py-in-mem/outliers_test.go:49
FunctionTestNotFound
(t *testing.T)
py-in-mem/outliers_test.go:39
Function_Outliers_Detect_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
grpc/pb/outliers.pb.go:362
Method__init__
Constructor. Args: channel: A grpc.Channel.
grpc/py/outliers_pb2_grpc.py:10
Functionbench
export bench
pyext/bench/so.go:6
Methodbuild_extension
(self, ext)
pyext/setup.py:11
Functionconnect
(host, port)
pyext/bench/client.py:13
Functiondetect
Return indices where values more than 2 standard deviations from mean
py-in-mem/outliers.py:5
Functiondetect
Call a function with array of values
py-in-mem/glue.c:33
Functioninit
()
grpc/pb/outliers.pb.go:250
Functioninit_python
Return void * since import_array is a macro returning NULL
py-in-mem/glue.c:6
Functionload_func
Load function, same as "import module_name.func_name as obj" in Python Returns the function object or NULL if not found
py-in-mem/glue.c:13
Functionmain
()
lisp/collatz.go:14
Functionmain
()
grpc/client.go:15
Functionmain
()
pyext/export.go:15
Functionmain
()
pyext/bench/so.go:8
Functionmain
()
pyext/bench/server.go:21
Functionpy_decref
Decrement reference counter for object. We can't use Py_DECREF directly from Go since it's a macro
py-in-mem/glue.c:75
Functionpy_last_error
Return last error as char *, NULL if there was no error
py-in-mem/glue.c:61
Methodtest_logs
(self)
pyext/test_checksig.py:7
Functiontime_type
(value)
sqlite/analyze_trades.py:32