Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ardanlabs/python-go
/ functions
Functions
89 in github.com/ardanlabs/python-go
⨍
Functions
89
◇
Types & classes
18
↓ 6 callers
Function
NewOutliers
NewOutliers returns an new Outliers using moduleName.funcName Python function
py-in-mem/outliers.go:38
↓ 5 callers
Method
Close
Close flushes all trades to the database and prevents any future trading.
sqlite/trades/trades.go:114
↓ 5 callers
Method
Close
Close frees the underlying Python function You can't use the object after closing it
py-in-mem/outliers.go:85
↓ 4 callers
Method
Add
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 callers
Method
Detect
(ctx context.Context, in *OutliersRequest, opts ...grpc.CallOption)
grpc/pb/outliers.pb.go:325
↓ 4 callers
Method
Detect
Detect returns slice of outliers indices
py-in-mem/outliers.go:53
↓ 3 callers
Method
Descriptor
Deprecated: Use Metric.ProtoReflect.Descriptor instead.
grpc/pb/outliers.pb.go:71
↓ 3 callers
Function
NewDB
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 callers
Function
file_outliers_proto_rawDescGZIP
()
grpc/pb/outliers.pb.go:224
↓ 3 callers
Function
pyLastError
Python last error
py-in-mem/outliers.go:114
↓ 2 callers
Function
CheckSignatures
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 callers
Method
Flush
Flush inserts pending trades into the database.
sqlite/trades/trades.go:95
↓ 2 callers
Function
NewOutliersClient
(cc grpc.ClientConnInterface)
grpc/pb/outliers.pb.go:332
↓ 2 callers
Function
check_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 callers
Function
dummyData
()
grpc/client.go:35
↓ 2 callers
Function
genData
()
py-in-mem/outliers_test.go:10
↓ 2 callers
Function
tempFile
(require *require.Assertions)
sqlite/trades/trades_test.go:15
↓ 2 callers
Function
verify
export verify
pyext/export.go:6
↓ 1 callers
Method
Bench
(context.Context, *pb.Empty)
pyext/bench/server.go:17
↓ 1 callers
Function
Timestamp
Timestamp converts time.Time to protobuf *Timestamp
grpc/client.go:57
↓ 1 callers
Function
add_OutliersServicer_to_server
(servicer, server)
grpc/py/outliers_pb2_grpc.py:33
↓ 1 callers
Function
average_price
Return average price in df grouped by (stock, buy)
sqlite/analyze_trades.py:27
↓ 1 callers
Function
cArrToSlice
Create a new []int from a *C.long
py-in-mem/outliers.go:128
↓ 1 callers
Function
call
(chan)
pyext/bench/client.py:7
↓ 1 callers
Function
collatzStep
(n int)
lisp/collatz.go:7
↓ 1 callers
Function
collatz_step
(n)
lisp/collatz.py:1
↓ 1 callers
Function
fileSig
fileSig returns the fileName sha1 digital signature of the specified file.
pyext/checksig.go:50
↓ 1 callers
Function
file_outliers_proto_init
()
grpc/pb/outliers.pb.go:251
↓ 1 callers
Function
find_outliers
Return indices where values more than 2 standard deviations from mean
grpc/py/server.py:11
↓ 1 callers
Function
genData
()
py-in-mem/example.go:9
↓ 1 callers
Function
initialize
initialize Python & numpy, idempotent
py-in-mem/outliers.go:25
↓ 1 callers
Function
loadPyFunc
loadPyFunc loads a Python function by module and function name
py-in-mem/outliers.go:94
↓ 1 callers
Function
load_trades
Load trades from db_file in given time range.
sqlite/analyze_trades.py:14
↓ 1 callers
Function
parseSigFile
parseSigFile parses the signature file and returns a map of path->signature.
pyext/checksig.go:66
Function
BenchmarkAdd
(b *testing.B)
sqlite/trades/trades_test.go:44
Function
BenchmarkClient
(b *testing.B)
grpc/client_test.go:13
Function
BenchmarkOutliers
(b *testing.B)
py-in-mem/outliers_test.go:59
Method
Descriptor
Deprecated: Use OutliersRequest.ProtoReflect.Descriptor instead.
grpc/pb/outliers.pb.go:132
Method
Descriptor
Deprecated: Use OutliersResponse.ProtoReflect.Descriptor instead.
grpc/pb/outliers.pb.go:179
Method
Detect
(self, request, context)
grpc/py/server.py:19
Method
Detect
Missing associated documentation comment in .proto file
grpc/py/outliers_pb2_grpc.py:26
Method
Detect
(request, target, options=(), channel_credentials=None, call_c
grpc/py/outliers_pb2_grpc.py:51
Method
Detect
(ctx context.Context, in *OutliersRequest, opts ...grpc.CallOption)
grpc/pb/outliers.pb.go:336
Method
Detect
(context.Context, *OutliersRequest)
grpc/pb/outliers.pb.go:347
Method
Detect
(context.Context, *OutliersRequest)
grpc/pb/outliers.pb.go:354
Function
Example
()
py-in-mem/example.go:13
Function
ExampleDB
()
sqlite/trades/trades_test.go:66
Method
GetIndices
()
grpc/pb/outliers.pb.go:183
Method
GetMetrics
()
grpc/pb/outliers.pb.go:136
Method
GetName
()
grpc/pb/outliers.pb.go:82
Method
GetTime
()
grpc/pb/outliers.pb.go:75
Method
GetValue
()
grpc/pb/outliers.pb.go:89
Method
ProtoMessage
()
grpc/pb/outliers.pb.go:56
Method
ProtoMessage
()
grpc/pb/outliers.pb.go:117
Method
ProtoMessage
()
grpc/pb/outliers.pb.go:164
Method
ProtoReflect
()
grpc/pb/outliers.pb.go:58
Method
ProtoReflect
()
grpc/pb/outliers.pb.go:119
Method
ProtoReflect
()
grpc/pb/outliers.pb.go:166
Function
RegisterOutliersServer
(s *grpc.Server, srv OutliersServer)
grpc/pb/outliers.pb.go:358
Method
Reset
()
grpc/pb/outliers.pb.go:43
Method
Reset
()
grpc/pb/outliers.pb.go:104
Method
Reset
()
grpc/pb/outliers.pb.go:151
Method
String
()
grpc/pb/outliers.pb.go:52
Method
String
()
grpc/pb/outliers.pb.go:113
Method
String
()
grpc/pb/outliers.pb.go:160
Function
TestAdd
(t *testing.T)
sqlite/trades/trades_test.go:22
Function
TestDetect
(t *testing.T)
py-in-mem/outliers_test.go:25
Function
TestLogs
(t *testing.T)
pyext/checksig_test.go:7
Function
TestNil
(t *testing.T)
py-in-mem/outliers_test.go:49
Function
TestNotFound
(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
Function
bench
export bench
pyext/bench/so.go:6
Method
build_extension
(self, ext)
pyext/setup.py:11
Function
connect
(host, port)
pyext/bench/client.py:13
Function
detect
Return indices where values more than 2 standard deviations from mean
py-in-mem/outliers.py:5
Function
detect
Call a function with array of values
py-in-mem/glue.c:33
Function
init
()
grpc/pb/outliers.pb.go:250
Function
init_python
Return void * since import_array is a macro returning NULL
py-in-mem/glue.c:6
Function
load_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
Function
main
()
lisp/collatz.go:14
Function
main
()
grpc/client.go:15
Function
main
()
pyext/export.go:15
Function
main
()
pyext/bench/so.go:8
Function
main
()
pyext/bench/server.go:21
Function
py_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
Function
py_last_error
Return last error as char *, NULL if there was no error
py-in-mem/glue.c:61
Method
test_logs
(self)
pyext/test_checksig.py:7
Function
time_type
(value)
sqlite/analyze_trades.py:32