OAREPO typing package for invenio packages. Stub files only.
Project description
invenio-typing-stubs
This is a package that provides typing support for the InvenioRDM source base. It is intended as a temporary solution until InvenioRDM itself provides typing support.
As such, it is a collection of type stubs for the InvenioRDM source base, as well as some utility functions to help with typing.
It must not contain any runtime code, it is intended to be used only for type checking.
Warning
These stubs were generated mostly automatically and only some have been manually checked. They will surely contain some errors. Please report any issues you find.
Usage
Please install the package directly from github:
pip install git+https://github.com/oarepo/invenio-typing-stubs.git
If you add the dependency to your pyproject.toml built with hatchling, do it like:
[project.optional-dependencies]
dev = [
"invenio-typing-stubs @ git+https://github.com/oarepo/invenio-typing-stubs.git",
]
How it was generated
Automatic generation
Copilot with GPT-5 was used to generate the stubs. The following prompt was used:
There is a agent_helper command that will give you work. Please call the command as
`.venv/bin/python agent_helper.py invenio_communities`.
The output of the command are the instructions that you should do.
Read them carefully and execute them.
After that, continue calling the agent and processing the instructions
until it will tell you that all work has been done.
Manual checks
Some manual checks were done to ensure the stubs are correct. Systemfields were patched manually to ensure correct typing.
Problems
Typing for SQL Alchemy mostly does not work with invenio_db.
Final checks
Checked with
mypy --check-untyped-defs --ignore-missing-imports invenio_records_resources-stubs/
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oarepo_invenio_typing_stubs-0.1.23.tar.gz.
File metadata
- Download URL: oarepo_invenio_typing_stubs-0.1.23.tar.gz
- Upload date:
- Size: 314.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e9a1454d36ec1b2db19493e97992f43ecb9b44be7d544815be2724795c778ba
|
|
| MD5 |
520c3c0db23c327b72f67c77632a7d51
|
|
| BLAKE2b-256 |
89d1ef6260333a6ec80fb435c4388d962398687948d07cbf283a69d2bb1961b2
|
File details
Details for the file oarepo_invenio_typing_stubs-0.1.23-py3-none-any.whl.
File metadata
- Download URL: oarepo_invenio_typing_stubs-0.1.23-py3-none-any.whl
- Upload date:
- Size: 429.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
814b286740e9881b9340fe749244ce909db69072414f4004da86b9638de1dd1c
|
|
| MD5 |
6f23111c0bef2ee6d2406e57cf1b1448
|
|
| BLAKE2b-256 |
4662c2832d23eb19031372e1857d8be1b218d2b64437ac280ff3265569d8a04d
|