Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /aspuru-guzik-group_molar /molar /config.py
| # std | |
| from dataclasses import asdict, dataclass | |
| from pathlib import Path | |
| from typing import Any, Dict, Optional | |
| class ClientConfig: | |
| hostname: str | |
| database: str | |
| username: str | |
| password: str | |
| port: int = 5432 | |
| return_pandas_dataframe: bool = True | |
| log_level: str = "INFO" | |
| user_dir: Optional[Path] = None | |
| def sql_url(self): | |
| return "postgresql://%s:%s@%s:%s/%s" % ( | |
| self.username, | |
| self.password, | |
| self.hostname, | |
| self.port, | |
| self.database, | |
| ) | |
| def to_dict(self) -> Dict[str, Any]: | |
| return asdict(self) | |
| def from_dict(params: Dict[str, Any]) -> "ClientConfig": | |
| return ClientConfig(**params) | |
Xet Storage Details
- Size:
- 760 Bytes
- Xet hash:
- 9ec8d6a0dd0110ad60e552da2401369e9683ad8409578c67084d3330ba479210
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.