Skip to main content

Add your description here

Project description

# traditional way to start the API directly
openbb-api --app main.py --exclude '"/api/v1/*"' --reload
openbb-api --app main.py --reload
openbb-api --app src/openbb_app/main.py --reload

using uvx

When openbb-api is executed, the health check endpoint will be available at http://0.0.0.0:6900/health.

uv run openbb-api --app src/openbb_app/main.py

Start the virtual environment and run the following command to start the API:

uvicorn openbb_app.main:app

Using TestPyPI

1. Configure uv for TestPyPI

You can either pass the URL every time or add it to your pyproject.toml so uv knows where to find it. I recommend adding it to your config:

Add this to your pyproject.toml:

Ini, TOML

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

2. Build and Publish

Now, build your project and tell uv to send it to the testpypi index you just defined.

Bash

# Clear old builds first
rm -rf dist/

# Build the distribution
uv build

# Publish to TestPyPI
# You'll be prompted for a token (username: __token__)
uv publish --index testpypi

3. The "Moment of Truth": Testing with uvx

This is the most important step. You want to see if a user can run your app using uvx by pulling it from TestPyPI.

Since TestPyPI often doesn't have all the dependencies (like openbb or fastapi), you have to tell uv to look at both TestPyPI (for your app) and the real PyPI (for the dependencies).

Run this command from a different folder:

Bash

uvx --index https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ openbb-app

What to check:

  • Does the server start? If it boots to http://0.0.0.0:8000, your entry point is correct.

  • Are images/README missing? Check the project page on test.pypi.org to see if your descriptions rendered correctly.


4. Cleaning Up for the "Real" Launch

Once you are happy with how it looks on TestPyPI:

  1. Change the Version: Increment the version in pyproject.toml (e.g., 0.1.0 -> 0.1.1).

  2. Publish for real: ```bash

    uv build

    uv publish # This defaults to the real PyPI

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_app-0.5.2.tar.gz (235.0 kB view details)

Uploaded Source

Built Distribution

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

openbb_app-0.5.2-py3-none-any.whl (241.4 kB view details)

Uploaded Python 3

File details

Details for the file openbb_app-0.5.2.tar.gz.

File metadata

  • Download URL: openbb_app-0.5.2.tar.gz
  • Upload date:
  • Size: 235.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for openbb_app-0.5.2.tar.gz
Algorithm Hash digest
SHA256 bd82c7a16a0971d239e1a2bb00549dd994f51baf902b73ad18ba06f5f791942a
MD5 fa544cc1ceee28656499726a2e1f08fd
BLAKE2b-256 a1328e594b5ba02131a7f48cfaf7e5cf8e3516160f18d34ddc1a9ae8ab3f41a5

See more details on using hashes here.

File details

Details for the file openbb_app-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: openbb_app-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 241.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for openbb_app-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b76925c5af812540c0c2e4709e76a0b304f0de284761733d6f0825b6953e046
MD5 a3e593d6032d3040bd2b742b009d09a7
BLAKE2b-256 3aa0f87792c609d1deaa4e623f7c0963f7443e89ca86da9390881675ece2c75d

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