gibson-cli 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
command/auth/Login.py CHANGED
@@ -9,7 +9,10 @@ class Login(BaseCommand):
9
9
  token = cli.login()
10
10
 
11
11
  if token is None:
12
- self.conversation.type("Login failed, please try again.")
12
+ self.conversation.newline()
13
+ self.conversation.type(
14
+ "Login failed, please try again with `gibson auth login`."
15
+ )
13
16
  else:
14
17
  self.configuration.set_access_token(token)
15
18
  self.conversation.type(f"Welcome! You are now logged in.")
@@ -1,9 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gibson-cli
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Gibson Command Line Interface
5
5
  Author-email: GibsonAI <noc@gibsonai.com>
6
6
  Project-URL: Homepage, https://gibsonai.com/
7
+ Project-URL: Documentation, https://docs.gibsonai.com/
8
+ Project-URL: Repository, https://github.com/gibsonai/cli
9
+ Project-URL: Issues, https://github.com/gibsonai/cli/issues
10
+ Project-URL: Changelog, https://github.com/gibsonai/cli/releases
7
11
  Classifier: Operating System :: OS Independent
8
12
  Classifier: Development Status :: 4 - Beta
9
13
  Classifier: Intended Audience :: Developers
@@ -11,9 +15,14 @@ Classifier: Programming Language :: Python :: 3.9
11
15
  Requires-Python: >=3.9
12
16
  Description-Content-Type: text/markdown
13
17
 
18
+
19
+ [![GibsonAI](https://github.com/user-attachments/assets/26bc1002-f878-4995-a6c5-eb8d5eb69c28)](https://gibsonai.com/)
20
+
14
21
  # Gibson CLI
15
22
 
16
- v.0.1.0
23
+ [![PyPI - Version](https://img.shields.io/pypi/v/gibson-cli)](https://pypi.org/project/gibson-cli/)
24
+ ![Python 3.9+](https://img.shields.io/badge/Python-3.9%2B-blue)
25
+ [![Docs](https://img.shields.io/badge/Docs-https://docs.gibsonai.com-green)](https://docs.gibsonai.com)
17
26
 
18
27
  ## Prerequisites
19
28
 
@@ -23,10 +32,9 @@ Portions of the Gibson backend code are written by Gibson. So far, versus a hum
23
32
 
24
33
  ## Installation
25
34
 
26
- - Clone this repository somewhere in your environment
27
- - Modify your `PYTHONPATH` to include a reference to the top level directory here
28
- - `pip3 install -r requirements.txt`
29
- - Add the `bin/` directory to your `PATH`
35
+ ```sh
36
+ pip3 install gibson-cli
37
+ ```
30
38
 
31
39
  ## Key Terms
32
40
 
@@ -304,3 +312,8 @@ At the moment, just refer to the base-level schema directly.
304
312
  - e.g. `gibson ? add nickname to sql://user`
305
313
  - `gibson model`
306
314
  - Important note, `gibson ?` may cause your shell to incorrectly interpret the question mark. If it does, you can use `gibson q` instead (just replace the question mark with the letter `q`).
315
+
316
+ ## Contributing
317
+
318
+ - Clone this repository somewhere in your file system
319
+ - `pip3 install [path to this repository]`
@@ -31,7 +31,7 @@ command/Tests.py,sha256=1l8iJs2W6fJDKMPL9Qdx7Qzm2I3azg_esthrZihK-S4,897
31
31
  command/Tree.py,sha256=JWvUimeHWY5-6vEh6axTkhAdI-dVTxbKSjx_4isAAx8,3041
32
32
  command/WarGames.py,sha256=vgMXSddUEU_PwDKyI7K0j-FN7uPs5jznfRj-CWh78FI,1280
33
33
  command/auth/Auth.py,sha256=taUwmwAsJWN19oKmjgVGhPA_A8vj6vQLmNUVkuiqfjg,666
34
- command/auth/Login.py,sha256=C3ZzV-Pp1C4RtAhpJ3IkJIwfgRY8pcUQmZRyMLT5hpU,454
34
+ command/auth/Login.py,sha256=oEdvzXYgO1RGYXMiJWpGWQpMqVEv0reDSyyEInVtt8o,549
35
35
  command/auth/Logout.py,sha256=kxyHEGUXp4Ql6VS9R0eQfZqRDf8yhAslZNXExwh1gjY,199
36
36
  command/tests/test_command_BaseCommand.py,sha256=BCeceiGl6ljjxkPiHMKzzrzjK1BUPWTHu9fTwGIETJI,350
37
37
  command/tests/test_command_Conf.py,sha256=4tgWLoIYNuv-bmCAFFy2Kl9nau5KtCwKJMKwMCfL8ow,569
@@ -73,7 +73,7 @@ display/tests/test_display_WorkspaceFooter.py,sha256=fDxXdwDmQLIRWYIBHbh32gfy2eW
73
73
  display/tests/test_display_WorkspaceHeader.py,sha256=Mhloli8KkyVFqv3-Ci4CDggXjrdJ5xebyZmw4foxsuE,309
74
74
  lang/Python.py,sha256=qplU7xoplAIwWTTUSP1RcG3eMhHNUcbyJxCh1yZsXP8,1672
75
75
  lang/tests/test_lang_Python.py,sha256=nulN-VSftAG2BM9HGFUP2RGUHebJAOCWIVPLbHY96Uk,1961
76
- services/auth/Server.py,sha256=s5qNHxhY-ySSGa2RaK4zZIS3K908ulihx35d2F2Xg2k,1973
76
+ services/auth/Server.py,sha256=LF5Fcdm-zX9-pgIXfSyLIR_vmlN86m70BJXmnshavWA,2141
77
77
  services/code/context/schema/DataDictionary.py,sha256=zWLzxOzW8iMHxfXPEwnnbruEAtFa8j1UpghNd4AHzfA,369
78
78
  services/code/context/schema/EntityKeys.py,sha256=c8psaGfKseGN9V84xTjotgoLNs41sshbgX9K6ToFXHI,1548
79
79
  services/code/context/schema/Manager.py,sha256=rzj4eTfLn2NDJVop4VWqedNZ6oN0ST1hXqK54UwHe5A,892
@@ -95,8 +95,8 @@ structure/keys/tests/test_ForeignKey.py,sha256=rcNEgHpYjg5fYsbSHa1zd_N09NFRRyimD
95
95
  structure/keys/tests/test_Index.py,sha256=0ZFHEnU5DJBtxG2TCavVD13Rq6aloUXPFM1bspWhbXg,2163
96
96
  structure/keys/tests/test_IndexAttribute.py,sha256=_v3aKmL06cgXuV3xLXJMdp-8oPxHStj7qymtF3HtGrQ,381
97
97
  structure/tests/test_Entity.py,sha256=MYog9b_IV3gbfYx9_hPmCgX3JNPz0t6cXQ-LU1WobjE,3117
98
- gibson_cli-0.1.0.dist-info/METADATA,sha256=OMPI6DftiUJ_LO30DLGRDp9-d9nwswwLVQb9Lr77x2I,10886
99
- gibson_cli-0.1.0.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
100
- gibson_cli-0.1.0.dist-info/entry_points.txt,sha256=VAGCYo_zQgGI5bYR4Ql4rHhl5Zt7iA-Irt1v4iriLvQ,43
101
- gibson_cli-0.1.0.dist-info/top_level.txt,sha256=e26JAjLAeXm2tl9nuW9OxrRvzkIXNYlXnHo-Yf5ZtnE,70
102
- gibson_cli-0.1.0.dist-info/RECORD,,
98
+ gibson_cli-0.1.1.dist-info/METADATA,sha256=n7Ik9v48Ewnb0XR4zsruKTFRknMlPyIR0RfrHVA7BAU,11437
99
+ gibson_cli-0.1.1.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
100
+ gibson_cli-0.1.1.dist-info/entry_points.txt,sha256=VAGCYo_zQgGI5bYR4Ql4rHhl5Zt7iA-Irt1v4iriLvQ,43
101
+ gibson_cli-0.1.1.dist-info/top_level.txt,sha256=e26JAjLAeXm2tl9nuW9OxrRvzkIXNYlXnHo-Yf5ZtnE,70
102
+ gibson_cli-0.1.1.dist-info/RECORD,,
services/auth/Server.py CHANGED
@@ -1,5 +1,4 @@
1
1
  import webbrowser
2
-
3
2
  import time
4
3
  from http.server import HTTPServer, BaseHTTPRequestHandler
5
4
  from threading import Thread
@@ -15,10 +14,10 @@ class Handler(BaseHTTPRequestHandler):
15
14
  token = params.get("token", [""])[0]
16
15
 
17
16
  if token:
18
- self.respond(200, "OK")
17
+ self.respond(200, "You are now logged in! You can close this window.")
19
18
  self.server.token = token
20
19
  else:
21
- self.respond(400, "Bad Request")
20
+ self.respond(400, "Login failed, please close this window and try again.")
22
21
 
23
22
  self.server._stop()
24
23
 
@@ -57,8 +56,11 @@ class Server(HTTPServer):
57
56
  self._start()
58
57
  self._open_browser()
59
58
 
60
- while self.thread is not None:
61
- time.sleep(1)
59
+ try:
60
+ while self.thread is not None:
61
+ time.sleep(1)
62
+ except KeyboardInterrupt:
63
+ self._stop()
62
64
 
63
65
  return self.token
64
66