steamship.experimental.easy package#

Submodules#

steamship.experimental.easy.blockify module#

Blockifies a file using a best effort guess based on mime-type.

steamship.experimental.easy.blockify.blockify(file: File, mime_type: Optional[MimeTypes] = None) Task[source]#

Scrape a file via URL, returning a File object no matter what.

steamship.experimental.easy.scrape module#

Quickly adds a file by either downloading it or using a plugin to scrape it. Always returns a File object.

steamship.experimental.easy.scrape.scrape(client: Steamship, url: str, tags: Optional[List[Tag]] = None) File[source]#

Scrape a file via URL, returning a File object no matter what.

steamship.experimental.easy.tags module#

steamship.experimental.easy.tags.get_tag_value_key(tags: Optional[List[Tag]], key: str, kind: Optional[str] = None, name: Optional[str] = None) Optional[any][source]#

Iterates through a list of tags and returns the first that contains the provided Kind/Name/ValueKey.

Module contents#

steamship.experimental.easy.blockify(file: File, mime_type: Optional[MimeTypes] = None) Task[source]#

Scrape a file via URL, returning a File object no matter what.

steamship.experimental.easy.scrape(client: Steamship, url: str, tags: Optional[List[Tag]] = None) File[source]#

Scrape a file via URL, returning a File object no matter what.