{"id":17001215,"url":"https://github.com/l0rd-zer0/motor-types","last_synced_at":"2025-03-17T09:30:53.859Z","repository":{"id":65819690,"uuid":"580706554","full_name":"L0RD-ZER0/Motor-Types","owner":"L0RD-ZER0","description":"Python stubs for Motor, a Non-Blocking MongoDB driver for Python's Tornado and AsyncIO based applications.","archived":true,"fork":false,"pushed_at":"2024-03-21T19:29:59.000Z","size":164,"stargazers_count":23,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T11:17:45.589Z","etag":null,"topics":["mongodb","motor","python","python3","stubs","stubs-only","type-library"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/motor-types/","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/L0RD-ZER0.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}},"created_at":"2022-12-21T08:38:52.000Z","updated_at":"2024-10-21T06:14:10.000Z","dependencies_parsed_at":"2023-12-02T05:31:56.847Z","dependency_job_id":"b0c5bd2a-f10c-4dce-aaf3-cd6f024900d0","html_url":"https://github.com/L0RD-ZER0/Motor-Types","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":0.04347826086956519,"last_synced_commit":"989f2e160543a035e9cba10e51a52345dbd6fe65"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L0RD-ZER0%2FMotor-Types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L0RD-ZER0%2FMotor-Types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L0RD-ZER0%2FMotor-Types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L0RD-ZER0%2FMotor-Types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/L0RD-ZER0","download_url":"https://codeload.github.com/L0RD-ZER0/Motor-Types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244008972,"owners_count":20382941,"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":["mongodb","motor","python","python3","stubs","stubs-only","type-library"],"created_at":"2024-10-14T04:24:09.306Z","updated_at":"2025-03-17T09:30:53.385Z","avatar_url":"https://github.com/L0RD-ZER0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Motor-Types\n===========\nPython stubs for [Motor], a Non-Blocking [MongoDB] driver for [Python]'s [Tornado] and [AsyncIO] based applications.\n\nAbout\n------\nStubs for [Motor] (version 3.0.0+) for substituting the missing type-hints. These stubs are meant to be used along with\npycharm and mypy to facilitate static type-checking. Installing this package adds these `.pyi` files to\n`libs/site-packages/motor`. Currently, only the stubs for [AsyncIO] are supported. You can contribute to stubs for\n[Tornado] by opening a pull request for the same.\n\n**Note:** This project is currently under development and is in no way affiliated with MongoDB. This is an unofficial\nstub package.\n\nHow to use?\n-----------\n\nYou can either install from [PyPI] using [pip] or add files to your project directories manually.\n\n### Installing Using [pip]:\n```commandline\npip install motor-types\n```\n\n### To install [Motor] (and [Dnspython]) alongside the package:\n```commandline\npip install motor-types[motor]\n```\n\n### To add files to the project manually:\nUse this command to clone the repository:\n```commandline\ngit clone \"https://github.com/L0RD-ZER0/Motor-Types\"\n```\n\nAfterwards, you can do either of the following to use stubs:\n* Copy the stubs manually to either ``libs/site-packages/motor`` or ``libs/site-packages/motor-stubs``, ideally the latter.\n* Add these stubs manually to project directories.\n  * [For MyPy][MyPy-Stubs].\n  * [For PyCharm][PyCharm-Stubs].\n  * For other static type-checking tools, consider referring to their corresponding documentation regarding stubs.\n\nExamples:\n---------\n### Auto-Complete Example\n**Without Stubs:**\n\n![ACNS]\n\n**With Stubs:**\n\n![ACWS]\n\n### Type-Checking Example\n**Without Stubs:**\n\n![TCNS]\n\n**With Stubs:**\n\n![TCWS]\n\nDependencies\n------------\nThis package uses following dependencies:\n* [Poetry] (For Packaging and Publishing)\n* [PyMongo] (For PyMongo related types)\n* [Motor] (For Referencing and for motor installation extra)\n* [Dnspython] (For motor installation extra)\n* [Pre-Commit] (For maintaining code quality)\n* [Typing-Extensions] (For using the latest typing features)\n\nHow to Contribute?\n------------------\nThe simplest contribution you can make is by opening a [GitHub Issue][GH-Issues] or by forking the repository and making\na pull request on the [GitHub Repository][GH-Repo] for the same. The changes can be as simple as improving the\ndocumentation or as big as completing any incomplete section of the typings.\n\n**Note:** All issues and pull-requests are subjected to a preliminary inspection.\n\nLicense\n-------\nThis repository is licensed under MIT License. The [license][License] can be found within the repository.\n\n\n[Motor]: https://github.com/mongodb/motor\n[MongoDB]: https://www.mongodb.com\n[PyMongo]: https://github.com/mongodb/mongo-python-driver\n[Poetry]: https://github.com/python-poetry/poetry\n[pip]: https://pypi.org/project/pip/\n[Dnspython]: https://www.dnspython.org/\n[Pre-Commit]: https://pre-commit.com\n[Typing-Extensions]: https://github.com/python/typing_extensions\n[Python]: https://python.org\n[Tornado]: https://www.tornadoweb.org/\n[Asyncio]: https://docs.python.org/3/library/asyncio.html\n[PyPI]: https://pypi.org/\n[MyPy-Stubs]: https://mypy.readthedocs.io/en/stable/stubs.html#stub-files\n[PyCharm-Stubs]: https://www.jetbrains.com/help/pycharm/stubs.html\n[GH-Repo]: https://github.com/L0RD-ZER0/Motor-Types\n[GH-Issues]: https://github.com/L0RD-ZER0/Motor-Types/issues\n[License]: https://github.com/L0RD-ZER0/Motor-Types/blob/master/LICENSE\n[ACNS]: https://github.com/L0RD-ZER0/Motor-Types/raw/master/examples/auto-complete-example-ns.png\n[ACWS]: https://github.com/L0RD-ZER0/Motor-Types/raw/master/examples/auto-complete-example-ws.png\n[TCNS]: https://github.com/L0RD-ZER0/Motor-Types/raw/master/examples/type-checking-example-ns.png\n[TCWS]: https://github.com/L0RD-ZER0/Motor-Types/raw/master/examples/type-checking-example-ws.png","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl0rd-zer0%2Fmotor-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl0rd-zer0%2Fmotor-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl0rd-zer0%2Fmotor-types/lists"}