-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate documentation using Techdocs
- Loading branch information
Showing
16 changed files
with
99 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ build | |
dist | ||
techdocs.egg-info | ||
|
||
test.py | ||
test.py | ||
temp.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,40 @@ | ||
--- | ||
title: TechdocsAPI | ||
emoji: 🚀 | ||
colorFrom: green | ||
colorTo: green | ||
sdk: docker | ||
app_file: TechdocsAPI/app.py | ||
pinned: false | ||
--- | ||
|
||
# Techdocs: A code documentation generator | ||
|
||
# Techdocs | ||
### Code Documentation, Redefined: Where AI Meets Clarity! | ||
|
||
|
||
## Introduction | ||
|
||
**Code Documentation Generation** is a tool that generates documentation for your code. It is a simple tool that can be used by anyone who wants to generate documentation for their code. It leverages the power of **OpenAI GPT-3, Huggingface Transformers, Langchain and Clarifai** to generate documentation for your code. | ||
**Code Documentation Generation** is a tool that generates documentation for your code. It is a simple tool that can be used by anyone who wants to generate documentation for their code. It leverages the power of **Huggingface Transformers, Langchain and Clarifai** to generate documentation for your code. | ||
|
||
To use the application, you need to provide your code as input. The tool will analyze your code and generate documentation for it. The documentation will include comments, descriptions, parameters, return values, examples, and more. | ||
|
||
It is a useful tool for developers who want to document their code without spending too much time and effort. It can help you improve the readability, maintainability, and quality of your code. It can also help you share your code with others more easily. | ||
|
||
## Installation | ||
> Download zip or Clone the repository and run the following command in the terminal to install the required packages. | ||
> We recommend using a virtual environment for the installation. | ||
|
||
```bash | ||
$ git clone https://github.com/HemanthSai7/Techdocs | ||
$ cd Techdocs | ||
$ pip install -r requirements.txt | ||
$ -- Run backend | ||
$ uvicorn app:app --reload # For running the FastAPI server | ||
$ -- Run frontend | ||
$ cd frontend | ||
$ streamlit run app.py # For running the Streamlit App | ||
$ pip install techdocs | ||
``` | ||
|
||
## Streamlit App | ||
- Head over to the [Website](https://techdocs.streamlit.app) and `signup/login` to use the tool. | ||
- Once you are logged in, Head over to [Code](techdocs.streamlit.app/Code) page and generate your `API KEY` by clicking on the `Generate API KEY` button. Please note that the API KEY will be visible only once and you need to copy it and save it somewhere safe. | ||
- Copy the API KEY and paste it in the `API KEY` field in the [Code](techdocs.streamlit.app/Code) | ||
- Now, you can paste your code in the `Code` field and click on the `Generate Documentation` button. | ||
- The generated documentation will be displayed in the `Documentation` field. | ||
|
||
|
||
## Demo and Screenshots | ||
##### Demo Screenshot 1 | ||
![Result 1](assets/results1.png) | ||
|
||
##### Demo Screenshot 2 | ||
![Result 2](assets/results2.png) | ||
|
||
##### Demo Screenshot 3 | ||
![Result 3](assets/results3.png) | ||
## Demo | ||
[![thumbnail](https://i9.ytimg.com/vi_webp/T7FMd7jGb8w/mqdefault.webp?v=6548c43c&sqp=CICSp6oG&rs=AOn4CLDDRJuaPfqJuYNM649GdckHfBklbA)](https://youtu.be/T7FMd7jGb8w) | ||
|
||
## Tech Stack Used | ||
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) | ||
![Azure](https://img.shields.io/badge/azure_SQL-%230072C6.svg?style=for-the-badge&logo=microsoftazure&logoColor=white) | ||
![Azure SQL](https://img.shields.io/badge/azure_SQL-%230072C6.svg?style=for-the-badge&logo=microsoftazure&logoColor=white) | ||
![FastAPI](https://img.shields.io/badge/FastAPI-005571?style=for-the-badge&logo=fastapi) | ||
![Vercel](https://img.shields.io/badge/vercel-%23000000.svg?style=for-the-badge&logo=vercel&logoColor=white) | ||
![JWT](https://img.shields.io/badge/JWT-black?style=for-the-badge&logo=JSON%20web%20tokens) | ||
![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white) | ||
![Streamlit](https://img.shields.io/badge/Streamlit-EA6566?style=for-the-badge&logo=streamlit&logoColor=white) | ||
![Langchain](https://img.shields.io/badge/Langchain-F70A8D?style=for-the-badge&logo=langchain&logoColor=white) | ||
![Clarifai](https://img.shields.io/badge/Clarifai-FFA500?style=for-the-badge&logo=clarifai&logoColor=white) | ||
![Huggingface 🤗](https://img.shields.io/badge/huggingface-FFA500?style=for-the-badge&logo=huggingface&logoColor=white) | ||
![Docker](https://img.shields.io/badge/docker-%230072C6.svg?style=for-the-badge&logo=docker&logoColor=white) | ||
|
||
## Team Members | ||
| Name | Github | | ||
| --- | --- | | ||
| Mayuresh Agashe | [Mayuresh Agashe](https://github.com/mayureshagashe2105) | | ||
| Hemanth Sai Garladinne | [Hemanth Sai Garladinne](https://github.com/HemanthSai7) | | ||
| Hemanth Sai Garladinne | [Hemanth Sai Garladinne](https://github.com/HemanthSai7) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .ops import * | ||
from .utils.JWTBearer import * | ||
from .utils.JWTBearer import * | ||
from .utils.functools import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import requests | ||
from typing import Any, Dict | ||
import json | ||
|
||
def post_request(url: str, data: Dict[str, Any], headers: Dict[str, str]=None): | ||
json_data = json.dumps(data) | ||
headers = {'Content-type': 'application/json', 'Accept': 'application/json'} | ||
response = requests.post(url, data=json_data, headers=headers) | ||
return response.status_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ pydantic[email] | |
langchain | ||
clarifai | ||
Pillow | ||
fastapi_mail==1.3.1 | ||
jinja2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.2.1" | ||
__version__ = "0.2.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters