Name | intellisys JSON |
Version |
0.1.8
JSON |
| download |
home_page | https://github.com/yourusername/intellisys |
Summary | Intelligence/AI services for the Lifsys Enterprise |
upload_time | 2024-07-28 00:34:55 |
maintainer | None |
docs_url | None |
author | Mark Powers |
requires_python | >=3.6 |
license | MIT License Copyright (c) 2024 Lifsys Enterprise Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
ai
intelligence
openai
anthropic
google
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Intellisys
Intellisys is a Python library that provides intelligence/AI services for the Lifsys Enterprise. It offers a unified interface to interact with various AI models and services, including OpenAI, Anthropic, Google, and more.
## Installation
You can install Intellisys using pip:
```
pip install intellisys
```
For the latest development version, you can install directly from GitHub:
```
pip install git+https://github.com/lifsys/intellisys.git
```
## Requirements
- Python 3.6 or higher
- A 1Password Connect server (for API key management)
- Environment variables:
- `OP_CONNECT_TOKEN`: Your 1Password Connect token
- `OP_CONNECT_HOST`: The URL of your 1Password Connect server
**Note**: If no local 1Password Connect server is available, the library will fail to retrieve API keys.
## Features
- Support for multiple AI models (OpenAI, Anthropic, Google, TogetherAI, Groq, MistralAI)
- Secure API key management using 1Password Connect
- JSON formatting and template rendering
- Asynchronous assistant interactions
- Template-based API calls
## Usage
Here's a quick example of how to use Intellisys:
```python
from intellisys import get_completion_api
# Make sure OP_CONNECT_TOKEN and OP_CONNECT_HOST are set in your environment
response = get_completion_api("Hello, how are you?", "gpt-4")
print(response)
```
### Advanced Usage
```python
from intellisys import template_api_json, get_assistant
# Using a template for API calls
render_data = {"user_name": "Alice"}
system_message = "You are a helpful assistant. Greet {{user_name}}."
response = template_api_json("gpt-4", render_data, system_message, "friendly_assistant")
print(response)
# Using an OpenAI assistant
assistant_id = "your_assistant_id"
reference = "What's the weather like today?"
responses = get_assistant(reference, assistant_id)
for response in responses:
print(response)
```
## Supported Models
Intellisys supports a variety of AI models:
- OpenAI: gpt-4o-mini, gpt-4, gpt-4o
- Anthropic: claude-3.5
- Google: gemini-flash
- TogetherAI: llama-3-70b, llama-3.1-large
- Groq: groq-llama, groq-fast
- MistralAI: mistral-large
## API Reference
For detailed information on available functions and their usage, please refer to the docstrings in the source code.
## License
This project is licensed under the MIT License - see the LICENSE file for details.
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## Changelog
For a detailed list of changes and version history, please refer to the [CHANGELOG.md](https://github.com/lifsys/intellisys/blob/main/CHANGELOG.md) file.
## About Lifsys, Inc
Lifsys, Inc is an AI company dedicated to developing solutions for the future. For more information, visit [www.lifsys.com](https://www.lifsys.com).
Raw data
{
"_id": null,
"home_page": "https://github.com/yourusername/intellisys",
"name": "intellisys",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "ai, intelligence, openai, anthropic, google",
"author": "Mark Powers",
"author_email": "Lifsys Enterprise <contact@lifsys.com>",
"download_url": "https://files.pythonhosted.org/packages/c9/f1/bd0072789b321b28d9fc0f526cc1a7f9a6002927cf222415fbc87117d37a/intellisys-0.1.8.tar.gz",
"platform": null,
"description": "# Intellisys\n\nIntellisys is a Python library that provides intelligence/AI services for the Lifsys Enterprise. It offers a unified interface to interact with various AI models and services, including OpenAI, Anthropic, Google, and more.\n\n## Installation\n\nYou can install Intellisys using pip:\n\n```\npip install intellisys\n```\n\nFor the latest development version, you can install directly from GitHub:\n\n```\npip install git+https://github.com/lifsys/intellisys.git\n```\n\n## Requirements\n\n- Python 3.6 or higher\n- A 1Password Connect server (for API key management)\n- Environment variables:\n - `OP_CONNECT_TOKEN`: Your 1Password Connect token\n - `OP_CONNECT_HOST`: The URL of your 1Password Connect server\n\n**Note**: If no local 1Password Connect server is available, the library will fail to retrieve API keys.\n\n## Features\n\n- Support for multiple AI models (OpenAI, Anthropic, Google, TogetherAI, Groq, MistralAI)\n- Secure API key management using 1Password Connect\n- JSON formatting and template rendering\n- Asynchronous assistant interactions\n- Template-based API calls\n\n## Usage\n\nHere's a quick example of how to use Intellisys:\n\n```python\nfrom intellisys import get_completion_api\n\n# Make sure OP_CONNECT_TOKEN and OP_CONNECT_HOST are set in your environment\n\nresponse = get_completion_api(\"Hello, how are you?\", \"gpt-4\")\nprint(response)\n```\n\n### Advanced Usage\n\n```python\nfrom intellisys import template_api_json, get_assistant\n\n# Using a template for API calls\nrender_data = {\"user_name\": \"Alice\"}\nsystem_message = \"You are a helpful assistant. Greet {{user_name}}.\"\nresponse = template_api_json(\"gpt-4\", render_data, system_message, \"friendly_assistant\")\nprint(response)\n\n# Using an OpenAI assistant\nassistant_id = \"your_assistant_id\"\nreference = \"What's the weather like today?\"\nresponses = get_assistant(reference, assistant_id)\nfor response in responses:\n print(response)\n```\n\n## Supported Models\n\nIntellisys supports a variety of AI models:\n\n- OpenAI: gpt-4o-mini, gpt-4, gpt-4o\n- Anthropic: claude-3.5\n- Google: gemini-flash\n- TogetherAI: llama-3-70b, llama-3.1-large\n- Groq: groq-llama, groq-fast\n- MistralAI: mistral-large\n\n## API Reference\n\nFor detailed information on available functions and their usage, please refer to the docstrings in the source code.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## Changelog\n\nFor a detailed list of changes and version history, please refer to the [CHANGELOG.md](https://github.com/lifsys/intellisys/blob/main/CHANGELOG.md) file.\n\n## About Lifsys, Inc\n\nLifsys, Inc is an AI company dedicated to developing solutions for the future. For more information, visit [www.lifsys.com](https://www.lifsys.com).\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Lifsys Enterprise Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Intelligence/AI services for the Lifsys Enterprise",
"version": "0.1.8",
"project_urls": {
"Bug Tracker": "https://github.com/lifsys/intellisys/issues",
"Documentation": "https://intellisys.readthedocs.io/",
"Homepage": "https://github.com/lifsys/intellisys",
"Repository": "https://github.com/lifsys/intellisys.git"
},
"split_keywords": [
"ai",
" intelligence",
" openai",
" anthropic",
" google"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b9557250238e5f8f4b444ad88f98db63ef0f093582d643ae937af0100d08d4c3",
"md5": "abd7954416bcd855adc4e12e50cd0736",
"sha256": "a95dcf05a6f46834b2ab357d6d34225d5ab140b515bb0f7543a583bc1a19f65a"
},
"downloads": -1,
"filename": "intellisys-0.1.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "abd7954416bcd855adc4e12e50cd0736",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9523,
"upload_time": "2024-07-28T00:34:53",
"upload_time_iso_8601": "2024-07-28T00:34:53.053045Z",
"url": "https://files.pythonhosted.org/packages/b9/55/7250238e5f8f4b444ad88f98db63ef0f093582d643ae937af0100d08d4c3/intellisys-0.1.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c9f1bd0072789b321b28d9fc0f526cc1a7f9a6002927cf222415fbc87117d37a",
"md5": "6f3f6b76afd4a9924e2989a729cd6fe2",
"sha256": "eb730c186c9c37393e18e0a5289abd7992d42e7604a3ce8d5a6ea075d24547a7"
},
"downloads": -1,
"filename": "intellisys-0.1.8.tar.gz",
"has_sig": false,
"md5_digest": "6f3f6b76afd4a9924e2989a729cd6fe2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 11324,
"upload_time": "2024-07-28T00:34:55",
"upload_time_iso_8601": "2024-07-28T00:34:55.965598Z",
"url": "https://files.pythonhosted.org/packages/c9/f1/bd0072789b321b28d9fc0f526cc1a7f9a6002927cf222415fbc87117d37a/intellisys-0.1.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-28 00:34:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yourusername",
"github_project": "intellisys",
"github_not_found": true,
"lcname": "intellisys"
}