A baby language python package
Project description
babPy
Team Members
Project Description
"babPy" is a whimsical Python package designed to make coding concepts more accessible and fun for young children and beginners. Specifically, children who have not yet developed speech patterns but understand on an instinctive level what a for loop is. This package replaces traditional functions and built-in class names with playful and nonsensical baby words, creating an entertaining and imaginative way to introduce coding principles to very young learners.
Key Feature of babPy:
Nonsensical Naming: babPy replaces standard Python function and class names with baby words and playful terms. For example, it might rename "print" to "puhoo" and "if" to "fuh."
INSTALL US TODAY WITH pip install babpy
Instructions
- Using babPy is as easy as 1 2 3 4 5 6 7 8. All of babpy's current functionality is contained in the babpy.talk file. Take, for example, the function 'fuh'
def fuh(condition, if_true, if_false): """ If Statement for babies. :param condition: Boolean condition to evaluate. :param if_true: Callable to execute if the condition is True. :param if_false: Callable to execute if the condition is False. :return: The result of either the if_true or if_false callable. """ if callable(if_true) and callable(if_false): return if_true() if condition else if_false() else: raise ValueError("Both if_true and if_false must be callable.")
which can be imported and used in tandem with another function, puhoo, like so
from babpy.talk import fuh,puhoo
fuh(1 == 2, puhoo("yay"), puhoo("boo"))
which will puhoo(print) boo, as 1 does not equal 2.
Testing and Further Development
if you want to work on/add to babpy, just download this respository. Dependencies can be installed via pipenv and we would welcome more contributions to our special vocublary.
How to run unit tests
Simple example unit tests are included within the tests directory. To run these tests:
- Install pytest in a virtual environment.
- Run the tests from the main project directory: python3 -m pytest.
- Tests should never fail. Any failed tests indicate that the production code is behaving differently from the behavior the tests expect.
pyPi LINK
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
File details
Details for the file babPy-0.0.5.tar.gz
.
File metadata
- Download URL: babPy-0.0.5.tar.gz
- Upload date:
- Size: 42.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d30850984383ccc013c7a68efadfacd3b00eb938d67b5ee81194dc4c5295d027 |
|
MD5 | 353bacf4f197c43a3f2e8d1cd9cef811 |
|
BLAKE2b-256 | fe1fff3e71d6e2925e3784b9dece3e9cfaef38a546cd2e7f72b884a162db8324 |
File details
Details for the file babPy-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: babPy-0.0.5-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3514813f859028a600e6cbbf92272d9fd574383a713313e91202ae6329d4e30f |
|
MD5 | 5293d6f7fbeda6c8d0b0df9a08258b97 |
|
BLAKE2b-256 | fb88978bcc3165e039c3dc35ff9e58aefdf4300933421260b20be01425fb937b |