aenvironment 0.1.3__py3-none-any.whl
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.
- aenv/__init__.py +46 -0
- aenv/client/__init__.py +15 -0
- aenv/client/scheduler_client.py +668 -0
- aenv/core/__init__.py +42 -0
- aenv/core/environment.py +910 -0
- aenv/core/exceptions.py +94 -0
- aenv/core/function_registry.py +266 -0
- aenv/core/logging.py +150 -0
- aenv/core/mcp_health.py +101 -0
- aenv/core/mcp_tool.py +132 -0
- aenv/core/models.py +199 -0
- aenv/core/tool.py +219 -0
- aenv/main.py +92 -0
- aenv/server/__init__.py +15 -0
- aenv/server/mcp_server.py +282 -0
- aenv/tests/__init__.py +15 -0
- aenv/tests/test_environment.py +179 -0
- aenv/tests/test_health.py +34 -0
- aenv/tests/test_search_env.py +46 -0
- aenv/tests/test_terminal_env.py +52 -0
- aenv/tests/test_tool.py +171 -0
- aenv/tests/test_weather_env.py +46 -0
- aenvironment-0.1.3.dist-info/METADATA +277 -0
- aenvironment-0.1.3.dist-info/RECORD +75 -0
- aenvironment-0.1.3.dist-info/WHEEL +5 -0
- aenvironment-0.1.3.dist-info/entry_points.txt +2 -0
- aenvironment-0.1.3.dist-info/top_level.txt +2 -0
- cli/__init__.py +13 -0
- cli/cli.py +64 -0
- cli/client/__init__.py +13 -0
- cli/client/aenv_hub_client.py +406 -0
- cli/cmds/__init__.py +43 -0
- cli/cmds/build.py +357 -0
- cli/cmds/common.py +305 -0
- cli/cmds/config.py +190 -0
- cli/cmds/get.py +56 -0
- cli/cmds/init.py +308 -0
- cli/cmds/instance.py +1238 -0
- cli/cmds/list.py +76 -0
- cli/cmds/pull.py +36 -0
- cli/cmds/push.py +95 -0
- cli/cmds/run.py +125 -0
- cli/cmds/service.py +821 -0
- cli/cmds/version.py +67 -0
- cli/data/version_info.json +14 -0
- cli/extends/artifacts/__init__.py +13 -0
- cli/extends/artifacts/artifacts_builder.py +410 -0
- cli/extends/storage/__init__.py +13 -0
- cli/extends/storage/storage_manager.py +433 -0
- cli/templates/README.md +13 -0
- cli/templates/default/Dockerfile +10 -0
- cli/templates/default/config.json +32 -0
- cli/templates/default/requirements.txt +1 -0
- cli/templates/default/src/__init__.py +13 -0
- cli/templates/default/src/custom_env.py +41 -0
- cli/tests/__init__.py +13 -0
- cli/tests/test_build_cmd.py +100 -0
- cli/tests/test_cmds.py +30 -0
- cli/tests/test_env_hub.py +59 -0
- cli/tests/test_instances.py +469 -0
- cli/tests/test_singleton.py +77 -0
- cli/utils/__init__.py +20 -0
- cli/utils/api_helpers.py +183 -0
- cli/utils/archive_tool.py +261 -0
- cli/utils/cli_config.py +247 -0
- cli/utils/common/__init__.py +13 -0
- cli/utils/common/aenv_logger.py +45 -0
- cli/utils/common/console.py +96 -0
- cli/utils/config.py +37 -0
- cli/utils/mcp/__init__.py +18 -0
- cli/utils/mcp/mcp_inspector.py +94 -0
- cli/utils/mcp/mcp_task_manager.py +375 -0
- cli/utils/oss_client.py +22 -0
- cli/utils/scaffold.py +310 -0
- cli/utils/table_formatter.py +298 -0
aenv/__init__.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright 2025.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
AEnv Python SDK - Production-grade environment for AI agent tools
|
|
17
|
+
|
|
18
|
+
This package provides a complete SDK for managing AI agent tools in a
|
|
19
|
+
containerized environment with MCP protocol support.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from aenv.core.environment import Environment
|
|
23
|
+
from aenv.core.exceptions import AEnvError, EnvironmentError, ToolError
|
|
24
|
+
from aenv.core.function_registry import (
|
|
25
|
+
register_function,
|
|
26
|
+
register_health,
|
|
27
|
+
register_reward,
|
|
28
|
+
)
|
|
29
|
+
from aenv.core.models import EnvInstance, EnvStatus
|
|
30
|
+
from aenv.core.tool import Tool, get_registry, register_tool
|
|
31
|
+
|
|
32
|
+
__version__ = "0.1.0"
|
|
33
|
+
__all__ = [
|
|
34
|
+
"Tool",
|
|
35
|
+
"register_tool",
|
|
36
|
+
"register_reward",
|
|
37
|
+
"register_health",
|
|
38
|
+
"register_function",
|
|
39
|
+
"get_registry",
|
|
40
|
+
"Environment",
|
|
41
|
+
"AEnvError",
|
|
42
|
+
"ToolError",
|
|
43
|
+
"EnvironmentError",
|
|
44
|
+
"EnvInstance",
|
|
45
|
+
"EnvStatus",
|
|
46
|
+
]
|
aenv/client/__init__.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright 2025.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""AEnv API client."""
|