Skip to content

Commit 1ea5226

Browse files
Minor api
1 parent 5563aea commit 1ea5226

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

headergen/server.py

+11
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ def get_types(file_path: str = ""):
4949
return analysis_meta["types_formatted"]
5050

5151

52+
@app.get("/get_cs")
53+
def get_types(file_path: str = ""):
54+
is_safe = is_path_safe(file_path)
55+
if not is_safe[0]:
56+
return is_safe[1]
57+
else:
58+
analysis_meta = headergen.get_analysis_output(str(file_path), out_path)
59+
60+
return analysis_meta["pycg_output"]
61+
62+
5263
@app.get("/get_analysis_notebook")
5364
def get_analysis(file_path: str = ""):
5465
is_safe = is_path_safe(file_path)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def package_files(directory):
3434

3535
setuptools.setup(
3636
name="headergen",
37-
version="1.3.0",
37+
version="1.3.1",
3838
description="HeaderGen: Automated cell header generator",
3939
long_description=open("README.md").read(),
4040
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)