Skip to main content

Generates alt text for UpSet plots

Project description

:sparkles: upset-alt-txt-gen Tests

Design experiments for generating semantically meaningful alt-text for UpSet Plots.

Local Deployment

  1. Clone the repository using git clone or download and extract the zip file.
  2. Ensure you have python version >= 3.8.10 installed.
  3. Open a terminal in the repository directory and create and activate a python virtual environment running at least Python 3.8.10. For information on how to do this, navigate here.
  4. Install the required dependencies using pip install -r requirements.txt.
  5. (Optional) Install the required development dependencies using pip install -r requirements_dev.txt. These are only required if you plan on running the tests or linting.
  6. Install the alttxt module in development mode with pip install -e .

To run the program with the example data, run python [path/to/alttxt directory] --data ../../data/movie_data_card_sort.json Level and granularity can be changed to any of the options listed in Command Line Options. Here is an example command: For unix/macOS: python3 src/alttxt --data data/movie_data_dev_sort.json For Windows: python src/alttxt --data data/movie_data_dev_sort.json

Local Testing

Local testing can be done using the tox command. Tests have not been updated to match the latest updates to the repository, and updating them is currently on hold, as deployment is a priority over robustness.

  • Linting: To run the linting tests, run tox -e lint
  • Type: To run the type tests, run tox -e type
  • Tests: To run the python tests, run tox -e test
  • Formatting: To automatically format the files to match the flake8-black standards, run tox -e format

To run the entire suite of tests at once, use tox.

Command Line Options

Command Description
-h, --help Show information on each command and exit.
-V, --version Show the program version number and exit.
-D, --data (Required) Relative path to data file.
-l, --level Semantic level. Defaults to a combination of all levels. Options are: 1, 2.
-st, --structured Returns information in JSON format that contains structured text (long description), alt-txt (short description), and technical description of the plot making strategy
-t, --title A title for the plot; used in some generations. Defaults to has no title.
------------------------ -------------------------------------------------------------------------------------------------

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

upset-alttxt-0.3.6.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

upset_alttxt-0.3.6-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file upset-alttxt-0.3.6.tar.gz.

File metadata

  • Download URL: upset-alttxt-0.3.6.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for upset-alttxt-0.3.6.tar.gz
Algorithm Hash digest
SHA256 26e0ac87901300c9c37825628c15a8ee0843ddf09ccae318eec484dcb3b16854
MD5 4c2c5514f197a8a1b567b733cf963510
BLAKE2b-256 fd391cb00cd16ec4253cf8a3b07d801d5f3d2db5b337d44729992c785c0a3bd9

See more details on using hashes here.

Provenance

File details

Details for the file upset_alttxt-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: upset_alttxt-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for upset_alttxt-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ac5db7161b2d7efbc0c146e0cdeadfb8d2c149d4a314c6e63daab99a665bac1d
MD5 5b7935e228b9262908ae74a3293ec02b
BLAKE2b-256 4d6c5d8a106e6981c1de3785181b668e35c536fe4fa7da2a1c974c092280f969

See more details on using hashes here.

Provenance

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