Skip to main content

PyPI - Version Conda Version

wtv

An implementation of ion selection based on WTV-2.0

Project Setup

Using uv (Recommended)

  1. Install uv if you haven't already:

    # Using pip
    pip install uv
    
    # Or using Homebrew on macOS
    brew install uv
    
    # Or using curl
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. Clone the repository:

    git clone https://github.com/RECETOX/wtv.git
    cd wtv
    
  3. Sync dependencies and create virtual environment:

    uv sync --all-extras
    
  4. Run commands within the virtual environment:

    uv run wtv-cli --help
    

Using pip

  1. Install the library directly from PyPI:
    pip install wtv
    

Running Tests

Using pytest

  1. Ensure you have the development dependencies installed:

    uv sync --all-extras
    
  2. Run tests with pytest:

    uv run pytest
    
  3. Run tests with verbose output:

    uv run pytest -v
    
  4. Generate a test coverage report:

    uv run pytest --cov=wtv
    

Building the Package

To build distribution packages (wheel and source distribution):

uv build

This will create:

  • dist/wtv-<version>-py3-none-any.whl - Wheel package
  • dist/wtv-<version>.tar.gz - Source distribution

Verify the installation after building:

pip install dist/wtv-*.whl
wtv-cli --help

Documentation

Testing Documentation Locally

To test the documentation locally:

  1. Serve the documentation:

    uv run mkdocs serve
    
  2. Access the documentation: Open your browser and navigate to http://127.0.0.1:8000 to view the documentation.

See the docs folder for more information.

Documentation Deployment

This project uses GitHub Actions to auto-generate and deploy documentation to GitHub Pages.

Running GitHub Actions Locally with act

To run all GitHub Actions workflows locally using act:

  1. Install act: Download and install act from its GitHub repository.

  2. Set Up Secrets: Create a .secrets file in the root of your repository and define the required secrets:

    PYPI_API_TOKEN=your-real-or-mock-token-for-testing
    
  3. Run All Workflows:

    act
    
  4. Run a Specific Workflow:

    act -W .github/workflows/package.yaml
    act -W .github/workflows/publish.yml
    
  5. Simulate Events:

    act -e push
    
  6. Use a Specific Runner:

    act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
    

Known Issues

  • It seems to generate slightly different results based on the OS version and/or Python version.

Acknowledgements

This project is based on the original work by Honglun Yuan, Yiding Jiangfang, Zhenhua Liu, Rong Rong Su, Qiao Li, Chuanying Fang, Sishu Huang, Xianqing Liu, Alisdair Robert Fernie, and Jie Luo, as published in WTV_2.0 and their associated publication.

Download files

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

Source Distribution

wtv-0.2.1.tar.gz (332.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wtv-0.2.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file wtv-0.2.1.tar.gz.

File metadata

  • Download URL: wtv-0.2.1.tar.gz
  • Upload date:
  • Size: 332.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wtv-0.2.1.tar.gz
Algorithm Hash digest
SHA256 24bd166cd8355b21b6cc498a03431f20f54fcd765293c8a42dde39f4fde69342
MD5 69ee7473b94c8744c6c45ed8f2412fed
BLAKE2b-256 2183bde5480c1876ec96800096a33ff1f15d71e56ae7f5c884427aa8a173a2c4

See more details on using hashes here.

File details

Details for the file wtv-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: wtv-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wtv-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0929623099b55a24db6ae2362c712853f85ba99003b56e17f5a8b2e0e15d6ac0
MD5 06de037b363cf5cfcb1f9a963948367d
BLAKE2b-256 b2b21f767a36714862ac0f61afa9d51ec36673abb52f7b6ad066e4e8bf272595

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.1.0

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page