dev-code 0.1.0__tar.gz → 0.1.2__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.
@@ -0,0 +1,164 @@
1
+ Metadata-Version: 2.4
2
+ Name: dev-code
3
+ Version: 0.1.2
4
+ Summary: Project · editor · container — simplified
5
+ License-File: LICENSE
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: Python :: 3.10
8
+ Classifier: Programming Language :: Python :: 3.11
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Programming Language :: Python :: 3.13
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+
14
+ # dev-code
15
+
16
+ ```text
17
+ _ _
18
+ | | | |
19
+ __| | _____ ________ ___ ___ __| | ___
20
+ / _` |/ _ \ \ / /______/ __/ _ \ / _` |/ _ \
21
+ | (_| | __/\ V / | (_| (_) | (_| | __/
22
+ \__,_|\___| \_/ \___\___/ \__,_|\___|
23
+ project · editor · container — simplified
24
+ ```
25
+
26
+ [![Coverage](https://codecov.io/gh/dacrystal/dev-code/branch/main/graph/badge.svg)](https://codecov.io/gh/dacrystal/dev-code)
27
+
28
+ [![PyPI version](https://img.shields.io/pypi/v/dev-code)](https://pypi.org/project/dev-code/)
29
+ [![Python 3.10+](https://img.shields.io/pypi/pyversions/dev-code)](https://pypi.org/project/dev-code/)
30
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
31
+
32
+ **One command. Any project. The right devcontainer.**
33
+
34
+ `dev-code` is a CLI that opens any project in VS Code inside a devcontainer — instantly, using reusable templates you define once. No more hunting config files. No more copy-pasting `devcontainer.json`.
35
+
36
+ ---
37
+
38
+ ## Install
39
+
40
+ ```bash
41
+ pip install dev-code
42
+ ```
43
+
44
+ Or run without installing via **uvx**:
45
+
46
+ ```bash
47
+ uvx dev-code
48
+ ```
49
+
50
+ **Tip:** Add an alias for the fastest workflow:
51
+
52
+ ```bash
53
+ alias dev-code="uvx dev-code"
54
+ ```
55
+
56
+ > Requires: VS Code with the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) + Docker
57
+
58
+ ---
59
+
60
+ ## Quick-start
61
+
62
+ ```bash
63
+ # 1. Seed your first template
64
+ dev-code init
65
+
66
+ # 2. Open any project in a devcontainer
67
+ dev-code open dev-code ~/projects/my-app
68
+
69
+ # That's it. VS Code opens, container spins up.
70
+ ```
71
+
72
+ ---
73
+
74
+ ## Features
75
+
76
+ - **One-command open** — `dev-code open <template> <path>` launches VS Code in a devcontainer instantly
77
+ - **Reusable templates** — define your devcontainer once, reuse it across every project
78
+ - **Built-in template** — ships with the `dev-code` template out of the box
79
+ - **Custom templates** — create and manage your own with `dev-code new`
80
+ - **File sync on launch** — copy credentials, configs, and secrets into the container via a `dev-code` customization block in `devcontainer.json`
81
+ - **WSL support** — works natively on Windows Subsystem for Linux
82
+ - **Container dashboard** — see all running devcontainers with `dev-code ps`
83
+ - **Works with existing config** — no new format, just standard `devcontainer.json`
84
+
85
+ ---
86
+
87
+ ## Commands
88
+
89
+ | Command | Description |
90
+ |---|---|
91
+ | `dev-code init` | Seed the built-in `dev-code` template into your template directory |
92
+ | `dev-code open <template> <path>` | Open a project in VS Code using a devcontainer template |
93
+ | `dev-code new <name> [base]` | Create a new template (optionally based on an existing one) |
94
+ | `dev-code edit [template]` | Open a template for editing in VS Code |
95
+ | `dev-code list [--long]` | List available templates |
96
+ | `dev-code ps` | Show running devcontainers |
97
+
98
+ ### Options
99
+
100
+ | Flag | Command | Description |
101
+ |---|---|---|
102
+ | `--dry-run` | `open` | Print the devcontainer URI and copy plan without executing |
103
+ | `--container-folder` | `open` | Override the in-container workspace path |
104
+ | `--timeout` | `open` | Seconds to wait for container to start (default: 300) |
105
+ | `--edit` | `new` | Open the new template for editing immediately after creation |
106
+ | `--long` | `list` | Show full paths alongside template names |
107
+ | `-v, --verbose` | all | Enable debug logging |
108
+
109
+ ---
110
+
111
+ ## Templates
112
+
113
+ Templates are directories containing a `.devcontainer/devcontainer.json` file. They live in `~/.local/share/dev-code/templates/` by default (XDG-compliant), or wherever `$DEVCODE_TEMPLATE_DIR` points.
114
+
115
+ ### Get started
116
+
117
+ ```bash
118
+ dev-code init # copies the built-in dev-code template
119
+ dev-code new my-python # creates a new template from the default base
120
+ dev-code new my-node dev-code # creates a new template based on dev-code
121
+ dev-code edit my-python # open the template in VS Code to customise it
122
+ ```
123
+
124
+ ### File sync — copy files into the container on launch
125
+
126
+ Add a `customizations.dev-code.cp` section to your `devcontainer.json` to copy files from your host into the running container:
127
+
128
+ ```json
129
+ {
130
+ "customizations": {
131
+ "dev-code": {
132
+ "cp": [
133
+ {
134
+ "source": "${localEnv:HOME}/.claude/credentials.json",
135
+ "target": "/home/vscode/.claude/credentials.json"
136
+ }
137
+ ]
138
+ }
139
+ }
140
+ }
141
+ ```
142
+
143
+ Supports `owner`, `group`, `permissions`, and `Override` fields per entry. Use `source/.` to copy the contents of a directory.
144
+
145
+ ---
146
+
147
+ ## Contributing
148
+
149
+ Contributions are welcome! To get started:
150
+
151
+ ```bash
152
+ git clone https://github.com/dacrystal/dev-code
153
+ dev-code open dev-code ./dev-code
154
+ ```
155
+
156
+ The repo includes a `dev-code` devcontainer — open it with itself.
157
+
158
+ Please open an issue before submitting large changes.
159
+
160
+ ---
161
+
162
+ ## License
163
+
164
+ MIT
@@ -5,8 +5,17 @@ build-backend = "hatchling.build"
5
5
  [project]
6
6
  name = "dev-code"
7
7
  dynamic = ["version"]
8
+ description = "Project · editor · container — simplified"
9
+ readme = "README.md"
8
10
  requires-python = ">=3.10"
9
11
  dependencies = []
12
+ classifiers = [
13
+ "Programming Language :: Python :: 3",
14
+ "Programming Language :: Python :: 3.10",
15
+ "Programming Language :: Python :: 3.11",
16
+ "Programming Language :: Python :: 3.12",
17
+ "Programming Language :: Python :: 3.13",
18
+ ]
10
19
 
11
20
  [project.scripts]
12
21
  dev-code = "dev_code:main"
dev_code-0.1.0/PKG-INFO DELETED
@@ -1,5 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: dev-code
3
- Version: 0.1.0
4
- License-File: LICENSE
5
- Requires-Python: >=3.10
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes