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.6.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_basic_commands-0.0.6.tar.gz
  • Upload date:
  • Size: 3.6 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.6.tar.gz
Algorithm Hash digest
SHA256 4f90dd6ccd11fbb24b25bace1a2e0eaf02c74e7bb50602781bc011e8eff3894e
MD5 d0e419beef44cc7a12bb9b2a26ad41bf
BLAKE2b-256 8ae19b00fee0207f183c4d79d073c50b2d94faa3398f215871a46f61088a4b13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_basic_commands-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1fd9b4e9d196cceefa9e45a6cdc915a519952e384118d7bbdf9b4ec06e9f5281
MD5 85d7c4cd41b83d1a870d21866cf9bf00
BLAKE2b-256 49f728362a172e5cc0166654fdf0ffe74aacde5bf8c4f3dc93455c2af50cac3e

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