{"id":13624126,"url":"https://github.com/Mirascope/mirascope","last_synced_at":"2025-04-15T20:33:13.591Z","repository":{"id":213618622,"uuid":"727495773","full_name":"Mirascope/mirascope","owner":"Mirascope","description":"LLM abstractions that aren't obstructions","archived":false,"fork":false,"pushed_at":"2025-04-02T16:56:21.000Z","size":102574,"stargazers_count":1064,"open_issues_count":23,"forks_count":74,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-04-10T22:17:48.795Z","etag":null,"topics":["artificial-intelligence","developer-tools","function-calling","hacktoberfest","llm","llm-agent","llm-tools","prompt-engineering","pydantic-v2","python"],"latest_commit_sha":null,"homepage":"http://mirascope.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mirascope.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-05T01:22:34.000Z","updated_at":"2025-04-10T16:28:53.000Z","dependencies_parsed_at":"2024-05-30T19:22:42.219Z","dependency_job_id":"336fcb99-2ded-4d7d-be40-4573a2282ba9","html_url":"https://github.com/Mirascope/mirascope","commit_stats":{"total_commits":2193,"total_committers":32,"mean_commits":68.53125,"dds":0.6502507979936161,"last_synced_commit":"fee724b120f3dcce465edfec305de97dfecdafef"},"previous_names":["mirascope/mirascope"],"tags_count":139,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirascope%2Fmirascope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirascope%2Fmirascope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirascope%2Fmirascope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirascope%2Fmirascope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mirascope","download_url":"https://codeload.github.com/Mirascope/mirascope/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249148318,"owners_count":21220513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","developer-tools","function-calling","hacktoberfest","llm","llm-agent","llm-tools","prompt-engineering","pydantic-v2","python"],"created_at":"2024-08-01T21:01:39.066Z","updated_at":"2025-04-15T20:33:13.582Z","avatar_url":"https://github.com/Mirascope.png","language":"Python","funding_links":[],"categories":["Python","Python Libraries","🔗 Integration \u0026 Utility Tools","LLMOps","A01_文本生成_文本对话","Machine Learning","13. Developer Tools \u0026 Integrations","Agent SDKs \u0026 Frameworks"],"sub_categories":["Type-Safe \u0026 Structured LLM Libraries","Observability","大语言对话模型及数据","Lightweight \u0026 Typed"],"readme":"\u003cdiv align=\"center\" justiry=\"start\"\u003e\n    \u003ca href=\"https://mirascope.com\"\u003e\n        \u003cimg align=\"bottom\" src=\"https://github.com/Mirascope/mirascope/assets/99370834/e403d7ee-f8bc-4df1-b2d0-33763f021c89\" alt=\"Frog Logo\" width=\"84\"/\u003e\u003cbr\u003e\u003cimg align=\"bottom\" src=\"https://uploads-ssl.webflow.com/65a6fd6a1c3b2704d6217d3d/65b5674e9ceef563dc57eb11_Medium%20length%20hero%20headline%20goes%20here.svg\" width=\"400\" alt=\"Mirascope\"/\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/Mirascope/mirascope/actions/workflows/tests.yml\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/Mirascope/mirascope/actions/workflows/tests.yml/badge.svg?branch=main\" alt=\"Tests\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://codecov.io/github/Mirascope/mirascope\" target=\"_blank\"\u003e\u003cimg src=\"https://codecov.io/github/Mirascope/mirascope/graph/badge.svg?token=HAEAWT3KC9\" alt=\"Coverage\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://mirascope.com/WELCOME\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/docs-available-brightgreen\" alt=\"Docs\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.python.org/pypi/mirascope\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/mirascope.svg\" alt=\"PyPI Version\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.python.org/pypi/mirascope\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/pyversions/mirascope.svg\" alt=\"Stars\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Mirascope/mirascope/blog/dev/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/Mirascope/mirascope.svg\" alt=\"License\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Mirascope/mirascope/stargazers\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/Mirascope/mirascope.svg\" alt=\"Stars\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nMirascope is a powerful, flexible, and user-friendly library that simplifies the process of working with LLMs through a unified interface that works across various supported providers, including [OpenAI](https://openai.com/), [Anthropic](https://www.anthropic.com/), [Mistral](https://mistral.ai/), [Google (Gemini/Vertex)](https://googleapis.github.io/python-genai/), [Groq](https://groq.com/), [Cohere](https://cohere.com/), [LiteLLM](https://www.litellm.ai/), [Azure AI](https://azure.microsoft.com/en-us/solutions/ai), and [Bedrock](https://aws.amazon.com/bedrock/).\n\nWhether you're generating text, extracting structured information, or developing complex AI-driven agent systems, Mirascope provides the tools you need to streamline your development process and create powerful, robust applications.\n\n## 30 Second Quickstart\n\nInstall Mirascope, specifying the provider(s) you intend to use, and set your API key:\n\n```bash\npip install \"mirascope[openai]\"\nexport OPENAI_API_KEY=XXXXX\n```\n\nMake your first call to an LLM to extract the title and author of a book from unstructured text:\n\n```python\nfrom mirascope import llm\nfrom pydantic import BaseModel\n\nclass Book(BaseModel):\n    title: str\n    author: str\n\n@llm.call(provider=\"openai\", model=\"gpt-4o-mini\", response_model=Book)\ndef extract_book(text: str) -\u003e str:\n    return f\"Extract {text}\"\n\nbook = extract_book(\"The Name of the Wind by Patrick Rothfuss\")\nassert isinstance(book, Book)\nprint(book)\n# Output: title='The Name of the Wind' author='Patrick Rothfuss'\n```\n\n## Tutorials\n\nCheck out our [quickstart tutorial](https://mirascope.com/tutorials/getting_started/quickstart) and many other tutorials for an interactive way to getting started with Mirascope.\n\n## Usage\n\nFor a complete guide on how to use all of the various features Mirascope has to offer, read through our [Learn](https://mirascope.com/learn) documentation.\n\n## Versioning\n\nMirascope uses [Semantic Versioning](https://semver.org/).\n\n## Licence\n\nThis project is licensed under the terms of the [MIT License](https://github.com/Mirascope/mirascope/blob/dev/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMirascope%2Fmirascope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMirascope%2Fmirascope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMirascope%2Fmirascope/lists"}