Skip to main content

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

Release files for sqlalchemy-stubs 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sqlalchemy-stubs 0.4
File Size Uploaded
sqlalchemy-stubs-0.4.tar.gz 70.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqlalchemy-stubs 0.4
File Interpreter ABI Platform
sqlalchemy_stubs-0.4-py3-none-any.whl Python 3 none any Details

Total release size: 186.7 kB

Release files / sqlalchemy-stubs-0.4.tar.gz

Download URL sqlalchemy-stubs-0.4.tar.gz
Size 70.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c665d6dd4482ef642f01027fa06c3d5e91befabb219dc71fc2a09e7d7695f7ae
BLAKE2b-256 checksum
How to use checksums
8160db082788267740b17eac2c00666bbea1c8c5a94b569e8b1ea76b0cf42d57
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / sqlalchemy_stubs-0.4-py3-none-any.whl

Download URL sqlalchemy_stubs-0.4-py3-none-any.whl
Size 116.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5eec7aa110adf9b957b631799a72fef396b23ff99fe296df726645d01e312aa5
BLAKE2b-256 checksum
How to use checksums
62aecb215ab25b76228bc90c90444b87e323ffba58c212321a53d5bc92903098
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page