Skip to main content

PyParadigm

PyParadigm is a small library to build paradigms for psychological experiments. It utilizes pygame, and is installable via pip

pip install pyparadigm

You can find the documentation including an introduction and a tutorial over at: https://pyparadigm.readthedocs.io/en/latest/index.html

Changelog

  • 1.2.2
    • Adds pygame.font.init() to pp.init()
  • 1.2.1
    • Replaces pygame.init() with pygame.display.init() in pyparadigms init method, so not required modules are not initialized
  • 1.2.0
    • Adds the FreeFloatLayout
    • Adds the Title argument to misc.init()
  • 1.1.0
    • adds the sleeptime argument to eventlistener.listen_until_return() and eventlistener.wait_for_keypresses()
    • Mousproxys can now take handler functions of arity 4. The last argument will then be the rect of the MouseProxy. Arity 3 is still allowed
    • fixes a bug, that made a MouseProxy not match the drawArea of a child surface
    • Adds an event handler for resize events
    • Adds an event handler for Quit events
  • 1.0.9
    • added the keep_aspect_ratio parameter to Surface
    • added normalize parameter to mat_to_surface()
    • added dialog module
    • fixed a bug that would cause a crash, if misc.empty_surface() was used with size but without initializing the windows
    • fixes a bug that would miss-align grid layout items, if not all rows had the same number of elements
  • 1.0.8
    • added misc.rgba for conversion of color codes to pygame.Color with alpha channel, useful for text-colors
    • Fixed a bug, that would cause a Gridlayout to crash if a None is added
    • Fixed a bug that would cause crashes when adding iterable objects with a draw method to a render object with a single child
    • Added functions:
      • is_left_click()
      • is_key_press()
  • 1.0.7
    • fixed a bug in EventListener.wait_for_n_key_presses()
    • fixed a code sample in the tutorial
  • 1.0.6
    • added special treatment for Surfaces in MouseProxy, so that the actual visible rect is obtained. For that I added a new method, Surface.compute_render_rect
  • 1.0.5
    • Fixed surface_composition.Border.call()
    • added EventListener.wait_for_unicode_char() and misc.process_char() for textinput
    • added EventListener.listen_until_return()
    • added Handler class which contains factories for handler functions that can be used with EventListener.Listen()
    • added MouseProxy, EventListener.mouse_area and EventListener.group() for basic mouse support.
  • 1.0.4
    • Added EventListener.wait_for_keys_modified
    • Added the extras module containing functions to use numpy arrays and Matplotlib colormaps
  • 1.0.3
    • EventListener.wait_for_keys supports varargs now
  • 1.0.2:
    • added imports on package level
    • added interactive parameter for misc
  • 1.0.1:
    • Added PyPi readme
  • 1.0 - release

Metadata

Release files for pyparadigm 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyparadigm 1.2.2
File Size Uploaded Provenance
pyparadigm-1.2.2.tar.gz 416.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyparadigm 1.2.2
File Interpreter ABI Platform
pyparadigm-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 436.2 kB

Release files / pyparadigm-1.2.2.tar.gz

Download URL pyparadigm-1.2.2.tar.gz
Size 416.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3808358b61fcb34a8bb7ddfdd29c7ade4ef5f7f3cb16cd600a9c607e186d3932
BLAKE2b-256 checksum
How to use checksums
c8d8e8f163a4b82c891d15619231c204036c57fca04d7edcaf3bdb7bdf628e1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / pyparadigm-1.2.2-py3-none-any.whl

Download URL pyparadigm-1.2.2-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c56c393b016bcefb4ed678688d9f2cce6f2080ebbfdbbc8626aa953ad4bdb73
BLAKE2b-256 checksum
How to use checksums
0a7c9cbb3bb48f40257c97c1842b3aa8f09b4c049029fdae0e34335d0d7a2283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Security for pyparadigm 1.2.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page