Skip to main content

DeSOTA Tools Package

Project description

Logo_DeSota

DeSOTA Preferred Installer Program

pip install desota

Packages

detools

from desota import detools

detools.get_model_req

Converts the model request, a YAML file created BY DeRunner, into a python dictionary.

def get_model_req(req_path: str) -> dict:
    """
    :param req_path: path to model request YAML file
    :return: model request arguments in dictionary format
    """ 

detools.get_request_text

Get Text Arguments from DeSOTA Model request

def get_request_text(model_request_dict) -> list:
    """
    :param model_request_dict: model request retrieved from `detools.get_model_req`
    :return: List[] with text arguments from model request
    """ 

detools.get_request_audio

Get (download) Audio Arguments from DeSOTA Model request

def get_request_audio(model_request_dict: dict) -> list:
    """
    :param model_request_dict: model request retrieved from `detools.get_model_req`
    :return: List[] with audio file paths downloaded from model request
    """ 

detools.get_request_video

Get (download) Video Arguments from DeSOTA Model request

def get_request_video(model_request_dict: dict) -> list:
    """
    :param model_request_dict: model request retrieved from `detools.get_model_req`
    :return: List[] with video file paths downloaded from model request
    """ 

detools.get_request_image

Get (download) Image Arguments from DeSOTA Model request

def get_request_image(model_request_dict: dict) -> list:
    """
    :param model_request_dict: model request retrieved from `detools.get_model_req`
    :return: List[] with image file paths downloaded from model request
    """ 

detools.get_request_file

Get (download) File Arguments from DeSOTA Model request

def get_request_file(model_request_dict: dict) -> list:
    """
    :param model_request_dict: model request retrieved from `detools.get_model_req`
    :return: List[] with file paths downloaded from model request
    """ 

detools.get_request_qa

Get Question-Answer Arguments from DeSOTA Model request

def get_request_qa(model_request_dict: dict) -> (list, list):
    """
    :param model_request_dict: model request retrieved from `detools.get_model_req`
    :return: Tuple() with model request `context` and `questions`, respectively.
    """ 

detools.get_request_url

Get URL Arguments from DeSOTA Model request

def get_request_url(model_request_dict: dict) -> list:
    """
    :param model_request_dict: model request retrieved from `detools.get_model_req`
    :return: List[] with URL arguments from model request
    """ 

detools.get_request_html

Get HTML Files from DeSOTA Model request

def get_request_html(model_request_dict: dict, from_url: bool = False) -> list((str, str)):
    """
    :param model_request_dict: model request retrieved from `detools.get_model_req`
    :param from_url: [OPTIONAL] Get HTLM file from URL
    :return: List[] with html arguments from model request as tuple (html_path, html_encoding)
    """ 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desota-0.0.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

desota-0.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file desota-0.0.3.tar.gz.

File metadata

  • Download URL: desota-0.0.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for desota-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b09c07f136873d5c25f27d92cf9ea0560a167badd029a979dfb05acc6abe2231
MD5 a12ee0d5ea72f93632f37987182384eb
BLAKE2b-256 e3ef611fb41ad4692d1e5a4f88ca80de2be3d748cef3a18ff2614376caa8a868

See more details on using hashes here.

File details

Details for the file desota-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: desota-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for desota-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe02087fdfdd79b4307d9a204064daaf1c08993387c91e2f37929d9ef97e0003
MD5 f4e41f021af6d47124bf5d1f15a08ce5
BLAKE2b-256 07a3454ebcb431efcf8156806cf58c73cb7ba748014c114c961f2dc0505449da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page