Skip to main content

Automatically generates random groups from a class list.

Project description

groupify

groupify is a Python package for automatically creating random groups in the classroom from a classlist.

NOTE: there is currently no way to ensure that Newton and Leibniz are not in the same group. They must cooperate if necessary.

Installation

To install on Unix/Linux:

pip install groupify

To install in an IDE simply search for the package groupify and install it.

Basic examples

Example 1

import groupify

classlist = "sample_class.txt"

groupify.create(
    classlist=classlist,
    group_size=4,
)

groupify.savefig(dirname="../figures/", fname="example_1.svg")

groupify.show()

This will generate the following groups (randomly):

example 1

Example 2

If some students are absent, you can specify them in the absent parameter to exclude them from the list of students before creating the groups.

import groupify

classlist = "sample_class.txt"

absent = [
    "Einstein",  # Busy dreaming about light
    "Feynman",  # Busy pick-locking government secrets
    "Hilbert",  # Busy trying to one-up Einstein on GR
    "Schrödinger",  # Uncertain if he's here or not – we'll exlude him to be sure
]

groupify.create(
    classlist=classlist,
    group_size=4,
    absent=absent,  # Removes them from the list before creating the groups
)

groupify.savefig(dirname="../figures/", fname="example_2.svg")

groupify.show()

This will generate the following groups (randomly):

example 2

Example 3

import groupify

classlist = "sample_class.txt"

groupify.create(
    classlist=classlist,
    group_size=3,
)

groupify.savefig(dirname="../figures/", fname="example_3.svg")

groupify.show()

This will generate the following groups (randomly):

example 3

Example 4

import groupify

classlist = "sample_class.txt"

groupify.create(
    classlist=classlist,
    group_size=2,
)

groupify.savefig(dirname="../figures/", fname="example_4.svg")

groupify.show()

This will generate the following groups (randomly):

example 4

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

groupify-0.1.13.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

groupify-0.1.13-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file groupify-0.1.13.tar.gz.

File metadata

  • Download URL: groupify-0.1.13.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for groupify-0.1.13.tar.gz
Algorithm Hash digest
SHA256 80160e7fcdcee80b02aeae2dea13debd7968621b3820c786a553fcdc659e8e23
MD5 fd07eddf73572feedb83b838a38a772d
BLAKE2b-256 f876145bfbf25d9d68e4b492fd89eca557f2252168f39ea60edac0528de85a5b

See more details on using hashes here.

File details

Details for the file groupify-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: groupify-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for groupify-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 31fb4c7d85d357b4adb92f73c9ed005a2e40c4a5eb225a80cacd2d6f17763a83
MD5 af68ed4b5440bd48aab21bff1b0c8c0d
BLAKE2b-256 474137f6c88677dad0028018e7bc173ec3d4cd21e7b1a0d8170816e52025c5cc

See more details on using hashes here.

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