Skip to main content

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:

  1. Install pytest in a virtual environment.
  2. Run the tests from the main project directory: python3 -m pytest.
  3. Tests should never fail. Any failed tests indicate that the production code is behaving differently from the behavior the tests expect.

Metadata

Release files for babPy 0.0.5

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

Source distribution (sdist)

Source distribution for babPy 0.0.5
File Size Uploaded
babPy-0.0.5.tar.gz 42.6 kB Details

Built distribution (wheel)

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

Total release size: 71.8 kB

Release files / babPy-0.0.5.tar.gz

Download URL babPy-0.0.5.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d30850984383ccc013c7a68efadfacd3b00eb938d67b5ee81194dc4c5295d027
BLAKE2b-256 checksum
How to use checksums
fe1fff3e71d6e2925e3784b9dece3e9cfaef38a546cd2e7f72b884a162db8324
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release files / babPy-0.0.5-py3-none-any.whl

Download URL babPy-0.0.5-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3514813f859028a600e6cbbf92272d9fd574383a713313e91202ae6329d4e30f
BLAKE2b-256 checksum
How to use checksums
fb88978bcc3165e039c3dc35ff9e58aefdf4300933421260b20be01425fb937b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

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