{ "info": { "author": "Robert Nowotny", "author_email": "rnowotny1966@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "lib_path\n========\n\n|Pypi Status| |pyversion| |license| |maintenance|\n\n|Build Status| |Codecov Status| |Better Code| |code climate| |snyk security|\n\n.. |license| image:: https://img.shields.io/github/license/webcomics/pywine.svg\n :target: http://en.wikipedia.org/wiki/MIT_License\n.. |maintenance| image:: https://img.shields.io/maintenance/yes/2019.svg\n.. |Build Status| image:: https://travis-ci.org/bitranox/lib_path.svg?branch=master\n :target: https://travis-ci.org/bitranox/lib_path\n.. for the pypi status link note the dashes, not the underscore !\n.. |Pypi Status| image:: https://badge.fury.io/py/lib-path.svg\n :target: https://badge.fury.io/py/lib_path\n.. |Codecov Status| image:: https://codecov.io/gh/bitranox/lib_path/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/bitranox/lib_path\n.. |Better Code| image:: https://bettercodehub.com/edge/badge/bitranox/lib_path?branch=master\n :target: https://bettercodehub.com/results/bitranox/lib_path\n.. |snyk security| image:: https://snyk.io/test/github/bitranox/lib_path/badge.svg\n :target: https://snyk.io/test/github/bitranox/lib_path\n.. |code climate| image:: https://api.codeclimate.com/v1/badges/eafdc923e24d12513284/maintainability\n :target: https://codeclimate.com/github/bitranox/lib_path/maintainability\n :alt: Maintainability\n.. |pyversion| image:: https://img.shields.io/badge/python-%3E%3D3.5-brightgreen.svg\n :target: https://badge.fury.io/py/lib_path\n :alt: Python Version\n\npath related functions - that also work correctly with windows UNC Paths like //server/share/directory/../../directory2\n\n`100% code coverage `_, mypy static type checking, tested under `Linux, OsX, Windows and Wine `_, automatic daily builds and monitoring\n\n----\n\n- `Try it Online`_\n- `Installation and Upgrade`_\n- `Basic Usage`_\n- `Requirements`_\n- `Acknowledgements`_\n- `Contribute`_\n- `Report Issues `_\n- `Pull Request `_\n- `Code of Conduct `_\n- `License`_\n\n----\n\nTry it Online\n-------------\n\nYou might try it right away in Jupyter Notebook by using the \"launch binder\" badge, or click `here `_\n\nInstallation and Upgrade\n------------------------\n\nFrom source code:\n\n.. code-block:: bash\n\n # normal install\n python setup.py install\n # test without installing\n python setup.py test\n\nvia pip latest Release:\n\n.. code-block:: bash\n\n # latest Release from pypi\n pip install lib_path\n\n # test without installing\n pip install lib_path --install-option test\n\nvia pip latest Development Version:\n\n.. code-block:: bash\n\n # upgrade all dependencies regardless of version number (PREFERRED)\n pip install --upgrade https://github.com/bitranox/lib_path/archive/master.zip --upgrade-strategy eager\n # normal install\n pip install --upgrade https://github.com/bitranox/lib_path/archive/master.zip\n # test without installing\n pip install https://github.com/bitranox/lib_path/archive/master.zip --install-option test\n\nvia requirements.txt:\n\n.. code-block:: bash\n\n # Insert following line in Your requirements.txt:\n # for the latest Release:\n lib_path\n # for the latest Development Version :\n https://github.com/bitranox/lib_path/archive/master.zip\n\n # to install and upgrade all modules mentioned in requirements.txt:\n pip install --upgrade -r //requirements.txt\n\nvia python:\n\n.. code-block:: python\n\n # for the latest Release\n python -m pip install upgrade lib_path\n\n # for the latest Development Version\n python -m pip install upgrade https://github.com/bitranox/lib_path/archive/master.zip\n\nBasic Usage\n-----------\n\n.. code-block:: py\n\n chdir_to_path_of_file(path: str) -> None\n\n expand_filelist_subdirectories(l_paths: List[str], expand_subdirs: bool = True, follow_links: bool = True) -> List[str]\n\n format_abs_norm_path(path: str) -> str\n\n get_absolute_dirname(path: str) -> str\n\n get_absolute_path(path: str) -> str\n\n get_absolute_path_relative_from_path(path: str, path2: str) -> str\n\n get_basename_without_extension(path: str) -> str\n\n get_current_dir() -> str\n\n get_files_and_directories_from_list_of_paths(l_paths: List[str]) -> Tuple[List[str], List[str]]\n\n get_files_from_directory_recursive(directory: str, followlinks: bool = True) -> List[str]\n\n is_relative_path(path: str) -> bool\n\n is_windows_network_unc(path: str) -> bool\n\n log_and_raise_if_directory_does_not_exist(directory: str) -> None\n\n log_and_raise_if_file_does_not_exist(file: str) -> None\n\n log_and_raise_if_path_does_not_exist(path: str) -> None\n\n path_join_posix(path: str, *paths: str)\n\n path_remove_trailing_slashes(path: str) -> str\n\n path_starts_with_windows_drive_letter(path: str) -> bool\n\n strip_and_replace_backslashes(path: str) -> str\n\n substract_windows_drive_letter(path: str) -> str\n\nRequirements\n------------\n\nfollowing modules will be automatically installed :\n\n.. code-block:: shell\n\n pytest # see : https://github.com/pytest-dev/pytest\n typing # see : https://pypi.org/project/typing/\n lib_platform\n\nAcknowledgements\n----------------\n\n- special thanks to \"uncle bob\" Robert C. Martin, especially for his books on \"clean code\" and \"clean architecture\"\n\nContribute\n----------\n\nI would love for you to fork and send me pull request for this project.\n- `please Contribute `_\n\nLicense\n-------\n\nThis software is licensed under the `MIT license `_\n\n\nChangelog\n=========\n\n1.0.0\n-----\n\n2019-04-19: Initial public release, PyPi Release\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bitranox/lib_path", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "lib-path", "package_url": "https://pypi.org/project/lib-path/", "platform": "", "project_url": "https://pypi.org/project/lib-path/", "project_urls": { "Homepage": "https://github.com/bitranox/lib_path" }, "release_url": "https://pypi.org/project/lib-path/1.0.0/", "requires_dist": [ "pytest", "typing", "lib-platform" ], "requires_python": "", "summary": "path related functions", "version": "1.0.0" }, "last_serial": 5235195, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a43fbacdc73ddae0d21c3a0c91bbaf04", "sha256": "90e58485dd232f2b6a203ed96d0eb2f54fbe23753ce0d79ff409ed6dfb2dbd56" }, "downloads": -1, "filename": "lib_path-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a43fbacdc73ddae0d21c3a0c91bbaf04", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7337, "upload_time": "2019-05-06T22:45:44", "url": "https://files.pythonhosted.org/packages/14/95/5c8401909218f8ab23b3079330b0abd14ebbb4d7b2d682db9e09e590de79/lib_path-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "895d614b7b1cbbf1e7fb54dc5d28e719", "sha256": "f8c6574b74c7eadba7e39cf43fcb2c889798aa6d61a3b1dd4ecfd078070e2df5" }, "downloads": -1, "filename": "lib_path-1.0.0.tar.gz", "has_sig": false, "md5_digest": "895d614b7b1cbbf1e7fb54dc5d28e719", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6658, "upload_time": "2019-05-06T22:45:46", "url": "https://files.pythonhosted.org/packages/3c/ce/4f370bf8a513a22099e50184def53b6138dc94323ff01e02c1c817b20be2/lib_path-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a43fbacdc73ddae0d21c3a0c91bbaf04", "sha256": "90e58485dd232f2b6a203ed96d0eb2f54fbe23753ce0d79ff409ed6dfb2dbd56" }, "downloads": -1, "filename": "lib_path-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a43fbacdc73ddae0d21c3a0c91bbaf04", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7337, "upload_time": "2019-05-06T22:45:44", "url": "https://files.pythonhosted.org/packages/14/95/5c8401909218f8ab23b3079330b0abd14ebbb4d7b2d682db9e09e590de79/lib_path-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "895d614b7b1cbbf1e7fb54dc5d28e719", "sha256": "f8c6574b74c7eadba7e39cf43fcb2c889798aa6d61a3b1dd4ecfd078070e2df5" }, "downloads": -1, "filename": "lib_path-1.0.0.tar.gz", "has_sig": false, "md5_digest": "895d614b7b1cbbf1e7fb54dc5d28e719", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6658, "upload_time": "2019-05-06T22:45:46", "url": "https://files.pythonhosted.org/packages/3c/ce/4f370bf8a513a22099e50184def53b6138dc94323ff01e02c1c817b20be2/lib_path-1.0.0.tar.gz" } ] }