devbrains 0.1.0.dev0__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.
devbrains/__init__.py ADDED
@@ -0,0 +1,51 @@
1
+ """devbrains: project memory for work that spans devices (pre-release preview)."""
2
+
3
+ import sys
4
+
5
+ __version__ = "0.1.0.dev0"
6
+
7
+ BANNER = r"""
8
+ _ _ _
9
+ __| | _____ __ | |__ _ __ __ _(_)_ __ ___
10
+ / _` |/ _ \ \ / / | '_ \| '__/ _` | | '_ \/ __|
11
+ | (_| | __/\ V / | |_) | | | (_| | | | | \__ \
12
+ \__,_|\___| \_/ |_.__/|_| \__,_|_|_| |_|___/
13
+ """
14
+
15
+ ABOUT = """\
16
+ devbrains keeps project memory for work that spans more than one device.
17
+
18
+ primary one device holds the authoritative devbrain for your projects
19
+ secondary other devices read from and write to the primary, over
20
+ Tailscale or a direct connection where allowed
21
+ sync the primary pushes its devbrain to a remote automatically
22
+
23
+ This is an early preview release. The first working release, a Windows
24
+ wheel with the devbrains and devbrains-server commands, is in preparation.
25
+ """
26
+
27
+ USAGE = """\
28
+ usage: devbrains [--version | --help]
29
+
30
+ (no options) show the banner and what devbrains is
31
+ --version print the version
32
+ --help show this help
33
+ """
34
+
35
+
36
+ def main(argv=None) -> int:
37
+ args = sys.argv[1:] if argv is None else list(argv)
38
+ if not args:
39
+ print(BANNER)
40
+ print(f" devbrains {__version__}\n")
41
+ print(ABOUT)
42
+ return 0
43
+ if args == ["--version"]:
44
+ print(f"devbrains {__version__}")
45
+ return 0
46
+ if args in (["--help"], ["-h"]):
47
+ print(USAGE)
48
+ return 0
49
+ print(USAGE, file=sys.stderr)
50
+ print(f"devbrains: unknown arguments: {' '.join(args)}", file=sys.stderr)
51
+ return 2
devbrains/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from devbrains import main
4
+
5
+ sys.exit(main())
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: devbrains
3
+ Version: 0.1.0.dev0
4
+ Summary: Project memory for work that spans devices (early preview)
5
+ Classifier: Development Status :: 2 - Pre-Alpha
6
+ Classifier: Environment :: Console
7
+ Classifier: Programming Language :: Python :: 3
8
+ Description-Content-Type: text/markdown
9
+
10
+ # devbrains
11
+
12
+ devbrains keeps project memory for work that spans more than one device.
13
+
14
+ - **Primary:** one device holds the authoritative devbrain for your projects.
15
+ - **Secondary:** other devices read from and write to the primary, over
16
+ Tailscale or a direct connection where allowed.
17
+ - **Sync:** the primary pushes its devbrain to a remote automatically.
18
+
19
+ This is an early preview release. It installs a `devbrains` command that shows
20
+ what the project is (`devbrains`, `devbrains --version`, `devbrains --help`).
21
+ The first working release, a Windows wheel with the `devbrains` and
22
+ `devbrains-server` commands, is in preparation and will replace this version.
@@ -0,0 +1,6 @@
1
+ devbrains/__init__.py,sha256=g19jhkdgf99u-YU82R9CuUNm2c8TABUKcRYBWMyYVSA,1565
2
+ devbrains/__main__.py,sha256=WwI56xpBesuVxunDY3FnOGwhfuH90NUwRRLhzmp_XQY,57
3
+ devbrains-0.1.0.dev0.dist-info/METADATA,sha256=S62Bq1ni1lqU5cS773nTOgM4bWmT4rNnF2sso36Rlq4,960
4
+ devbrains-0.1.0.dev0.dist-info/WHEEL,sha256=kuR2c6FmCifpW7wVybcUpcsydRNcU6LJ8w31IzAvPrI,91
5
+ devbrains-0.1.0.dev0.dist-info/entry_points.txt,sha256=ZgObY8OKS3o9prRUSf_hHhT2PY0RpdXkNJ1f5OPSIXw,45
6
+ devbrains-0.1.0.dev0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: devbrains-name-claim
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ devbrains = devbrains:main