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.5.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.5.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openbb_cookiecutter-0.5.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.11 Darwin/25.2.0

File hashes

Hashes for openbb_cookiecutter-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3922c7ee4777eefa9b8a38fc66e42f0594a25c8f761a3e9173423f5499df528d
MD5 5086a2cda21849790c909210ae6c91d6
BLAKE2b-256 8e1ffe68106e4d62b5f56731cb91cbc0b8e8a6254c7bc9853b78e58292c16b03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openbb_cookiecutter-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db81759a680eff98891182a349a39bbc4b69ea4711acc67251401f632f06be0e
MD5 1b967cfb7d21e172557ca62db8749825
BLAKE2b-256 f40049a354e957484e9ef6def52c28d0a8ba6baef0671dd9dd921fa05043697d

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