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

Uploaded Source

Built Distribution

desota-0.0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: desota-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4da311a1ab8cceffde951246cd26bec7ec7e6d9fbb98dcdd6fe07fc61be4ebee
MD5 846435a6e478781b93807f8bfe32245b
BLAKE2b-256 c9ab876422638803cbb24793460106613889bc2c3da7bb5867aed018a616a618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: desota-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be6204f4942b0693fd29d96610ae3aec7aa57720e65f07e8a071bd8fb3ec2e00
MD5 3c0895597acecf23d1d1504607d1a7d3
BLAKE2b-256 c685e72f8d1ac26c3a4f01ede2b597814d29725eeb30ac9fcf82ebbe56e08cef

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