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-0.4.tar.gz (70.7 kB view details)

Uploaded Source

Built Distribution

sqlalchemy_stubs-0.4-py3-none-any.whl (116.1 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy-stubs-0.4.tar.gz.

File metadata

  • Download URL: sqlalchemy-stubs-0.4.tar.gz
  • Upload date:
  • Size: 70.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4

File hashes

Hashes for sqlalchemy-stubs-0.4.tar.gz
Algorithm Hash digest
SHA256 c665d6dd4482ef642f01027fa06c3d5e91befabb219dc71fc2a09e7d7695f7ae
MD5 248dcb62dde109037da589bf18806ce0
BLAKE2b-256 8160db082788267740b17eac2c00666bbea1c8c5a94b569e8b1ea76b0cf42d57

See more details on using hashes here.

File details

Details for the file sqlalchemy_stubs-0.4-py3-none-any.whl.

File metadata

  • Download URL: sqlalchemy_stubs-0.4-py3-none-any.whl
  • Upload date:
  • Size: 116.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4

File hashes

Hashes for sqlalchemy_stubs-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5eec7aa110adf9b957b631799a72fef396b23ff99fe296df726645d01e312aa5
MD5 b2216ceccf34ca0b03b52e97a84cf2eb
BLAKE2b-256 62aecb215ab25b76228bc90c90444b87e323ffba58c212321a53d5bc92903098

See more details on using hashes here.

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