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
motor
package supports inline type annotations. - File generator.py can help to parse class
AgnosticCollection
andAgnosticDatabase
, 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.
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
motor-stubs-1.4.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for motor_stubs-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b82124e0c67dd071b219232e6d0dfdc8947cd72f017c7832bc86bb2bb5d96ce |
|
MD5 | 7789b2a5f16fca1682e1569849423cae |
|
BLAKE2b-256 | 965526987c9598293fec145e32dc3c8465e49a901d0cb34d5508a31b45c4060f |