Metadata-Version: 2.1
Name: epath
Version: 0.7
Summary: Easy path for python import/save/load process
Home-page: https://github.com/ademakdogan/epath
Author: A.Akdogan
Author-email: adem.akdogan92@gmail.com
License: MIT
Description: # epath
        
        This package provides easy and dynamic way to import parent files in Python.  
        
        Sample folder structure can be seen below.  
        
        ``` 
        --main_folder
        
        --app.py
        
          --folder_1
        
            --sample.txt
        
          --folder_2
        
            --target.py
        ``` 
        Here, it is desired to read the sample.txt file from the target.py file. Then it will be used by calling the say_hello and say_goodBye functions in the app.py file.  
        
        app.py
        ``` 
        def say_hello():
          print("Hello")
        
        def say_goodBye():
          print("GoodBye")
        ``` 
        
        sample.txt
        ```
        This is a sample.txt 
        ```
        
        target.py
        ```
        from epath import Path
        
        pt = Path()
        txt_path = pt.get("/../folder_1/sample.txt")
        with open(txt_path) as f:
            lines = f.readlines()
        
        print(lines)
        >>>['This is a sample.txt ']
        
        #----------------------------------
        app = pt.importer("/../app")
        app.say_hello()
        >>>Hello
        
        app.say_goodBye()
        >>>GoodBye
        
        ```
Keywords: PATH,ROUTE
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
