Offline replication of the graphics on codesters.com, updated for Python 3
Reason this release was yanked:
Broken dependency declaration
Project description
codesters-graphics
A library to allow programs developed on codesters.com to run offline.
Now updated for Python 3.
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
or
codesters-example basketball.py
Our example files are:
- chainreaction.py
- basketball.py
- flappyfox.py
- flowerfox.py
- recycle.py
- feedthefish.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.
Tests
Coming soon!
Contributors
This project is just getting off the ground! Please post github issues when you find bugs. Most of the features of the Codesters online library have been implemented, but there's a lot of code clean up and documentation to get started on. Feel free to fork the project and ask questions.
License
The codesters-graphics library is licensed under the MIT License.
Packaging the module
python3 -m build
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 codesters3-1.0.0.tar.gz.
File metadata
- Download URL: codesters3-1.0.0.tar.gz
- Upload date:
- Size: 352.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99527e475747a7af0d498780d48be28cde1b0d30376315c36dfebd510fff8c33
|
|
| MD5 |
d33c5944f9b8690bd03da79c33fb03a0
|
|
| BLAKE2b-256 |
0376682c4a4055f2c13d1c809aead65d76080854606d86a9a39ed6c1399cafb9
|
Provenance
The following attestation bundles were made for codesters3-1.0.0.tar.gz:
Publisher:
publish.yaml on joeyparrish/codesters-graphics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codesters3-1.0.0.tar.gz -
Subject digest:
99527e475747a7af0d498780d48be28cde1b0d30376315c36dfebd510fff8c33 - Sigstore transparency entry: 157938688
- Sigstore integration time:
-
Permalink:
joeyparrish/codesters-graphics@95f081c1fac74f9bca8a820adfa896abce5f4ebd -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/joeyparrish
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@95f081c1fac74f9bca8a820adfa896abce5f4ebd -
Trigger Event:
push
-
Statement type:
File details
Details for the file codesters3-1.0.0-py3-none-any.whl.
File metadata
- Download URL: codesters3-1.0.0-py3-none-any.whl
- Upload date:
- Size: 361.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66ce223a33ae069f57a420cb8d2c650336eab37ed8e1f6afef1911a0330e64fd
|
|
| MD5 |
34f7a3b234ba88bb151e331ecfd7c7c3
|
|
| BLAKE2b-256 |
0e517269bf926f76c60e797d5cb417ad5592607468bb4e988dfe5d3153e47519
|
Provenance
The following attestation bundles were made for codesters3-1.0.0-py3-none-any.whl:
Publisher:
publish.yaml on joeyparrish/codesters-graphics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codesters3-1.0.0-py3-none-any.whl -
Subject digest:
66ce223a33ae069f57a420cb8d2c650336eab37ed8e1f6afef1911a0330e64fd - Sigstore transparency entry: 157938689
- Sigstore integration time:
-
Permalink:
joeyparrish/codesters-graphics@95f081c1fac74f9bca8a820adfa896abce5f4ebd -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/joeyparrish
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@95f081c1fac74f9bca8a820adfa896abce5f4ebd -
Trigger Event:
push
-
Statement type: