<div align="center">
![banner](weird_banner.png)
[GitHub](https://github.com/AWeirdDev/aism) ● [Workflows](https://github.com/AWeirdDev/aism/actions) ● [Issues](https://github.com/AWeirdDev/aism/issues)
`$ pip install aism`
</div>
So... what is Aism?
Aism provides a clean interface for summarizing, translating, conditional checks (like keypoint matching, mentioned checking), data auto-filling, <s>reordering</s>, <s>organizing</s>, <s>procedural data processing</s>, <s>function calling</s>, and more.<sup>1</sup>
**TL;DR: Aism is AI for the runtime.**
<sub><sup>1</sup> Striked-through features are currently in development and will be shipped within the next few months.</sub>
<h2>🧑🚀 3 Steps</h2>
<details>
<summary>Expand...</summary>
***
Aism is as simple as these 3 steps:
1. Get your Groq API key here: [console.groq.com](https://console.groq.com/keys)
2. Create your first AI runtime using the `Aism()` class.
```python
from aism import Aism
ai = Aism(
api_key="YOUR_GROQ_API_KEY" # optional. defaults to environment variable "GROQ_API_KEY"
)
```
3. Give any kind of data to the AI and play around with it.
```python
from dataclasses import dataclass
@dataclass
class News:
title: str
excerpt: str
tags: list[str]
news = """\
A man in Springfield has reportedly trained his pet goldfish to understand basic calculus principles…
"""
# Give the data to the AI and fill it with the dataclass
print(ai.give(news).fill(News))
```
We get a nice result like this:
> 🐣 **Aism** <kbd>runtime</kbd>
>
> ```python
> News(
> title='A man in Springfield has reportedly trained his…',
> summarization='While skeptics abound, the fish has allegedly…',
> tags=['goldfish', 'calculus', 'Springfield']
> )
> ```
Awesome! Your data is **even more structured** and easier to understand through the typing system.
But wait, there's MORE to Aism?! Learn all about Aism in the `learn/` directory.
</details>
## 📚 Resources
- 🧠 [Learn](./learn/README.md) – The central of everything, perhaps.
- 📖 [Documentation](./learn/docs) – Refer to the API documentation and examples.
- 🥐 [Cookbooks](./learn/cookbooks) - Realistic use cases with notebooks.
***
(c) 2024 AWeirdDev
Raw data
{
"_id": null,
"home_page": null,
"name": "aism",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "aism, ai, groq, translate, dataclass, autofill, runtime, llm",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4f/37/55ad1bef23d1369a305490a8952b25b1b663890f1afdd13a5fcb58b69342/aism-0.1.0.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n\n![banner](weird_banner.png)\n\n[GitHub](https://github.com/AWeirdDev/aism) \u25cf [Workflows](https://github.com/AWeirdDev/aism/actions) \u25cf [Issues](https://github.com/AWeirdDev/aism/issues)\n\n`$ pip install aism`\n\n</div>\n\nSo... what is Aism?\n\nAism provides a clean interface for summarizing, translating, conditional checks (like keypoint matching, mentioned checking), data auto-filling, <s>reordering</s>, <s>organizing</s>, <s>procedural data processing</s>, <s>function calling</s>, and more.<sup>1</sup>\n\n**TL;DR: Aism is AI for the runtime.**\n\n<sub><sup>1</sup> Striked-through features are currently in development and will be shipped within the next few months.</sub>\n\n<h2>\ud83e\uddd1\u200d\ud83d\ude80 3 Steps</h2>\n\n<details>\n<summary>Expand...</summary>\n\n***\n\nAism is as simple as these 3 steps:\n\n1. Get your Groq API key here: [console.groq.com](https://console.groq.com/keys)\n\n2. Create your first AI runtime using the `Aism()` class.\n\n```python\nfrom aism import Aism\n\nai = Aism(\n api_key=\"YOUR_GROQ_API_KEY\" # optional. defaults to environment variable \"GROQ_API_KEY\"\n)\n```\n\n3. Give any kind of data to the AI and play around with it.\n\n```python\nfrom dataclasses import dataclass\n\n@dataclass\nclass News:\n title: str\n excerpt: str\n tags: list[str]\n\nnews = \"\"\"\\\nA man in Springfield has reportedly trained his pet goldfish to understand basic calculus principles\u2026\n\"\"\"\n\n# Give the data to the AI and fill it with the dataclass\nprint(ai.give(news).fill(News))\n```\n\nWe get a nice result like this:\n\n> \ud83d\udc23 **Aism** <kbd>runtime</kbd>\n> \n> ```python\n> News(\n> title='A man in Springfield has reportedly trained his\u2026', \n> summarization='While skeptics abound, the fish has allegedly\u2026', \n> tags=['goldfish', 'calculus', 'Springfield']\n> )\n> ```\n\nAwesome! Your data is **even more structured** and easier to understand through the typing system.\n\nBut wait, there's MORE to Aism?! Learn all about Aism in the `learn/` directory.\n\n</details>\n\n\n## \ud83d\udcda Resources\n\n- \ud83e\udde0 [Learn](./learn/README.md) \u2013 The central of everything, perhaps.\n- \ud83d\udcd6 [Documentation](./learn/docs) \u2013 Refer to the API documentation and examples.\n- \ud83e\udd50 [Cookbooks](./learn/cookbooks) - Realistic use cases with notebooks.\n\n***\n\n(c) 2024 AWeirdDev\n\n",
"bugtrack_url": null,
"license": null,
"summary": "AI for the runtime.",
"version": "0.1.0",
"project_urls": {
"Issues": "https://github.com/AWeirdDev/aism",
"Source": "https://github.com/AWeirdDev/aism"
},
"split_keywords": [
"aism",
" ai",
" groq",
" translate",
" dataclass",
" autofill",
" runtime",
" llm"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "8c96ff7902a0e20fa61d4a97d92c5408d28c987cae5f7bab8a98b2c3983c7ea4",
"md5": "4ed72375e4b91cf9ad97f8625aee14d2",
"sha256": "abb649f35b27608a34c29f4cd34b0d45b056af3b673711540ade0bbf4146fd12"
},
"downloads": -1,
"filename": "aism-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "4ed72375e4b91cf9ad97f8625aee14d2",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 1455279,
"upload_time": "2024-09-08T09:35:50",
"upload_time_iso_8601": "2024-09-08T09:35:50.118646Z",
"url": "https://files.pythonhosted.org/packages/8c/96/ff7902a0e20fa61d4a97d92c5408d28c987cae5f7bab8a98b2c3983c7ea4/aism-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "439a03e8b37cda4cbf44e49fe280caa3ae4bf7aecd27dc0f3122f17ed86d80df",
"md5": "527cd86edc2d1c05dd9b6cad0f80d40e",
"sha256": "7b1e330b938b30b03684b22a0ca92eb8a305488460bf093fa94693053d45123b"
},
"downloads": -1,
"filename": "aism-0.1.0-cp312-cp312-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "527cd86edc2d1c05dd9b6cad0f80d40e",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 1432982,
"upload_time": "2024-09-08T09:35:48",
"upload_time_iso_8601": "2024-09-08T09:35:48.101441Z",
"url": "https://files.pythonhosted.org/packages/43/9a/03e8b37cda4cbf44e49fe280caa3ae4bf7aecd27dc0f3122f17ed86d80df/aism-0.1.0-cp312-cp312-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a77fc02038476ed66b4eaeffbe01ab34a7def1811c751ed8ac47961c8d377d08",
"md5": "7c8114ef9aeae567e1f66bd5a4691197",
"sha256": "e6a44d9c67e79ee530b5857dfa29586df51e7f009f7c50568566d809e614cc0f"
},
"downloads": -1,
"filename": "aism-0.1.0-cp312-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "7c8114ef9aeae567e1f66bd5a4691197",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 1234946,
"upload_time": "2024-09-08T09:35:53",
"upload_time_iso_8601": "2024-09-08T09:35:53.461281Z",
"url": "https://files.pythonhosted.org/packages/a7/7f/c02038476ed66b4eaeffbe01ab34a7def1811c751ed8ac47961c8d377d08/aism-0.1.0-cp312-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4f3755ad1bef23d1369a305490a8952b25b1b663890f1afdd13a5fcb58b69342",
"md5": "b1b826f802912cb54c1e0d543ddcd220",
"sha256": "c774c047c315784ef121eb9acc39347f9fcc543862500890390a3a6b91c61d77"
},
"downloads": -1,
"filename": "aism-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "b1b826f802912cb54c1e0d543ddcd220",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 384958,
"upload_time": "2024-09-08T09:35:52",
"upload_time_iso_8601": "2024-09-08T09:35:52.051270Z",
"url": "https://files.pythonhosted.org/packages/4f/37/55ad1bef23d1369a305490a8952b25b1b663890f1afdd13a5fcb58b69342/aism-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-08 09:35:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AWeirdDev",
"github_project": "aism",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "aism"
}