Skip to main content

OpenBB Extensions Cookiecutter

A Cookiecutter template that generates a new OpenBB Platform extension as an installable Python project.

Extension types

Choose one or more types, or all:

Type Generates
router Commands under obb.<router_name>
provider A data provider with an example model and an EquityHistorical standard-model implementation
charting Chart views for the router's commands, used with openbb-charting
obbject Accessors added to every command result
on_command_output A plugin that runs after a command returns

The generated project follows the same conventions as the extensions in this repository: hatchling packaging, entry points in [project.entry-points], a dev dependency group, ruff and ty configuration in pyproject.toml, and tests for every generated module.

Usage

Run it with uv without installing:

uvx openbb-cookiecutter

Or install it and run the command:

pip install openbb-cookiecutter
openbb-cookiecutter

Enter a value at each prompt or press enter to accept the default. Pass the types directly to skip that prompt:

openbb-cookiecutter -e router provider

Generate without prompts, into another directory:

openbb-cookiecutter --no-input -o ./extensions -e all

Override any template value with --extra-context KEY=VALUE, for example --extra-context provider_name=my_source.

The provider and the OBBject extension each register a credentials namespace under their name, so they need different names.

Working on the generated project

The generated README.md covers setup. In short, from the project directory:

uv sync
uv run openbb-build
uv run pytest

Developing the template

From this directory:

uv sync
uv run pytest

The tests generate a project for each extension type and check its files, its entry points, and that it passes ruff and ty.

Contacts

Questions about the template or OpenBB: support@openbb.co. Partnerships: hello@openbb.co. Social links: openbb.co/links.

Metadata

Release files for openbb-cookiecutter 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openbb-cookiecutter 1.0.0
File Size Uploaded Provenance Actions
openbb_cookiecutter-1.0.0.tar.gz 15.9 kB Without provenance Details for openbb_cookiecutter-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openbb-cookiecutter 1.0.0
File Interpreter ABI Platform Actions
openbb_cookiecutter-1.0.0-py3-none-any.whl Python 3 none any Details for openbb_cookiecutter-1.0.0-py3-none-any.whl

Total release size: 41.4 kB

Release files / openbb_cookiecutter-1.0.0.tar.gz

Download URL openbb_cookiecutter-1.0.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
08f93478002d2e9ab8e6fd6f22bc8496228e6a743362e21eb6dd28f6d48127c7
BLAKE2b-256 checksum
How to use checksums
4fb7c669c7588680667519c3878062c3febfcf4b3277a939a5d6c8f979ef9059
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.12.9 Windows/11

Release files / openbb_cookiecutter-1.0.0-py3-none-any.whl

Download URL openbb_cookiecutter-1.0.0-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31544566de07bc93d0805187ce5cfdb5bf8302076065431ae9df9c510332746d
BLAKE2b-256 checksum
How to use checksums
6c359d9a751c37852b33a90000f4eb3a68893d4c917338d205602fc081a35a0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.12.9 Windows/11

Security for openbb-cookiecutter 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page