Skip to main content

Offline replication of the graphics on codesters.com, updated for Python 3

Reason this release was yanked:

Missing files in package

Project description

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 the codesters library with pip.

python3 -m pip install 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

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

codesters3-1.1.1.tar.gz (88.4 MB view details)

Uploaded Source

Built Distribution

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

codesters3-1.1.1-py3-none-any.whl (88.5 MB view details)

Uploaded Python 3

File details

Details for the file codesters3-1.1.1.tar.gz.

File metadata

  • Download URL: codesters3-1.1.1.tar.gz
  • Upload date:
  • Size: 88.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for codesters3-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fd06cb0b823fcf3c8a56c889ed22b3e42455a89440cc5f058c413ce6004ee426
MD5 31b022bb35ab44c6a3e8302f8cc01c66
BLAKE2b-256 3c858d8915a31d81e12f4180a79ef2cb44ddd9ac93c46854afc45d5254823848

See more details on using hashes here.

Provenance

The following attestation bundles were made for codesters3-1.1.1.tar.gz:

Publisher: publish.yaml on joeyparrish/codesters-graphics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codesters3-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: codesters3-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 88.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for codesters3-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e2f04cf6c9f79db29e41488cd93f5cf12e9a590b4423a73f9fb4f8558d057f9
MD5 19befc13f753f4c9dbc673ce0ee57af8
BLAKE2b-256 75c40215484df9d56efd04b1bf4597f428952b5b5f453412484f15ea2251f07f

See more details on using hashes here.

Provenance

The following attestation bundles were made for codesters3-1.1.1-py3-none-any.whl:

Publisher: publish.yaml on joeyparrish/codesters-graphics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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