File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 1
- # AutoSQL
1
+ # Lang2SQL
2
2
3
- AutoSQL은 자연어 입력을 기반으로 SQL을 생성하는 프로젝트입니다. LangGraph, DataHub를 활용하여 데이터를 분석하고 최적의 SQL 쿼리를 생성 및 최적화합니다.
3
+ Lang2SQL은 자연어 입력을 기반으로 SQL을 생성하는 프로젝트입니다. LangGraph, DataHub를 활용하여 데이터를 분석하고 최적의 SQL 쿼리를 생성 및 최적화합니다.
4
4
5
5
## 📌 프로젝트 목표
6
6
1 . 자연어 입력을 기반으로 SQL 쿼리를 자동으로 생성
@@ -34,16 +34,22 @@ python setup.py install
34
34
35
35
### 3️⃣ CLI 명령어 사용
36
36
37
- 설치 후, ` autosql ` 명령어를 사용할 수 있습니다. 예를 들어, Streamlit 앱을 실행하려면 다음과 같이 입력합니다:
37
+ 설치 후, ` lang2sql ` 명령어를 사용할 수 있습니다. 예를 들어, Streamlit 앱을 실행하려면 다음과 같이 입력합니다:
38
38
39
39
``` bash
40
- autosql --run-streamlit
40
+ lang2sql --run-streamlit
41
41
```
42
42
43
43
기본 포트는 8501이며, 다른 포트를 사용하려면 ` -p ` 옵션을 사용하세요:
44
44
45
45
``` bash
46
- autosql --run-streamlit -p 8502
46
+ lang2sql --run-streamlit -p 8502
47
+ ```
48
+
49
+ DataHub GMS 서버 URL을 설정하려면 ` --datahub_server ` 옵션을 사용하세요. 기본값은 ` http://localhost:8080 ` 입니다:
50
+
51
+ ``` bash
52
+ lang2sql --datahub_server http://your-datahub-server:8080 --run-streamlit
47
53
```
48
54
49
55
### 4️⃣ 환경 변수 설정
@@ -69,15 +75,24 @@ LANGCHAIN_API_KEY=your-langchain-api-key
69
75
70
76
---
71
77
72
- ## 빌드 방법
78
+ ## 빌드 및 배포 방법
79
+
80
+ ### 수동 빌드
73
81
74
82
```
75
83
python setup.py sdist bdist_wheel
76
84
twine upload dist/*
77
85
```
78
86
87
+ ### GitHub Actions를 통한 자동 배포
88
+
89
+ GitHub 저장소에 태그를 ` v* ` 형식으로 푸시하면, GitHub Actions가 자동으로 PyPI에 패키지를 배포합니다. 이 과정은 ` .github/workflows/pypi-release.yml ` 파일에 정의되어 있습니다.
90
+
91
+ - ** 태그 형식** : ` v1.0.0 ` 등
92
+ - ** 필요한 설정** : GitHub Secrets에 ` PYPI_API_TOKEN ` 을 설정해야 합니다.
93
+
79
94
---
80
95
81
- ## 📄 라이선스
96
+ ## 라이선스
82
97
MIT License
83
98
Original file line number Diff line number Diff line change 6
6
7
7
setup (
8
8
name = "lang2sql" , # 패키지 이름
9
- version = "0.1.4" , # 버전
9
+ version = "0.1.5" , # 버전
10
+ author = "ehddnr301" ,
11
+
12
+ url = "https://github.com/ehddnr301/lang2sql" ,
10
13
description = "Lang2SQL - Query Generator for Data Warehouse" ,
11
14
long_description = long_description ,
12
15
long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments