Non-search based routines for perfect stranger matching in behavioural studies.
Project description
perfect_strangers
Table of Contents
Installation
pip install perfect-strangers
Quick Start
Create a Matcher
To get started import the create_matcher() function:
from perfect_strangers import create_matcher
This function returns a group matcher object which will produce the longest sequence of perfect stranger matched rounds for the given experiment parameters.
groups_per_round = 5 # Number of groups per round of the experiment.
group_size = 3 # Number of participants per group.
matcher = create_matcher(groups_per_round, group_size)
For each round of the experiment call groups_for_next_round() on the matcher object to get the participant groupings.
groups = matcher.groups_for_next_round()
License
perfect-strangers is distributed under the terms of the MIT license.
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
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 perfect_strangers-0.1.1.tar.gz.
File metadata
- Download URL: perfect_strangers-0.1.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"arm64","distro":{"name":"macOS","version":"26.5"},"implementation":{"name":"CPython","version":"3.13.13"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.6.2 7 Apr 2026","python":"3.13.13","system":{"name":"Darwin","release":"25.5.0"}} HTTPX2/2.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14769036fc70f291bec5bb9b3d4a6e09646431533764f7d28798a43d6ec44648
|
|
| MD5 |
9906c987fc8f30c63d0a23ac4b8487dc
|
|
| BLAKE2b-256 |
614f54e487c296959db4608560681afe237555534051818251f9285b05e98336
|
File details
Details for the file perfect_strangers-0.1.1-py3-none-any.whl.
File metadata
- Download URL: perfect_strangers-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"arm64","distro":{"name":"macOS","version":"26.5"},"implementation":{"name":"CPython","version":"3.13.13"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.6.2 7 Apr 2026","python":"3.13.13","system":{"name":"Darwin","release":"25.5.0"}} HTTPX2/2.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf4bd87e12ca7cb6b77a6234a0f8979a6a7d9c665e9e4e54f1c577ee405b20f0
|
|
| MD5 |
ce06d3ef5d187fb8c5b31ace102fdae7
|
|
| BLAKE2b-256 |
3f344eb0dabf1d6ac319ae24ce7c2790c17df34b52ec39c61ec9da12effc8f86
|