Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

motor-stubs

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motor-stubs

  • 1.7.1
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc