config.py 689 B

12345678910111213141516171819202122232425262728293031323334
  1. """The Pynecone config."""
  2. from typing import Optional
  3. from pynecone import constants
  4. from pynecone.base import Base
  5. class Config(Base):
  6. """A Pynecone config."""
  7. # The name of the app.
  8. app_name: str
  9. # The username.
  10. username: Optional[str] = None
  11. # The backend API url.
  12. api_url: str = "http://localhost:8000"
  13. # The database url.
  14. db_url: str = f"sqlite:///{constants.DB_NAME}"
  15. # The redis url.
  16. redis_url: Optional[str] = None
  17. # The deploy url.
  18. deploy_url: Optional[str] = None
  19. # The environment mode.
  20. env: constants.Env = constants.Env.DEV
  21. # The path to the bun executable.
  22. bun_path: str = "$HOME/.bun/bin/bun"