python-ship 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.
- python_ship-0.1.0/CHANGELOG.md +42 -0
- python_ship-0.1.0/LICENSE.md +21 -0
- python_ship-0.1.0/MANIFEST.in +9 -0
- python_ship-0.1.0/PKG-INFO +936 -0
- python_ship-0.1.0/README.md +902 -0
- python_ship-0.1.0/docs/adding-a-service.md +205 -0
- python_ship-0.1.0/docs/releasing.md +60 -0
- python_ship-0.1.0/docs/roadmap.md +215 -0
- python_ship-0.1.0/examples/community-adapter/README.md +29 -0
- python_ship-0.1.0/examples/community-adapter/pyproject.toml +16 -0
- python_ship-0.1.0/examples/community-adapter/src/ship_example_starlette_adapter/__init__.py +44 -0
- python_ship-0.1.0/examples/community-service/README.md +26 -0
- python_ship-0.1.0/examples/community-service/pyproject.toml +16 -0
- python_ship-0.1.0/examples/community-service/src/ship_example_http_service/__init__.py +22 -0
- python_ship-0.1.0/pyproject.toml +78 -0
- python_ship-0.1.0/schema/ship.schema.json +128 -0
- python_ship-0.1.0/setup.cfg +4 -0
- python_ship-0.1.0/src/python_ship/__init__.py +3 -0
- python_ship-0.1.0/src/python_ship/__main__.py +3 -0
- python_ship-0.1.0/src/python_ship/adapters.py +270 -0
- python_ship-0.1.0/src/python_ship/cli.py +588 -0
- python_ship-0.1.0/src/python_ship/compose.py +439 -0
- python_ship-0.1.0/src/python_ship/config.py +368 -0
- python_ship-0.1.0/src/python_ship/contracts.py +234 -0
- python_ship-0.1.0/src/python_ship/init.py +369 -0
- python_ship-0.1.0/src/python_ship/mutagen.py +89 -0
- python_ship-0.1.0/src/python_ship/plugins.py +149 -0
- python_ship-0.1.0/src/python_ship/production.py +69 -0
- python_ship-0.1.0/src/python_ship/py.typed +0 -0
- python_ship-0.1.0/src/python_ship/release.py +175 -0
- python_ship-0.1.0/src/python_ship/runtime.py +83 -0
- python_ship-0.1.0/src/python_ship/security.py +69 -0
- python_ship-0.1.0/src/python_ship/servers.py +72 -0
- python_ship-0.1.0/src/python_ship/services.py +353 -0
- python_ship-0.1.0/src/python_ship/storage.py +151 -0
- python_ship-0.1.0/src/python_ship/stubs.py +149 -0
- python_ship-0.1.0/src/python_ship/templates/Dockerfile +52 -0
- python_ship-0.1.0/src/python_ship/templates/check-python-security-floor.py +49 -0
- python_ship-0.1.0/src/python_ship/templates/garage/Dockerfile +7 -0
- python_ship-0.1.0/src/python_ship/templates/garage/garage.toml +15 -0
- python_ship-0.1.0/src/python_ship/uv.py +76 -0
- python_ship-0.1.0/src/python_ship.egg-info/PKG-INFO +936 -0
- python_ship-0.1.0/src/python_ship.egg-info/SOURCES.txt +81 -0
- python_ship-0.1.0/src/python_ship.egg-info/dependency_links.txt +1 -0
- python_ship-0.1.0/src/python_ship.egg-info/entry_points.txt +2 -0
- python_ship-0.1.0/src/python_ship.egg-info/requires.txt +1 -0
- python_ship-0.1.0/src/python_ship.egg-info/top_level.txt +1 -0
- python_ship-0.1.0/tests/__init__.py +0 -0
- python_ship-0.1.0/tests/fixtures/django_app/manage.py +10 -0
- python_ship-0.1.0/tests/fixtures/django_app/project/__init__.py +0 -0
- python_ship-0.1.0/tests/fixtures/django_app/project/asgi.py +9 -0
- python_ship-0.1.0/tests/fixtures/django_app/project/settings.py +21 -0
- python_ship-0.1.0/tests/fixtures/django_app/project/urls.py +5 -0
- python_ship-0.1.0/tests/fixtures/django_app/project/views.py +16 -0
- python_ship-0.1.0/tests/fixtures/django_app/requirements.txt +3 -0
- python_ship-0.1.0/tests/fixtures/fastapi_app/main.py +31 -0
- python_ship-0.1.0/tests/fixtures/fastapi_app/requirements.txt +3 -0
- python_ship-0.1.0/tests/fixtures/flask_app/app.py +35 -0
- python_ship-0.1.0/tests/fixtures/flask_app/requirements.txt +3 -0
- python_ship-0.1.0/tests/fixtures/plain_asgi/main.py +14 -0
- python_ship-0.1.0/tests/helpers.py +196 -0
- python_ship-0.1.0/tests/test_adapters.py +120 -0
- python_ship-0.1.0/tests/test_cli.py +296 -0
- python_ship-0.1.0/tests/test_compose.py +323 -0
- python_ship-0.1.0/tests/test_config.py +137 -0
- python_ship-0.1.0/tests/test_docker_development.py +204 -0
- python_ship-0.1.0/tests/test_docker_production.py +130 -0
- python_ship-0.1.0/tests/test_docker_release.py +121 -0
- python_ship-0.1.0/tests/test_docker_services.py +236 -0
- python_ship-0.1.0/tests/test_extensions.py +107 -0
- python_ship-0.1.0/tests/test_init.py +343 -0
- python_ship-0.1.0/tests/test_mutagen.py +149 -0
- python_ship-0.1.0/tests/test_plain_asgi_http.py +67 -0
- python_ship-0.1.0/tests/test_plugins.py +197 -0
- python_ship-0.1.0/tests/test_production.py +152 -0
- python_ship-0.1.0/tests/test_release.py +217 -0
- python_ship-0.1.0/tests/test_runtime.py +108 -0
- python_ship-0.1.0/tests/test_schema.py +62 -0
- python_ship-0.1.0/tests/test_security.py +90 -0
- python_ship-0.1.0/tests/test_servers.py +166 -0
- python_ship-0.1.0/tests/test_services.py +272 -0
- python_ship-0.1.0/tests/test_uv.py +126 -0
- python_ship-0.1.0/tests/vite.py +111 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to python-ship are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project
|
|
5
|
+
uses [Semantic Versioning](https://semver.org/): before 1.0, a minor release
|
|
6
|
+
may change the extension contracts or `ship.json`, and says how here.
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2026-11-16
|
|
9
|
+
|
|
10
|
+
The first public release.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- The `ship` command, with the same command set as PHP Ship: `init`, `up`,
|
|
15
|
+
`down`, `exec`, `shell`, `logs`, `db [instance]`, `config:test`, `build`,
|
|
16
|
+
`release`, plus `doctor`, `npm`, `uv`, `--version`, and framework commands
|
|
17
|
+
such as Django's `manage`.
|
|
18
|
+
- An interactive `ship init` that detects Django and FastAPI, suggests the
|
|
19
|
+
ASGI target, and asks for each service group, named instances, the Silo
|
|
20
|
+
image and the Python version; every answer also has a flag, and
|
|
21
|
+
`--no-interaction` never prompts.
|
|
22
|
+
- Built-in adapters for any ASGI or WSGI callable, Django, FastAPI and Flask;
|
|
23
|
+
Uvicorn, Hypercorn, Gunicorn and Granian servers, with `ship init` offering
|
|
24
|
+
only the servers that can run the app's interface.
|
|
25
|
+
- Celery (worker and beat from the app image) and RabbitMQ services.
|
|
26
|
+
- A JSON Schema for ship.json, shared with PHP Ship.
|
|
27
|
+
- Fourteen built-in services: PostgreSQL (`postgres`, or `pgsql`), MySQL, Redis, RabbitMQ, Celery, Mailpit, Meilisearch,
|
|
28
|
+
Garage, SeaweedFS, RustFS, Silo, Selenium, Playwright and Node, with named
|
|
29
|
+
instances, custom service names and an external network.
|
|
30
|
+
- Production images (non-root, no uv or pip) and portable releases that run
|
|
31
|
+
with Docker alone, with deploy commands and deduplicated image archives.
|
|
32
|
+
- A Python security floor: end-of-life branches and releases with known
|
|
33
|
+
vulnerabilities are refused, both in `ship.json` and in the image build.
|
|
34
|
+
- Typed extension contracts for community services, adapters and ASGI
|
|
35
|
+
servers, loaded from entry points.
|
|
36
|
+
- Optional Mutagen file sync for Windows and macOS, covering every container
|
|
37
|
+
that mounts the project, the Node frontend included.
|
|
38
|
+
- Vite HMR through the Node container, verified against a real Vite dev
|
|
39
|
+
server: `ship init` prints the config it needs, and the watcher polls on
|
|
40
|
+
Windows bind mounts.
|
|
41
|
+
|
|
42
|
+
[0.1.0]: https://github.com/ship-ecosystem/python-ship/releases/tag/v0.1.0
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 python-ship
|
|
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.
|