Packagify
A packaging utility to access folders that aren't suitable to be used as packages, as python packages.
How to use
from packagify import Packagify
package = Packagify("/home/workspace/my_package")
object = package.import_module("module", ["object"])
object1, object2 = package.import_module("module", ["object1", "object2"])
How this works
-
This class overrides the import functionality of python while importing the module.
-
When the package tries to import certain modules from it's directory assuming the script ran from there, we change the level of import from absolute to relative.
-
If a module adds a system path (using sys.path.append) we change the path to reflect the location of the module relative to the location from where we are loading the entire pacakage.
-
-
After importing we revert back the functions to originals so that rest of the importing can work as is
Metadata
Release files for packagify 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| packagify-1.3.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| packagify-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / packagify-1.3.tar.gz
| Download URL | packagify-1.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fd46c963cb7fbce10b74d03b6503cb2d8b794c517ec6580690a70ec905ce890
|
|
BLAKE2b-256 checksum How to use checksums |
81bf6c092ae480078f5fe88eec6f5d854d0fbb6fe71fec45dad2d762cb9038a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 10, 2026.
Transparency logRelease files / packagify-1.3-py3-none-any.whl
| Download URL | packagify-1.3-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24d06d080dda452940317a4d634046229d26cd08fe5f9cc9ad6bceaa7673a0e8
|
|
BLAKE2b-256 checksum How to use checksums |
0bbe4fd76441b048af5658253f0ae06f9921e88ace00a71b2702c670d8cb3e18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 10, 2026.
Transparency log