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

Uploaded Source

Built Distribution

py_basic_commands-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for py_basic_commands-0.0.1.tar.gz
Algorithm Hash digest
SHA256 21cf637ea4a30cc118cb81b418e1d73621aa71ade350270c631338ea09b93e17
MD5 f0121e48e9f1b8f1467c9a411f6192f3
BLAKE2b-256 16e86f716bbb8e398b342539804a5414ef848c5472a09229450beb50948365a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_basic_commands-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf07a1a2df37258d7cfd406eafb38756e633caf4ea13454bfd189b2e02f62506
MD5 3f6c03bb7ccb9d7808b3e0d371e67fa7
BLAKE2b-256 125e0c38537badd260228f67b2dd2ea836888054ad9b7a94287d31e1d8b1414a

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