Skip to content

Commit fae0f54

Browse files
committed
ClientConfigBuilder functionality and tests *(add envs, interfaces, resolvers, wrappers )
1 parent 4bb2d6c commit fae0f54

13 files changed

Lines changed: 306 additions & 193 deletions

File tree

packages/polywrap-ccb/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/polywrap-ccb/polywrap_ccb/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/polywrap-ccb/pyproject.toml

Lines changed: 0 additions & 60 deletions
This file was deleted.

packages/polywrap-ccb/tox.ini

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Polywrap Python Client
3+
## This object allows you to build proper Polywrapt ClientConfig objects
4+
5+
These objects are needed to configure your python client's wrappers, pluggins, env variables, resolvers and interfaces.
6+
7+
Look at [this file][./client_config_builder.py] to detail all of its functionality
8+
# Polywrap Python Client
9+
## This object allows you to build proper Polywrapt ClientConfig objects
10+
11+
These objects are needed to configure your python client's wrappers, pluggins, env variables, resolvers and interfaces.
12+
13+
Look at [this file](./polywrap_client_config_builder/client_config_builder.py) to detail all of its functionality
14+
And at [tests](./tests/test_client_config_builder.py)

packages/polywrap-ccb/poetry.lock renamed to packages/polywrap-client-config-builder/poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .client_config_builder import *
2+
from .client_config import *

packages/polywrap-client-config-builder/polywrap_client_config_builder/ccb.py

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
11
# Polywrap Python Client - https://polywrap.io
22
# https://github.com/polywrap/toolchain/blob/origin-0.10-dev/packages/js/client-config-builder/src/ClientConfig.ts
3-
4-
from polywrap_core import Uri, IUriResolver
5-
from dataclasses import dataclass
6-
from typing import List, Dict, Any
7-
8-
#TUri = TypeVar('TUri', Uri)
9-
@dataclass(slots=True, kw_only=True)
10-
class ClientConfig:
11-
"""
12-
This Abstract class is used to configure the polywrap client before it executes a call
13-
The ClientConfig class is created and modified with the ClientConfigBuilder module
14-
"""
15-
envs: Dict[Uri, Dict[str, Any]]
16-
interfaces: Dict[Uri, List[Uri]]
17-
resolver: IUriResolver

0 commit comments

Comments
 (0)