{"id":31745443,"url":"https://github.com/danchev/unsloth-stubs","last_synced_at":"2025-10-09T12:57:02.967Z","repository":{"id":314980244,"uuid":"1057604110","full_name":"danchev/unsloth-stubs","owner":"danchev","description":"https://pypi.org/project/unsloth-stubs","archived":false,"fork":false,"pushed_at":"2025-09-16T05:40:36.000Z","size":139,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T12:44:50.497Z","etag":null,"topics":[],"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/danchev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-16T00:52:42.000Z","updated_at":"2025-09-16T05:40:39.000Z","dependencies_parsed_at":"2025-09-16T02:41:18.906Z","dependency_job_id":"a89e7aac-324d-486a-9c7c-f0c7075a35ff","html_url":"https://github.com/danchev/unsloth-stubs","commit_stats":null,"previous_names":["danchev/unsloth-stubs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danchev/unsloth-stubs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danchev%2Funsloth-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danchev%2Funsloth-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danchev%2Funsloth-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danchev%2Funsloth-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danchev","download_url":"https://codeload.github.com/danchev/unsloth-stubs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danchev%2Funsloth-stubs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001416,"owners_count":26083078,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-09T12:57:01.345Z","updated_at":"2025-10-09T12:57:02.955Z","avatar_url":"https://github.com/danchev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unsloth Stubs\n\n[![PyPI version](https://img.shields.io/pypi/v/unsloth-stubs.svg)](https://pypi.org/project/unsloth-stubs/)\n[![Conda Forge version](https://img.shields.io/conda/vn/conda-forge/unsloth-stubs.svg)](https://anaconda.org/conda-forge/unsloth-stubs)\n\n**Unsloth Stubs** is a collection of [PEP 484](https://www.python.org/dev/peps/pep-0484/) type stub files (`.pyi`) for the [unsloth](https://pypi.org/project/unsloth/) library. These stubs provide accurate type hints for improved autocompletion, static analysis, and developer experience in Python IDEs and type checkers.\n\nStub files are generated using [stubgen](https://github.com/python/mypy/blob/master/mypy/stubgen.py) and manually refined for correctness. Some tests and configs are contributed to [Typeshed](https://github.com/python/typeshed/); see their [contributors](https://github.com/python/typeshed/graphs/contributors) and [license](https://github.com/python/typeshed/blob/master/LICENSE).\n\n## Features\n\n- Accurate type hints for Unsloth modules\n- Enhanced autocompletion in editors\n- Compatibility with [Mypy](http://mypy-lang.org/) and other type checkers\n- Easy installation via PyPI or Conda\n\n## Installation\n\nInstall from PyPI:\n\n```bash\npip install unsloth-stubs\n```\n\nOr from conda-forge:\n\n```bash\nconda install -c conda-forge unsloth-stubs\n```\n\n## Usage\n\nOnce installed, type checkers (e.g., Mypy, Pytype[^1]) and autocompletion tools (e.g., Jedi) will automatically use the stubs if they are on your `PYTHONPATH`. If you need to manually add stubs, copy the `.pyi` files next to their `.py` counterparts in your Unsloth installation directory, or add the stubs directory to your `PYTHONPATH`.\n\nRefer to [PEP 561](https://www.python.org/dev/peps/pep-0561/) for details on distributing and packaging type information.\n\n## Compatibility\n\nUnsloth Stubs versions follow Unsloth releases. For example, `unsloth-stubs==2025.9.5` is compatible with `unsloth\u003e=2025.9.5`. Maintenance releases (e.g., `post1`, `post2`, ...) are reserved for annotation updates only.\n\n## API Coverage\n\nThe stubs cover the most commonly used classes and methods in Unsloth. Full coverage is not guaranteed, but contributions are welcome!\n\n## Project Structure\n\n```\nunsloth-stubs/\n├── unsloth/\n│   ├── __init__.pyi\n│   ├── models/\n│   ├── kernels/\n│   ├── dataprep/\n│   ├── registry/\n│   └── utils/\n└── ...\n```\n\n## Contributing\n\nContributions, bug reports, and suggestions are welcome! Please open an issue or pull request on GitHub.\n\n## License \u0026 Disclaimer\n\nUnsloth and the Unsloth logo are trademarks of their respective owners. This project is not affiliated with or endorsed by any other organization.\n\n---\n\n[^1]: Pytype is not officially supported or tested.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanchev%2Funsloth-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanchev%2Funsloth-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanchev%2Funsloth-stubs/lists"}