c-two 0.2.2__tar.gz → 0.2.4__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.
- {c_two-0.2.2/src/c_two.egg-info → c_two-0.2.4}/PKG-INFO +2 -2
- {c_two-0.2.2 → c_two-0.2.4}/README.md +1 -1
- {c_two-0.2.2 → c_two-0.2.4}/pyproject.toml +2 -2
- c_two-0.2.4/src/c_two/__init__.py +40 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/cli.py +5 -8
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/crm/meta.py +1 -1
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/transferable.py +3 -2
- {c_two-0.2.2 → c_two-0.2.4/src/c_two.egg-info}/PKG-INFO +2 -2
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two.egg-info/SOURCES.txt +1 -2
- c_two-0.2.4/src/c_two.egg-info/entry_points.txt +2 -0
- c_two-0.2.2/src/c_two/__init__.py +0 -12
- c_two-0.2.2/src/c_two/seed/__init__.py +0 -1
- c_two-0.2.2/src/c_two.egg-info/entry_points.txt +0 -2
- {c_two-0.2.2 → c_two-0.2.4}/LICENSE +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/setup.cfg +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/compo/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/compo/runtime_connect.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/crm/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/crm/template.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/error.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/mcp/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/mcp/mcp_util.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/base/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/base/base_client.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/base/base_server.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/client.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/event/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/event/event.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/event/event_queue.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/http/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/http/http_client.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/http/http_server.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/memory/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/memory/memory_client.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/memory/memory_routing.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/memory/memory_server.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/routing.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/server.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/thread/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/thread/thread_client.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/thread/thread_server.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/util/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/util/encoding.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/util/wait.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/zmq/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/zmq/zmq_client.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/rpc/zmq/zmq_server.py +0 -0
- /c_two-0.2.2/src/c_two/seed/seeding.py → /c_two-0.2.4/src/c_two/seed/__init__.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two/seed/docker_builder.py +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two.egg-info/dependency_links.txt +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two.egg-info/requires.txt +0 -0
- {c_two-0.2.2 → c_two-0.2.4}/src/c_two.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: c-two
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: A resource-rpc framework for distributed resource computation with type-safe and protocol-agnostic communication.
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -15,7 +15,7 @@ Requires-Dist: starlette>=0.46.0
|
|
|
15
15
|
Requires-Dist: watchdog>=6.0.0
|
|
16
16
|
Dynamic: license-file
|
|
17
17
|
|
|
18
|
-
# C-Two (Greenhouse v0.2.
|
|
18
|
+
# C-Two (Greenhouse v0.2.4)
|
|
19
19
|
|
|
20
20
|
[](https://badge.fury.io/py/c-two)
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "c-two"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.4"
|
|
4
4
|
description = "A resource-rpc framework for distributed resource computation with type-safe and protocol-agnostic communication."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -28,4 +28,4 @@ dev = [
|
|
|
28
28
|
package = true
|
|
29
29
|
|
|
30
30
|
[project.scripts]
|
|
31
|
-
|
|
31
|
+
c3 = "c_two.cli:cli"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from dotenv import load_dotenv
|
|
2
|
+
load_dotenv()
|
|
3
|
+
|
|
4
|
+
from . import rpc
|
|
5
|
+
from . import mcp
|
|
6
|
+
from . import crm
|
|
7
|
+
from . import compo
|
|
8
|
+
from . import error
|
|
9
|
+
from .crm.meta import icrm, iicrm
|
|
10
|
+
from .rpc.transferable import transfer, auto_transfer, Transferable, transferable
|
|
11
|
+
|
|
12
|
+
__version__ = '0.2.4'
|
|
13
|
+
|
|
14
|
+
LOGO_ASCII ="""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
cccc
|
|
18
|
+
cccccccccccc
|
|
19
|
+
ccc ccccccccc cc
|
|
20
|
+
cccc ccccccccc ccc
|
|
21
|
+
ccccccc cccc cccc ccccccc
|
|
22
|
+
cccccccc cccc cccc ccccccc
|
|
23
|
+
cccccccc cccc cccc ccccccc
|
|
24
|
+
ccccccc cccc cccc ccccccc
|
|
25
|
+
ccc cccc cccc ccc
|
|
26
|
+
cccc cccc
|
|
27
|
+
cccc cccc
|
|
28
|
+
cccc cccc
|
|
29
|
+
cc cccc cccc c
|
|
30
|
+
cccccc cccc cccc cccccc
|
|
31
|
+
cccccccc cccc cccc ccccccc
|
|
32
|
+
cccccccc cccc cccc ccccccc
|
|
33
|
+
cccccccc cccc cccc ccccccc
|
|
34
|
+
cccc cccc cccc cccc
|
|
35
|
+
cc cccc cccc cccc
|
|
36
|
+
cccccc ccccccc
|
|
37
|
+
cc cc
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
"""
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
from . import __version__
|
|
2
|
-
|
|
3
|
-
# C-Two Command-Line Interface (cccli)
|
|
4
1
|
import click
|
|
5
2
|
import logging
|
|
3
|
+
from .seed import build
|
|
4
|
+
from . import __version__, LOGO_ASCII
|
|
6
5
|
|
|
7
6
|
logging.basicConfig(level=logging.INFO)
|
|
8
7
|
logger = logging.getLogger(__name__)
|
|
9
8
|
|
|
10
|
-
from .seed import build
|
|
11
|
-
|
|
12
9
|
@click.group()
|
|
13
10
|
@click.version_option(version=__version__, prog_name='C-Two')
|
|
14
11
|
def cli():
|
|
15
|
-
"""C-Two Command-Line Interface (
|
|
16
|
-
pass
|
|
12
|
+
"""C-Two Command-Line Interface (cccli, c3)"""
|
|
17
13
|
|
|
18
|
-
cli.command(build)
|
|
14
|
+
cli.command(build)
|
|
15
|
+
print(LOGO_ASCII)
|
|
@@ -6,11 +6,12 @@ from abc import ABCMeta
|
|
|
6
6
|
from functools import wraps
|
|
7
7
|
from pydantic import BaseModel, create_model
|
|
8
8
|
from dataclasses import dataclass, is_dataclass
|
|
9
|
-
from typing import get_type_hints, get_args, get_origin, Any, Callable
|
|
9
|
+
from typing import get_type_hints, get_args, get_origin, Any, Callable, TypeVar
|
|
10
10
|
|
|
11
11
|
from .. import error
|
|
12
12
|
from .util.encoding import add_length_prefix
|
|
13
13
|
|
|
14
|
+
T = TypeVar('T')
|
|
14
15
|
logger = logging.getLogger(__name__)
|
|
15
16
|
|
|
16
17
|
# Global Caches ###################################################################
|
|
@@ -246,7 +247,7 @@ def get_transferable(transferable_name: str) -> Transferable | None:
|
|
|
246
247
|
|
|
247
248
|
# Transferable-related decorators #################################################
|
|
248
249
|
|
|
249
|
-
def transferable(cls:
|
|
250
|
+
def transferable(cls: T) -> T:
|
|
250
251
|
"""
|
|
251
252
|
A decorator to make a class automatically inherit from Transferable.
|
|
252
253
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: c-two
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: A resource-rpc framework for distributed resource computation with type-safe and protocol-agnostic communication.
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -15,7 +15,7 @@ Requires-Dist: starlette>=0.46.0
|
|
|
15
15
|
Requires-Dist: watchdog>=6.0.0
|
|
16
16
|
Dynamic: license-file
|
|
17
17
|
|
|
18
|
-
# C-Two (Greenhouse v0.2.
|
|
18
|
+
# C-Two (Greenhouse v0.2.4)
|
|
19
19
|
|
|
20
20
|
[](https://badge.fury.io/py/c-two)
|
|
21
21
|
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
from dotenv import load_dotenv
|
|
2
|
-
load_dotenv()
|
|
3
|
-
|
|
4
|
-
from . import rpc
|
|
5
|
-
from . import mcp
|
|
6
|
-
from . import crm
|
|
7
|
-
from . import compo
|
|
8
|
-
from . import error
|
|
9
|
-
from .crm.meta import icrm, iicrm
|
|
10
|
-
from .rpc.transferable import transfer, auto_transfer, Transferable, transferable
|
|
11
|
-
|
|
12
|
-
__version__ = '0.2.2'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .seeding import build
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|