Mario's Candy Shop
- Created By Jacob H Barrow
Why Was It Created
- Data is gold, so learning cybersecurity can be tricky without simulated testbeds.
- Use this package to test supply chain fundamentals.
Usage
>>> from marios_candy_shop import Shop, simulate_sampling
>>>
>>> shop1 = Shop()
>>>
>>> candies = (('Chocolate Bar', 4, 1), ('Gumdrops', 3, 0.3), ('Gobstopper', 5, 3))
>>>
>>> delicacies = [Delicacy(*item) for item in candies]
>>>
>>> try:
>>> new_order = shop1.get_1000_units(delicacies[0], price_percent=80)
>>> print()
>>> print(f'Original price of first item: {delicacies[0].price}')
>>> print(f'New price of first item: {new_order[0][0][0].price}')
>>> except:
>>> print(f'Couldnt fulfill order!')
Release files for marios-candy-shop 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| marios_candy_shop-0.0.2.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| marios_candy_shop-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / marios_candy_shop-0.0.2.tar.gz
| Download URL | marios_candy_shop-0.0.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aef37fd448907d8c603b1ab6adda1603faa9da6b906ca6d246e35f3e687293b7
|
|
BLAKE2b-256 checksum How to use checksums |
c42b9aa7861e3a6b77a4d08b2e1bf6ddf29698d6268c1f8ec1a5f9759645fa39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|
Release files / marios_candy_shop-0.0.2-py3-none-any.whl
| Download URL | marios_candy_shop-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
641a43b49944f63a15d3eb2e6e11de83e4ed7332520f53238ad718c47ea5587f
|
|
BLAKE2b-256 checksum How to use checksums |
7745620efd4b4c4f4b50be43e1cf6716afebb769646d62b2510caeaeebad761e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|