{ "info": { "author": "Yoochan", "author_email": "yota.news@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# In short\n\nThis libray propose to extend the capabilities of pathlib.\nThe Path class provided here is a sub-class of the original pathlib.Path class.\n\nIt especially enable an easy interaction with current file formats like json, pickle or tsv files, plain or zipped.\n\nOptions are mostly not setable, this package was meant to fit my uses, not all.\n\n\tfrom cc_pathlib import Path\n\n# In detail\n\n`Path.make_dirs(self, umask='shared')` is an equivalent of `Path.mkdir(parents=True, exists_ok=True)`, with the added possiblity to set a umask to all directetories created inbetween. Especially, the default value is 'shared' for a mask value of 0o2770 (which means: available for read and write access to user and group but not others, and gid set such as each new file or directory created subsequently keep this properties).\n\n`Path.make_parents(self, umask='shared')` same as `Path.make_dirs(self, umask='shared')` but works on files, it create the whole directory structure above it. It does not create the file though.\n\n`Path.delete(self, content_only=False)` delete reccursively if the `Path` is a directory. If `content_only=True` it keeps the root directory once emptied.\n\n`Path.or_archive` return the name of a corresponding archive if it exists. Looking at the following extensions, in this order, `.br`, `.lz`, `.gz`. This function is meant to work on files, not on complex archives like `.tar` files.\n\n`Path.load(self, encoding='utf-8')` is an auto-loader. The type of file is guessed from the extension\n\n# The auto-loader\n\nThe auto-loader works in two steps :\n\n1. if the file is compressed with one of the following extensions, it is first unzipped :\n\t* `.gz` for gzip\n\t* `.br` for brotli\n\t* `.lz` for lzip\n2. if the file match one of the following filter, the content is properly parsed, and only the resulting object is returned:\n\t* `.pickle` for a pickled file\n\t* `.json` for a json data structure\n\t* `.tsv` for a tab separated value type of file, returned as a `list()` of `list()` of `str()`. The complete spec of a `.tsv` file is described below\n\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/yoochan/pypi-ccpathlib", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cc-pathlib", "package_url": "https://pypi.org/project/cc-pathlib/", "platform": "", "project_url": "https://pypi.org/project/cc-pathlib/", "project_urls": { "Homepage": "https://bitbucket.org/yoochan/pypi-ccpathlib" }, "release_url": "https://pypi.org/project/cc-pathlib/0.0.6/", "requires_dist": [ "brotli" ], "requires_python": ">=3.6", "summary": "supercharged implementation of pathlib.Path()", "version": "0.0.6" }, "last_serial": 5829326, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "1cc1f295c60ccd27e34dd5cd9115cffa", "sha256": "101928398c052bdbde0b6903eddef469050de41ab85871cac7aa4123efad1b03" }, "downloads": -1, "filename": "cc_pathlib-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1cc1f295c60ccd27e34dd5cd9115cffa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7656, "upload_time": "2019-06-30T15:11:35", "url": "https://files.pythonhosted.org/packages/fb/68/a211ef09ea22f76eb85eaef9ba7358abf4fbc61dbdf17047b125ee0c143a/cc_pathlib-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c44dc889eed22bc626d85934f68c833", "sha256": "6e9ee633f3b6876563aa39056b0509011c5fb80fa3b8ef0985ec4e1443a39673" }, "downloads": -1, "filename": "cc-pathlib-0.0.3.tar.gz", "has_sig": false, "md5_digest": "9c44dc889eed22bc626d85934f68c833", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5379, "upload_time": "2019-06-30T15:11:37", "url": "https://files.pythonhosted.org/packages/83/f0/b20cd4dfd125c19d75a447fe8fca3215bd8ccd457687854fc3db8a391cfd/cc-pathlib-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "54956652145729c272980bb437a7c3ad", "sha256": "7490c009cacdc255eb904c22a9c21d073a5dfced8b75cae7565fc6a196757cfd" }, "downloads": -1, "filename": "cc_pathlib-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "54956652145729c272980bb437a7c3ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7617, "upload_time": "2019-06-30T21:21:22", "url": "https://files.pythonhosted.org/packages/73/1a/adc396b3f2049c7b7d344937643e8bf09360b6987c4b40066f957154f6aa/cc_pathlib-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd7a3e717f57267fb7f871a5cdc5c866", "sha256": "9ea2a24c10a62331439d59ea886d86aca5b8c76a471621489060b29bc6cd446e" }, "downloads": -1, "filename": "cc-pathlib-0.0.4.tar.gz", "has_sig": false, "md5_digest": "fd7a3e717f57267fb7f871a5cdc5c866", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5320, "upload_time": "2019-06-30T21:21:23", "url": "https://files.pythonhosted.org/packages/f0/4b/0e432826b1c18b761dc16a8935d4852b9bb8d95f3b6ec1d7360c13570b56/cc-pathlib-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "7389e5bd83def74247aa7177c06d878d", "sha256": "ebde3b9063eac479144285f713242996f2682db7322668d662d2d18fc24ead6f" }, "downloads": -1, "filename": "cc_pathlib-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7389e5bd83def74247aa7177c06d878d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7667, "upload_time": "2019-09-14T13:15:59", "url": "https://files.pythonhosted.org/packages/ad/a8/0e98e21d924beb830d8080c4863381a3f1141c4441c4d1e94f9f7c34b28b/cc_pathlib-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0b9198fa8ce81eda0598ff8158cfb76", "sha256": "58304cb511c0d95d3d87694a24a6be98fd14e4e27650046ea64e31bb87b7bbc6" }, "downloads": -1, "filename": "cc-pathlib-0.0.5.tar.gz", "has_sig": false, "md5_digest": "b0b9198fa8ce81eda0598ff8158cfb76", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4931, "upload_time": "2019-09-14T13:16:01", "url": "https://files.pythonhosted.org/packages/39/a4/da51e31296060f07d4ba2062ff39300292094735f2b5dceb88f10e93a2bb/cc-pathlib-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "42770a7379391340892e924c41bdec9e", "sha256": "33b991bc01f802cd5fd94eec68a753fa19065cc6743f59f54ecea76eda7b86d0" }, "downloads": -1, "filename": "cc_pathlib-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "42770a7379391340892e924c41bdec9e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7666, "upload_time": "2019-09-14T13:56:46", "url": "https://files.pythonhosted.org/packages/72/89/c7c0adeca0ffc8fb15aacab89ae341083bc327533820babd79b5567609a7/cc_pathlib-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a2b71e9b29aa114be99b1285e03dfc6", "sha256": "fca2b8ba1a39792f64115c21c59f2f891872bbbfbe15d79a57bb8aeb07ffbf9b" }, "downloads": -1, "filename": "cc-pathlib-0.0.6.tar.gz", "has_sig": false, "md5_digest": "6a2b71e9b29aa114be99b1285e03dfc6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4934, "upload_time": "2019-09-14T13:56:47", "url": "https://files.pythonhosted.org/packages/0c/3f/b2642299a5cf1c2eca0d867e372eda384e1fdbd534f9690320b65c249335/cc-pathlib-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "42770a7379391340892e924c41bdec9e", "sha256": "33b991bc01f802cd5fd94eec68a753fa19065cc6743f59f54ecea76eda7b86d0" }, "downloads": -1, "filename": "cc_pathlib-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "42770a7379391340892e924c41bdec9e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7666, "upload_time": "2019-09-14T13:56:46", "url": "https://files.pythonhosted.org/packages/72/89/c7c0adeca0ffc8fb15aacab89ae341083bc327533820babd79b5567609a7/cc_pathlib-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a2b71e9b29aa114be99b1285e03dfc6", "sha256": "fca2b8ba1a39792f64115c21c59f2f891872bbbfbe15d79a57bb8aeb07ffbf9b" }, "downloads": -1, "filename": "cc-pathlib-0.0.6.tar.gz", "has_sig": false, "md5_digest": "6a2b71e9b29aa114be99b1285e03dfc6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4934, "upload_time": "2019-09-14T13:56:47", "url": "https://files.pythonhosted.org/packages/0c/3f/b2642299a5cf1c2eca0d867e372eda384e1fdbd534f9690320b65c249335/cc-pathlib-0.0.6.tar.gz" } ] }