Skip to main content

No project description provided

Project description

Mario's Candy Shop

Test Coverage Security Platform Python Version MIT License

  • 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!')

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

marios_candy_shop-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marios_candy_shop-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file marios_candy_shop-0.0.2.tar.gz.

File metadata

  • Download URL: marios_candy_shop-0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for marios_candy_shop-0.0.2.tar.gz
Algorithm Hash digest
SHA256 aef37fd448907d8c603b1ab6adda1603faa9da6b906ca6d246e35f3e687293b7
MD5 fc026d714c005034fa528a531fa93ca7
BLAKE2b-256 c42b9aa7861e3a6b77a4d08b2e1bf6ddf29698d6268c1f8ec1a5f9759645fa39

See more details on using hashes here.

File details

Details for the file marios_candy_shop-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for marios_candy_shop-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 641a43b49944f63a15d3eb2e6e11de83e4ed7332520f53238ad718c47ea5587f
MD5 6d4f1a26c05a558abbce5329336b3675
BLAKE2b-256 7745620efd4b4c4f4b50be43e1cf6716afebb769646d62b2510caeaeebad761e

See more details on using hashes here.

Supported by

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