{"id":25515503,"url":"https://github.com/inferra/inferra-python-sdk","last_synced_at":"2026-05-01T00:31:49.170Z","repository":{"id":276875905,"uuid":"930599222","full_name":"Inferra/Inferra-Python-SDK","owner":"Inferra","description":"Official Python SDK for Inferra API access","archived":false,"fork":false,"pushed_at":"2025-02-14T20:24:20.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-20T21:37:29.885Z","etag":null,"topics":["ai","api-client","async","batch-processing","inferra","language-models","llama","llm","machine-learning","mistral","openai-compatible","python","sdk"],"latest_commit_sha":null,"homepage":"","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/Inferra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-10T22:29:30.000Z","updated_at":"2025-02-14T20:24:24.000Z","dependencies_parsed_at":"2025-05-20T21:34:12.357Z","dependency_job_id":"c82d3a93-630e-49db-b249-fd9c4ee97514","html_url":"https://github.com/Inferra/Inferra-Python-SDK","commit_stats":null,"previous_names":["inferra/inferra-python-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Inferra/Inferra-Python-SDK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inferra%2FInferra-Python-SDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inferra%2FInferra-Python-SDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inferra%2FInferra-Python-SDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inferra%2FInferra-Python-SDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inferra","download_url":"https://codeload.github.com/Inferra/Inferra-Python-SDK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inferra%2FInferra-Python-SDK/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32481553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ai","api-client","async","batch-processing","inferra","language-models","llama","llm","machine-learning","mistral","openai-compatible","python","sdk"],"created_at":"2025-02-19T13:30:14.603Z","updated_at":"2026-05-01T00:31:49.114Z","avatar_url":"https://github.com/Inferra.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inferra Python SDK\n\nThe official Python SDK for [Inferra.net](https://inferra.net) - Access leading open source AI models with just a few lines of code.\n\n## Installation\n\n```bash\npip install inferra\n```\n\n## Quick Start\n\n```python\nfrom inferra import InferraClient\n\n# Initialize client\nclient = InferraClient(api_key=\"your-api-key\")\n\n# Create a chat completion\nresponse = client.chat.create(\n    model=\"meta-llama/llama-3.1-8b-instruct/fp-8\",\n    messages=[\n        {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n        {\"role\": \"user\", \"content\": \"What is the meaning of life?\"}\n    ],\n    stream=True\n)\n\n# Process streaming response\nfor chunk in response:\n    if chunk.choices[0].delta.content:\n        print(chunk.choices[0].delta.content, end='', flush=True)\n```\n\n## Features\n- Full support for Inferra's API\n- Async/await support\n- Type hints throughout\n- Built-in rate limiting and retries\n- Streaming support\n- Batch processing\n- Comprehensive documentation\n\n## Available Models\n\n| Model Name | Price (per 1M tokens) |\n|------------|----------------------|\n| meta-llama/llama-3.2-1b-instruct/fp-8 | $0.015 |\n| meta-llama/llama-3.2-3b-instruct/fp-8 | $0.03 |\n| meta-llama/llama-3.1-8b-instruct/fp-8 | $0.045 |\n| meta-llama/llama-3.1-8b-instruct/fp-16 | $0.05 |\n| mistralai/mistral-nemo-12b-instruct/fp-8 | $0.10 |\n| meta-llama/llama-3.1-70b-instruct/fp-8 | $0.30 |\n\n## Development\n```bash\n# Install development dependencies\npip install -e \".[dev]\"\n\n# Run tests\nmake test\n\n# Run linting\nmake lint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finferra%2Finferra-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finferra%2Finferra-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finferra%2Finferra-python-sdk/lists"}