codesters-graphics
A library to allow programs developed on codesters.com to run offline.
Now updated for Python 3! See also CHANGELOG.md.
Synopsis
This is a python module to allow students working on www.codesters.com to run codesters projects offline. The codesters-graphics library is also a great way to segue from structured lessons on codesters.com to larger, object-oriented projects.
Code Example
You can install or upgrade the codesters library with pip.
python3 -m pip install --upgrade codesters3
After installing the library with pip you can import codesters in any python file.
Either copy a project from www.codesters.com to a new python file or start making your own project in any new python file.
Most codesters projects will start with something like this:
import codesters
stage = codesters.Environment()
sprite = codesters.Sprite("fox")
With the offline version you can also load your own sprite images. If you place a .gif image file in the same directory
as your python file you can load the image as a sprite. For example if you had a file called narwhal.gif you could make a sprite
like this:
unicorn_of_the_sea = codesters.Sprite("narwhal")
You can also run a python file with the codesters graphics library like this:
codesters my_project_file.py
If you need inspiration, run one of our examples with
codesters --example basketball.py
Our example files are:
- basketball.py
- chainreaction.py
- feedthefish.py
- flappyfox.py
- flowerfox.py
- recycle.py
Motivation
Codesters.com is a great way for a teacher to easily lead a class through lessons teaching Python programming via interactive games and animations. The web based coding platform on codesters.com exposes a library of graphics, animation, and game design tools that are not included with a basic Python installation. The codesters-graphics project provides a similar graphical environment to allow a project created on codesters.com to be run in an offline Python installation.
We at Codesters received requests from teachers who enjoyed working through lessons on codesters.com but wanted to introduce students to working with a filesystem or working with other open source python modules within a codesters project. The codesters-graphics library allows this transition.
API Reference
Our documentation has just been started. There is a working sphinx-docs configuration in the docs directory with a few documentation stubs in code to test the configuration.
Contributing
The original version of this project appears to have been abandoned in 2015. It was revived by joeyparrish for his son at the beginning of 2025. Issues and PRs on this fork are very welcome.
License
The codesters-graphics library is licensed under the MIT License.
Packaging the module
python3 -m build
Metadata
Release files for codesters3 1.1.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 | Provenance | |
|---|---|---|---|---|
| codesters3-1.1.2.tar.gz | 88.4 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codesters3-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 177.0 MB
Release files / codesters3-1.1.2.tar.gz
| Download URL | codesters3-1.1.2.tar.gz |
|---|---|
| Size | 88.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aed68fa4ff827b112d661dbda85dc99727bc780005260b443d5f960fd140b9bd
|
|
BLAKE2b-256 checksum How to use checksums |
6f08fbae3b40eee4fb93b98973c4d126e32b47bc03d4cf2a3c9c821c526ac0c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Jan 5, 2025.
Transparency logRelease files / codesters3-1.1.2-py3-none-any.whl
| Download URL | codesters3-1.1.2-py3-none-any.whl |
|---|---|
| Size | 88.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02773e7e34936aa05cae31b2c136620ee327b31648e3a4dff168333dd651380c
|
|
BLAKE2b-256 checksum How to use checksums |
3ef705357ca5bcfb4b63c6f8d826383f18b2fd917addd2d7192bf2b8b931df37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Jan 5, 2025.
Transparency logSecurity for codesters3 1.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for codesters3-1.1.2.tar.gz
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 Jan 5, 2025.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.