Skip to main content

The MilkShake Programming Language

Dedicated to the biggest MilkShake lover Igor ❤️

Installation

pip install milkshakelang

Usage

MilkShakeLang commands:

  • give [owner] [size] milkshake
  • drink [owner] milkshake [ounces]
  • refill [owner] milkshake [ounces]

Available MilkShake sizes:

  • demi - 3 ounces
  • short - 8 ounces
  • tall - 12 ounces
  • grande - 16 ounces
  • venti - 24 ounces
  • trenta - 30 ounces

Write MilkShakeLang script:

give Igor venti milkshake
# Igor got Venti MilkShake (24 ounces)

give Dani grande milkshake
# Dani got Grande MilkShake (16 ounces)


drink Igor milkshake 16
# Igor:
# - Drank 16 ounces - so delicious!

drink Igor milkshake 16
# Igor:
# - Drank 8 ounces and finished my milkshake...
# - I want more!

drink Igor milkshake 16
# Igor:
# - There is nothing to drink...
# - Need more milkshake!

drink Dani milkshake 16
# Dani:
# - Drank 16 ounces and finished my milkshake...
# - I want more!


refill Dani milkshake 16
# Dani:
# - Incredible, full cup of milkshake!

refill Igor milkshake 16
# Igor:
# - Wow, 16 ounces of new milkshake!

refill Igor milkshake 16
# MilkShakeOverflowError: Milkshake was spilled on the floor!

Run the script:

milkshakelang script.milkshake

Requirements

Python >= 3.7

Metadata

Release files for milkshakelang 0.1.0

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

Source distribution (sdist)

Source distribution for milkshakelang 0.1.0
File Size Uploaded
milkshakelang-0.1.0.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 8.6 kB

Release files / milkshakelang-0.1.0.tar.gz

Download URL milkshakelang-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7e727133df4d2bfeecbe01c9c272b5560a20bf8a4fc5efdbf37fb7839a0c1b45
BLAKE2b-256 checksum
How to use checksums
c7da399423b12181eb63787d41b575f2427459e83a77e753e2daffbd3250f099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.5

Release files / milkshakelang-0.1.0-py3-none-any.whl

Download URL milkshakelang-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
517da56f7679f29fdd47e1f60c244b68eb162ff89a2a58a656322ad777951d39
BLAKE2b-256 checksum
How to use checksums
f7575b6e258e524135a1ae8b0dd0fb3f3f50e57ca508f1550b0380eaf666940b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

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