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.
Files changed (75) hide show
  1. aenv/__init__.py +46 -0
  2. aenv/client/__init__.py +15 -0
  3. aenv/client/scheduler_client.py +668 -0
  4. aenv/core/__init__.py +42 -0
  5. aenv/core/environment.py +910 -0
  6. aenv/core/exceptions.py +94 -0
  7. aenv/core/function_registry.py +266 -0
  8. aenv/core/logging.py +150 -0
  9. aenv/core/mcp_health.py +101 -0
  10. aenv/core/mcp_tool.py +132 -0
  11. aenv/core/models.py +199 -0
  12. aenv/core/tool.py +219 -0
  13. aenv/main.py +92 -0
  14. aenv/server/__init__.py +15 -0
  15. aenv/server/mcp_server.py +282 -0
  16. aenv/tests/__init__.py +15 -0
  17. aenv/tests/test_environment.py +179 -0
  18. aenv/tests/test_health.py +34 -0
  19. aenv/tests/test_search_env.py +46 -0
  20. aenv/tests/test_terminal_env.py +52 -0
  21. aenv/tests/test_tool.py +171 -0
  22. aenv/tests/test_weather_env.py +46 -0
  23. aenvironment-0.1.3.dist-info/METADATA +277 -0
  24. aenvironment-0.1.3.dist-info/RECORD +75 -0
  25. aenvironment-0.1.3.dist-info/WHEEL +5 -0
  26. aenvironment-0.1.3.dist-info/entry_points.txt +2 -0
  27. aenvironment-0.1.3.dist-info/top_level.txt +2 -0
  28. cli/__init__.py +13 -0
  29. cli/cli.py +64 -0
  30. cli/client/__init__.py +13 -0
  31. cli/client/aenv_hub_client.py +406 -0
  32. cli/cmds/__init__.py +43 -0
  33. cli/cmds/build.py +357 -0
  34. cli/cmds/common.py +305 -0
  35. cli/cmds/config.py +190 -0
  36. cli/cmds/get.py +56 -0
  37. cli/cmds/init.py +308 -0
  38. cli/cmds/instance.py +1238 -0
  39. cli/cmds/list.py +76 -0
  40. cli/cmds/pull.py +36 -0
  41. cli/cmds/push.py +95 -0
  42. cli/cmds/run.py +125 -0
  43. cli/cmds/service.py +821 -0
  44. cli/cmds/version.py +67 -0
  45. cli/data/version_info.json +14 -0
  46. cli/extends/artifacts/__init__.py +13 -0
  47. cli/extends/artifacts/artifacts_builder.py +410 -0
  48. cli/extends/storage/__init__.py +13 -0
  49. cli/extends/storage/storage_manager.py +433 -0
  50. cli/templates/README.md +13 -0
  51. cli/templates/default/Dockerfile +10 -0
  52. cli/templates/default/config.json +32 -0
  53. cli/templates/default/requirements.txt +1 -0
  54. cli/templates/default/src/__init__.py +13 -0
  55. cli/templates/default/src/custom_env.py +41 -0
  56. cli/tests/__init__.py +13 -0
  57. cli/tests/test_build_cmd.py +100 -0
  58. cli/tests/test_cmds.py +30 -0
  59. cli/tests/test_env_hub.py +59 -0
  60. cli/tests/test_instances.py +469 -0
  61. cli/tests/test_singleton.py +77 -0
  62. cli/utils/__init__.py +20 -0
  63. cli/utils/api_helpers.py +183 -0
  64. cli/utils/archive_tool.py +261 -0
  65. cli/utils/cli_config.py +247 -0
  66. cli/utils/common/__init__.py +13 -0
  67. cli/utils/common/aenv_logger.py +45 -0
  68. cli/utils/common/console.py +96 -0
  69. cli/utils/config.py +37 -0
  70. cli/utils/mcp/__init__.py +18 -0
  71. cli/utils/mcp/mcp_inspector.py +94 -0
  72. cli/utils/mcp/mcp_task_manager.py +375 -0
  73. cli/utils/oss_client.py +22 -0
  74. cli/utils/scaffold.py +310 -0
  75. 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
+ ]
@@ -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."""