m0 0.0.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.
m0/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """m0: a web stack for Mojo applications. The developer CLI is in development."""
2
+
3
+ __version__ = "0.0.1"
m0/__main__.py ADDED
@@ -0,0 +1,41 @@
1
+ """The `m0` command. 0.0.1 names what is coming and refuses the rest."""
2
+
3
+ import sys
4
+
5
+ from m0 import __version__
6
+
7
+ _ABOUT = f"""m0 {__version__} -- a web stack for Mojo applications
8
+
9
+ The developer CLI (new, dev, build, test, doctor, image) is in development
10
+ and is not in this release.
11
+
12
+ Serve a Python application on the stack today: pip install m0serve
13
+ Docs: https://m0serve.dev
14
+ Source: https://github.com/codetalcott/mojo-http
15
+ """
16
+
17
+ _PLANNED = ("new", "dev", "build", "test", "doctor", "image")
18
+
19
+
20
+ def main(argv: list[str] | None = None) -> int:
21
+ args = sys.argv[1:] if argv is None else argv
22
+ if not args or args[0] in ("-h", "--help", "help"):
23
+ print(_ABOUT, end="")
24
+ return 0
25
+ if args[0] in ("-V", "--version"):
26
+ print(f"m0 {__version__}")
27
+ return 0
28
+ if args[0] in _PLANNED:
29
+ print(
30
+ f"m0: '{args[0]}' is not in m0 {__version__}; the developer CLI is in "
31
+ "development (https://github.com/codetalcott/mojo-http). To serve a "
32
+ "Python application today: pip install m0serve",
33
+ file=sys.stderr,
34
+ )
35
+ else:
36
+ print(f"m0: unknown command '{args[0]}' (try: m0 --help)", file=sys.stderr)
37
+ return 2
38
+
39
+
40
+ if __name__ == "__main__":
41
+ sys.exit(main())
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.5
2
+ Name: m0
3
+ Version: 0.0.1
4
+ Summary: m0: a web stack for Mojo applications -- developer CLI, in development. Serving Python apps today: m0serve.
5
+ Project-URL: Homepage, https://m0serve.dev
6
+ Project-URL: Source, https://github.com/codetalcott/mojo-http
7
+ Project-URL: Changelog, https://github.com/codetalcott/mojo-http/blob/main/CHANGELOG.md
8
+ Author-email: Wm Talcott <32972881+codetalcott@users.noreply.github.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: cli,datastar,framework,htmx,mojo,sse,web
12
+ Classifier: Development Status :: 1 - Planning
13
+ Classifier: Environment :: Console
14
+ Classifier: Environment :: Web Environment
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: MacOS :: MacOS X
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
20
+ Classifier: Topic :: Software Development :: Code Generators
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+
24
+ # m0
25
+
26
+ **m0** is a web stack for applications written in Mojo: an HTTP/1.1 server
27
+ with prefork workers or loops on threads, server-sent events, WebSockets and
28
+ a cross-worker broadcast bus; a view and fragment layer for htmx and
29
+ Datastar; and a host that takes an app's `main` down to its configuration
30
+ plus one call. A deployed app is one binary with no interpreter under it.
31
+ The source, the capability matrix and every gate are at
32
+ [codetalcott/mojo-http](https://github.com/codetalcott/mojo-http).
33
+
34
+ This package will be the **developer CLI**: `m0 new` to scaffold an app,
35
+ `m0 dev` to build and serve it with rebuild-on-change, and `m0 build`,
36
+ `m0 test`, `m0 doctor` and `m0 image` to take it to a container. That CLI
37
+ is in development. Version 0.0.1 installs an `m0` command that says so and
38
+ points to what works today; it does nothing else.
39
+
40
+ **Serving a Python application on the stack today:** `pip install m0serve`
41
+ ([m0serve.dev](https://m0serve.dev)), a WSGI/ASGI server written in Mojo.
42
+
43
+ ```console
44
+ $ m0 --version
45
+ m0 0.0.1
46
+ ```
47
+
48
+ MIT licensed.
@@ -0,0 +1,7 @@
1
+ m0/__init__.py,sha256=Sp2b8wsP_snTA8BxY-OLvtboYV0v28kCBRLoNhMjBMs,105
2
+ m0/__main__.py,sha256=ugJI0TQVjtUrmYwaw6s6VT8PsdaXlUrRBd-ybx5Ex5Q,1260
3
+ m0-0.0.1.dist-info/METADATA,sha256=3AKawbGvFxUoVnn5337fXKHAX4h4wDlHWzALFdi2Aa4,2078
4
+ m0-0.0.1.dist-info/WHEEL,sha256=THafob7ofN-NsuMN7Mg4qZyHaQI7KkD-QlcQatYhXPo,87
5
+ m0-0.0.1.dist-info/entry_points.txt,sha256=r2WvRMYNQ-qIHtZD5qBJ9y50VOM-eWdC2NY4ifdOays,40
6
+ m0-0.0.1.dist-info/licenses/LICENSE,sha256=uZT5WTw8v-K951N3qFBuQyVD8UifuFymacvjkFC9eyQ,1072
7
+ m0-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.3
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ m0 = m0.__main__:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 Wm Talcott
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.