No project description provided
Project description
Motor Stubs
Experimental stubs for motor.
motor-stubs is NOT an officially supported MongoDB product.
Installation
motor-stubs can be installed with pip
pip install motor-stubs
Dependencies
- Python >= 3.9
- Motor >= 3.0.0, < 4.0
Note
- You should not use this stubs package after the official
motorpackage supports inline type annotations. - File generator.py can help to parse class
AgnosticCollectionandAgnosticDatabase, other class might not work
Usage generator.py
# at the project root, and get into python shell
from motor.core import AgnosticCollection
from generator import gen
gen(AgnosticCollection)
It will output a file in folder pyi_tmp/.
Support / Feedback
motor-stubs is experimental and is not an officially supported MongoDB product. For questions, discussions, or general technical support, visit the MongoDB Community Forums.
Contribute
Poetry
use poetry as package manager, you can follow the official installation guide here
Pre-Commit
use Python package pre-commit for style check
# after install poetry
# install project dependencies
poetry install
# then
pre-commit install
Commitizen
use Python package commitizen for commit-msg lint and version bump tool
commit
cz c
# follow the description
bump version
cz bump
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file motor-stubs-1.7.1.tar.gz.
File metadata
- Download URL: motor-stubs-1.7.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e24340e3e80ca92b081834268a7e6264bb8196cd5e238913b6ebed7c4afd1270
|
|
| MD5 |
b831e90f2b4d0ced20630125f9837efe
|
|
| BLAKE2b-256 |
79f11b251174904fffa1e51a17d399412209f6bb98dfd2bfad553885d91f5ddd
|
File details
Details for the file motor_stubs-1.7.1-py3-none-any.whl.
File metadata
- Download URL: motor_stubs-1.7.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35a9b57a338c2c82d3dce23e863f6cec8051a8200fe91de5acd2b2b318059acd
|
|
| MD5 |
3dcfd53f656aefb3018a0d27aad2df60
|
|
| BLAKE2b-256 |
c4e30498954767abf0dbf3239d16827879c2f2faf54718b52f4b0eaa5d389f4c
|