[English](README.md) | [中文](README.zh-CN.md)
## Installation
1. Install package:
```sh
pip install hero-core
```
2. Quickly Start
```python
import asyncio
from hero import Hero, Model
model = Model(model_name="your-model",
api_base="api_base",
api_key="api_key")
hero = Hero(model=model, search_api="api-key") # https://serper.dev
async def test_init():
result = await hero.run("hello")
print(result)
if __name__ == "__main__":
asyncio.run(test_init())
```
Raw data
{
"_id": null,
"home_page": "https://github.com/baidu/hero-core",
"name": "hero-core",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": null,
"author": "Baidu",
"author_email": "lanyu@baidu.com",
"download_url": "https://files.pythonhosted.org/packages/7b/40/e6da3e2fe3bfa493b0884ec7392aee845fcefe565be77e2c3434c70be2b1/hero_core-0.1.3.tar.gz",
"platform": null,
"description": "[English](README.md) | [\u4e2d\u6587](README.zh-CN.md)\n\n## Installation\n\n1. Install package:\n\n```sh\n\npip install hero-core\n\n```\n\n2. Quickly Start\n\n```python\n\nimport asyncio\nfrom hero import Hero, Model\n\nmodel = Model(model_name=\"your-model\",\n api_base=\"api_base\",\n api_key=\"api_key\")\n\nhero = Hero(model=model, search_api=\"api-key\") # https://serper.dev\n\nasync def test_init():\n result = await hero.run(\"hello\")\n print(result)\n\nif __name__ == \"__main__\":\n asyncio.run(test_init())\n\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Add your description here",
"version": "0.1.3",
"project_urls": {
"Homepage": "https://github.com/baidu/hero-core"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2ffbe9b319ed5abfcea3dd72b0814825bdcdf6f16159ec1580b3f61bd63d1b12",
"md5": "e4e8f9c2b4341dbaf5d928b9809bfc8a",
"sha256": "d5244097b97f21b5ae258f3966713d54810dbdcc649596f472446cc8a00169b6"
},
"downloads": -1,
"filename": "hero_core-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e4e8f9c2b4341dbaf5d928b9809bfc8a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 68344,
"upload_time": "2025-07-16T00:54:45",
"upload_time_iso_8601": "2025-07-16T00:54:45.803638Z",
"url": "https://files.pythonhosted.org/packages/2f/fb/e9b319ed5abfcea3dd72b0814825bdcdf6f16159ec1580b3f61bd63d1b12/hero_core-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7b40e6da3e2fe3bfa493b0884ec7392aee845fcefe565be77e2c3434c70be2b1",
"md5": "64f51ea836d69aa3ade9e71cc5816df7",
"sha256": "0803bfc326f2a3fba15d492c28b2e4a8c39c7038d453bc1ea84da5d3d58e2c6c"
},
"downloads": -1,
"filename": "hero_core-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "64f51ea836d69aa3ade9e71cc5816df7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 56431,
"upload_time": "2025-07-16T00:54:47",
"upload_time_iso_8601": "2025-07-16T00:54:47.446335Z",
"url": "https://files.pythonhosted.org/packages/7b/40/e6da3e2fe3bfa493b0884ec7392aee845fcefe565be77e2c3434c70be2b1/hero_core-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-16 00:54:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "baidu",
"github_project": "hero-core",
"github_not_found": true,
"lcname": "hero-core"
}