Skip to main content

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:

  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.

pyPi LINK

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

babPy-0.0.5.tar.gz (42.6 kB view hashes)

Uploaded Source

Built Distribution

babPy-0.0.5-py3-none-any.whl (29.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page