extepy: Extension of Python Language
Documentation
Docs: https://extepy.github.io
Install
It can be installed with pip.
pip install --upgrade extepy
It works in both Python 2 and Python 3.
Features
Extension of hashlib
extepy.filehash(obj, method="sha256", batchsize=4096)computes the hash value of a file.
Example:
from extepy import filehash
filehash("test.txt")
Extension of importlib
extepy.reload(obj, update_global=True, update_local=True)provides advanced module and object reloading capabilities for Python, so that developer can modify code without restarting the interpreter.
This function solves key limitations of Python's built-in reloading functionality by:
- Supporting all import styles:
import X,import A as X,from A import X, andfrom A import B as X; - Automatically updating references without requiring reassignment;
- Offering granular control over namespace updates (global and/or local namespace).
Examples: Reload modules and objects.
from mymodule import myfunction
# ... modify myfunction() in mymodule.py ...
from extepy import reload
reload(myfunction) # reload function
from mymodule import myfunction as myfunction1
# ... modify myfunction() in mymodule.py ...
from extepy import reload
reload(myfunction1) # reload function alias
import mymodule
# ... modify mymodule.py ...
from extepy import reload
reload(mymodule) # reload module
reload("mymodule") # reload module by module name
import mymodule as mymodule1
# ... modify mymodule.py ...
from extepy import reload
reload(mymodule1) # reload module alias
from extepy import reload
from mymodule import myfunction as myfunction1, myfunction as myfunction2
# ... modify myfunction() in mymodule.py ...
reload(myfunction1) # update both myfunction1 and myfunction2
Examples: Update selective namespaces
from extepy import reload
myfunction = None # global reference
def f():
global myfunction
from mymodule import myfunction
# ... modify myfunction() in mymodule.py ...
reload(myfunction, update_local=False) # update global namespace only
from extepy import reload
def f():
from mymodule import myfunction
# ... modify myfunction() in mymodule.py ...
reload(myfunction, update_global=False) # update the local namespace only
Metadata
Release files for extepy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| extepy-1.0.0.tar.gz | 9.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| extepy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.8 kB
Release files / extepy-1.0.0.tar.gz
| Download URL | extepy-1.0.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5f344e4655ef512b65cca3c7dd072021feaf4431315c60298bf1108b719080f
|
|
BLAKE2b-256 checksum How to use checksums |
9e0da19b8792f6ee493c7ec3ffcccb195b41b4fc50bf9f4604be6fbbe0862bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 2, 2025.
Transparency logRelease files / extepy-1.0.0-py3-none-any.whl
| Download URL | extepy-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4b17ba7c2478a0ddac3e56ef06f6d23fec7f5635241014540d19868a11dc845
|
|
BLAKE2b-256 checksum How to use checksums |
857138ecea96f5828afd4adac2d095f012773c35d036e5735ca284ea9ebdeb06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 2, 2025.
Transparency logSecurity for extepy 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for extepy-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 2, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.