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

Uploaded Source

Built Distribution

sqlalchemy_stubs-0.1-py3-none-any.whl (107.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy-stubs-0.1.tar.gz
  • Upload date:
  • Size: 65.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.1

File hashes

Hashes for sqlalchemy-stubs-0.1.tar.gz
Algorithm Hash digest
SHA256 7dd98ede4184ca1a8266999458ac775742b3f70bf949e77538e369442b35ce9c
MD5 0cf5bdafc5115fa49f0a3cf50129ba76
BLAKE2b-256 2fc662d5f7330559899c31f1a452ca28847896c7252410f9e5ecab894f030266

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlalchemy_stubs-0.1-py3-none-any.whl
  • Upload date:
  • Size: 107.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.1

File hashes

Hashes for sqlalchemy_stubs-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29785ab293df529f8abf4fef755428b7d1d47e55cc678888061bf2ddfbe5a02a
MD5 ad6dd6126e48e1f84fd4aa970c7dbd23
BLAKE2b-256 0478675a9937f2124ae1a8483d0098ffb9a59eba656f781560c297213907c6a9

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