Skip to main content

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


Download files

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

Source Distribution

oarepo_invenio_typing_stubs-0.1.22.tar.gz (314.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oarepo_invenio_typing_stubs-0.1.22-py3-none-any.whl (429.7 kB view details)

Uploaded Python 3

File details

Details for the file oarepo_invenio_typing_stubs-0.1.22.tar.gz.

File metadata

File hashes

Hashes for oarepo_invenio_typing_stubs-0.1.22.tar.gz
Algorithm Hash digest
SHA256 f7406840721df946dfe91a4044cf3d2ffd1d297b1a8a02070b5aaec10bd16667
MD5 c9f8eda5cc07ad57d9a7eb80f731c8df
BLAKE2b-256 26051f1a90651b820d0f01f367ec99e9a4ecfdf2480581450b794d13b05baf0b

See more details on using hashes here.

File details

Details for the file oarepo_invenio_typing_stubs-0.1.22-py3-none-any.whl.

File metadata

File hashes

Hashes for oarepo_invenio_typing_stubs-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 d58605ec9933a01769b0a22e565873fb52dd2d528ef01c10712575e075c9dd84
MD5 8b8a0de919e0d4fc1e4c4c2eab9500a8
BLAKE2b-256 4b4734061f3f7e8d9c1e2ca93e199eb59d83c39e6eac4283de122bdafa42e22f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page