Skip to main content

Code and decode string

Project description

Code and Decode string

Install and import

  • For install indecode : pip install indecode

  • For import indecode : import indecode

Functions

This module contain four functions :

  • generate_key() - return string

  • code(text to code in str, key return by the “generate_key()” function) - return string

  • decode(text return by the “code()” function, key return by the “generate_key()” function) - return string

  • get_key_with_img(complete path of the image) - return string, can replace the “generate_key()” fonction

Errors

The indecode module can trigger the following errors :

  • TypeError : one of the arguments is not a string

  • CodeError : one of the caracters in the text argument is not encodable

  • DecodeError : one of the caracters in the text argument is not decodable

  • KeyElementError : one of the caracters in the key argument must not be in the key

  • KeyLengthError : the key is not of the expected length.

  • ImageNotFoundError : ‘/home/pi/Documents/indecode/img.jpg’ not found.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

indecode-1.5.2-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

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