Skip to main content

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

  1. This class overrides the import functionality of python while importing the module.

    1. 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.

    2. 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.

  2. 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)

Source distribution for packagify 1.3
File Size Uploaded
packagify-1.3.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for packagify 1.3
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

2.0

2 release files

This release

1.3 This release

2 release files

1.2

2 release files

1.1

1 release file

1.0

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