vibe-client 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.
@@ -0,0 +1,116 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ docs/
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+
29
+ # PyInstaller
30
+ *.manifest
31
+ *.spec
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .coverage
41
+ .coverage.*
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+ *.cover
46
+ .hypothesis/
47
+ .pytest_cache/
48
+
49
+ # Translations
50
+ *.mo
51
+ *.pot
52
+
53
+ # Django stuff:
54
+ *.log
55
+ local_settings.py
56
+ db.sqlite3
57
+
58
+ # Flask stuff:
59
+ instance/
60
+ .webassets-cache
61
+
62
+ # Scrapy stuff:
63
+ .scrapy
64
+
65
+ # Sphinx documentation
66
+ docs/_build/
67
+
68
+ # PyBuilder
69
+ target/
70
+
71
+ # Jupyter Notebook
72
+ .ipynb_checkpoints
73
+
74
+ # IPython
75
+ profile_default/
76
+ ipython_config.py
77
+
78
+ # pyenv
79
+ .python-version
80
+
81
+ # celery beat schedule file
82
+ celerybeat-schedule
83
+
84
+ # SageMath parsed files
85
+ *.sage.py
86
+
87
+ # Environments
88
+ .env
89
+ .venv
90
+ env/
91
+ venv/
92
+ ENV/
93
+ env.bak/
94
+ venv.bak/
95
+
96
+ # Spyder project settings
97
+ .spyderproject
98
+ .spyproject
99
+
100
+ # Rope project settings
101
+ .ropeproject
102
+
103
+ # mkdocs documentation
104
+ /site
105
+
106
+ # mypy
107
+ .mypy_cache/
108
+ .dmypy.json
109
+ dmypy.json
110
+
111
+ # VSCode
112
+ .vscode/
113
+
114
+ # PyCharm
115
+ .idea/
116
+ *.iml
@@ -0,0 +1,128 @@
1
+ Metadata-Version: 2.4
2
+ Name: vibe-client
3
+ Version: 0.1.0
4
+ Summary: vibe client
5
+ License: Apache-2.0
6
+ Keywords: smithy,vibe
7
+ Classifier: Development Status :: 2 - Pre-Alpha
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Intended Audience :: System Administrators
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Natural Language :: English
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Requires-Python: >=3.12
18
+ Requires-Dist: smithy-core<0.1.0
19
+ Requires-Dist: smithy-http[aiohttp]<0.1.0
20
+ Requires-Dist: smithy-json<0.1.0
21
+ Provides-Extra: docs
22
+ Requires-Dist: pydata-sphinx-theme>=0.16.1; extra == 'docs'
23
+ Requires-Dist: sphinx>=8.2.3; extra == 'docs'
24
+ Provides-Extra: tests
25
+ Requires-Dist: pytest-asyncio<0.21.0,>=0.20.3; extra == 'tests'
26
+ Requires-Dist: pytest<8.0.0,>=7.2.0; extra == 'tests'
27
+ Description-Content-Type: text/markdown
28
+
29
+ # Vibe Python SDK
30
+
31
+ A Python client for the Vibe API, enabling seamless interaction with Vibe agents and experiments.
32
+
33
+ ## Installation
34
+
35
+ ```bash
36
+ pip install vibe
37
+ ```
38
+
39
+ ## Features
40
+
41
+ - Easy-to-use client for interacting with Vibe API
42
+ - Comprehensive data models for structuring requests and responses
43
+ - Async support for efficient API communication
44
+ - Built-in error handling and serialization/deserialization
45
+
46
+ ## Quick Start
47
+
48
+ ```python
49
+ import asyncio
50
+ from vibe.models import QueryAgentInput, ObservationValueBox
51
+ from vibe.client import VibeClient
52
+
53
+ async def main():
54
+ # Initialize the client with your API key
55
+ client = VibeClient(api_key="your_api_key_here")
56
+
57
+ # Create observations
58
+ observations = ObservationValueBox([
59
+ [1, 1.2, 3.0],
60
+ [1, 1.2, 3.0],
61
+ [1, 1.2, 3.0],
62
+ [1, 1.2, 3.0],
63
+ [1, 1.2, 3.0]
64
+ ])
65
+
66
+ # Set up query input
67
+ query_input = QueryAgentInput(
68
+ experiment_id="your_experiment_id",
69
+ observations=observations
70
+ )
71
+
72
+ # Execute the query
73
+ try:
74
+ response = await client.query_agent(input=query_input)
75
+ print("Query response:", response)
76
+ print("Actions:", response.actions)
77
+ except Exception as e:
78
+ print(f"Error executing query_agent: {e}")
79
+
80
+ if __name__ == "__main__":
81
+ asyncio.run(main())
82
+ ```
83
+
84
+ ## Documentation
85
+
86
+ Full documentation is available in the `/docs` directory. To build the documentation:
87
+
88
+ ```bash
89
+ cd docs
90
+ make html
91
+ ```
92
+
93
+ The built documentation will be available in `docs/build/html/index.html`.
94
+
95
+ ## Project Structure
96
+
97
+ ```
98
+ vibe/
99
+ ├── src/vibe/ # Main package source code
100
+ │ ├── __init__.py # Package initialization
101
+ │ ├── client.py # API client implementation
102
+ │ ├── config.py # Configuration utilities
103
+ │ ├── models.py # Data models
104
+ │ ├── serialize.py # Serialization utilities
105
+ │ ├── deserialize.py # Deserialization utilities
106
+ │ └── _private/ # Private implementation details
107
+ ├── tests/ # Test suite
108
+ ├── docs/ # Documentation
109
+ │ ├── client/ # Client API documentation
110
+ │ └── models/ # Models documentation
111
+ └── build/ # Build artifacts
112
+ ```
113
+
114
+ ## Development
115
+
116
+ ### Setting Up Development Environment
117
+
118
+ 1. Clone the repository
119
+ 2. Install development dependencies:
120
+ ```bash
121
+ pip install -e ".[dev]"
122
+ ```
123
+ 3. Run tests:
124
+ ```bash
125
+ pytest tests/
126
+ ```
127
+
128
+
@@ -0,0 +1,100 @@
1
+ # Vibe Python SDK
2
+
3
+ A Python client for the Vibe API, enabling seamless interaction with Vibe agents and experiments.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install vibe
9
+ ```
10
+
11
+ ## Features
12
+
13
+ - Easy-to-use client for interacting with Vibe API
14
+ - Comprehensive data models for structuring requests and responses
15
+ - Async support for efficient API communication
16
+ - Built-in error handling and serialization/deserialization
17
+
18
+ ## Quick Start
19
+
20
+ ```python
21
+ import asyncio
22
+ from vibe.models import QueryAgentInput, ObservationValueBox
23
+ from vibe.client import VibeClient
24
+
25
+ async def main():
26
+ # Initialize the client with your API key
27
+ client = VibeClient(api_key="your_api_key_here")
28
+
29
+ # Create observations
30
+ observations = ObservationValueBox([
31
+ [1, 1.2, 3.0],
32
+ [1, 1.2, 3.0],
33
+ [1, 1.2, 3.0],
34
+ [1, 1.2, 3.0],
35
+ [1, 1.2, 3.0]
36
+ ])
37
+
38
+ # Set up query input
39
+ query_input = QueryAgentInput(
40
+ experiment_id="your_experiment_id",
41
+ observations=observations
42
+ )
43
+
44
+ # Execute the query
45
+ try:
46
+ response = await client.query_agent(input=query_input)
47
+ print("Query response:", response)
48
+ print("Actions:", response.actions)
49
+ except Exception as e:
50
+ print(f"Error executing query_agent: {e}")
51
+
52
+ if __name__ == "__main__":
53
+ asyncio.run(main())
54
+ ```
55
+
56
+ ## Documentation
57
+
58
+ Full documentation is available in the `/docs` directory. To build the documentation:
59
+
60
+ ```bash
61
+ cd docs
62
+ make html
63
+ ```
64
+
65
+ The built documentation will be available in `docs/build/html/index.html`.
66
+
67
+ ## Project Structure
68
+
69
+ ```
70
+ vibe/
71
+ ├── src/vibe/ # Main package source code
72
+ │ ├── __init__.py # Package initialization
73
+ │ ├── client.py # API client implementation
74
+ │ ├── config.py # Configuration utilities
75
+ │ ├── models.py # Data models
76
+ │ ├── serialize.py # Serialization utilities
77
+ │ ├── deserialize.py # Deserialization utilities
78
+ │ └── _private/ # Private implementation details
79
+ ├── tests/ # Test suite
80
+ ├── docs/ # Documentation
81
+ │ ├── client/ # Client API documentation
82
+ │ └── models/ # Models documentation
83
+ └── build/ # Build artifacts
84
+ ```
85
+
86
+ ## Development
87
+
88
+ ### Setting Up Development Environment
89
+
90
+ 1. Clone the repository
91
+ 2. Install development dependencies:
92
+ ```bash
93
+ pip install -e ".[dev]"
94
+ ```
95
+ 3. Run tests:
96
+ ```bash
97
+ pytest tests/
98
+ ```
99
+
100
+
@@ -0,0 +1,68 @@
1
+ # Code generated by smithy-python-codegen DO NOT EDIT.
2
+
3
+
4
+ [project]
5
+ name = "vibe-client"
6
+ version = "0.1.0"
7
+ description = "vibe client"
8
+ readme = "README.md"
9
+ requires-python = ">=3.12"
10
+ keywords = ["smithy", "vibe"]
11
+ license = {text = "Apache-2.0"}
12
+ classifiers = [
13
+ "Development Status :: 2 - Pre-Alpha",
14
+ "Intended Audience :: Developers",
15
+ "Intended Audience :: System Administrators",
16
+ "Natural Language :: English",
17
+ "License :: OSI Approved :: Apache Software License",
18
+ "Programming Language :: Python",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13"
23
+ ]
24
+
25
+ dependencies = [
26
+ "smithy_core<0.1.0",
27
+ "smithy_http[aiohttp]<0.1.0",
28
+ "smithy_json<0.1.0"
29
+ ]
30
+
31
+ [project.optional-dependencies]
32
+ tests = [
33
+ "pytest>=7.2.0,<8.0.0",
34
+ "pytest-asyncio>=0.20.3,<0.21.0"
35
+ ]
36
+
37
+ docs = [
38
+ "pydata-sphinx-theme>=0.16.1",
39
+ "sphinx>=8.2.3"
40
+ ]
41
+
42
+ [build-system]
43
+ requires = ["hatchling"]
44
+ build-backend = "hatchling.build"
45
+
46
+ [tool.hatch.build.targets.bdist]
47
+ exclude = [
48
+ "tests",
49
+ "docs",
50
+ ]
51
+
52
+ [tool.pyright]
53
+ typeCheckingMode = "strict"
54
+ reportPrivateUsage = false
55
+ reportUnusedFunction = false
56
+ reportUnusedVariable = false
57
+ reportUnnecessaryComparison = false
58
+ reportUnusedClass = false
59
+
60
+ [tool.ruff]
61
+ target-version = "py312"
62
+
63
+ [tool.ruff.lint]
64
+ ignore = ["F841"]
65
+
66
+ [tool.pytest.ini_options]
67
+ python_classes = ["!Test"]
68
+ asyncio_mode = "auto"
@@ -0,0 +1,3 @@
1
+ # Code generated by smithy-python-codegen DO NOT EDIT.
2
+
3
+ __version__: str = "0.1.0"
@@ -0,0 +1 @@
1
+ # Code generated by smithy-python-codegen DO NOT EDIT.