Skip to content

Commit

Permalink
updated requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston-Hsiao committed Aug 3, 2024
1 parent e8f453a commit 1b746a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 3 additions & 12 deletions store/app/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import time
from datetime import datetime, timedelta
from typing import Optional, Self, Set, Literal
from typing import Literal, Optional, Self, Set

from pydantic import BaseModel, EmailStr

Expand Down Expand Up @@ -83,11 +83,7 @@ class OAuthKey(RobolistBaseModel):

@classmethod
def create(cls, user_id: str, provider: str, token: str) -> Self:
return cls(
id=new_uuid(),
user_id=user_id,
provider=provider,
token=token),
return (cls(id=new_uuid(), user_id=user_id, provider=provider, token=token),)


APIKeySource = Literal["user", "oauth"]
Expand Down Expand Up @@ -118,12 +114,7 @@ def create(
if permissions == "full":
permissions = {"read", "write", "admin"}
ttl_timestamp = int((datetime.utcnow() + timedelta(days=90)).timestamp())
return cls(
id=new_uuid(),
user_id=user_id,
source=source,
permissions=permissions,
ttl=ttl_timestamp),
return (cls(id=new_uuid(), user_id=user_id, source=source, permissions=permissions, ttl=ttl_timestamp),)


ArtifactSize = Literal["small", "large"]
Expand Down
2 changes: 2 additions & 0 deletions store/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
omegaconf
bson
pydantic
email-validator

# AWS dependencies.
aioboto3

# Crypto dependencies
argon2-cffi
pyjwt[asyncio]
bcrypt

# FastAPI dependencies.
aiohttp
Expand Down

0 comments on commit 1b746a2

Please sign in to comment.