pygacity
A Python package to enable high-throughput generation of problems suitable for exams and problem sets for thermodynamics courses
You may have learned how to use Python to solve thermodynamics problems, like equilibrium compositions for a reacting system, or phase compositions in vapor-liquid equilibrium. Pygacity takes this idea and uses Python to generate new problems. The problems are generated in such a way that they can be typeset into PDF's using LaTeX. Pygacity relies on the pythontex package in LaTeX to allow Python code to run during document compilation and results of those calculations automatically included in the document.
Installation
Pygacity can be installed from Pypi the usual way:
pip install pygacity
Pygacity is under active development. To install a bleeding edge version:
git clone git@github.com:cameronabrams/pygacity.git
cd pygacity
pip install -e .
Pygacity includes the LaTeX class file autoprob.cls under [INSTALL-DIR]/pygacity/resources/autoprob-package/tex/latex/. All latex-like commands that are managed by pygacity append this directory in a --include-directory argument. If you would like to use autoprob.cls outside of pygacity, you will need to make your LaTeX installation aware of autoprob-package root.
Meta
Cameron F. Abrams – cfa22@drexel.edu
Distributed under the MIT license. See LICENSE for more information.
https://github.com/cameronabrams
Contributing
- Fork it (https://github.com/cameronabrams/pygacity/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
Metadata
Release files for pygacity 0.10.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygacity-0.10.2.tar.gz | 759.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygacity-0.10.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 836.9 kB
Release files / pygacity-0.10.2.tar.gz
| Download URL | pygacity-0.10.2.tar.gz |
|---|---|
| Size | 759.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34dbd9125c0f363b3f267289607bcf5673e0d89c87dd62372836670d51dc6534
|
|
BLAKE2b-256 checksum How to use checksums |
7b6d82e8b59e518ede75889ebd796f18f34d36dcac5dd48a60513c190a7dc957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 13, 2026.
Transparency logRelease files / pygacity-0.10.2-py3-none-any.whl
| Download URL | pygacity-0.10.2-py3-none-any.whl |
|---|---|
| Size | 77.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f89d607cae6c6c8be084bb28ee0e2ef89a0fdb395a12b0fbcd022add0b3e9222
|
|
BLAKE2b-256 checksum How to use checksums |
14c55fa848888d320e315c35e4876017af13abde6e4fa5fb93cbd3a3f602722f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 13, 2026.
Transparency log