Skip to main content

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

  1. You should not use this stubs package after the official motor package supports inline type annotations.
  2. File generator.py can help to parse class AgnosticCollection and AgnosticDatabase, 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

Metadata

Release files for motor-stubs 1.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for motor-stubs 1.7.1
File Size Uploaded
motor-stubs-1.7.1.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for motor-stubs 1.7.1
File Interpreter ABI Platform
motor_stubs-1.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / motor-stubs-1.7.1.tar.gz

Download URL motor-stubs-1.7.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e24340e3e80ca92b081834268a7e6264bb8196cd5e238913b6ebed7c4afd1270
BLAKE2b-256 checksum
How to use checksums
79f11b251174904fffa1e51a17d399412209f6bb98dfd2bfad553885d91f5ddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Darwin/21.5.0

Release files / motor_stubs-1.7.1-py3-none-any.whl

Download URL motor_stubs-1.7.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35a9b57a338c2c82d3dce23e863f6cec8051a8200fe91de5acd2b2b318059acd
BLAKE2b-256 checksum
How to use checksums
c4e30498954767abf0dbf3239d16827879c2f2faf54718b52f4b0eaa5d389f4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Darwin/21.5.0

Release history Release notifications | RSS feed

This release

1.7.1 This release

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page