gohumanloop 0.0.1__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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 CyberFD
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.4
2
+ Name: gohumanloop
3
+ Version: 0.0.1
4
+ Summary: Perfecting AI workflows with human intelligence
5
+ Project-URL: repository, https://github.com/ptonlix/gohumanloop
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: aiohttp>=3.11.16
10
+ Requires-Dist: click>=8.1.8
11
+ Requires-Dist: dotenv>=0.9.9
12
+ Provides-Extra: email
13
+ Requires-Dist: imapclient>=3.0.1; extra == "email"
14
+ Dynamic: license-file
15
+
16
+ <div align="center">
17
+
18
+ ![Wordmark Logo of HumanLayer](./docs/images/wordmark.png)
19
+ <b face="雅黑">Perfecting AI workflows with human intelligence</b>
20
+
21
+ </div>
22
+
23
+ **GoHumanLoop** is a comprehensive Python library that enables AI agents to seamlessly interact with humans for assistance, feedback, and approvals. It provides a flexible framework for integrating human intelligence into AI workflows through various communication channels.
24
+
25
+ With GoHumanLoop, developers can create `AI Agent systems` that know when to pause and request human input, ensuring safer and more effective AI operations. The library supports multiple interaction providers (Terminal, Email, API ..etc) and integrates with popular frameworks like LangGraph, and CrewAI(will soon).
26
+
27
+ <div align="center">
28
+ <img alt="Repostart" src="https://img.shields.io/github/stars/ptonlix/gohumanloop"/>
29
+ <img alt=" Python" src="https://img.shields.io/badge/Python-3.10%2B-blue"/>
30
+ <img alt="license" src="https://img.shields.io/badge/license-MIT-green"/>
31
+
32
+ [简体中文](README-zh.md) | English
33
+
34
+ </div>
@@ -0,0 +1,19 @@
1
+ <div align="center">
2
+
3
+ ![Wordmark Logo of HumanLayer](./docs/images/wordmark.png)
4
+ <b face="雅黑">Perfecting AI workflows with human intelligence</b>
5
+
6
+ </div>
7
+
8
+ **GoHumanLoop** is a comprehensive Python library that enables AI agents to seamlessly interact with humans for assistance, feedback, and approvals. It provides a flexible framework for integrating human intelligence into AI workflows through various communication channels.
9
+
10
+ With GoHumanLoop, developers can create `AI Agent systems` that know when to pause and request human input, ensuring safer and more effective AI operations. The library supports multiple interaction providers (Terminal, Email, API ..etc) and integrates with popular frameworks like LangGraph, and CrewAI(will soon).
11
+
12
+ <div align="center">
13
+ <img alt="Repostart" src="https://img.shields.io/github/stars/ptonlix/gohumanloop"/>
14
+ <img alt=" Python" src="https://img.shields.io/badge/Python-3.10%2B-blue"/>
15
+ <img alt="license" src="https://img.shields.io/badge/license-MIT-green"/>
16
+
17
+ [简体中文](README-zh.md) | English
18
+
19
+ </div>
@@ -0,0 +1,65 @@
1
+ from gohumanloop.core.interface import (
2
+ HumanLoopProvider,
3
+ HumanLoopManager,
4
+ HumanLoopCallback,
5
+ HumanLoopResult,
6
+ HumanLoopStatus,
7
+ HumanLoopType,
8
+ )
9
+
10
+ from gohumanloop.core.manager import DefaultHumanLoopManager
11
+ from gohumanloop.manager.ghl_manager import GoHumanLoopManager
12
+
13
+ from gohumanloop.providers.ghl_provider import GoHumanLoopProvider
14
+ from gohumanloop.providers.api_provider import APIProvider
15
+ from gohumanloop.providers.email_provider import EmailProvider
16
+ from gohumanloop.providers.base import BaseProvider
17
+ from gohumanloop.providers.terminal_provider import TerminalProvider
18
+
19
+ from gohumanloop.utils import run_async_safely, get_secret_from_env
20
+
21
+ # Dynamically get version number
22
+ try:
23
+ from importlib.metadata import version, PackageNotFoundError
24
+ try:
25
+ __version__ = version("gohumanloop")
26
+ except PackageNotFoundError:
27
+ import os
28
+ import tomli
29
+
30
+ root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
31
+ pyproject_path = os.path.join(root_dir, "pyproject.toml")
32
+
33
+ with open(pyproject_path, "rb") as f:
34
+ pyproject_data = tomli.load(f)
35
+ __version__ = pyproject_data["project"]["version"]
36
+ except (ImportError, FileNotFoundError, KeyError):
37
+ __version__ = "0.1.0"
38
+
39
+ __all__ = [
40
+ # Core Interfaces
41
+ "HumanLoopProvider",
42
+ "HumanLoopManager",
43
+ "HumanLoopCallback",
44
+ "HumanLoopResult",
45
+ "HumanLoopStatus",
46
+ "HumanLoopType",
47
+
48
+ # Manager Implementations
49
+ "DefaultHumanLoopManager",
50
+ "GoHumanLoopManager",
51
+
52
+ # Provider Implementations
53
+ "BaseProvider",
54
+ "APIProvider",
55
+ "GoHumanLoopProvider",
56
+ "EmailProvider",
57
+ "TerminalProvider",
58
+
59
+ # Utility Functions
60
+ "run_async_safely",
61
+ "get_secret_from_env",
62
+
63
+ # Version Information
64
+ "__version__",
65
+ ]
@@ -0,0 +1,4 @@
1
+ from gohumanloop.cli.main import cli
2
+
3
+ if __name__ == "__main__":
4
+ cli()
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.4
2
+ Name: gohumanloop
3
+ Version: 0.0.1
4
+ Summary: Perfecting AI workflows with human intelligence
5
+ Project-URL: repository, https://github.com/ptonlix/gohumanloop
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: aiohttp>=3.11.16
10
+ Requires-Dist: click>=8.1.8
11
+ Requires-Dist: dotenv>=0.9.9
12
+ Provides-Extra: email
13
+ Requires-Dist: imapclient>=3.0.1; extra == "email"
14
+ Dynamic: license-file
15
+
16
+ <div align="center">
17
+
18
+ ![Wordmark Logo of HumanLayer](./docs/images/wordmark.png)
19
+ <b face="雅黑">Perfecting AI workflows with human intelligence</b>
20
+
21
+ </div>
22
+
23
+ **GoHumanLoop** is a comprehensive Python library that enables AI agents to seamlessly interact with humans for assistance, feedback, and approvals. It provides a flexible framework for integrating human intelligence into AI workflows through various communication channels.
24
+
25
+ With GoHumanLoop, developers can create `AI Agent systems` that know when to pause and request human input, ensuring safer and more effective AI operations. The library supports multiple interaction providers (Terminal, Email, API ..etc) and integrates with popular frameworks like LangGraph, and CrewAI(will soon).
26
+
27
+ <div align="center">
28
+ <img alt="Repostart" src="https://img.shields.io/github/stars/ptonlix/gohumanloop"/>
29
+ <img alt=" Python" src="https://img.shields.io/badge/Python-3.10%2B-blue"/>
30
+ <img alt="license" src="https://img.shields.io/badge/license-MIT-green"/>
31
+
32
+ [简体中文](README-zh.md) | English
33
+
34
+ </div>
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ gohumanloop/__init__.py
5
+ gohumanloop/__main__.py
6
+ gohumanloop.egg-info/PKG-INFO
7
+ gohumanloop.egg-info/SOURCES.txt
8
+ gohumanloop.egg-info/dependency_links.txt
9
+ gohumanloop.egg-info/entry_points.txt
10
+ gohumanloop.egg-info/requires.txt
11
+ gohumanloop.egg-info/top_level.txt
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ ghl = gohumanloop.cli.main:cli
3
+ gohumanloop = gohumanloop.cli.main:cli
@@ -0,0 +1,6 @@
1
+ aiohttp>=3.11.16
2
+ click>=8.1.8
3
+ dotenv>=0.9.9
4
+
5
+ [email]
6
+ imapclient>=3.0.1
@@ -0,0 +1 @@
1
+ gohumanloop
@@ -0,0 +1,39 @@
1
+ [project]
2
+ name = "gohumanloop"
3
+ version = "0.0.1"
4
+ description = "Perfecting AI workflows with human intelligence"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ dependencies = [
8
+ "aiohttp>=3.11.16",
9
+ "click>=8.1.8",
10
+ "dotenv>=0.9.9",
11
+ ]
12
+
13
+ [project.urls]
14
+ repository = "https://github.com/ptonlix/gohumanloop"
15
+
16
+ [project.scripts]
17
+ ghl = "gohumanloop.cli.main:cli"
18
+ gohumanloop = "gohumanloop.cli.main:cli"
19
+
20
+ [project.optional-dependencies]
21
+ email = [
22
+ "imapclient>=3.0.1",
23
+ ]
24
+
25
+ [tool.setuptools]
26
+ packages = ["gohumanloop"]
27
+
28
+ [tool.pytest.ini_options]
29
+ asyncio_default_fixture_loop_scope = "function"
30
+
31
+ [dependency-groups]
32
+ dev = [
33
+ "fastapi>=0.115.12",
34
+ "langchain-openai>=0.3.12",
35
+ "langgraph>=0.3.30",
36
+ "pytest>=8.3.5",
37
+ "pytest-asyncio>=0.26.0",
38
+ "uvicorn>=0.34.2",
39
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+