Skip to main content

Extensions template for the OpenBB Python Package.

Project description

OpenBB ODP Extensions Cookiecutter

Cookiecutter is a command-line utility that creates projects from templates.

This extension is a simple template for setting up new OpenBB Python Package extensions and projects.

Template Structure

The Cookiecutter template prompts the user for information to use in the pyproject.toml file, and then generates a project based on that information. All fields are optional.

  • Your Name
  • Your Email
  • Project Name
  • Project Tag (some-distributable-package)
  • Package Name ("include" code folder name - "some_package")
  • Provider Name - name of the provider for the entry point - i.e, 'fmp'
  • Router Name - name of the router path - i.e. obb.{some_package}
  • OBBject Name - name of the OBBject accessor namespace.

The template will generate all extension types as a single, installable Python project. You likely won't always use all in tandem, just delete the unwanted folders and entrypoints.

Usage

  1. Install in a Python environment from PyPI with:
pip install openbb-cookiecutter

Alternatively, with uvx:

uvx openbb-cookiecutter
  1. Navigate the current working directory to the desired output location and run:
openbb-cookiecutter

Enter values or press enter to continue with the default.

  1. Create a new Python environment for the project.

  2. Navigate into the generated folder and install with:

pip install -e .
  1. Python static files will be generated on first import, or trigger with openbb-build.

  2. Import the Python package or start the API and use like any other OpenBB application.

  3. Modify the business logic and get started building!

See the developer documentation here.

Contributing

We welcome contributions to this template! Please feel free to open an issue or submit a pull request with your improvements.

Contacts

If you have any questions about the cookiecutter or anything OpenBB, feel free to email us at support@openbb.co

If you want to say hi, or are interested in partnering with us, feel free to reach us at hello@openbb.co

Any of our social media platforms: openbb.co/links

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

openbb_cookiecutter-0.4.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

openbb_cookiecutter-0.4.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file openbb_cookiecutter-0.4.0.tar.gz.

File metadata

  • Download URL: openbb_cookiecutter-0.4.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Darwin/25.1.0

File hashes

Hashes for openbb_cookiecutter-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1a08909714a315a8cc0ec7af1445c0a03e74774f3ee93e8c8929ffea72852c83
MD5 5df08fb68648e3d67e1ca36d408093a2
BLAKE2b-256 c12c107f372284f3829a8393fffb8f5dcf8433657eab478ea70661ddd565df01

See more details on using hashes here.

File details

Details for the file openbb_cookiecutter-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openbb_cookiecutter-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78525fcf9c5ccc446f986498120b41f065b087a8570a25975072a77d90bec722
MD5 63e047a479dfeb22f9ec1b558743c5d7
BLAKE2b-256 0d8b6649392f467593bc06ac30ee89a651c97f2fb975e4d5a38aa13b99510519

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