Skip to main content

A powerful library that wraps advanced functions.

Project description

A powerful library that wraps mid-advanced functions.

Maths module:

# Importing the module
from PowerWrapper import maths
m = maths()

Usage:

# Mean
print(m.getMean([5, 10, 10, 15]))
# Median
print(m.getMedian([5, 10, 10, 15]))
# Mode
print(m.getMode([5, 10, 10, 15]))
# Square root
print(m.squareRoot(25))
# Modulus
print(m.getMod(10, 6))

Error module

importing the module
from PowerWrapper import errors
e = errors()

Usage:

# GUI Information box
e.showInfo("title", "text")
# GUI Warning box
e.showWarning("title", "text")
# GUI Error box
e.showError("title", "text")

System module

# importing the module
from PowerWrapper import system
s = system()

Usage:

# Installing external dependencies (with pip)
s.installDependancy('libraryName')

# Creating a file.
s.createFile('createFiledirectory')

# Moving/renaming a file.
s.moveFile('fileDirectory', 'newFiledirectory')

# Removing/deleting a file.
s.removeFile('fileDirectory')

# Executing/running a file/program.
s.executeFile('fileDirectory')

# Run command in the python shell
s.runCommand('command')

# Run command in command prompt
s.runCommandprompt('command')

# Run command in powershell
s.runPowershell('command')

Updated the License from MIT to GPL 3.0

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

powerwrapper-0.0.6.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

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

PowerWrapper-0.0.6-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file powerwrapper-0.0.6.tar.gz.

File metadata

  • Download URL: powerwrapper-0.0.6.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for powerwrapper-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1881e3b3755491f1d621f2e9f2599a2c3287f3ce3b3804c64f41d0b824797cb8
MD5 217b016b279eb512935be270dcacf31d
BLAKE2b-256 56a9cded51de2fb5a7ab1a039f6fa837994e14128ac8831c8c413bf734ccc65d

See more details on using hashes here.

File details

Details for the file PowerWrapper-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: PowerWrapper-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for PowerWrapper-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6e092babdf84a75b87b72729b3f5403c4222350962c350d01e51c6244b42d823
MD5 4c7a4992591c69b0be158e7a232b7ab2
BLAKE2b-256 e02cd00d06ff6bb2b129157f0f8acb2793e4afb8f88ae93d6d1c68acae62fb72

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