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

Uploaded Source

Built Distribution

sqlalchemy_stubs-0.2-py3-none-any.whl (114.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy-stubs-0.2.tar.gz
  • Upload date:
  • Size: 69.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.6

File hashes

Hashes for sqlalchemy-stubs-0.2.tar.gz
Algorithm Hash digest
SHA256 fe9df983274142f82973e4f7634a98dcbdbdde964918ad3dcf33d94398c51537
MD5 b542906d0d1e343101a411db27942922
BLAKE2b-256 c60ee70c3ccd7a805a0a8539d5253ed4c442e72e8d66db8339f059c2be2df1ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlalchemy_stubs-0.2-py3-none-any.whl
  • Upload date:
  • Size: 114.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.6

File hashes

Hashes for sqlalchemy_stubs-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4bb4a0377ed6c01bea2e1124d60747714d56742352bdb80e2093ca80a1bc036f
MD5 7e3e3b4cc897f66cf9334952c0a8b2ed
BLAKE2b-256 9d8e2933ba7e5ad77cfc82f3d91cb66273d1b76097ec0f6c874639d40e9b3947

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