Skip to main content

The python file encryption library.

Project description

EntX-Py - Encrypt and Decrypt your python files!

EntXpy allows you to encrypt and decrypt your python files with the EntX library, with encrypted files requiring a password to run/decrypt. All encrypted files have the extension .entxpy.

The FileClient object

To perform operations on a file, you must initialise a FileClient object, with the file path and the password you wish to use.

from entxpy import FileClient

path = "path to .py / .entxpy file"
password = "your password"

my_client = FileClient(password, path)

Encrypting a .py file

from entxpy import FileClient

path = "path to .py/ file"
password = "your password"

my_client = FileClient(password, path)

my_client.pack()

Decrypting a .entxpy file

from entxpy import FileClient

path = "path to entxpy file"
password = "your password"

my_client = FileClient(password, path)

my_client.unpack()

Running a .py / .entxpy file

from entxpy import FileClient

path = "path to .py / .entxpy file"
password = "your password"

my_client = FileClient(password, path)

my_client.run()

Exceptions:

entxpy.errors.InvalidPath

Raised when the path provided does not lead to a valid file

entxpy.errors.InvalidOperation

Raised when an operation is being performed on an incorrect file, i.e running FileClient.unpack() on a .py file.

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

entx_py-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

entx_py-1.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file entx_py-1.0.1.tar.gz.

File metadata

  • Download URL: entx_py-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for entx_py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 22f828cc89000fbf8b7118f1200989b691f62f0ca30af8b98ab8cfa171549430
MD5 f104f572e036acd2c7c1cf65ed6cd05b
BLAKE2b-256 94a906a336d81bfac9b7f93d650eb7a2ce68f711538457490ed89ddfc9c6347e

See more details on using hashes here.

File details

Details for the file entx_py-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: entx_py-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for entx_py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c9aca963b04d90509064788ca084ffc4edd9981480d897d6794e73c3fadb03a
MD5 76c6d622370ece6d8ae32ffe3be3aeee
BLAKE2b-256 070d1b31aed84b0aa869a225f9435afdd373b9b17897db586d63669235a7bd4c

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