This release is a pre-release and may not be stable for production use.
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.
Release files for sqlalchemy2-stubs 0.0.2a38
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqlalchemy2-stubs-0.0.2a38.tar.gz | 124.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqlalchemy2_stubs-0.0.2a38-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 315.7 kB
Release files / sqlalchemy2-stubs-0.0.2a38.tar.gz
| Download URL | sqlalchemy2-stubs-0.0.2a38.tar.gz |
|---|---|
| Size | 124.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
861d722abeb12f13eacd775a9f09379b11a5a9076f469ccd4099961b95800f9e
|
|
BLAKE2b-256 checksum How to use checksums |
94dfbe9e0062f649fd2e9b9b73a98c250f520fa10beaebddb8948dffad23c3b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / sqlalchemy2_stubs-0.0.2a38-py3-none-any.whl
| Download URL | sqlalchemy2_stubs-0.0.2a38-py3-none-any.whl |
|---|---|
| Size | 191.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b62aa46943807287550e2033dafe07564b33b6a815fbaa3c144e396f9cc53bcb
|
|
BLAKE2b-256 checksum How to use checksums |
eeea6eff437d0a26c894da2982429ed2c148ecaf0526349ddc8cda1e7151c171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|