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.
Files changed (83) hide show
  1. python_ship-0.1.0/CHANGELOG.md +42 -0
  2. python_ship-0.1.0/LICENSE.md +21 -0
  3. python_ship-0.1.0/MANIFEST.in +9 -0
  4. python_ship-0.1.0/PKG-INFO +936 -0
  5. python_ship-0.1.0/README.md +902 -0
  6. python_ship-0.1.0/docs/adding-a-service.md +205 -0
  7. python_ship-0.1.0/docs/releasing.md +60 -0
  8. python_ship-0.1.0/docs/roadmap.md +215 -0
  9. python_ship-0.1.0/examples/community-adapter/README.md +29 -0
  10. python_ship-0.1.0/examples/community-adapter/pyproject.toml +16 -0
  11. python_ship-0.1.0/examples/community-adapter/src/ship_example_starlette_adapter/__init__.py +44 -0
  12. python_ship-0.1.0/examples/community-service/README.md +26 -0
  13. python_ship-0.1.0/examples/community-service/pyproject.toml +16 -0
  14. python_ship-0.1.0/examples/community-service/src/ship_example_http_service/__init__.py +22 -0
  15. python_ship-0.1.0/pyproject.toml +78 -0
  16. python_ship-0.1.0/schema/ship.schema.json +128 -0
  17. python_ship-0.1.0/setup.cfg +4 -0
  18. python_ship-0.1.0/src/python_ship/__init__.py +3 -0
  19. python_ship-0.1.0/src/python_ship/__main__.py +3 -0
  20. python_ship-0.1.0/src/python_ship/adapters.py +270 -0
  21. python_ship-0.1.0/src/python_ship/cli.py +588 -0
  22. python_ship-0.1.0/src/python_ship/compose.py +439 -0
  23. python_ship-0.1.0/src/python_ship/config.py +368 -0
  24. python_ship-0.1.0/src/python_ship/contracts.py +234 -0
  25. python_ship-0.1.0/src/python_ship/init.py +369 -0
  26. python_ship-0.1.0/src/python_ship/mutagen.py +89 -0
  27. python_ship-0.1.0/src/python_ship/plugins.py +149 -0
  28. python_ship-0.1.0/src/python_ship/production.py +69 -0
  29. python_ship-0.1.0/src/python_ship/py.typed +0 -0
  30. python_ship-0.1.0/src/python_ship/release.py +175 -0
  31. python_ship-0.1.0/src/python_ship/runtime.py +83 -0
  32. python_ship-0.1.0/src/python_ship/security.py +69 -0
  33. python_ship-0.1.0/src/python_ship/servers.py +72 -0
  34. python_ship-0.1.0/src/python_ship/services.py +353 -0
  35. python_ship-0.1.0/src/python_ship/storage.py +151 -0
  36. python_ship-0.1.0/src/python_ship/stubs.py +149 -0
  37. python_ship-0.1.0/src/python_ship/templates/Dockerfile +52 -0
  38. python_ship-0.1.0/src/python_ship/templates/check-python-security-floor.py +49 -0
  39. python_ship-0.1.0/src/python_ship/templates/garage/Dockerfile +7 -0
  40. python_ship-0.1.0/src/python_ship/templates/garage/garage.toml +15 -0
  41. python_ship-0.1.0/src/python_ship/uv.py +76 -0
  42. python_ship-0.1.0/src/python_ship.egg-info/PKG-INFO +936 -0
  43. python_ship-0.1.0/src/python_ship.egg-info/SOURCES.txt +81 -0
  44. python_ship-0.1.0/src/python_ship.egg-info/dependency_links.txt +1 -0
  45. python_ship-0.1.0/src/python_ship.egg-info/entry_points.txt +2 -0
  46. python_ship-0.1.0/src/python_ship.egg-info/requires.txt +1 -0
  47. python_ship-0.1.0/src/python_ship.egg-info/top_level.txt +1 -0
  48. python_ship-0.1.0/tests/__init__.py +0 -0
  49. python_ship-0.1.0/tests/fixtures/django_app/manage.py +10 -0
  50. python_ship-0.1.0/tests/fixtures/django_app/project/__init__.py +0 -0
  51. python_ship-0.1.0/tests/fixtures/django_app/project/asgi.py +9 -0
  52. python_ship-0.1.0/tests/fixtures/django_app/project/settings.py +21 -0
  53. python_ship-0.1.0/tests/fixtures/django_app/project/urls.py +5 -0
  54. python_ship-0.1.0/tests/fixtures/django_app/project/views.py +16 -0
  55. python_ship-0.1.0/tests/fixtures/django_app/requirements.txt +3 -0
  56. python_ship-0.1.0/tests/fixtures/fastapi_app/main.py +31 -0
  57. python_ship-0.1.0/tests/fixtures/fastapi_app/requirements.txt +3 -0
  58. python_ship-0.1.0/tests/fixtures/flask_app/app.py +35 -0
  59. python_ship-0.1.0/tests/fixtures/flask_app/requirements.txt +3 -0
  60. python_ship-0.1.0/tests/fixtures/plain_asgi/main.py +14 -0
  61. python_ship-0.1.0/tests/helpers.py +196 -0
  62. python_ship-0.1.0/tests/test_adapters.py +120 -0
  63. python_ship-0.1.0/tests/test_cli.py +296 -0
  64. python_ship-0.1.0/tests/test_compose.py +323 -0
  65. python_ship-0.1.0/tests/test_config.py +137 -0
  66. python_ship-0.1.0/tests/test_docker_development.py +204 -0
  67. python_ship-0.1.0/tests/test_docker_production.py +130 -0
  68. python_ship-0.1.0/tests/test_docker_release.py +121 -0
  69. python_ship-0.1.0/tests/test_docker_services.py +236 -0
  70. python_ship-0.1.0/tests/test_extensions.py +107 -0
  71. python_ship-0.1.0/tests/test_init.py +343 -0
  72. python_ship-0.1.0/tests/test_mutagen.py +149 -0
  73. python_ship-0.1.0/tests/test_plain_asgi_http.py +67 -0
  74. python_ship-0.1.0/tests/test_plugins.py +197 -0
  75. python_ship-0.1.0/tests/test_production.py +152 -0
  76. python_ship-0.1.0/tests/test_release.py +217 -0
  77. python_ship-0.1.0/tests/test_runtime.py +108 -0
  78. python_ship-0.1.0/tests/test_schema.py +62 -0
  79. python_ship-0.1.0/tests/test_security.py +90 -0
  80. python_ship-0.1.0/tests/test_servers.py +166 -0
  81. python_ship-0.1.0/tests/test_services.py +272 -0
  82. python_ship-0.1.0/tests/test_uv.py +126 -0
  83. 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.
@@ -0,0 +1,9 @@
1
+ graft tests
2
+ graft docs
3
+ graft examples
4
+ include CHANGELOG.md
5
+ global-exclude __pycache__ *.py[cod] .DS_Store
6
+ prune examples/*/build
7
+ prune examples/*/dist
8
+ prune examples/*/src/*.egg-info
9
+ graft schema