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.4.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: desota-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 65181e49ed1b171077bb98de9eade3f5ac3bc4339b64a19d8e1f3f16d44a45b5
MD5 814240f07edfc0cf8a7c44fa2802b63d
BLAKE2b-256 ca63c4f1ae16c16d66cfd133de67420d25ac62afddb9829ca13b2d25fa9b0e99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: desota-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e766fc0189e3a7990a9df44dfb05b7f8aad8b082aecc07629799c195c29c1ea9
MD5 ae5ae4ed8e160ce9774b938733bf3a4e
BLAKE2b-256 6bedc5aba6496116c49adfbf5d30a6523523ab44a470f546db4a248a08ad94f4

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