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

Uploaded Source

Built Distribution

sqlalchemy2_stubs-0.0.2a37-py3-none-any.whl (191.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy2-stubs-0.0.2a37.tar.gz
  • Upload date:
  • Size: 123.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for sqlalchemy2-stubs-0.0.2a37.tar.gz
Algorithm Hash digest
SHA256 619bd131f8ad7eeb88af8dfabb0e6ba07593db91868cdc49674d2cd4ca61e986
MD5 708e7670466880c8f4e3c8ae01b68f1d
BLAKE2b-256 b2a4a77155d8aa188bd6288b2f9be3a3b08d88cbb34835a6637cd7c5514764b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sqlalchemy2_stubs-0.0.2a37-py3-none-any.whl
Algorithm Hash digest
SHA256 43067e3f67bd16a7fb2b574ee696f7ed53bf60f3e73329cf234a7b4dd4d3816a
MD5 60768d15a10629d836ff4220d5d2593c
BLAKE2b-256 281d8f4bd7fcd5a8d285f7eb089fe1a921564f910391c66ed7a6e874af25a727

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