containers-py 0.2.0__tar.gz → 0.2.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.
- {containers_py-0.2.0 → containers_py-0.2.2}/PKG-INFO +7 -4
- containers_py-0.2.2/README.md +20 -0
- {containers_py-0.2.0 → containers_py-0.2.2}/pyproject.toml +4 -6
- {containers_py-0.2.0 → containers_py-0.2.2}/pyproject.toml.orig +3 -3
- {containers_py-0.2.0 → containers_py-0.2.2}/src/containers/__init__.py +1 -1
- {containers_py-0.2.0 → containers_py-0.2.2}/src/containers/container.py +1 -3
- containers_py-0.2.0/README.md +0 -16
- {containers_py-0.2.0 → containers_py-0.2.2}/src/containers/ffi.py +0 -0
- {containers_py-0.2.0 → containers_py-0.2.2}/src/containers/py.typed +0 -0
- {containers_py-0.2.0 → containers_py-0.2.2}/src/containers/state.py +0 -0
- {containers_py-0.2.0 → containers_py-0.2.2}/src/containers/utils.py +0 -0
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: containers-py
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Cloudflare Containers for Python Workers
|
|
5
5
|
Author: Viswa Marepalli
|
|
6
6
|
Author-email: Viswa Marepalli <reachvishm@gmail.com>
|
|
7
7
|
License-Expression: MIT OR Apache-2.0
|
|
8
8
|
Requires-Dist: typing-extensions>=4.12
|
|
9
|
-
Requires-Dist: workers-runtime-sdk>=1.9.0
|
|
10
9
|
Requires-Python: >=3.12
|
|
11
|
-
Project-URL: Source, https://github.com/justanotherbyte/containers
|
|
10
|
+
Project-URL: Source, https://github.com/justanotherbyte/crosswind/tree/main/containers
|
|
12
11
|
Project-URL: Documentation, https://crosswind.viswa.space
|
|
13
12
|
Description-Content-Type: text/markdown
|
|
14
13
|
|
|
@@ -25,6 +24,10 @@ Cloudflare Containers for Python Workers
|
|
|
25
24
|
</sup>
|
|
26
25
|
</p>
|
|
27
26
|
|
|
27
|
+
Use `containers-py` to start Cloudflare Containers and route requests to them from a Python Worker. Read the [Containers docs](https://crosswind.viswa.space/containers/overview/) for setup and examples.
|
|
28
|
+
|
|
28
29
|
> [!note]
|
|
29
|
-
> This is an unofficial SDK. I
|
|
30
|
+
> This is an unofficial SDK, not affiliated with Cloudflare. I wrote a first port during my internship at Cloudflare, and this package is a rewrite of it. I used AI tools to write it and review every change.
|
|
31
|
+
>
|
|
32
|
+
> This project is part of [Crosswind](https://crosswind.viswa.space).
|
|
30
33
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<sub>
|
|
3
|
+
<img src="https://raw.githubusercontent.com/justanotherbyte/containers/refs/heads/main/.github/python-containers.svg" height="36">
|
|
4
|
+
</sub>
|
|
5
|
+
|
|
6
|
+
containers-py
|
|
7
|
+
</h1>
|
|
8
|
+
<p align="center">
|
|
9
|
+
<sup>
|
|
10
|
+
Cloudflare Containers for Python Workers
|
|
11
|
+
</sup>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
Use `containers-py` to start Cloudflare Containers and route requests to them from a Python Worker. Read the [Containers docs](https://crosswind.viswa.space/containers/overview/) for setup and examples.
|
|
15
|
+
|
|
16
|
+
> [!note]
|
|
17
|
+
> This is an unofficial SDK, not affiliated with Cloudflare. I wrote a first port during my internship at Cloudflare, and this package is a rewrite of it. I used AI tools to write it and review every change.
|
|
18
|
+
>
|
|
19
|
+
> This project is part of [Crosswind](https://crosswind.viswa.space).
|
|
20
|
+
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "containers-py"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.2"
|
|
4
4
|
description = "Cloudflare Containers for Python Workers"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
7
|
-
dependencies = [
|
|
8
|
-
"typing-extensions>=4.12",
|
|
9
|
-
"workers-runtime-sdk>=1.9.0",
|
|
10
|
-
]
|
|
7
|
+
dependencies = ["typing-extensions>=4.12"]
|
|
11
8
|
license = "MIT OR Apache-2.0"
|
|
12
9
|
|
|
13
10
|
[[project.authors]]
|
|
@@ -15,7 +12,7 @@ name = "Viswa Marepalli"
|
|
|
15
12
|
email = "reachvishm@gmail.com"
|
|
16
13
|
|
|
17
14
|
[project.urls]
|
|
18
|
-
Source = "https://github.com/justanotherbyte/containers"
|
|
15
|
+
Source = "https://github.com/justanotherbyte/crosswind/tree/main/containers"
|
|
19
16
|
Documentation = "https://crosswind.viswa.space"
|
|
20
17
|
|
|
21
18
|
[build-system]
|
|
@@ -63,4 +60,5 @@ dev = [
|
|
|
63
60
|
"pytest-asyncio>=1.4.0",
|
|
64
61
|
"ruff>=0.16.9",
|
|
65
62
|
"ty>=0.0.84",
|
|
63
|
+
"workers-runtime-sdk>=1.9.0",
|
|
66
64
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "containers-py"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.2"
|
|
4
4
|
description = "Cloudflare Containers for Python Workers"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -9,12 +9,11 @@ authors = [
|
|
|
9
9
|
requires-python = ">=3.12"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"typing-extensions>=4.12",
|
|
12
|
-
"workers-runtime-sdk>=1.9.0",
|
|
13
12
|
]
|
|
14
13
|
license = "MIT OR Apache-2.0"
|
|
15
14
|
|
|
16
15
|
[project.urls]
|
|
17
|
-
Source = "https://github.com/justanotherbyte/containers"
|
|
16
|
+
Source = "https://github.com/justanotherbyte/crosswind/tree/main/containers"
|
|
18
17
|
Documentation = "https://crosswind.viswa.space"
|
|
19
18
|
|
|
20
19
|
[build-system]
|
|
@@ -48,4 +47,5 @@ dev = [
|
|
|
48
47
|
"pytest-asyncio>=1.4.0",
|
|
49
48
|
"ruff>=0.16.9",
|
|
50
49
|
"ty>=0.0.84",
|
|
50
|
+
"workers-runtime-sdk>=1.9.0",
|
|
51
51
|
]
|
|
@@ -2126,9 +2126,7 @@ class Container(DurableObject):
|
|
|
2126
2126
|
list of Schedule
|
|
2127
2127
|
The scheduled tasks.
|
|
2128
2128
|
"""
|
|
2129
|
-
result = self._sql(
|
|
2130
|
-
"SELECT * FROM container_schedules WHERE callback = ? LIMIT 1", name
|
|
2131
|
-
)
|
|
2129
|
+
result = self._sql("SELECT * FROM container_schedules WHERE callback = ?", name)
|
|
2132
2130
|
|
|
2133
2131
|
if not result:
|
|
2134
2132
|
return []
|
containers_py-0.2.0/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<h1 align="center">
|
|
2
|
-
<sub>
|
|
3
|
-
<img src="https://raw.githubusercontent.com/justanotherbyte/containers/refs/heads/main/.github/python-containers.svg" height="36">
|
|
4
|
-
</sub>
|
|
5
|
-
|
|
6
|
-
containers-py
|
|
7
|
-
</h1>
|
|
8
|
-
<p align="center">
|
|
9
|
-
<sup>
|
|
10
|
-
Cloudflare Containers for Python Workers
|
|
11
|
-
</sup>
|
|
12
|
-
</p>
|
|
13
|
-
|
|
14
|
-
> [!note]
|
|
15
|
-
> This is an unofficial SDK. I worked on a port during my internship at Cloudflare. This SDK is a re-port with improvements in mind from my original port at Cloudflare. Yes, AI was used, but I am actively ensuring the SDK is good and usable.
|
|
16
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|