Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

config.py 351 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  1. import pathlib
  2. from typing import List
  3. from pydantic_settings import BaseSettings, SettingsConfigDict
  4. class Settings(BaseSettings):
  5. # dagshub configuration
  6. DAGSHUB_TOKEN: str
  7. __project_root = pathlib.Path(__file__).resolve().parent.parent
  8. model_config = SettingsConfigDict(env_file=f"{__project_root}/.env")
  9. settings = Settings()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...