Skip to content

Artemon0/UsableFunctions

Usable Functions

If you downloaded .zip

pip install -r requirements.txt

To install as a package:

Nothing required

pip install --upgrade git+https://github.com/Artemon0/UsableFunctions.git

Example usage:

from UsableFunctions.UF import UsableFunctions as u
print(u.calculator(5, 7, '+')) # print(5 + 7); return 5 + 7

Functions:

  • calculator(*a, b, operator*)
  • quest(*player, difficulty(1-3)*)
  • say_hello(*name*)
  • say_goodbye(*name*)
  • py_to_exe(*file*) // converts .py -> .exe
  • even_odd(*number*)
  • game()
  • write_in_new_file(*file name, what?*)
  • read_from_file(*file name*)
  • delete_file(*file name*)
  • rename_file(*old name, new name*)
  • move_file(*source, destination*)
  • get_random_password() -> str // random password
  • factorial(n) -> int // factorial
  • math-factorial(n) -> int // math.factorial(n)
  • while_calculator() -> None // calculator in while True
  • get_progress_bar(iterable, desc="Processing", ncols=60)
  • update_this_program(visual: bool) // updating UsableFunctions visual/not visual
  • create_new_file(filename: str, content: str="", filepath: str=".") // updated version of write_in_new_file
  • read_file_content(filepath: str) -> str // reads file
  • is_pressed(key) -> bool // key - pygame. ...
  • install_package(package: str) // pip install ...
  • uninstall_package(package: str) // pip uninstall ...
  • install_package_git(GitHub_full_https: str, package_name: str = "UsableFunctions", creator_name: str = "Artemon0") // pip install git+...
  • Update_this_program_visual() // updates UF with tqdm

About Me

I am Artem. If you want to help me, contact to the Telegram: @Artemon0000(t.me). My Telegram channel: Telegram