Skip to main content

Testing installation of Package

Project description

MegaKit

Time

get_date()

Returns current date in the following format: MM/DD/YYYY

get_month()

Returns an array of the number of the current month, and its name

get_year()

Returns the current year as an integer

Random

random_integer(n)

Takes an integer as a parameter

Returns integer with 'n' number of digits

random_string(n)

Takes an integer as a parameter

Returns a string with 'n' number of uppercase characters

random_serial(n)

Takes an integer as a parameter

Returns a string with 'n' number of characters mixed between letters and integers

Manage

read_lines(file_path)

Takes the path of a file as a parameter

Returns a list of each line in that file

count_lines(file_path)

Takes the path of a file as a parameter

Returns the number of lines filled in that file

count_folders(folder_path)

Takes the path of a folder as a parameter

Returns the number of directories located in that folder

count_files(folder_path):

Takes the path of a folder as a parameter

Returns the number of files located in that folder

get_file_name(file_path)

Takes the path of a file as a parameter

Returns the name of the file including its extension

get_file_extension(file_path)

Takes the path of a file as a parameter

Returns the file extension

get_file_location(file_path)

Takes the path of a file as a parameter

Returns the path of the folder in which the file is located

is_file(path)

Takes the path of a folder or a file as a parameter

Returns True if that path is pointing to a file

Returns False if that path is not pointing to a file

is_folder(path)

Takes the path of a folder or a file as a parameter

Returns True if that path is pointing to a folder

Returns False if that path is not pointing to a folder

is_existing(path)

Takes the path of a folder or a file as a parameter

Returns True if that path is pointing to a folder or file that exists

Returns False if that path is pointing to a folder or file that doesn't exist

list_directories(folder_path)

Takes the path of a folder as a parameter

Returns a list of all directories located in that folder

list_files(folder_path)

Takes the path of a folder as a parameter

Returns a list of all files located in that folder

is_empty(folder_path)

Takes the path of a folder as a parameter

Returns True if that folder doesn't contain a folder or file

Returns False if that folder contains a folder or file

delete_file(file_path)

Takes the path of a file as a parameter

Deletes that file

delete_folder(folder_path)

Takes the path of a folder as a parameter

Deletes that folder

add_padding(image_path, padding_value, color)

Takes the path of an image file as a first parameter

Takes an integer representing the padding value as a second parameter

Takes a tuple of three numbers representing the color, as a third parameter

round_corners(image_path, radius)

Takes the path of an image file as a first parameter

Takes an integer for the radius of the image's corners as a second parameter

turn_to_square(image_path, color)

Takes the path of an image file as a first parameter

Takes a tuple of three numbers representing the color, as a second parameter

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

megakit-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

megakit-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for megakit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c31b7c1802dcf45d8134fb44c41fcd16c6b2cd9462fcd217d8c754b6a8a5d187
MD5 75fa110c3df42356f44ed7130476eaf1
BLAKE2b-256 27ea63613d9e8207523907244f485d3de111d7ce59c9e342967f7b7ea841d12d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: megakit-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for megakit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ea3fd6d377c1f219fdaf7f47121df0c3de77e92b837abc385dcf044a951ff2c
MD5 aea6467bf3001b3df8fc5e07e8a1995c
BLAKE2b-256 ba74ecd48f5b3a436f67892454955e588c9fefb189bfcddd309fe6b9286794d8

See more details on using hashes here.

Supported by

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