Skip to main content

The MultifunctionTools library is a comprehensive collection of handy utilities and tools designed to enhance your Python coding experience.

Project description

MultifunctionTools Python Library

The MultifunctionTools library is a comprehensive collection of handy utilities and tools designed to enhance your Python coding experience. Whether you're a beginner or an experienced developer, MultifunctionTools provides a set of functionalities to simplify and streamline various aspects of Python programming.

Features

1. Ciphering Text

Can help you cipher text easily with multiple function choices.

from MultifunctionTools import Cipher

password = "superPassword"
saltPassword = "superPasswordNumber2"
message = b"This is a secret message."

# Cipher text with two passwords
cipherText = Cipher.AdvancedCipherWithSaltPassword(message, password, saltPassword=saltPassword)
print("Ciphered text :", cipherText)

# Decipher text with two passwords
decipherText = Cipher.AdvancedDecipherWithSaltPassword(cipherText, password, saltPassword=saltPassword)
print("Deciphered text :", decipherText)

2. Hashing Text

Tools that allow you to hide text to prevent it from being retrieved. Ideal for storing passwords.

from MultifunctionTools import Hash

textToHash = "Some text to hash"
hashLength = 32

# Hashing Str and return hex string
hashedString: str = Hash.BasicHashStrToHex(textToHash, hashSize=hashLength)
print("Hashed string :", hashedString)

hashAlgo = Hash.HASH_ALGO_BCRYPT
hashedString: str = Hash.AdvancedHashWithRandomSalt(textToHash, hashAlgo, randomSaltSize=[22, 35], costFactor=14, blockSize=8, parallelism=1, memoryCost=64000)
print("Hashed string :", hashedString)
textToVerify = "Some text to verify"
isGoodPassword = Hash.AdvancedHashVerification(hashedString, textToVerify)
print(f"{textToVerify = } == {hashedString = } : {isGoodPassword}")

3. Converting

A range of tools that allow you to easily convert files, values ​​and many other things.

from MultifunctionTools import Convert

baseImageFilePath = "some/path/to/image.jpg"
newImageFilePath = "some/path/to/image.png"

# Converting base image to a new png image
Convert.ConvertImageToPng(baseImageFilePath, newImageFilePath)

Installation

You can easily install MultifunctionTools using pip:

pip install MultifunctionTools

Usage

Import the desired modules from MultifunctionTools and start using its powerful features in your Python projects.

from MultifunctionTools.Cipher import *
from MultifunctionTools.Hash import *
from MultifunctionTools.Convert import *

# Now you're ready to use the various tools from MultifunctionTools!

Contribution

Contributions to the MultifunctionTools library are welcome! If you have an idea for a new tool or want to enhance existing functionalities, feel free to submit a pull request on our GitHub repository.

License

This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. - see the LICENSE file for details.


Give MultifunctionTools a try and make your Python coding journey more efficient and enjoyable. Happy coding!

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

MultifunctionTools-1.0.0b5.tar.gz (11.5 kB view details)

Uploaded Source

File details

Details for the file MultifunctionTools-1.0.0b5.tar.gz.

File metadata

  • Download URL: MultifunctionTools-1.0.0b5.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for MultifunctionTools-1.0.0b5.tar.gz
Algorithm Hash digest
SHA256 d0199aa10efa0d003ad5e0e75b18000da06517e83877c375d697c374eea775e1
MD5 210f9f88d0873af4e3a9646036229b3a
BLAKE2b-256 e04e0512ce330c84b7bef403a179a5ed8ed653999944c52bbb20169904f0d165

See more details on using hashes here.

Supported by

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