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 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 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 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):
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 groupify-0.1.15.tar.gz.
File metadata
- Download URL: groupify-0.1.15.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a39829243ffaef5587014ce35d6e980dc08088a9784d9dfead297385b93aa19c
|
|
| MD5 |
f46edc5f9cd38f808a35a5b1915d7734
|
|
| BLAKE2b-256 |
b38c70ab032cf7e89d618d880f9af5fc5f059074018ddbe1f0879aefa98bf77d
|
File details
Details for the file groupify-0.1.15-py3-none-any.whl.
File metadata
- Download URL: groupify-0.1.15-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c6db2b4e78a311ce240e85792f9fe82eecc36ce930be55cb99edf3f5197ebbb
|
|
| MD5 |
b4c10c274b993c6c53e94fca06ad5fc3
|
|
| BLAKE2b-256 |
b4230b6a1bed76f246ba7ece27dfe4f6bd4f76281422b3f1733a41e7029db958
|