Basic tools for Python
Project description
Py Basic Tools
A package including some basic tools for Python (3)
Author
Installation
Install my-project with pip
pip install py_basic_commands
pip3 install py_baisc_commands
Examples
fprint
from py_basic_tools import fprint
print('Hello world')
>> Hello world!
fprint('Hello world!') # new line after string
>> Hello world!\n
fprint('Hello world!', nl=False) # No new line after string (works like normal print)
>> Hello world
enter_to_continue
from py_basic_tools import enter_to_continue
enter_to_continue()
>> Press enter to continue...
>>
>>
enter_to_continue('Waiting')
>> Waiting (enter to continue)
>>
>>
enter_to_continue('Waiting', nl=False) # Removes new line after input
>> Waiting
>>
returned_value = enter_to_continue('Should this continue?', ret=True) # If the input isn't empty, the returned value is False
print(f'Returned value: {returned_value}')
>> Should this continue? (enter to continue)
>>
>> Returned value: True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for py_basic_commands-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d89c7a5ed7b9fa0a12cf2c441590618fce91cd65439e7a4050ce512f082d0dc4 |
|
MD5 | 239a8eb53b92570c4fc9b12a11738d4b |
|
BLAKE2b-256 | c0fa9828c8e66a8e8d7b27c6c84e5bbaeb6339cb1cd6a8b0a0c96428f05fe3ad |