Metadata-Version: 2.1
Name: packagify
Version: 1.0
Summary: A packaging utility to treat folders as packages
Home-page: https://github.com/rijulg/packagify
Author: Rijul Gupta
Author-email: rijulg@gmail.com
License: MIT
Download-URL: https://github.com/rijulg/packagify/archive/v1.0.tar.gz
Description: # Packagify
        
        A packaging utility to access folders that aren't suitable to be used as packages, as python packages.
        
        ## How to use
        
        ``` python
        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
        
Keywords: Packaging,Helper
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
