Skip to main content

Typing Stubs for SQLAlchemy 1.4

Project description

These are interim PEP-484 typing stubs for the SQLAlchemy 1.4 release series only. They are released concurrently along with a Mypy extension which is designed to work with these stubs, which assists primarily in the area of ORM mappings.

The stubs replace the use of the “sqlalchemy-stubs” package published by Dropbox. Differences include that these stubs are generated against 1.4’s API as well as some adjustments to the use of generics. The sqlalchemy2-stubs stubs package will not work with SQLAlchemy 2.0, and will need to be explicitly / manually uninstalled when upgrading to SQLAlchemy 2.0.

This project should be considered alpha level and is not as mature as the Dropbox stubs for the initial release.

See the Mypy plugin documentation at https://docs.sqlalchemy.org/en/14/orm/extensions/mypy.html for an overview of how to use PEP-484 annotations with ORM mapped classes.

For SQLAlchemy 2.0, when released, the sqlalchemy2-stubs project is not compatible. SQLAlchemy 2.0 will be / is fully pep-484 typed inline and will not be compatible with any stubs. There unfortunately appears to be no standard approach in Python for the problem of a library that upgrades to include typing annotations inline, as typing tools will still consider any installed stubs to take precedence. Therefore sqlalchemy2-stubs will need to be manually uninstalled when upgrading to SQLAlchemy 2.0.

Code of Conduct

Above all, SQLAlchemy places great emphasis on polite, thoughtful, and constructive communication between users and developers. Please see our current Code of Conduct at Code of Conduct.

License

SQLAlchemy is distributed under the MIT license.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

sqlalchemy2-stubs-0.0.2a21.tar.gz (122.6 kB view details)

Uploaded Source

Built Distribution

sqlalchemy2_stubs-0.0.2a21-py3-none-any.whl (190.4 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy2-stubs-0.0.2a21.tar.gz.

File metadata

  • Download URL: sqlalchemy2-stubs-0.0.2a21.tar.gz
  • Upload date:
  • Size: 122.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for sqlalchemy2-stubs-0.0.2a21.tar.gz
Algorithm Hash digest
SHA256 207e3d8a36fc032d325f4eec89e0c6760efe81d07e978513d8c9b14f108dcd0c
MD5 81b782a610bd5e2e52f5f6bbbd3f0f3a
BLAKE2b-256 fd6daee7dc3e25ad23977cdcfb35a384c5719028967a5ca086fbbe4e23f8092e

See more details on using hashes here.

File details

Details for the file sqlalchemy2_stubs-0.0.2a21-py3-none-any.whl.

File metadata

  • Download URL: sqlalchemy2_stubs-0.0.2a21-py3-none-any.whl
  • Upload date:
  • Size: 190.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for sqlalchemy2_stubs-0.0.2a21-py3-none-any.whl
Algorithm Hash digest
SHA256 bd4a3d5ca7ff9d01b2245e1b26304d6b2ec4daf43a01faf40db9e09245679433
MD5 9cb67f61c5fb448476af95d49aaea2eb
BLAKE2b-256 2ec075fda3b97536917f060490eb521ff7bd00e2befe6c7fd3938824e7411530

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