Skip to main content

Non-search based routines for perfect stranger matching in behavioural studies.

Project description

perfect_strangers

PyPI - Version PyPI - Python Version Test Status

Table of Contents

Installation

pip install perfect-strangers

Documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

perfect_strangers-0.1.8.tar.gz (49.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

perfect_strangers-0.1.8-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file perfect_strangers-0.1.8.tar.gz.

File metadata

  • Download URL: perfect_strangers-0.1.8.tar.gz
  • Upload date:
  • Size: 49.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for perfect_strangers-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a3fb71efb78f52ece825cb0706d534a0f294e926c5be8867d67e2bcb49bb69f7
MD5 0560fe936748bdf4dc7c19173dc122c9
BLAKE2b-256 a7c133724d30d715d988fe2a01ef2efd45f510734fcc5daea5dc0b4a0f631cde

See more details on using hashes here.

Provenance

The following attestation bundles were made for perfect_strangers-0.1.8.tar.gz:

Publisher: publish.yml on seanlikeskites/perfect-strangers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file perfect_strangers-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for perfect_strangers-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 75a4496f91e0c91f09114ac87ee9bc8c16593d4954f9a5af9dc9d7b9236d1f4d
MD5 378b1c7174b8d83418a133ccc60ab9d0
BLAKE2b-256 7e477c9cfb49d58d430b51f9e6d9ecaca7cb0c923d322f4d32d06d6e7a9edb24

See more details on using hashes here.

Provenance

The following attestation bundles were made for perfect_strangers-0.1.8-py3-none-any.whl:

Publisher: publish.yml on seanlikeskites/perfect-strangers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page