Buckets:

download
raw
1.39 kB
import io
from abc import ABC, abstractmethod
from typing import List
from pydantic import EmailStr
from docknet.schema import File, Project, ProjectCreation, User, UserRegistration
class SeedOperations(ABC):
@abstractmethod
def create_user(
self,
user_input: UserRegistration = UserRegistration(
username="Foo", email=EmailStr("foo@bar.com"), password="Foobar"
),
) -> User:
pass
@abstractmethod
def create_users(self, amount: int) -> List[User]:
pass
@abstractmethod
def create_project(
self,
project_input: ProjectCreation = ProjectCreation(
id="my-test-project", display_name="My Test Project!"
),
) -> Project:
pass
@abstractmethod
def create_projects(self, amount: int) -> List[Project]:
pass
@abstractmethod
def create_file(
self,
project_id: str,
file_key: str = "my-test-file",
max_number_chars: int = 200,
) -> File:
pass
@abstractmethod
def create_files(
self,
project_id: str,
number_of_files: int,
prefix: str = "my-test-file",
max_number_chars: int = 200,
) -> List[File]:
pass
@abstractmethod
def create_file_stream(
self,
max_number_chars: int = 200,
) -> io.BytesIO:
pass

Xet Storage Details

Size:
1.39 kB
·
Xet hash:
595d418e576d167f1860e8feb476322f8dd3e79ad91c85fbcd8e20f7fbd7d881

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.