wtv
An implementation of ion selection based on WTV-2.0
Project Setup
Using uv (Recommended)
-
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
-
Clone the repository:
git clone https://github.com/RECETOX/wtv.git cd wtv
-
Sync dependencies and create virtual environment:
uv sync --all-extras
-
Run commands within the virtual environment:
uv run wtv-cli --help
Using pip
- Install the library directly from PyPI:
pip install wtv
Running Tests
Using pytest
-
Ensure you have the development dependencies installed:
uv sync --all-extras
-
Run tests with pytest:
uv run pytest
-
Run tests with verbose output:
uv run pytest -v
-
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 packagedist/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:
-
Serve the documentation:
uv run mkdocs serve
-
Access the documentation: Open your browser and navigate to
http://127.0.0.1:8000to 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:
-
Install act: Download and install
actfrom its GitHub repository. -
Set Up Secrets: Create a
.secretsfile in the root of your repository and define the required secrets:PYPI_API_TOKEN=your-real-or-mock-token-for-testing -
Run All Workflows:
act
-
Run a Specific Workflow:
act -W .github/workflows/package.yaml act -W .github/workflows/publish.yml
-
Simulate Events:
act -e push
-
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24bd166cd8355b21b6cc498a03431f20f54fcd765293c8a42dde39f4fde69342
|
|
| MD5 |
69ee7473b94c8744c6c45ed8f2412fed
|
|
| BLAKE2b-256 |
2183bde5480c1876ec96800096a33ff1f15d71e56ae7f5c884427aa8a173a2c4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0929623099b55a24db6ae2362c712853f85ba99003b56e17f5a8b2e0e15d6ac0
|
|
| MD5 |
06de037b363cf5cfcb1f9a963948367d
|
|
| BLAKE2b-256 |
b2b21f767a36714862ac0f61afa9d51ec36673abb52f7b6ad066e4e8bf272595
|