gibson-cli 0.8.8__py3-none-any.whl → 0.8.9__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.
@@ -10,7 +10,7 @@ class BaseCommand:
10
10
  self.memory = Memory(self.configuration)
11
11
 
12
12
  def customization_management_is_enabled(self):
13
- return self.__enable_customization_management == True
13
+ return self.__enable_customization_management
14
14
 
15
15
  def disable_customization_management(self):
16
16
  self.__enable_customization_management = False
gibson/command/Build.py CHANGED
@@ -15,7 +15,7 @@ class Build(BaseCommand):
15
15
 
16
16
  db = create_engine(self.configuration.project.datastore.uri)
17
17
  session = sessionmaker(autocommit=False, autoflush=False, bind=db)()
18
- table_exceptions = TableExceptions().universal()
18
+ TableExceptions().universal()
19
19
 
20
20
  self.conversation.type("Connected to datastore...\n")
21
21
 
@@ -52,7 +52,7 @@ class Build(BaseCommand):
52
52
  self.conversation.type(" foreign key checks have been enabled\n")
53
53
 
54
54
  def __build_postgresql(self, session):
55
- table_exceptions = TableExceptions().postgresql()
55
+ TableExceptions().postgresql()
56
56
 
57
57
  schema = list(session.execute("select current_schema()"))[0][0]
58
58
  self.conversation.type(f" current schema is {schema}\n")
@@ -83,12 +83,11 @@ class Build(BaseCommand):
83
83
  while tables != {}:
84
84
  remove = []
85
85
  for name, definition in tables.items():
86
-
87
86
  try:
88
87
  session.execute(definition)
89
88
  session.commit()
90
89
 
91
- self.conversation.type(f' {name.split(".")[-1]}\n')
90
+ self.conversation.type(f" {name.split('.')[-1]}\n")
92
91
 
93
92
  remove.append(name)
94
93
  except sqlalchemy.exc.ProgrammingError:
gibson/command/Forget.py CHANGED
@@ -14,11 +14,11 @@ class Forget(BaseCommand):
14
14
 
15
15
  if sys.argv[2] in ["all", "last"]:
16
16
  self.memory.forget_last()
17
- self.conversation.type(f"last memory is forgotten.\n")
17
+ self.conversation.type("last memory is forgotten.\n")
18
18
 
19
19
  if sys.argv[2] in ["all", "stored"]:
20
20
  self.memory.forget_entities()
21
- self.conversation.type(f"stored memory is forgotten.\n")
21
+ self.conversation.type("stored memory is forgotten.\n")
22
22
 
23
23
  self.conversation.newline()
24
24
 
@@ -1,6 +1,4 @@
1
- from gibson.api.BaseApi import BaseApi
2
1
  from gibson.command.BaseCommand import BaseCommand
3
- from gibson.services.auth.Server import Server as AuthServer
4
2
 
5
3
 
6
4
  class Login(BaseCommand):
@@ -32,14 +32,14 @@ class Module(BaseCommand):
32
32
  print(entity["definition"])
33
33
 
34
34
  self.conversation.newline()
35
- self.conversation.type(f"If you want to persist these new entities run:\n")
35
+ self.conversation.type("If you want to persist these new entities run:\n")
36
36
  self.conversation.type(
37
37
  f"{Colors.command(self.configuration.command, 'merge')}\n"
38
38
  )
39
39
 
40
40
  self.conversation.newline()
41
41
  self.conversation.type(
42
- f"Afterwards, you can modify any of these entities by running:\n"
42
+ "Afterwards, you can modify any of these entities by running:\n"
43
43
  )
44
44
  self.conversation.type(
45
45
  f"{Colors.command(self.configuration.command, 'modify', inputs=['[entity name]', '[instructions]'])}\n"
gibson/conf/Dev.py CHANGED
@@ -1,5 +1,3 @@
1
- import os
2
-
3
1
  from gibson.conf.dev.Api import Api
4
2
  from gibson.conf.dev.Base import Base
5
3
  from gibson.conf.dev.Model import Model
@@ -3,3 +3,9 @@ from gibson.conf.Dependencies import Dependencies
3
3
 
4
4
  def test_compute():
5
5
  dependencies = Dependencies().compute()
6
+
7
+ assert dependencies.api == "fastapi==0.85"
8
+ assert dependencies.model == "sqlalchemy==1.4"
9
+ assert dependencies.revision == "alembic==1.12"
10
+ assert dependencies.schema == "pydantic==2.6"
11
+ assert dependencies.test == "pytest==7.1"
@@ -127,7 +127,7 @@ class Configuration:
127
127
  test_file = f"{os.path.expandvars(path)}/gibsonai-test-file"
128
128
 
129
129
  try:
130
- with open(test_file, "w") as f:
130
+ with open(test_file, "w"):
131
131
  pass
132
132
 
133
133
  os.remove(test_file)
gibson/core/PythonPath.py CHANGED
@@ -24,7 +24,7 @@ class PythonPath:
24
24
  try:
25
25
  with open(f"{self.user_home}/{self.gibson_config}/config", "r") as f:
26
26
  config = json.loads(f.read())
27
- except:
27
+ except Exception:
28
28
  return self
29
29
 
30
30
  project_paths = filter(
@@ -1,5 +1,3 @@
1
- import pytest
2
-
3
1
  from gibson.structure.postgresql.References import References
4
2
  from gibson.structure.postgresql.table.ForeignKey import ForeignKey
5
3
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gibson-cli
3
- Version: 0.8.8
3
+ Version: 0.8.9
4
4
  Summary: Gibson Command Line Interface
5
5
  Author-email: GibsonAI <noc@gibsonai.com>
6
6
  Project-URL: Homepage, https://gibsonai.com/
@@ -38,7 +38,7 @@ Requires-Dist: markdown-it-py==3.0.0
38
38
  Requires-Dist: markupsafe==2.1.5
39
39
  Requires-Dist: mcp==1.6.0
40
40
  Requires-Dist: mdurl==0.1.2
41
- Requires-Dist: orjson==3.10.3
41
+ Requires-Dist: orjson==3.10.18
42
42
  Requires-Dist: packaging==24.2
43
43
  Requires-Dist: pluggy==1.4.0
44
44
  Requires-Dist: pydantic==2.11.0
@@ -68,7 +68,7 @@ Requires-Dist: typing-inspection==0.4.0
68
68
  Requires-Dist: ujson==5.9.0
69
69
  Requires-Dist: urllib3==1.26.6
70
70
  Requires-Dist: uvicorn==0.29.0
71
- Requires-Dist: watchfiles==0.21.0
71
+ Requires-Dist: watchfiles==1.0.5
72
72
  Requires-Dist: websockets==12.0
73
73
  Requires-Dist: yaspin==3.1.0
74
74
 
@@ -76,9 +76,9 @@ Requires-Dist: yaspin==3.1.0
76
76
 
77
77
  # Gibson CLI
78
78
 
79
- [![PyPI - Version](https://img.shields.io/pypi/v/gibson-cli)](https://pypi.org/project/gibson-cli/)
80
- ![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-blue)
81
- [![Docs](https://img.shields.io/badge/Docs-https://docs.gibsonai.com-green)](https://docs.gibsonai.com)
79
+ [![PyPI - Version](https://img.shields.io/pypi/v/gibson-cli?label=📦)](https://pypi.org/project/gibson-cli/)
80
+ ![Python 3.10+](https://img.shields.io/badge/🐍-Python%203.10%2B-blue)
81
+ [![Docs](https://img.shields.io/badge/📚-docs.gibsonai.com-green)](https://docs.gibsonai.com)
82
82
 
83
83
  ## Prerequisites
84
84
 
@@ -178,7 +178,7 @@ All of Gibson's configuration files and caches are stored in `$HOME/.gibson`. Us
178
178
 
179
179
  ### For Windows Users
180
180
 
181
- - Make sure that you have an environment variable called HOME set. Gibson will store its configuration files and caches in this directory. We recommend you keep this directory outside of any repository to which you might be committing.
181
+ - Make sure that you have an environment variable called `HOME` set. Gibson will store its configuration files and caches in this directory. We recommend you keep this directory outside of any repository to which you might be committing.
182
182
  - To execute the `gibson` command, follow these instructions:
183
183
  - Assuming the gibson executable is in `c:\Users\\[me]\projects\gibson\bin`
184
184
  - Run `python c:\Users\\[me]\projects\gibson\bin\gibson`
@@ -6,12 +6,12 @@ gibson/api/Cli.py,sha256=Qcm5NIQ4x1Wn6KfkrAzwvZeWyt-cKF_xD7_lTWL4Lbw,8071
6
6
  gibson/api/DataApi.py,sha256=JZN6q7bO2O87xBCsU9w96NgINOJJZx3d7jOiHoVH1Wo,542
7
7
  gibson/api/ProjectApi.py,sha256=1_gRAAgaqblV0I0D-R-wwgSQArQ4fSCxTDfTO3zDQzY,1212
8
8
  gibson/bin/gibson.py,sha256=ybtdrqLfmTb-gG2U7kWSHWSZDvc864omYR9vres38ZU,458
9
- gibson/command/BaseCommand.py,sha256=mmWUO0FxjMCbv3cHWnnasfAWnU_hTuGHUsRVJ4hUcqM,777
10
- gibson/command/Build.py,sha256=6lMdTa3HZvcbskoX8iJZJnekiJmyNVSbgGmgvh1v-BM,4421
9
+ gibson/command/BaseCommand.py,sha256=0LdxshtNj8sySMSaDFIPooDbdZx0mNMyhCuyqcF4JsU,769
10
+ gibson/command/Build.py,sha256=nFwYhO5lpq7cM6oSH6nBA2ubW8wW7aJFsXIwjE1F2EY,4382
11
11
  gibson/command/Conf.py,sha256=yuAGL6M8MUURG4hW3MAW043c-h_ALw3FHWbyCOR8YTQ,2375
12
12
  gibson/command/Count.py,sha256=QOagwCwDxUHYPivFntr-RWUmlKWKDHgDIGZBfju6VpY,1040
13
13
  gibson/command/Dev.py,sha256=zbZjsgAKAHlNUflEr_Lj2QmRBXNbIGIHrPJ3t5DcFC8,4213
14
- gibson/command/Forget.py,sha256=Fm1mUyZkK3HS5fIVgNaC3d97vcWWQVysdDkg4ciE8Bk,1018
14
+ gibson/command/Forget.py,sha256=rpUmnHISvQlMgsFwa0p2nndaygy9UvDph3mlOmwlugo,1016
15
15
  gibson/command/Help.py,sha256=Gih3JVZ3SLXrdZPInZccb-NtlzvSUTbTwW2NztKnrbo,6456
16
16
  gibson/command/Merge.py,sha256=R5ybMC1tUR5_T8YyUfXutzFa_V9j1_flv0s7KTJRq0M,1061
17
17
  gibson/command/Modify.py,sha256=XgTM6EodL7sVhWrnWuTCDx2PNJw3xo-aKI80HCmSpV8,1171
@@ -21,7 +21,7 @@ gibson/command/Show.py,sha256=qkkprY2JhA4qOOhYOwAECDnFZwTdqcsKsG4cwB_b-84,1409
21
21
  gibson/command/Tree.py,sha256=BeJ_13xrrRCK5FP2rQHWpDKrshVzte-_D1pNG1GXPIw,3056
22
22
  gibson/command/Version.py,sha256=jxkRdbQiyTdto18RpbL-5vudcbvLLX9kcl8vmkt7USw,1187
23
23
  gibson/command/auth/Auth.py,sha256=DAvnKq3Ks77QJwuGJCWA9Iv3c0Qq5pHFIpEA-gy6CxM,1086
24
- gibson/command/auth/Login.py,sha256=b43OfV76i6aGdOwj1NK64ZOdYlNyc08g3lZGQ_37KDw,437
24
+ gibson/command/auth/Login.py,sha256=4iv3lm-6QNTgtIaszpphyye4eeYOvjU6Ol6ZLmZQZ1I,337
25
25
  gibson/command/auth/Logout.py,sha256=QwW9pCNi61Ak0-1B-3spd_YlsmLYBxzV4uwyO0RYzxg,252
26
26
  gibson/command/code/Api.py,sha256=sSvAqEJXdgQjYcu0uiM6ndHE3GnfkfVL6eqP2Otkbww,1002
27
27
  gibson/command/code/Base.py,sha256=YJ2a5Hl0f9NXHUBBPvlt-dUIqEPWQz5vH6-1EHmbFbA,640
@@ -39,7 +39,7 @@ gibson/command/list/Entities.py,sha256=o5Wemlq_EpeObNwJHbCqkUT4nccfu_OOZ_gYWzJ05
39
39
  gibson/command/list/List.py,sha256=IA9VYuOiFdweg-6HIBZ5hECnMyNxsoU2dKd-gzRNtio,1107
40
40
  gibson/command/list/Projects.py,sha256=ju82kC3cuvAMGg4YJl1yn0l8t11fa1T5Zvgkl_p9m9U,1194
41
41
  gibson/command/mcp/McpServer.py,sha256=LiKPGtxpdGHJQP280tmqhnUOvdJboF6UtoQggKQHVJg,881
42
- gibson/command/new/Module.py,sha256=PCTt6k54XFzgNjNgwY0FKQFzk0YFoaN_KPZF2sfN_V0,1535
42
+ gibson/command/new/Module.py,sha256=nyVsxW9XTMIizwMwM7ahPlPAzQMUTk7dDFikzZ9UprI,1533
43
43
  gibson/command/new/New.py,sha256=cwsBpZAZH-9se26ywAUFyvrc9L9ezwoERIrRLlDkrzU,1519
44
44
  gibson/command/new/Project.py,sha256=Cw1Z6TvPIGhTi7GiQZ2VFjv6hXdpGKQdX9HuAd5gric,759
45
45
  gibson/command/rename/Entity.py,sha256=SaAiN1bYsTOsqjyVzxghK8-N3sAKITThTzS5LEYgppY,1801
@@ -52,7 +52,7 @@ gibson/conf/Code.py,sha256=3Bd5kxCbgWaUOyYLRejOO_SqM9spGk1dYAf2hYzuDSw,199
52
52
  gibson/conf/Custom.py,sha256=7S5v3bQK3UKuGUMTrAJeubWqszDtMlJI19-yOXk1TFs,101
53
53
  gibson/conf/Datastore.py,sha256=PVAnysrk4wH1oCWxTUaakH2_x83Zpm4vzD1ELhfMDSw,90
54
54
  gibson/conf/Dependencies.py,sha256=DZxyFtDR_3QpmsZbHApJFSeA7uYrMX1Bdx4lZKJ49Uo,891
55
- gibson/conf/Dev.py,sha256=nMjKmRrJbNIsMqQRFo8f68Lx-hSU-lihvLvhj0Safzg,344
55
+ gibson/conf/Dev.py,sha256=0gVwBbnUTgbCxvvz-h50Y68fSsaAR-KJlzwaqGQVQpw,333
56
56
  gibson/conf/Frameworks.py,sha256=Dv5iqeVe0JmNCKX5a-6S_dCrx7WZyI3qkTAFX6JWfDU,173
57
57
  gibson/conf/Modeler.py,sha256=RayW3VFD_2nCFXZepfEcCXTUX2tWd7WtOjHULNVCai8,67
58
58
  gibson/conf/Paths.py,sha256=FB8_w-8oCnzuqGIMVUahvZfl0p8i_ERnVzVPjuXTk3Y,243
@@ -63,17 +63,17 @@ gibson/conf/dev/Api.py,sha256=EKZwy-3h7NxLdP6AYtwyTpJhD1kdQN6gVLuWw4_2KC8,158
63
63
  gibson/conf/dev/Base.py,sha256=HisA87syPa5sJFjfjyxWRkLIKuVM5CtAkwW3f2zJx5Y,72
64
64
  gibson/conf/dev/Model.py,sha256=HbHRX3VDxR7hXlzuxkKw4Bf7FH6XMfQ96k9BeIUoBf4,73
65
65
  gibson/conf/dev/Schema.py,sha256=kOSlX1jEyVb82xd8TO8jEAimLcaefIFJr6d2JYvyTqg,74
66
- gibson/conf/tests/test_conf_Dependencies.py,sha256=LITeeYiqXM5rKkyWFBqcnMvUR5pzDRuHVAngH372jWc,116
66
+ gibson/conf/tests/test_conf_Dependencies.py,sha256=-MAS3SzB1euHFwFhd0dpyIHYNMYgxEaN2LTeZ1pqc6w,363
67
67
  gibson/conf/tests/test_conf_Platform.py,sha256=Zc53IsZmV-hT9VRrZEPNrsuehSdWnJXWKGMmOhEqWHo,138
68
68
  gibson/core/Colors.py,sha256=sllEmJAb2AAUH0e-ZLP1_C8pfz5U_w0fo5kubSH5g1o,3426
69
69
  gibson/core/CommandRouter.py,sha256=V7awLSPjOx2GQqJNoHQSFsiA2uFkrxtpysyTDbyPloA,3442
70
70
  gibson/core/Completions.py,sha256=a26WRh40UpnTT5HGTPT8TCcL8h80HvvZiTJXZofDjx8,1207
71
- gibson/core/Configuration.py,sha256=5nO4hY1MvVQapt37RbwrJpc9zwUx6u86n1BRRbIgjUQ,16586
71
+ gibson/core/Configuration.py,sha256=Cf1V5H17qibDXKcFt6UoyDczeQR33h8HTuKDk51Cae4,16581
72
72
  gibson/core/Conversation.py,sha256=KF7YPXijhhz6HOkife__ycHox4WeRKNHIpv3juDPhq0,10237
73
73
  gibson/core/Diff.py,sha256=onUJ5_0_S1vKAY_oFgX4vmwQo4byrnXLV4w7QSNA8fY,1071
74
74
  gibson/core/Env.py,sha256=08dZRHzzR0ahrbM4S0bXC7V1xhYQkT8Zefs00qUHf0U,498
75
75
  gibson/core/Memory.py,sha256=3ItGef4RCfBplbjxhNyid8eiPVKHmW-DKAMFeYujqN0,4063
76
- gibson/core/PythonPath.py,sha256=p1q7n_5KnPvA8XbxJyvqC2vrIdEdTiMr6vRU9yj77Cs,1567
76
+ gibson/core/PythonPath.py,sha256=0Pj9VUmN-lbv_jGJjjI9UreU4JCdHPdRHSpxQDBrKQw,1577
77
77
  gibson/core/Spinner.py,sha256=_BO26dOa3h0ZCNaPgMvwOh7K6DUiDv8LgP7QMR3EvNw,1225
78
78
  gibson/core/TimeKeeper.py,sha256=dSeIgGOQJOi0ULlFGAigroGTBfAZXrvP9a1Op_jIsZ0,300
79
79
  gibson/core/utils.py,sha256=KTnPvA3sUYnLFTZG7Tke5YEdls8Da0rNbeaOm8hapiU,408
@@ -122,15 +122,15 @@ gibson/structure/postgresql/Entity.py,sha256=eBHsHlvOLZXiU8uxwhfF66GdCz-Fou0kShs
122
122
  gibson/structure/postgresql/References.py,sha256=ILNs88AriVGYJuYOfwS7d5aZeFe5TNuHNqI6lb4kOos,1771
123
123
  gibson/structure/postgresql/testing.py,sha256=znghwbXOGZdzp7JF1YBNvZDAqg8GevXr-ZxX_ZaS1m8,6091
124
124
  gibson/structure/postgresql/table/ForeignKey.py,sha256=HKu4JwwKmeAZJaYTWK5sSoJMEPr0XS017WXux55O0a8,704
125
- gibson/structure/postgresql/table/tests/test_structure_postgresql_table_ForeignKey.py,sha256=ALaJt7S1K575xJw-5aH_mupYd4nKtUXVqYI1bLH6S-Q,1367
125
+ gibson/structure/postgresql/table/tests/test_structure_postgresql_table_ForeignKey.py,sha256=ArSGydHlHBQnylMsGWx1h8AGsE9_cqcn6lF-F9uilmM,1352
126
126
  gibson/structure/postgresql/tests/test_structure_postgresql_Entity.py,sha256=PzQwOHJg7q4awmOawlViJi2RDyDX5iKaG6o7H-SMbNE,2622
127
127
  gibson/structure/tests/test_structure_Entity.py,sha256=askl8w0p1uqET6HKBogJlRcPPwKEVa9HjeYlMk3ah8E,635
128
128
  gibson/tests/test_Env.py,sha256=DPWmP0-aEelducq9bAwv7rKoY2NjWXUeCrzfJDQkn2M,369
129
129
  gibson/tests/test_Memory.py,sha256=YP7owToABAk_-s7fD5UG0HTc4lamDjdA39JUlLnk3Fg,2574
130
130
  gibson/tests/test_utils.py,sha256=r_y-EG05YTCNtL8MWiAK1KmPsmeoMgypKsQC_lVgOtM,559
131
131
  venv/bin/activate_this.py,sha256=E1T7r3559tBsyqFpdcQW0HbY7gDvNiIv5Pc6HQ4bpoA,2383
132
- gibson_cli-0.8.8.dist-info/METADATA,sha256=DORMMl7yzYRQWEnQn1Tnnv2i5AEcWfgyn_DTVxBCyGw,14562
133
- gibson_cli-0.8.8.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
134
- gibson_cli-0.8.8.dist-info/entry_points.txt,sha256=j5VUvq3AzL21xPvVC24zMoXFt-I5lUWulr66nL3OAPM,50
135
- gibson_cli-0.8.8.dist-info/top_level.txt,sha256=fSV3vegbdbSDwiB6n5z3FCeYwkIonzFrx4ek3F_OSdI,16
136
- gibson_cli-0.8.8.dist-info/RECORD,,
132
+ gibson_cli-0.8.9.dist-info/METADATA,sha256=M3ndr7LtsbjmX__89dHsi8f3DVddNDKHxuiSRiSss4o,14574
133
+ gibson_cli-0.8.9.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
134
+ gibson_cli-0.8.9.dist-info/entry_points.txt,sha256=j5VUvq3AzL21xPvVC24zMoXFt-I5lUWulr66nL3OAPM,50
135
+ gibson_cli-0.8.9.dist-info/top_level.txt,sha256=fSV3vegbdbSDwiB6n5z3FCeYwkIonzFrx4ek3F_OSdI,16
136
+ gibson_cli-0.8.9.dist-info/RECORD,,