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.
Metadata
Release files for wtv 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wtv-0.2.1.tar.gz | 332.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wtv-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 361.7 kB
Release files / wtv-0.2.1.tar.gz
| Download URL | wtv-0.2.1.tar.gz |
|---|---|
| Size | 332.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24bd166cd8355b21b6cc498a03431f20f54fcd765293c8a42dde39f4fde69342
|
|
BLAKE2b-256 checksum How to use checksums |
2183bde5480c1876ec96800096a33ff1f15d71e56ae7f5c884427aa8a173a2c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / wtv-0.2.1-py3-none-any.whl
| Download URL | wtv-0.2.1-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0929623099b55a24db6ae2362c712853f85ba99003b56e17f5a8b2e0e15d6ac0
|
|
BLAKE2b-256 checksum How to use checksums |
b2b21f767a36714862ac0f61afa9d51ec36673abb52f7b6ad066e4e8bf272595
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for wtv 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.