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')

Rewrote the messy code, again :(

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: powerwrapper-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 ff630f0756795732513ba3f6a7651c9d7b71b0934bea6f27591fc26f9c338b19
MD5 b8bc1b279eb468380d7076ed828cdfcf
BLAKE2b-256 c43bc32a1b0ade66f205f567d452da44871314ba02809bcef235550b49ced811

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PowerWrapper-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bf36f266ada70f28e54e639bcbc4d96b550998e72137ee04a4cfc597254eea04
MD5 78f83fc6bf99f3e41ac99d92e17f608a
BLAKE2b-256 3a44202ae00c6126548c04630ea5c1f791a8f0fa2b2e4f106eb280e63dc73497

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