A set of tools to work with preference data from the PrefLib.org website.
Project description
Preflibtools
Overview
The PrefLib-Tools is a set of Python tools developed to work with preference data from the PrefLib.org website.
This package provides input and output operations on PrefLib instances, together with some additional functionalities on the instances: Testing whether a Condorcet winner exists, whether the instance is single-peaked, etc...
We developed this package in the hope of making the use of PrefLib instances easy. This has been done in the same spirit as PrefLib: Providing tools for the community with the help of the community. If you want to contribute, feel free to create pull requests. If you have a question, a remark, or encounter a problem, please open an issue, create a pull request etc...
The full documentation of the package can be found there: https://preflib.github.io/preflibtools/.
If, for some reasons, you are looking for the older version of the PrefLib-Tools, it is still available in the GitHub repository Preflib-Tools-Old.
Installation
The installation is as easy as:
pip3 install preflibtools
Documentation
The complete documentation is available here.
GitHub Workflow
Publishing on PyPI
The pipeline between GitHub and PyPI is automatised. To push a new version do the following:
- Update the
pyproject.toml
with the new version number. - Update the
pabutools/__init__.py
with the new version number. - On GitHub, create a new release tagged with the new version number (only admins can do that), on this page.
- You're done, the new version of the package is automatically pushed to PyPI after the creation of a GitHub release.
Building the Docs
If the docs-source has been updated but the docs/
folder has not, you can build the docs via
a GitHub action here: https://github.com/PrefLib/preflibtools/actions/workflows/docs.yml.
Simply click "Run workflow" and the docs will be built and the built files will be pushed back to
the server.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file preflibtools-2.0.32.tar.gz
.
File metadata
- Download URL: preflibtools-2.0.32.tar.gz
- Upload date:
- Size: 61.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765da869a4eb3113486aebf5226888db07e3e446165e18136dcf8741698eea1b |
|
MD5 | 0a3aef64842c119676fafbc3e87f27ae |
|
BLAKE2b-256 | 57f8dfdb27f8ffee95d91489f56f9a863859b09f2b46bcbb1cb6ce07af61b1c4 |
File details
Details for the file preflibtools-2.0.32-py3-none-any.whl
.
File metadata
- Download URL: preflibtools-2.0.32-py3-none-any.whl
- Upload date:
- Size: 76.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83d939f5306281325d7e27ad29f93a136b036d3022764a644edab8f75f48485d |
|
MD5 | 3d879a8be4133c44e3a4bd027180f9fa |
|
BLAKE2b-256 | cd9449e898c6ea5291ac60d147afcfe684e05c4597e8d5a20656c286b015df20 |