daster 0.1.0__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.
- daster/__init__.py +12 -0
- daster/cli.py +37 -0
- daster-0.1.0.dist-info/METADATA +44 -0
- daster-0.1.0.dist-info/RECORD +7 -0
- daster-0.1.0.dist-info/WHEEL +5 -0
- daster-0.1.0.dist-info/entry_points.txt +2 -0
- daster-0.1.0.dist-info/top_level.txt +1 -0
daster/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""DASTER for Python.
|
|
2
|
+
|
|
3
|
+
DASTER is a developer cloud: app hosting, databases, app and marketing email,
|
|
4
|
+
domains, and AI tools over MCP. This package gives Python users the `daster`
|
|
5
|
+
command, which runs the official DASTER CLI published on npm as
|
|
6
|
+
@dasterhq/daster.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
__version__ = "0.1.0"
|
|
10
|
+
|
|
11
|
+
WEBSITE = "https://daster.io"
|
|
12
|
+
NPM_PACKAGE = "@dasterhq/daster"
|
daster/cli.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""`daster` command: runs the official DASTER CLI through npx.
|
|
2
|
+
|
|
3
|
+
The DASTER CLI is written in JavaScript and published on npm as
|
|
4
|
+
@dasterhq/daster. This wrapper lets Python users type `daster ...` and passes
|
|
5
|
+
every argument through unchanged. It needs Node.js 20.3 or newer.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import shutil
|
|
9
|
+
import subprocess
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
from . import NPM_PACKAGE, WEBSITE
|
|
13
|
+
|
|
14
|
+
NODE_MISSING_MESSAGE = f"""daster: Node.js was not found.
|
|
15
|
+
|
|
16
|
+
The DASTER CLI runs on Node.js 20.3 or newer. Install Node.js from
|
|
17
|
+
https://nodejs.org and run this command again.
|
|
18
|
+
|
|
19
|
+
Docs: {WEBSITE}
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def main() -> int:
|
|
24
|
+
npx = shutil.which("npx")
|
|
25
|
+
if npx is None:
|
|
26
|
+
sys.stderr.write(NODE_MISSING_MESSAGE)
|
|
27
|
+
return 1
|
|
28
|
+
|
|
29
|
+
command = [npx, "--yes", NPM_PACKAGE, *sys.argv[1:]]
|
|
30
|
+
try:
|
|
31
|
+
return subprocess.call(command)
|
|
32
|
+
except KeyboardInterrupt:
|
|
33
|
+
return 130
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
if __name__ == "__main__":
|
|
37
|
+
sys.exit(main())
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: daster
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: DASTER CLI for Python users: runs the official DASTER CLI (@dasterhq/daster) to connect IDEs, AI agents and scripts to your DASTER project.
|
|
5
|
+
Author-email: DASTER <social@daster.io>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://daster.io
|
|
8
|
+
Project-URL: Source, https://github.com/dasterhq
|
|
9
|
+
Project-URL: npm package, https://www.npmjs.com/package/@dasterhq/daster
|
|
10
|
+
Keywords: daster,cloud,hosting,database,email,mcp,cli
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Topic :: Internet
|
|
16
|
+
Requires-Python: >=3.8
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# daster
|
|
20
|
+
|
|
21
|
+
The DASTER CLI for Python users. It runs the official DASTER CLI
|
|
22
|
+
([`@dasterhq/daster`](https://www.npmjs.com/package/@dasterhq/daster) on npm), so
|
|
23
|
+
you can connect IDEs, AI agents and scripts to your DASTER project from any terminal.
|
|
24
|
+
|
|
25
|
+
DASTER is a developer cloud: app hosting, databases, app and marketing email,
|
|
26
|
+
domains, and AI tools over MCP. One account, pay as you go.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install daster
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Needs Node.js 20.3 or newer (the CLI runs on Node.js).
|
|
35
|
+
|
|
36
|
+
## Use
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
daster --help
|
|
40
|
+
daster login
|
|
41
|
+
daster deploy ./my-site
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Docs and sign-up: https://daster.io
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
daster/__init__.py,sha256=mZKTHUR8UoQdJE2OOVt4bXTcvAIeUWBsMeSYERP-fdc,351
|
|
2
|
+
daster/cli.py,sha256=XH8kjDM4esq0yK_rEPeXPEEapWfgT4NvfG-MzLpTXNs,892
|
|
3
|
+
daster-0.1.0.dist-info/METADATA,sha256=6ns75pglxbLSramGxnPtdwWFwnLmhUgrB5zaP9h_xF0,1335
|
|
4
|
+
daster-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
5
|
+
daster-0.1.0.dist-info/entry_points.txt,sha256=c2f5Ifyg6gxy6DRixSOW51VhhY92uWHDbufxHtt6kRo,43
|
|
6
|
+
daster-0.1.0.dist-info/top_level.txt,sha256=yu4FHjF61kiKy1B_gfO2e0xkDl4qxzPUwYMhA2SFqeo,7
|
|
7
|
+
daster-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
daster
|