Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_basic_commands-0.0.7.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

py_basic_commands-0.0.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file py_basic_commands-0.0.7.tar.gz.

File metadata

  • Download URL: py_basic_commands-0.0.7.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for py_basic_commands-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5d061c30e3464d90ecc603709a8b966b248a59a22e7aa0f26b82bfb5ce9276c2
MD5 477075e6efed031810c01da8f7810ef9
BLAKE2b-256 ab2b08a123c8e369278f48f0c4cefdef13ff373835177b8cd3860a2501127a35

See more details on using hashes here.

File details

Details for the file py_basic_commands-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for py_basic_commands-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d89c7a5ed7b9fa0a12cf2c441590618fce91cd65439e7a4050ce512f082d0dc4
MD5 239a8eb53b92570c4fc9b12a11738d4b
BLAKE2b-256 c0fa9828c8e66a8e8d7b27c6c84e5bbaeb6339cb1cd6a8b0a0c96428f05fe3ad

See more details on using hashes here.

Supported by

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