This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: code not behaving as expected
perform_draw
A simple app that will randomly draw a given set up numbers from a list.
Installation
Run the following to install:
pip install perform_draw
Usage
python3 perform_draw.py
Please enter the total number of balls to be placed in the bag: You must enter a whole number (integer) greater than 0 15
Please enter the total number of balls to be drawn: You must enter a whole number (integer) greater than 0 and less than 15. 5
Numbers drawn are: [12, 9, 1, 8, 4]
When the object is called, you pass the following variables:
number: The number of items in the pool to be picked from. example: number = 5 will create a pool [1, 2, 3, 4, 5]
pick: The number of items to be randomly drawn from the pool. example: pick = 2 will return a list of the randomly drawn items, say [4, 2]
put_back: Whether an item is put back into the pool prior to the next draw. Input as a boolean True or False, with a default of False.
Install Requires
This package uses the following standard library packages:
- math
- random
In Closing
This package has been built as part of my learning Python so may contain coding that is not best practice. I am happy for more experienced Python users to feedback any areas that could be improved. Once I get to understand uploading packages to PyPI I will set up development dependencies.
Release files for perform-draw 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| perform_draw-0.0.1.tar.gz | 16.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| perform_draw-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.9 kB
Release files / perform_draw-0.0.1.tar.gz
| Download URL | perform_draw-0.0.1.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa86527277d7af8f810c814f5263c93be71cf4711ab6d906d42309b65baa4f43
|
|
BLAKE2b-256 checksum How to use checksums |
d5e98666f6dc73e4b16b27271f4b446eac065be31d5c75b922f39f76670a567b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / perform_draw-0.0.1-py3-none-any.whl
| Download URL | perform_draw-0.0.1-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10853db99bf30046e6980ef8f856ea0aabf7a766fa4d1aa0d1aa3ff7f5fe9816
|
|
BLAKE2b-256 checksum How to use checksums |
7a45e262231d54462f377b15469bc4b774f9dbf9a6820df3712735773d4d902a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|