Skip to content

Commit 6d3553c

Browse files
authored
feat: adds route to fetch exaspim info (#22)
1 parent 871178d commit 6d3553c

13 files changed

Lines changed: 4727 additions & 27 deletions

File tree

aind-smartsheet-service-server/pyproject.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,15 @@ fail-under = 100
9595
asyncio_mode="auto"
9696
asyncio_default_fixture_loop_scope="function"
9797
env = [
98-
"SMARTSHEET_ACCESS_TOKEN=abcdef",
99-
"SMARTSHEET_FUNDING_ID=123",
100-
"SMARTSHEET_PROTOCOLS_ID=456",
101-
"SMARTSHEET_PERFUSIONS_ID=789",
98+
"SMARTSHEET_ACCESS_TOKEN=abcdef2",
99+
"SMARTSHEET_ACCESS_TOKEN_2=uvwxyz3",
100+
"SMARTSHEET_FUNDING_ID=100",
101+
"SMARTSHEET_PROTOCOLS_ID=101",
102+
"SMARTSHEET_PERFUSIONS_ID=102",
103+
"SMARTSHEET_MOUSE_TRACKER_ID=103",
104+
"SMARTSHEET_SAMPLE_TRACKING_ID=104",
105+
"SMARTSHEET_IMAGING_QUEUE_ID=105",
106+
"SMARTSHEET_EXASPIM_QC_SHEET_ID=106"
102107
]
103108
filterwarnings = [
104109
# Warning originating from smartsheet-python-sdk

aind-smartsheet-service-server/src/aind_smartsheet_service_server/configs.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class Settings(SecretsManagerBaseSettings):
1313
access_token: SecretStr = Field(
1414
..., description="API token. Can be created in Smartsheet UI."
1515
)
16+
access_token_2: SecretStr = Field(
17+
...,
18+
description="API token for fetching exaSPIM Smartsheets.",
19+
)
1620
user_agent: Optional[str] = Field(
1721
default="aind-smartsheet-service-server",
1822
description=(
@@ -30,6 +34,22 @@ class Settings(SecretsManagerBaseSettings):
3034
protocols_id: int = Field(
3135
..., description="SmartSheet ID of protocols info"
3236
)
37+
mouse_tracker_id: int = Field(
38+
..., description="SmartSheet ID of mouse tracker info"
39+
)
40+
sample_tracking_id: int = Field(
41+
..., description="SmartSheet ID of sample tracking info"
42+
)
43+
imaging_queue_id: int = Field(
44+
..., description="SmartSheet ID of imaging queue info"
45+
)
46+
exaspim_qc_sheet_id: int = Field(
47+
..., description="SmartSheet ID of exaSPIM QC sheet info"
48+
)
49+
app_concurrency_limit: int = Field(
50+
default=2,
51+
description="Limit number of large sheets being downloaded at once.",
52+
)
3353
redis_url: Optional[RedisDsn] = Field(default=None)
3454
model_config = SettingsConfigDict(env_prefix="SMARTSHEET_")
3555

0 commit comments

Comments
 (0)