Skip to main content

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.

Release files for entx-py 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entx-py 1.0.2
File Size Uploaded
entx_py-1.0.2.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for entx-py 1.0.2
File Interpreter ABI Platform
entx_py-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / entx_py-1.0.2.tar.gz

Download URL entx_py-1.0.2.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
164adc6915b040d09b4ad7e035bde6f55b99f0dae33302d0a73c448f679bb5af
BLAKE2b-256 checksum
How to use checksums
831d174e337d6ea5225db50c8f070baacc60a7a59c9962e6d73eed42240c7242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / entx_py-1.0.2-py3-none-any.whl

Download URL entx_py-1.0.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9b498bc077ca401ec12457c3e527505f1470875eaf3fa8b1690acc922fed0ee
BLAKE2b-256 checksum
How to use checksums
5684c270deeae89868135df0b361d84d143a9e16e22e21170094234053084487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page