Python bindings for Swiss pairing algorithm for (not only) Magic: The Gathering.
Project description
swisspair-python
A python client for https://github.com/karlosss/swisspair - algorithm to pair players according to the Swiss system (not only) for Magic: The Gathering
Requirements
pybind11gcccmakegmp
Installation
Pip installation
pip install swisspair
At the moment works only on Linux.
Local installation
- Requirements:
pybind11,gcc,cmake,gmp - Clone the repository
python -m build- In your project, do
pip install <PATH_TO_THE_CLONED_REPOSITORY>
Docker image
You can also use swisspair through a dockerized HTTP API. Refer to https://github.com/karlosss/swisspair-python-http-api.
Usage
The basic interface is as follows:
from swisspair import Player, create_matches
players = [Player(id="P1", points=3, rank=1), Player(id="P2", points=0, rank=2)]
matches = create_matches(players)
print(matches)
For all available parameters, please refer to the interface file.
License
MIT, whatever it means. If you like this project, I would be happy for a star :)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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 swisspair-0.1.1.tar.gz.
File metadata
- Download URL: swisspair-0.1.1.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
869c8b7f77023cf96c05ff4069b0be048744ebba86b4f223c66d43dc2a761e8f
|
|
| MD5 |
605de02d484f1206bf6fb0eabf9492bc
|
|
| BLAKE2b-256 |
8f3b71034ecf3dcb6ceab82be9059470012590baff7906473b0ab7b5b99ccb04
|
File details
Details for the file swisspair-0.1.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 498.3 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6efa8568f585d55d7f1704dc80eb70552e41f04fccb584a603f4f0eccb71ec1
|
|
| MD5 |
ae1d637d69ef34618c31dc3bfc244f32
|
|
| BLAKE2b-256 |
0a4716e54d7f3f422a61109a21ce03cd12c9c8a22e1110ecfeb908b7a8c469f5
|
File details
Details for the file swisspair-0.1.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 494.8 kB
- Tags: PyPy, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a68c5e9efc2fbdcfaf599fe67a7946e48ac60980a88ea252b03d4933ac570d4b
|
|
| MD5 |
9b49123bfad91ad3ed1727a7c6fc02b1
|
|
| BLAKE2b-256 |
5192bd0b4ac40d74c9ec397d0ca77e5c682b1271dbdc9aa2438c38b278f816f6
|
File details
Details for the file swisspair-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 498.3 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1335630145587e4775270d3fb68638b5618189ce03a78a62a675f9cd64d9b069
|
|
| MD5 |
87afd38f9a792ac55501b85f85cc9597
|
|
| BLAKE2b-256 |
c1357dac764362d16a78ae180e33d0630e233e4bd5053bbf4ac93f66c643d4b9
|
File details
Details for the file swisspair-0.1.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 494.7 kB
- Tags: PyPy, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cedb20d2cee37e5095276b9939e888234959260fb50c8a9e14d62a4130378cf
|
|
| MD5 |
4b9ddb1483233d100a4261960c1b9082
|
|
| BLAKE2b-256 |
14bb6678f8753e40091a429d451a1de70e06224ecaca0a8835077ad76276b484
|
File details
Details for the file swisspair-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e71baa52fb15ae5c858cfe5e9989ecbafac508c571668173240f8f9ea6de520
|
|
| MD5 |
de42d0ed827fa7e460189a889b6a6487
|
|
| BLAKE2b-256 |
b2cbfabc8e96595609d7c52faa15cdabec55119d0ac86b8447d4bc27327b8d4e
|
File details
Details for the file swisspair-0.1.1-cp313-cp313-musllinux_1_2_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp313-cp313-musllinux_1_2_i686.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f053631629a558fd7e675488f1ff01f904ca9b621a7aa50354a163595979064
|
|
| MD5 |
bbae96ce47020d4941378fbf37576452
|
|
| BLAKE2b-256 |
f6265c7fee118d61133617f6dc076e5c2a7ac0384d8e82125109b3a80c66c1f3
|
File details
Details for the file swisspair-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 499.4 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d40b9ec6b6981edfd5e20c053583d8d46c81a2b7470519ac7218b8d7c13f8f19
|
|
| MD5 |
023ad87e69bc7cf1212dcae2c8bfeb5a
|
|
| BLAKE2b-256 |
6b2b2f8358ad46996aaa49bf19422dd18f63d48d4456bf334601d3075a75e913
|
File details
Details for the file swisspair-0.1.1-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 496.2 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3e84783440aa3d39695c8e8ba95b0602185fa1fd417be28b5434279bdc81d27
|
|
| MD5 |
c7f6281ffbf09772eca82f3305dc4461
|
|
| BLAKE2b-256 |
af923626115f5baaa728835a3e2cea269d6194e5b9516858e5279b48fb12c9c7
|
File details
Details for the file swisspair-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a165cd79fdd5fd783d0b12ea800bf5629d64f40fbb656e92582dd3dfe039c0e6
|
|
| MD5 |
56b237e7a6ad7b97d8db0beb10428770
|
|
| BLAKE2b-256 |
247ea8fc70e0aa134cd300265fa1742b4ab66932023fabb959c8ff8655ab5f7d
|
File details
Details for the file swisspair-0.1.1-cp312-cp312-musllinux_1_2_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp312-cp312-musllinux_1_2_i686.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f4757993a9b9244aa60cec8450c6ff9c6c557d77a06b717d3dd94812b1e97a8
|
|
| MD5 |
8334238681782ffb87167ce9e1ed03f6
|
|
| BLAKE2b-256 |
1d19f8e42a8d9ce8e116ba82eccd9de550df9dc70559ac3a9b337b6edb1b7a79
|
File details
Details for the file swisspair-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 499.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a1b07c413478aaa9350add26efd6e599821bf2a91299b82586ef3d1faff1365
|
|
| MD5 |
bf8abbc296036d821efcb7ca3a333493
|
|
| BLAKE2b-256 |
44844a5a81d24d94529d3296ef167ee4c1a2eb19bd732e2349507475e2bc2f27
|
File details
Details for the file swisspair-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 496.2 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c79c770fba2ea5ad534fc6ba6368791bfbb84fa9459dde8426245f74a070d19a
|
|
| MD5 |
c70eee53ff01069242a18a646715fa4a
|
|
| BLAKE2b-256 |
5e5fe605e92ee20e00376d61f2f189e49aba80a7f5e0e95f193d7b62aa420162
|
File details
Details for the file swisspair-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
053e23d4e2324e0efeeb64c205a609366c1e5499cd87d559a4e790f0d3373678
|
|
| MD5 |
58cf454e4499d474331db98cc60353e3
|
|
| BLAKE2b-256 |
c426f63dd2a7b9676232744a504a32853bc3870738ddbb5bd25f39d9199d0d4f
|
File details
Details for the file swisspair-0.1.1-cp311-cp311-musllinux_1_2_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp311-cp311-musllinux_1_2_i686.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d371ad9105899ade68ca6244067313a872fcc2867f9916d2ee61d9eb01d0385
|
|
| MD5 |
622a309567a57114f22f25c9ee0299cf
|
|
| BLAKE2b-256 |
acda4b8c3ba67824fdcf419b5630de8297cea4afe2b47101f6d96e4604c3de05
|
File details
Details for the file swisspair-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 500.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efc807a2daf0f5dbbe83ae87847434194098e2a8f8748167df0261a87a93610a
|
|
| MD5 |
8179061d5a0230e90fc6d617f05fa470
|
|
| BLAKE2b-256 |
d740499f00a312309d558946e09420d9596f306bde51cb0b15357e7f4cfe84a9
|
File details
Details for the file swisspair-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 496.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28733b269ba9381528b8bbe4c6be2408b063d7d2683f1861288f7ddedf45eed9
|
|
| MD5 |
28a3d4fbd463f1c9855ad2326fb93110
|
|
| BLAKE2b-256 |
f99be2bf248ec5ce6febd1a92089276527924f1662f0b1520a7e4004fd567ac3
|
File details
Details for the file swisspair-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e721e68af63a0857567399becc47807201234b4cc67a9b3341bb230403c4ac3
|
|
| MD5 |
a6763a18d6e5138566170ed2bffd3ddb
|
|
| BLAKE2b-256 |
6da47e0bb3bc2c3444b57e0be9c7ec6501754f4a3451120aa1d58d0bc2fecb9c
|
File details
Details for the file swisspair-0.1.1-cp310-cp310-musllinux_1_2_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp310-cp310-musllinux_1_2_i686.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9ee3630680b40a02382b356688fab61e9a2c1fd0a975d84a39c814032c2a90c
|
|
| MD5 |
78ddd529ed7145926a0df33de28a94a0
|
|
| BLAKE2b-256 |
59d074c97c454c119ac3a0155714a2243418530d14158a87a5ac87cf605a2fa3
|
File details
Details for the file swisspair-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 498.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5799d6f8dbec27ce7a3c430c55e1a9422771136422d803c27c2f650bde4b2c64
|
|
| MD5 |
e9fcb4ac6d763d05f3ff2d09fedd5ade
|
|
| BLAKE2b-256 |
bc3b58044f095098b9dc85457e18fa5a59cbd46c8e304c56a535047867b43dbf
|
File details
Details for the file swisspair-0.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 495.2 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d5a32cac8c6376ba537d6e64102f812e42e052024595fd9589232097cea9b98
|
|
| MD5 |
047a3a0576ebf677eb294d58250fda2d
|
|
| BLAKE2b-256 |
82bca794f8ba5241f1476299f1082dc1778cb577c9ea12b39cc09dbc5d539a6c
|
File details
Details for the file swisspair-0.1.1-cp39-cp39-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp39-cp39-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84900212fd43b3e4e5c4e1b131a01b324804e9171eca70009bcb516c1d540bb5
|
|
| MD5 |
f8184f8665b19f225aba7ee0dbe8120b
|
|
| BLAKE2b-256 |
eeea3dc1d1243882cd78d821d50e0b07cce28a4c192dc566bc1bd58cc6fc75d1
|
File details
Details for the file swisspair-0.1.1-cp39-cp39-musllinux_1_2_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp39-cp39-musllinux_1_2_i686.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.9, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0de01b3fe2b9ad2f1e3d962ee02bb981df4b44ad1e8af13b4c53a2a414046b5
|
|
| MD5 |
0c75e315bf4c73d0a3be1d5eab567f4e
|
|
| BLAKE2b-256 |
faa3b095112a37f9428127f588798cc40ec1f6c214db242975a0236052346209
|
File details
Details for the file swisspair-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: swisspair-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 498.8 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fa6effad958b278542207c385d80fad017076288881a8876837518d515523cf
|
|
| MD5 |
d54ac0f09e337880ae882d3cf366022b
|
|
| BLAKE2b-256 |
c26433d803a2703a9551ad6fc54ac9ce08cbd4de9985a0c7554f3cec4d98cf87
|
File details
Details for the file swisspair-0.1.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: swisspair-0.1.1-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 495.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc77cef6ea6291ab46d68315fa38373ac3cf86a3f37c9a49e8fbe90469c626e
|
|
| MD5 |
c3473fff561c68d9dbfa4f3a851ce761
|
|
| BLAKE2b-256 |
5e2e6b32fd30a1ec2675d66a5bf8276abdfa653ad80ec02c4db613a1a16c7ea6
|