Skip to main content

SQLAlchemy stubs and mypy plugin

Project description

Experimental SQLAlchemy type stubs and mypy plugin

This package contains type stubs and mypy plugin to provide more precise static types and type inference for SQLAlchemy framework. SQLAlchemy uses dynamic Python features that are hard to understand by static type checkers, this is why the plugin is needed in addition to type stubs.

Currently, some basic use cases like inferring model field types are supported. The final goal is to be able to get precise types for most common patterns.

Installation

pip install sqlalchemy-stubs

Important: you need to enable the plugin in your mypy config file:

[mypy]
plugins = sqlmypy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy-stubs-dev-0.3.3.tar.gz (74.5 kB view hashes)

Uploaded Source

Built Distribution

sqlalchemy_stubs_dev-0.3.3-py3-none-any.whl (116.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page