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.31.tar.gz
.
File metadata
- Download URL: preflibtools-2.0.31.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 | 2b56b7f10a12ad6ad6f7e30bf8c56e298194a8525084aff7863924c9930dc878 |
|
MD5 | ef3eea3eb205f1d059374bd2acc7baf5 |
|
BLAKE2b-256 | a0a095630a2237a14cfcbaebfdbd354084e6d9fb8e222ad16ba5906e3bc72177 |
File details
Details for the file preflibtools-2.0.31-py3-none-any.whl
.
File metadata
- Download URL: preflibtools-2.0.31-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 | d9f48eb159fc0b377f61daf7d65fa02208cabbe9fec7a0532af7f0833415e095 |
|
MD5 | 0b337f43b6d64bef2650376605a11617 |
|
BLAKE2b-256 | 2678cf6d6c941b7d5c1467b8a24b566637f417f0a5e56790d4ccdf35d8ec3e37 |