Skip to content

Commit

Permalink
Minor api
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinprasadme committed Oct 18, 2024
1 parent 5563aea commit 1ea5226
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions headergen/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ def get_types(file_path: str = ""):
return analysis_meta["types_formatted"]


@app.get("/get_cs")
def get_types(file_path: str = ""):
is_safe = is_path_safe(file_path)
if not is_safe[0]:
return is_safe[1]
else:
analysis_meta = headergen.get_analysis_output(str(file_path), out_path)

return analysis_meta["pycg_output"]


@app.get("/get_analysis_notebook")
def get_analysis(file_path: str = ""):
is_safe = is_path_safe(file_path)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def package_files(directory):

setuptools.setup(
name="headergen",
version="1.3.0",
version="1.3.1",
description="HeaderGen: Automated cell header generator",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 1ea5226

Please sign in to comment.