truefoundry 0.2.2rc1__py3-none-any.whl → 0.2.2rc2__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.

Potentially problematic release.


This version of truefoundry might be problematic. Click here for more details.

@@ -92,6 +92,7 @@ pip, poetry, yarn, go.mod, cargo.toml, npm, setup.py.
92
92
  )
93
93
 
94
94
  def render(self, console: Console):
95
+ console.rule("[bold green]Project Identification[/]")
95
96
  if self.primary_programming_language is not None:
96
97
  console.print(
97
98
  f"[bold magenta]TrueFoundry:[/] Identified a project using [bold cyan]{self.primary_programming_language}[/]."
@@ -52,6 +52,7 @@ Why was the testing a failure or successful?
52
52
  logs: str
53
53
 
54
54
  def render(self, console: Console):
55
+ console.rule("[bold green]Result[/]")
55
56
  console.print(
56
57
  f"[bold cyan]TrueFoundry:[/] The given project has been {'[bold green]successfully built[/]' if self.successful else '[bold red]failed to build[/]'}"
57
58
  )
@@ -211,7 +211,7 @@ def _update_status(event, status: Status):
211
211
 
212
212
  if isinstance(event, DockerRunLog):
213
213
  status.update(
214
- "[bold cyan]Running:[/] [bold magenta]TrueFoundry[/] is executing the Docker container. Press [yellow]control + c[/] to stop waiting for additional logs..."
214
+ "[bold cyan]Running:[/] [bold magenta]TrueFoundry[/] is running your app in a Docker container. You can view logs here for potential warnings/errors. If you do not see any issues then you can press [yellow]control + c[/] to move to the next step."
215
215
  )
216
216
 
217
217
 
@@ -335,6 +335,7 @@ def cli(project_root_path: str, deploy: bool, workspace_fqn: str = None):
335
335
  break
336
336
 
337
337
  if deploy:
338
+ console.rule("[bold green]Deploying to Truefoundry[/]")
338
339
  deploy_component(
339
340
  workspace_fqn=workspace_fqn,
340
341
  project_root_path=project_root_path,
@@ -29,3 +29,10 @@ class Message(Event):
29
29
 
30
30
  def render(self, console: Console):
31
31
  console.print(self.message)
32
+
33
+
34
+ class Rule(Event):
35
+ message: Any
36
+
37
+ def render(self, console: Console):
38
+ console.rule(self.message)
@@ -27,6 +27,7 @@ class CommitConfirmation(Event):
27
27
  commit_message: str
28
28
 
29
29
  def render(self, console: Console) -> Optional["Commit.Response"]:
30
+ console.rule("[bold green]Commit[/]")
30
31
  console.print("[bold magenta]TrueFoundry[/] wants to make a commit,", end=" ")
31
32
  console.print(f"with Commit Message: [green]{self.commit_message}[/]")
32
33
  console.print("[yellow]Displaying changes to be made by the patch[/]")
@@ -16,6 +16,7 @@ from truefoundry.autodeploy.tools.base import (
16
16
  Message,
17
17
  RequestEvent,
18
18
  ResponseEvent,
19
+ Rule,
19
20
  Tool,
20
21
  )
21
22
 
@@ -90,6 +91,7 @@ Build a docker image.
90
91
  self.docker_client = docker_client
91
92
 
92
93
  def run(self, request: DockerBuild.Request) -> Generator[Event, Any, ResponseEvent]:
94
+ yield Rule(message="[bold green] Docker Build[/]")
93
95
  yield Message(message="[bold cyan]Processing:[/] Building Docker image...")
94
96
  yield Message(message="[bold yellow]Docker build logs:[/]")
95
97
  try:
@@ -15,6 +15,7 @@ from truefoundry.autodeploy.tools.base import (
15
15
  Message,
16
16
  RequestEvent,
17
17
  ResponseEvent,
18
+ Rule,
18
19
  Tool,
19
20
  )
20
21
 
@@ -104,6 +105,8 @@ This will not be passed if the container is still running.
104
105
 
105
106
  def run(self, request: DockerRun.Request) -> Generator[Event, Any, ResponseEvent]:
106
107
  self._kill_running_containers()
108
+
109
+ yield Rule(message="[bold green] Docker Run[/]")
107
110
  yield Message(message="[bold cyan]Testing:[/] Running Docker container...")
108
111
  try:
109
112
  container = self.docker_client.containers.run(
@@ -14,6 +14,7 @@ from truefoundry.autodeploy.tools.base import (
14
14
  Message,
15
15
  RequestEvent,
16
16
  ResponseEvent,
17
+ Rule,
17
18
  Tool,
18
19
  )
19
20
 
@@ -53,7 +54,7 @@ Get counts of different types of file present.
53
54
  self, request: FileTypeCounts.Request
54
55
  ) -> Generator[Event, Any, ResponseEvent]:
55
56
  counter = Counter()
56
-
57
+ yield Rule(message="List Files")
57
58
  yield Message(
58
59
  message="[bold cyan]Processing:[/] Scanning for various file types..."
59
60
  )
@@ -12,6 +12,7 @@ from truefoundry.autodeploy.tools.base import (
12
12
  Message,
13
13
  RequestEvent,
14
14
  ResponseEvent,
15
+ Rule,
15
16
  Tool,
16
17
  )
17
18
 
@@ -41,6 +42,7 @@ the subdir should be . and pattern will be *.json
41
42
  self.project_root_path = project_root_path
42
43
 
43
44
  def run(self, request: ListFiles.Request) -> Generator[Event, Any, ResponseEvent]:
45
+ yield Rule(message="[bold green] List Files[/]")
44
46
  yield Message(
45
47
  message=f"[bold cyan]Searching:[/] 🔍 Looking for files matching the pattern [magenta]{request.pattern}[/]"
46
48
  )
@@ -11,6 +11,7 @@ from truefoundry.autodeploy.tools.base import (
11
11
  Message,
12
12
  RequestEvent,
13
13
  ResponseEvent,
14
+ Rule,
14
15
  Tool,
15
16
  )
16
17
 
@@ -50,6 +51,7 @@ Avoid reading *.lock type files as they tend to be large
50
51
  self.project_root_path = project_root_path
51
52
 
52
53
  def run(self, request: ReadFile.Request) -> Generator[Event, Any, ResponseEvent]:
54
+ yield Rule(message="[bold green] Read files[/]")
53
55
  yield Message(
54
56
  message=f"[bold cyan]Processing:[/] Reading file at [magenta]{request.path}[/] and extracting details..."
55
57
  )
@@ -10,6 +10,7 @@ from truefoundry.autodeploy.tools.base import (
10
10
  Message,
11
11
  RequestEvent,
12
12
  ResponseEvent,
13
+ Rule,
13
14
  Tool,
14
15
  )
15
16
 
@@ -33,8 +34,9 @@ Send an HTTP request.
33
34
 
34
35
  def run(self, request: SendRequest.Request) -> Generator[Event, Any, ResponseEvent]:
35
36
  self.call_count += 1
37
+ yield Rule(message="[bold green] Request send[/]")
36
38
  yield Message(
37
- message=f"[bold cyan]Testing:[/] Sending a [magenta]{request.method.upper()}[/] request to [magenta]{request.url}[/]..."
39
+ message=f"[bold cyan]Testing:[/] Sending a [magenta]{request.method.upper()}[/] request to [magenta]{request.url}[/]"
38
40
  )
39
41
  try:
40
42
  response = requests.request(request.method.lower(), url=request.url)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: truefoundry
3
- Version: 0.2.2rc1
3
+ Version: 0.2.2rc2
4
4
  Summary: Truefoundry CLI
5
5
  Author: Abhishek Choudhary
6
6
  Author-email: abhichoudhary06@gmail.com
@@ -3,22 +3,22 @@ truefoundry/autodeploy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
3
3
  truefoundry/autodeploy/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  truefoundry/autodeploy/agents/base.py,sha256=woCry229x7WX0IZmBopW_e_NB76aCLQRLXZBs2QBklk,6405
5
5
  truefoundry/autodeploy/agents/developer.py,sha256=u1BfjaMDX6Ad32vWYOEFZPWFK33ux0Ro8JztrRAFviY,4126
6
- truefoundry/autodeploy/agents/project_identifier.py,sha256=wOFCUIbN-3mVQEToJ2svKm8XvxZ_IxIvUF2P3VqQu94,4438
7
- truefoundry/autodeploy/agents/tester.py,sha256=Ci-382r3R8M1NCpbnmcBBHZa4UBCVjyrrt5bwufHDm4,2352
8
- truefoundry/autodeploy/cli.py,sha256=Di2JNoMUDkmZej9p3MESdO0w4dKUxO1N70CAe6HdBdw,13651
6
+ truefoundry/autodeploy/agents/project_identifier.py,sha256=JVaBUI_u4IVuohzYyEqojYUzKBxKkSXyqPnzzh-prJA,4504
7
+ truefoundry/autodeploy/agents/tester.py,sha256=9WSVU2MNiamdUNJYrHXDcEq_Q544LSElJ6Nt3XkJ8TU,2402
8
+ truefoundry/autodeploy/cli.py,sha256=icBmyD3Xhg0wSyFN6eLDSIaS2xxHaHZRYMssEdRvCFY,13806
9
9
  truefoundry/autodeploy/constants.py,sha256=m3qQh2gsrqRLqiTbxmddS8CwWX9v7s7oEBHOEvHbFec,1553
10
10
  truefoundry/autodeploy/exception.py,sha256=fa_ZyTDUKiMKG2Uayynk1yWcEMsuVluqk2GtV4tfTPU,158
11
11
  truefoundry/autodeploy/logger.py,sha256=tkV2UKcOTFl5nz0cn4eRbzxF-2CZd8b7MK9vnhaflYw,325
12
12
  truefoundry/autodeploy/tools/__init__.py,sha256=9zJiC1d4bv9EL-p5XTCa9fAQ6ZKV--AbgeLz9bBBkyQ,875
13
13
  truefoundry/autodeploy/tools/ask.py,sha256=MxUFLP7rjpdJ85gCc3El0wUqTZDjpjAw7WOTdV4LLWE,856
14
- truefoundry/autodeploy/tools/base.py,sha256=X7bBhJ2-mkc1_uo9dLtIoZOgKsvoCsmvCzdh_j0rdys,665
15
- truefoundry/autodeploy/tools/commit.py,sha256=Xk5h7mO9veOJ85LEWTXsp0xkTTHdFLMP4j90Zh4jHWk,5990
16
- truefoundry/autodeploy/tools/docker_build.py,sha256=6LfWLJYh3Y3kCIVOC8lFcZjWHIk3iWEuw_qoAxx642k,3931
17
- truefoundry/autodeploy/tools/docker_run.py,sha256=6sAyguh_slSLBLIHV2e5QFpAs7XC-0UOjUU1BGqMxJU,4993
18
- truefoundry/autodeploy/tools/file_type_counts.py,sha256=4p6IHp-j1vBzELpepFhNwfmB88cUUAFdVDQdzv4lGtM,2288
19
- truefoundry/autodeploy/tools/list_files.py,sha256=9z_Nih_N8v7qe14znl7_-3MKZjw5RylVyy7L8qvU1es,2577
20
- truefoundry/autodeploy/tools/read_file.py,sha256=fX5nVEN7aE_-jiHzYmeqm6-Nr-HV1YX5Pj0_UiFU2qA,2187
21
- truefoundry/autodeploy/tools/send_request.py,sha256=5q_fAo0tXRiHg9M3XpdwhCzUtDUWVh17239oU4LkZfI,1614
14
+ truefoundry/autodeploy/tools/base.py,sha256=eS30LQhUjQkRhFqHmdor7HgWA9kcwFVCfAWEimO0Y_0,779
15
+ truefoundry/autodeploy/tools/commit.py,sha256=bB5kqAY5rEvfc7ZHtdueXusGznAbk58xqvzSKAXzbSE,6036
16
+ truefoundry/autodeploy/tools/docker_build.py,sha256=TwSvmxrjBkI7PcPhjIzsc8oTA6fWzPIIpkMv2zMpb-E,4000
17
+ truefoundry/autodeploy/tools/docker_run.py,sha256=8skvqF9zmZSIBbWkmJsmOyQRVz8ttw1SVjPhjGwDq24,5061
18
+ truefoundry/autodeploy/tools/file_type_counts.py,sha256=9RuSyIKNKydSdMxIw1cCiljpbVFVEOu9kOfomRr4ufU,2338
19
+ truefoundry/autodeploy/tools/list_files.py,sha256=KgFk50lOjrIsjwmf4A_2recKivLUEcdc1Q57SaYA1v4,2644
20
+ truefoundry/autodeploy/tools/read_file.py,sha256=uejLuCB9Tjki0-Ud_mk5fuo9nmKRHYHYqqzCTE1nuyo,2254
21
+ truefoundry/autodeploy/tools/send_request.py,sha256=E8eSV3jqY-M2_56ZQ9C38pzmWeP6drgJjNQMrUdrrpc,1680
22
22
  truefoundry/autodeploy/tools/write_file.py,sha256=EcYetnJ4X-NWsd_CdYUKfOnAdz2XXiRukTzJfb_GzFs,3130
23
23
  truefoundry/autodeploy/utils/client.py,sha256=PvbSkfgAjAogGjisinqmh4mP4svowxAC0IwzEQz3Ai0,453
24
24
  truefoundry/autodeploy/utils/diff.py,sha256=Ef8Y-VffDKel_-q-GxRam6gqiv8qTLMcqVg6iifXfcA,5358
@@ -31,7 +31,7 @@ truefoundry/deploy/cli/cli.py,sha256=C2kHuod9BnFcaXYuBdSexGL_cczt2BRssRzzPbJuQdI
31
31
  truefoundry/deploy/cli/deploy.py,sha256=hOb0GY1tiPzKy5P85iYAML0WyGSmKBXJgwxD5k5VoME,5105
32
32
  truefoundry/langchain/__init__.py,sha256=kQrM0qr2EoB-EFaPkVVVcmSBSJ8KsQzv0nx-LGzmCRo,53
33
33
  truefoundry/ml/__init__.py,sha256=yFjvF-e1RW488vLHgn5M7TXoajqww6grkKHb3mhqDEw,179
34
- truefoundry-0.2.2rc1.dist-info/METADATA,sha256=57wib82I52mQIx3r_iL3sRGP59aQe1BGhfvAcshXsOU,1839
35
- truefoundry-0.2.2rc1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- truefoundry-0.2.2rc1.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
37
- truefoundry-0.2.2rc1.dist-info/RECORD,,
34
+ truefoundry-0.2.2rc2.dist-info/METADATA,sha256=t8dRe9I3_97jSqwdHrPij-rFj15mEaAWrzTSWQ7d3p8,1839
35
+ truefoundry-0.2.2rc2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ truefoundry-0.2.2rc2.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
37
+ truefoundry-0.2.2rc2.dist-info/RECORD,,