GetFile (version 0.0.1)
index
GetFile.html

This package implements tools to build python package and tools.
 
>>> file = open("./configuration.conf")             # File should exist
>>> file.close()                                    # File should be closed
>>> file = open("./configuration.conf", "wb")       # File should exist
>>> file.write(b"my configuration")
>>> file.close()                                    # File should be closed
>>> filename = get_real_path("./data.db")           # File should exist, slower
>>> filename = get_real_path("./data.db", __FILE__) # File should exist, faster
>>> filename = get_real_path("./data.db", dirname(__FILE__)) # File should exist, faster

 
Modules
       
builtins

 
Functions
       
get_real_path(file_path: str, module_path: str = None) -> str
This function researchs a file from current
directory and lib directory.
open(file_path: str, *args, **kwargs) -> _io.TextIOWrapper
This function researchs a file from current
directory and lib directory and open it.

 
Data
        __all__ = ['get_real_path', 'open']
__annotations__ = {'system': <class 'str'>}
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nPythonToolsKit Copyright (C) 2022 Maurice Lam...ome to redistribute it\nunder certain conditions.\n'
__description__ = '\nThis package implements tools to build python package and tools.\n'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/PythonToolsKit'

 
Author
        Maurice Lambert