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.2.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.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: megakit-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b7f894890e575fbb55e41dce82bf84f4a46637a2a959c531ef9581c5d4a67d6e
MD5 6233027ba2ef7b0d226dca439c948492
BLAKE2b-256 d5927137f7e6512783094efd821eb185327b29105d60451de6b71e775efc224a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: megakit-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e657237051ee078260473f025ef2c8853dcc72cf1a9eb081b43a9d9033e8d68c
MD5 12d1cdcebf49afccda725ebdf6e8c1ca
BLAKE2b-256 b61ef8670da27029a4e79b72d6fd521367e5690a5389718325ed5ceb5281af35

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