Type stubs for Pony ORM
Project description
Pony stubs
Python type hint stubs for Pony ORM
NOTE: This project is still very much a WIP, the types shouldn't be expected to be anywhere close to completion.
Goals
- Provide type hints for Pony ORM that support both MyPy and Pyright on their strictest modes
- Integrate the contents of this package into the official Pony ORM repository (self-deprecation)
- Focus primarily on the aspects that users of Pony ORM most often run into (defining models, querying them etc.)
Progress so far
- Model fields should get dynamically typed correctly by using
Required
,Set
etc. - Querying models (without using attribute lifting) should be well typed
Development
The development environment for this package requires poetry
(https://python-poetry.org/docs/master/#installing-with-the-official-installer)
Using VSCode as the editor is recommended!
Setting up the repo
- Clone the repo
git clone git@github.com:Jonesus/pony-stubs.git
- Install dependencies
poetry install
- Install commit hooks
poetry run pre-commit install --install-hooks
- Type ahead!
Contributing
Contributions are always most welcome! Please run the pre-commit hooks before setting up a pull request, and in case the Github actions fail, please try to fix those issues so the review itself can go as smoothly as possible
License
This project is licensed under the MIT license (see LICENSE.md)
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
Built Distribution
Hashes for pony_stubs-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53c0ec37899f7eab51322637900a5e7da6bfc06baf8884fa1faa56bae3e30b2 |
|
MD5 | 416a43d1f6d5c70a7fb59819ff847acf |
|
BLAKE2b-256 | a7b203df576ef5b2c9aaabe16777b4460969ca39b421df66e2e2b6d32918894b |