Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,5 @@ demos/data/BIOGRID-IDENTIFIERS-3.3.123.tab.txt

# local jupyter dev
jupyter_dev/

out/
25 changes: 25 additions & 0 deletions bin/stubgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

TMP_PATH=${TMP_PATH:-/tmp/graphistry-stubgen}

rm -rf $TMP_PATH
mkdir -p $TMP_PATH

stubgen -o $TMP_PATH -q --export-less --no-import graphistry
#find $TMP_PATH

(
# generate combined .pyi stub file for each file in graphistry
for f in `find graphistry | grep -v graphistry/tests | grep -E '*.py$' | grep -E 'chain|hop'`; do
#stubgen -o $TMP_PATH $f

# f2 as f except without the prefix graphistry
f2=`echo $f | sed 's/^graphistry\///'`

echo "### $f2"
cat $TMP_PATH/${f}i \
| grep -v -E '^import|^from|^#|^$' \
| grep -E '(^class)|(^ )|(^def)|(^@)'
echo
done
) #| wc -c