Coverage for pyguymer3/__init__.py: 100%

53 statements  

« prev     ^ index     » next       coverage.py v7.9.2, created at 2025-07-08 18:47 +0000

1#!/usr/bin/env python3 

2 

3""" 

4A Python module containing a bunch of random functions that I have written over 

5the years. If you want to use some of these functions directly from the command 

6line then you can run ``python3.13 -m pyguymer3 --help`` to see what is 

7available. 

8 

9Notes 

10----- 

11Copyright 2017 Thomas Guymer [1]_ 

12 

13References 

14---------- 

15.. [1] PyGuymer3, https://github.com/Guymer/PyGuymer3 

16""" 

17 

18# Import sub-functions ... 

19from .checkSudokuBoard import checkSudokuBoard 

20from .consts import CIRCUMFERENCE_OF_EARTH, EARTH_MOON_DISTANCE, RADIUS_OF_EARTH, RESOLUTION_OF_EARTH 

21from .convert_bytes_to_pretty_bytes import convert_bytes_to_pretty_bytes 

22from .convert_pretty_bytes_to_bytes import convert_pretty_bytes_to_bytes 

23from .convert_seconds_to_pretty_time import convert_seconds_to_pretty_time 

24from .convert_spreadsheet_to_datetime import convert_spreadsheet_to_datetime 

25from .convert_spreadsheet_to_unix import convert_spreadsheet_to_unix 

26from .download import download 

27from .download_file import download_file 

28from .download_header import download_header 

29from .download_stream import download_stream 

30from .download_text import download_text 

31from .elem2dict import elem2dict 

32from .find_instances_of_a_file import find_instances_of_a_file 

33from .find_integer_divisors import find_integer_divisors 

34from .find_program_version import find_program_version 

35from .generate_password import generate_password 

36from .generate_random_stub import generate_random_stub 

37from .getatime import getatime 

38from .getctime import getctime 

39from .getmtime import getmtime 

40from .git_commits import git_commits 

41from .git_files import git_files 

42from .git_remote import git_remote 

43from .gzip import gzip 

44from .hostname import hostname 

45from .interpolate import interpolate 

46from .intersection import intersection 

47from .make_path_safe import make_path_safe 

48from .mean import mean 

49from .nlines import nlines 

50from .now import now 

51from .perms import perms 

52from .remove_almost_empty_directories import remove_almost_empty_directories 

53from .return_file_list import return_file_list 

54from .return_folder_list import return_folder_list 

55from .return_folder_size import return_folder_size 

56from .return_link_list import return_link_list 

57from .save_file_if_needed import save_file_if_needed 

58from .serializer import serializer 

59from .sha256 import sha256 

60from .sha256_of_GZ import sha256_of_GZ 

61from .sha256_of_MP4 import sha256_of_MP4 

62from .sha512 import sha512 

63from .sha512_of_GZ import sha512_of_GZ 

64from .sha512_of_MP4 import sha512_of_MP4 

65from .start_session import start_session 

66from .stat import stat 

67from .stddev import stddev 

68from .stderr import stderr 

69from .tar import tar 

70from .var import var 

71from .xz import xz