colabcola 0.1.0__tar.gz

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.
Files changed (101) hide show
  1. colabcola-0.1.0/LICENSE +202 -0
  2. colabcola-0.1.0/MANIFEST.in +13 -0
  3. colabcola-0.1.0/NOTICE +24 -0
  4. colabcola-0.1.0/PKG-INFO +133 -0
  5. colabcola-0.1.0/README.md +100 -0
  6. colabcola-0.1.0/docs/DESIGN.md +892 -0
  7. colabcola-0.1.0/docs/DEVELOPMENT.md +148 -0
  8. colabcola-0.1.0/docs/LEGACY_CONTROLLER.md +77 -0
  9. colabcola-0.1.0/docs/LIFECYCLE.md +543 -0
  10. colabcola-0.1.0/docs/PACKAGING.md +415 -0
  11. colabcola-0.1.0/docs/RECIPES.md +75 -0
  12. colabcola-0.1.0/docs/USER_SETUP.md +609 -0
  13. colabcola-0.1.0/docs/assets/colabcola-banner.png +0 -0
  14. colabcola-0.1.0/docs/setup/01-project.svg +21 -0
  15. colabcola-0.1.0/docs/setup/02-branding.svg +19 -0
  16. colabcola-0.1.0/docs/setup/03-audience.svg +18 -0
  17. colabcola-0.1.0/docs/setup/04-scopes.svg +15 -0
  18. colabcola-0.1.0/docs/setup/05-client.svg +21 -0
  19. colabcola-0.1.0/docs/setup/06-authorize.svg +21 -0
  20. colabcola-0.1.0/pyproject.toml +67 -0
  21. colabcola-0.1.0/setup.cfg +4 -0
  22. colabcola-0.1.0/src/colabcola/__init__.py +195 -0
  23. colabcola-0.1.0/src/colabcola/__main__.py +3 -0
  24. colabcola-0.1.0/src/colabcola/_hifigan/__init__.py +1 -0
  25. colabcola-0.1.0/src/colabcola/_hifigan/audio_diagnostic.py +292 -0
  26. colabcola-0.1.0/src/colabcola/_hifigan/extract_audio_diagnostic_input.py +117 -0
  27. colabcola-0.1.0/src/colabcola/_hifigan/measure_full_transport.py +128 -0
  28. colabcola-0.1.0/src/colabcola/_hifigan/profile.json +127 -0
  29. colabcola-0.1.0/src/colabcola/_hifigan/resume_state.py +218 -0
  30. colabcola-0.1.0/src/colabcola/_hifigan/train_colabcola.py +709 -0
  31. colabcola-0.1.0/src/colabcola/_vendor/__init__.py +1 -0
  32. colabcola-0.1.0/src/colabcola/_vendor/colab_cli/LICENSE +202 -0
  33. colabcola-0.1.0/src/colabcola/_vendor/colab_cli/__init__.py +1 -0
  34. colabcola-0.1.0/src/colabcola/_vendor/colab_cli/client.py +361 -0
  35. colabcola-0.1.0/src/colabcola/_vendor/colab_cli/consumption.py +56 -0
  36. colabcola-0.1.0/src/colabcola/_vendor/colab_cli/oauth_config.json +11 -0
  37. colabcola-0.1.0/src/colabcola/_vendor/colab_cli/runtime.py +279 -0
  38. colabcola-0.1.0/src/colabcola/_vendor/colab_cli/state.py +159 -0
  39. colabcola-0.1.0/src/colabcola/_vendor/colab_cli/utils.py +104 -0
  40. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/LICENSE +29 -0
  41. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/__init__.py +27 -0
  42. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/_version.py +7 -0
  43. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/client.py +624 -0
  44. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/constants.py +7 -0
  45. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/konsoleapp.py +227 -0
  46. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/log.py +37 -0
  47. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/manager.py +336 -0
  48. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/models.py +13 -0
  49. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/shell.py +64 -0
  50. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/snippets.py +221 -0
  51. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/utils.py +171 -0
  52. colabcola-0.1.0/src/colabcola/_vendor/jupyter_kernel_client/wsclient.py +1361 -0
  53. colabcola-0.1.0/src/colabcola/_vendor/provenance.json +124 -0
  54. colabcola-0.1.0/src/colabcola/_version.py +3 -0
  55. colabcola-0.1.0/src/colabcola/bundle.py +637 -0
  56. colabcola-0.1.0/src/colabcola/checkpoint_runtime.py +615 -0
  57. colabcola-0.1.0/src/colabcola/cli.py +470 -0
  58. colabcola-0.1.0/src/colabcola/client_downloads.py +276 -0
  59. colabcola-0.1.0/src/colabcola/client_handoff.py +129 -0
  60. colabcola-0.1.0/src/colabcola/cloud_project.py +351 -0
  61. colabcola-0.1.0/src/colabcola/compiler.py +202 -0
  62. colabcola-0.1.0/src/colabcola/console.py +63 -0
  63. colabcola-0.1.0/src/colabcola/controller.py +330 -0
  64. colabcola-0.1.0/src/colabcola/drive.py +564 -0
  65. colabcola-0.1.0/src/colabcola/drive_oauth.py +208 -0
  66. colabcola-0.1.0/src/colabcola/errors.py +14 -0
  67. colabcola-0.1.0/src/colabcola/google_drive.py +575 -0
  68. colabcola-0.1.0/src/colabcola/gpu_check.py +30 -0
  69. colabcola-0.1.0/src/colabcola/hifigan.py +467 -0
  70. colabcola-0.1.0/src/colabcola/invocation.py +60 -0
  71. colabcola-0.1.0/src/colabcola/isolation_runtime.py +195 -0
  72. colabcola-0.1.0/src/colabcola/lifecycle.py +637 -0
  73. colabcola-0.1.0/src/colabcola/lifecycle_auth.py +166 -0
  74. colabcola-0.1.0/src/colabcola/lifecycle_io.py +459 -0
  75. colabcola-0.1.0/src/colabcola/lifecycle_kernel.py +189 -0
  76. colabcola-0.1.0/src/colabcola/lifecycle_provider.py +417 -0
  77. colabcola-0.1.0/src/colabcola/lifecycle_rest.py +213 -0
  78. colabcola-0.1.0/src/colabcola/lifecycle_worker.py +462 -0
  79. colabcola-0.1.0/src/colabcola/ljspeech.py +786 -0
  80. colabcola-0.1.0/src/colabcola/managed.py +397 -0
  81. colabcola-0.1.0/src/colabcola/notebook.py +286 -0
  82. colabcola-0.1.0/src/colabcola/onboarding.py +497 -0
  83. colabcola-0.1.0/src/colabcola/package_guide.py +379 -0
  84. colabcola-0.1.0/src/colabcola/packager.py +390 -0
  85. colabcola-0.1.0/src/colabcola/preflight.py +270 -0
  86. colabcola-0.1.0/src/colabcola/profiles.py +145 -0
  87. colabcola-0.1.0/src/colabcola/project_setup.py +395 -0
  88. colabcola-0.1.0/src/colabcola/publisher_oauth.json +1 -0
  89. colabcola-0.1.0/src/colabcola/python_profiles.py +8 -0
  90. colabcola-0.1.0/src/colabcola/runtime.py +1515 -0
  91. colabcola-0.1.0/src/colabcola/spec.py +750 -0
  92. colabcola-0.1.0/src/colabcola/transport.py +188 -0
  93. colabcola-0.1.0/src/colabcola/workflow.py +227 -0
  94. colabcola-0.1.0/src/colabcola.egg-info/PKG-INFO +133 -0
  95. colabcola-0.1.0/src/colabcola.egg-info/SOURCES.txt +99 -0
  96. colabcola-0.1.0/src/colabcola.egg-info/dependency_links.txt +1 -0
  97. colabcola-0.1.0/src/colabcola.egg-info/entry_points.txt +2 -0
  98. colabcola-0.1.0/src/colabcola.egg-info/requires.txt +18 -0
  99. colabcola-0.1.0/src/colabcola.egg-info/top_level.txt +1 -0
  100. colabcola-0.1.0/tools/build_development.py +83 -0
  101. colabcola-0.1.0/tools/vendor_provider.py +80 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,13 @@
1
+ include README.md
2
+ include pyproject.toml MANIFEST.in
3
+ recursive-include src/colabcola *.py *.json
4
+ recursive-include src/colabcola/_vendor LICENSE
5
+ include tools/build_development.py tools/vendor_provider.py
6
+ prune tests
7
+ prune examples
8
+ prune jobs
9
+ prune dist
10
+ prune build
11
+ global-exclude __pycache__ *.py[cod]
12
+
13
+ recursive-include docs *.md *.svg *.png
colabcola-0.1.0/NOTICE ADDED
@@ -0,0 +1,24 @@
1
+ Colab Cola
2
+ Copyright 2026 Colab Cola contributors
3
+
4
+ Except where otherwise indicated, Colab Cola's original source code is
5
+ licensed under the Apache License, Version 2.0. See the root LICENSE file.
6
+
7
+ This distribution incorporates separately licensed third-party source:
8
+
9
+ Google Colab CLI
10
+ Upstream: https://github.com/googlecolab/google-colab-cli
11
+ Vendored path: src/colabcola/_vendor/colab_cli/
12
+ License: Apache License, Version 2.0 (Apache-2.0)
13
+ License text: src/colabcola/_vendor/colab_cli/LICENSE
14
+
15
+ Datalayer Jupyter Kernel Client
16
+ Copyright (c) 2025, Datalayer
17
+ Vendored path: src/colabcola/_vendor/jupyter_kernel_client/
18
+ License: BSD 3-Clause License (BSD-3-Clause)
19
+ License text: src/colabcola/_vendor/jupyter_kernel_client/LICENSE
20
+
21
+ The separate copyright notices, conditions, and disclaimers of these
22
+ third-party components remain applicable. Nothing in this NOTICE changes
23
+ the licensing of those components or suggests their authors endorse
24
+ Colab Cola.
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.4
2
+ Name: colabcola
3
+ Version: 0.1.0
4
+ Summary: Package, run, and recover Python workloads on Google Colab from the command line.
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Homepage, https://github.com/dependanz/colabcola
7
+ Project-URL: Repository, https://github.com/dependanz/colabcola
8
+ Project-URL: Issues, https://github.com/dependanz/colabcola/issues
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ License-File: src/colabcola/_vendor/colab_cli/LICENSE
14
+ License-File: src/colabcola/_vendor/jupyter_kernel_client/LICENSE
15
+ Requires-Dist: packaging<27,>=24
16
+ Requires-Dist: requests<3,>=2.32.5
17
+ Requires-Dist: google-api-python-client<3,>=2.100
18
+ Requires-Dist: google-auth-oauthlib<2,>=1.2
19
+ Requires-Dist: keyring<27,>=25
20
+ Requires-Dist: filelock<4,>=3.29.2
21
+ Requires-Dist: google-auth<3,>=2.49.1
22
+ Requires-Dist: html2text>=2024.2.26
23
+ Requires-Dist: pydantic<3,>=2.12.5
24
+ Requires-Dist: rich<15,>=14.3.3
25
+ Requires-Dist: jupyter-core<6,>=5
26
+ Requires-Dist: jupyter-client<9,>=8.6.3
27
+ Requires-Dist: jupyter-mimetypes<1,>=0.2
28
+ Requires-Dist: traitlets<6,>=5.3
29
+ Requires-Dist: typing-extensions>=4
30
+ Requires-Dist: websocket-client<2,>=1.6
31
+ Provides-Extra: colab
32
+ Dynamic: license-file
33
+
34
+ <p align="center">
35
+ <img src="https://raw.githubusercontent.com/dependanz/colabcola/main/docs/assets/colabcola-banner.png" alt="Colab Cola — package and run Python workloads on Google Colab" width="100%">
36
+ </p>
37
+
38
+ Colab Cola packages Python scripts, modules, dependencies, and inputs into reproducible jobs. Submit them to Google Colab, monitor execution, and recover verified results from Google Drive — without building a notebook launcher yourself.
39
+
40
+ ```bash
41
+ python -m pip install colabcola
42
+ ```
43
+
44
+ Requires Python 3.12+. See [Development](https://github.com/dependanz/colabcola/blob/main/docs/DEVELOPMENT.md) for source installation and testing.
45
+
46
+ ## Quick start
47
+
48
+ **1. Connect your Google account**
49
+
50
+ ```bash
51
+ colabcola login --profile research
52
+ ```
53
+
54
+ Colab Cola guides you through execution-project setup and authorization. New profiles use the bundled production Desktop OAuth client by default; providing your own is optional. First-time Google consent and some Console steps require your participation. [Setup guide](https://github.com/dependanz/colabcola/blob/main/docs/USER_SETUP.md)
55
+
56
+ **2. Package an existing Python workload**
57
+
58
+ ```bash
59
+ colabcola package --profile research \
60
+ --save-colaml experiment.colaml -- python train.py
61
+ ```
62
+
63
+ The packaging guide collects data, dependencies, hardware needs, outputs, and optional checkpoint configuration. It creates a `.colajob` plus a reusable `.colaml` recipe, without executing your code.
64
+
65
+ **3. Run it on Colab**
66
+
67
+ ```bash
68
+ colabcola run --profile research \
69
+ --colaml experiment.colaml \
70
+ --run-dir ./runs/experiment-1
71
+ ```
72
+
73
+ Colab Cola checks the job and account, stages inputs, supervises the Colab runtime, publishes results to Drive, verifies recovered files, and releases the runtime it owns. Keep the supervising computer online while the run is active.
74
+
75
+ To prepare offline, add `--prepare-only`. To verify launch prerequisites without uploading or allocating compute, use `--preflight-only`. Repeating the **same command with the same run directory** reconnects to the existing run rather than starting a new one.
76
+
77
+ ## What Colab Cola provides
78
+
79
+ | Capability | Description |
80
+ | --- | --- |
81
+ | **Python-first jobs** | Package scripts, modules, local files, pip requirements, and wheels. |
82
+ | **Managed runtime lifecycle** | Allocate, execute, monitor, and release Colab runtimes within declared bounds. |
83
+ | **Durable results** | Persist logs, checkpoints, and artifacts to Google Drive with integrity verification. |
84
+ | **Failure recovery** | Resume checkpoint-aware workloads on a replacement runtime after confirmed runtime loss. |
85
+ | **Repeatable workflows** | Reuse `.colaml` recipes, named account profiles, and durable run journals. |
86
+ | **Automation-friendly output** | Structured command results alongside human-readable terminal progress. |
87
+
88
+ ```text
89
+ Python workload + inputs
90
+ │
91
+ ▼
92
+ colabcola package ──► .colajob / .colaml
93
+ │
94
+ ▼
95
+ colabcola run
96
+ │
97
+ ▼
98
+ Google Colab
99
+ │
100
+ ▼
101
+ Google Drive + verified results
102
+ ```
103
+
104
+ ## Platform support
105
+
106
+ | Host platform | Status for v0.1.0 |
107
+ | --- | --- |
108
+ | **Windows / PowerShell** | Live-tested: installation, login, CPU execution, artifacts, automatic checkpoint recovery, and owned-runtime cleanup. |
109
+ | **Ubuntu via WSL2** | Previously tested for managed execution and recovery; WSL2 is optional for Windows users. |
110
+ | **Native Linux** | Expected to work; independent release validation pending. |
111
+ | **macOS** | Not yet supported for managed login and execution. |
112
+
113
+ **Requirements:** Python 3.12 or newer, a Google account with access to Colab and Drive, and any one-time OAuth/Cloud project setup described in the [setup guide](https://github.com/dependanz/colabcola/blob/main/docs/USER_SETUP.md). Accelerator availability depends on Google Colab. The Windows recovery acceptance test used CPU runtimes; it does **not** establish that every GPU or runtime configuration works.
114
+
115
+ Checkpoint recovery is opt-in: your workload must write restorable state and accept a checkpoint manifest. A runtime lost before publishing its latest checkpoint cannot recover its unsaved in-memory progress. Compute limits are bounded requests, not guaranteed billing ceilings.
116
+
117
+ ## Documentation
118
+
119
+ | Guide | Contents |
120
+ | --- | --- |
121
+ | [First-time setup](https://github.com/dependanz/colabcola/blob/main/docs/USER_SETUP.md) | Illustrated Google account, OAuth, Cloud project, and login walkthrough. |
122
+ | [Packaging](https://github.com/dependanz/colabcola/blob/main/docs/PACKAGING.md) | `.colajob` format, dependencies, inputs, outputs, and checkpoints. |
123
+ | [Recipes and managed workflows](https://github.com/dependanz/colabcola/blob/main/docs/RECIPES.md) | `.colaml`, run directories, offline preparation, and automation. |
124
+ | [Execution and recovery](https://github.com/dependanz/colabcola/blob/main/docs/LIFECYCLE.md) | Supervisor behavior, Drive persistence, failure recovery, and limits. |
125
+ | [Legacy controller](https://github.com/dependanz/colabcola/blob/main/docs/LEGACY_CONTROLLER.md) | Earlier notebook-based/manual execution workflows. |
126
+ | [Development](https://github.com/dependanz/colabcola/blob/main/docs/DEVELOPMENT.md) | Local builds, tests, and contribution workflow. |
127
+ | [Design](https://github.com/dependanz/colabcola/blob/main/docs/DESIGN.md) | Technical architecture and integrity contracts. |
128
+
129
+ ## Development
130
+
131
+ Colab Cola is distributed as a Python package. Release checks cover clean wheel/source installs, complete regression tests, platform behavior, license notices, and the verified runtime lifecycle. See [Development](https://github.com/dependanz/colabcola/blob/main/docs/DEVELOPMENT.md) and [Packaging](https://github.com/dependanz/colabcola/blob/main/docs/PACKAGING.md) for current details.
132
+
133
+ Colab Cola is an independent project and is **not affiliated with or endorsed by Google**. Google Colab and Google Drive remain subject to their own availability, policies, and limits.
@@ -0,0 +1,100 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/dependanz/colabcola/main/docs/assets/colabcola-banner.png" alt="Colab Cola — package and run Python workloads on Google Colab" width="100%">
3
+ </p>
4
+
5
+ Colab Cola packages Python scripts, modules, dependencies, and inputs into reproducible jobs. Submit them to Google Colab, monitor execution, and recover verified results from Google Drive — without building a notebook launcher yourself.
6
+
7
+ ```bash
8
+ python -m pip install colabcola
9
+ ```
10
+
11
+ Requires Python 3.12+. See [Development](https://github.com/dependanz/colabcola/blob/main/docs/DEVELOPMENT.md) for source installation and testing.
12
+
13
+ ## Quick start
14
+
15
+ **1. Connect your Google account**
16
+
17
+ ```bash
18
+ colabcola login --profile research
19
+ ```
20
+
21
+ Colab Cola guides you through execution-project setup and authorization. New profiles use the bundled production Desktop OAuth client by default; providing your own is optional. First-time Google consent and some Console steps require your participation. [Setup guide](https://github.com/dependanz/colabcola/blob/main/docs/USER_SETUP.md)
22
+
23
+ **2. Package an existing Python workload**
24
+
25
+ ```bash
26
+ colabcola package --profile research \
27
+ --save-colaml experiment.colaml -- python train.py
28
+ ```
29
+
30
+ The packaging guide collects data, dependencies, hardware needs, outputs, and optional checkpoint configuration. It creates a `.colajob` plus a reusable `.colaml` recipe, without executing your code.
31
+
32
+ **3. Run it on Colab**
33
+
34
+ ```bash
35
+ colabcola run --profile research \
36
+ --colaml experiment.colaml \
37
+ --run-dir ./runs/experiment-1
38
+ ```
39
+
40
+ Colab Cola checks the job and account, stages inputs, supervises the Colab runtime, publishes results to Drive, verifies recovered files, and releases the runtime it owns. Keep the supervising computer online while the run is active.
41
+
42
+ To prepare offline, add `--prepare-only`. To verify launch prerequisites without uploading or allocating compute, use `--preflight-only`. Repeating the **same command with the same run directory** reconnects to the existing run rather than starting a new one.
43
+
44
+ ## What Colab Cola provides
45
+
46
+ | Capability | Description |
47
+ | --- | --- |
48
+ | **Python-first jobs** | Package scripts, modules, local files, pip requirements, and wheels. |
49
+ | **Managed runtime lifecycle** | Allocate, execute, monitor, and release Colab runtimes within declared bounds. |
50
+ | **Durable results** | Persist logs, checkpoints, and artifacts to Google Drive with integrity verification. |
51
+ | **Failure recovery** | Resume checkpoint-aware workloads on a replacement runtime after confirmed runtime loss. |
52
+ | **Repeatable workflows** | Reuse `.colaml` recipes, named account profiles, and durable run journals. |
53
+ | **Automation-friendly output** | Structured command results alongside human-readable terminal progress. |
54
+
55
+ ```text
56
+ Python workload + inputs
57
+ │
58
+ ▼
59
+ colabcola package ──► .colajob / .colaml
60
+ │
61
+ ▼
62
+ colabcola run
63
+ │
64
+ ▼
65
+ Google Colab
66
+ │
67
+ ▼
68
+ Google Drive + verified results
69
+ ```
70
+
71
+ ## Platform support
72
+
73
+ | Host platform | Status for v0.1.0 |
74
+ | --- | --- |
75
+ | **Windows / PowerShell** | Live-tested: installation, login, CPU execution, artifacts, automatic checkpoint recovery, and owned-runtime cleanup. |
76
+ | **Ubuntu via WSL2** | Previously tested for managed execution and recovery; WSL2 is optional for Windows users. |
77
+ | **Native Linux** | Expected to work; independent release validation pending. |
78
+ | **macOS** | Not yet supported for managed login and execution. |
79
+
80
+ **Requirements:** Python 3.12 or newer, a Google account with access to Colab and Drive, and any one-time OAuth/Cloud project setup described in the [setup guide](https://github.com/dependanz/colabcola/blob/main/docs/USER_SETUP.md). Accelerator availability depends on Google Colab. The Windows recovery acceptance test used CPU runtimes; it does **not** establish that every GPU or runtime configuration works.
81
+
82
+ Checkpoint recovery is opt-in: your workload must write restorable state and accept a checkpoint manifest. A runtime lost before publishing its latest checkpoint cannot recover its unsaved in-memory progress. Compute limits are bounded requests, not guaranteed billing ceilings.
83
+
84
+ ## Documentation
85
+
86
+ | Guide | Contents |
87
+ | --- | --- |
88
+ | [First-time setup](https://github.com/dependanz/colabcola/blob/main/docs/USER_SETUP.md) | Illustrated Google account, OAuth, Cloud project, and login walkthrough. |
89
+ | [Packaging](https://github.com/dependanz/colabcola/blob/main/docs/PACKAGING.md) | `.colajob` format, dependencies, inputs, outputs, and checkpoints. |
90
+ | [Recipes and managed workflows](https://github.com/dependanz/colabcola/blob/main/docs/RECIPES.md) | `.colaml`, run directories, offline preparation, and automation. |
91
+ | [Execution and recovery](https://github.com/dependanz/colabcola/blob/main/docs/LIFECYCLE.md) | Supervisor behavior, Drive persistence, failure recovery, and limits. |
92
+ | [Legacy controller](https://github.com/dependanz/colabcola/blob/main/docs/LEGACY_CONTROLLER.md) | Earlier notebook-based/manual execution workflows. |
93
+ | [Development](https://github.com/dependanz/colabcola/blob/main/docs/DEVELOPMENT.md) | Local builds, tests, and contribution workflow. |
94
+ | [Design](https://github.com/dependanz/colabcola/blob/main/docs/DESIGN.md) | Technical architecture and integrity contracts. |
95
+
96
+ ## Development
97
+
98
+ Colab Cola is distributed as a Python package. Release checks cover clean wheel/source installs, complete regression tests, platform behavior, license notices, and the verified runtime lifecycle. See [Development](https://github.com/dependanz/colabcola/blob/main/docs/DEVELOPMENT.md) and [Packaging](https://github.com/dependanz/colabcola/blob/main/docs/PACKAGING.md) for current details.
99
+
100
+ Colab Cola is an independent project and is **not affiliated with or endorsed by Google**. Google Colab and Google Drive remain subject to their own availability, policies, and limits.