config.py 661 B

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