Skip to main content

API stubs for Blender and UPBGE generated with bpystubgen.

Project description

Blender / UPBGE API Stubs

This module provides type information for Blender and UPBGE's Python API, following the PEP-561 standard.

It was generated using BPY Stub Generator which is also available on PyPI as a separate module.

Screenshots

Auto-completion at work in PyCharm: Screenshot in PyCharm

Pop-up documentation support in VSCode: Screenshot in VSCode

Installation

There are two variants of the API stubs, one for Blender and the other for UPBGE. For Blender, you can install blender-stubs module with appropriate version qualifier as follows:

$ pip install blender-stubs==3.1.27

This will install the latest module for Blender 2.93, and for now stubs are provided for Blender 2.80 and onwards. You can also specify the next unreleased version as 3.1.* to get the latest snapshot of the module:

$ pip install blender-stubs==3.2.*

A stub module for UPBGE 0.3, as well as pre-release versions for the master branch are also available on PyPI repository. For the stable version, you can install it as follows:

$ pip install upbge-stubs==0.3.0.27

And for the latest snapshot,

$ pip install upbge-stubs==0.3.1.*

You can also install the module using Pipenv. Note that it is required to set allow_preleases option in case you want to install a snapshot release (e.g. UPBGE 0.3.1.*).

You can use the following content as a template for your Pipfile:

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[packages]
"upbge-stubs" = "==0.3.1.*"

[requires]
python_version = "3.10"

[pipenv]
allow_prereleases = true

You may want to use [dev-packages] instead of [packages] as it's more appropriate to do so, in which case you can install or update the stubs using the -d flag like pipenv update -d.

License

This project is provided under the terms of GNU General Public License v3 (GPL3).

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

upbge-stubs-0.3.1.27.dev3270416726.tar.gz (587.5 kB view details)

Uploaded Source

File details

Details for the file upbge-stubs-0.3.1.27.dev3270416726.tar.gz.

File metadata

File hashes

Hashes for upbge-stubs-0.3.1.27.dev3270416726.tar.gz
Algorithm Hash digest
SHA256 1fa2f2075d14bcde81c63536fa66f348d1f312037ca338a93f0fb9bc8cdc9c1c
MD5 05c457750c3dccb3db2be01aeefbd0ab
BLAKE2b-256 2b0dc28b8fb9395f36472d9d49152c32ee448962a9e1a405da15822f1d7d07ce

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