Name | quickpathstr JSON |
Version |
0.0.4
JSON |
| download |
home_page | |
Summary | Provides syntax for working with strings in the context of file management. |
upload_time | 2023-06-24 16:18:19 |
maintainer | |
docs_url | None |
author | Sean Yeatts |
requires_python | >=3.7 |
license | |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# QuickPathStr
*Copyright (c) 2023 Sean Yeatts. All rights reserved.*
This module provides syntax for working with strings in the context of file
management. It's designed to reinforce a universal nomenclature by which files,
their types, and their directories may be referred.
## API Reference
The core of the API is captured within the ```Filepath``` class:
```python
class Filepath:
# Deconstructs a complete filepath into its constituent elements
def __init__(self, complete: str) -> None:
self.complete = complete # Ex: C:\Users\myself\Desktop\MyFile.txt
self.directory = str(Path(self.complete).parent) # Ex: C:\Users\myself\Desktop
self.name = str(Path(self.complete).name) # Ex: MyFile.txt
self.root = str(Path(self.complete).stem) # Ex: MyFile
self.extension = str(Path(self.complete).suffix) # Ex: .txt
```
Raw data
{
"_id": null,
"home_page": "",
"name": "quickpathstr",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Sean Yeatts",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/6f/af/b53047afaddaf9d113ecd1976c24b182807321694f068931423683da4479/quickpathstr-0.0.4.tar.gz",
"platform": null,
"description": "# QuickPathStr\n\n*Copyright (c) 2023 Sean Yeatts. All rights reserved.*\n\nThis module provides syntax for working with strings in the context of file\nmanagement. It's designed to reinforce a universal nomenclature by which files,\ntheir types, and their directories may be referred.\n\n## API Reference\nThe core of the API is captured within the ```Filepath``` class:\n\n```python\nclass Filepath:\n# Deconstructs a complete filepath into its constituent elements\n def __init__(self, complete: str) -> None:\n self.complete = complete # Ex: C:\\Users\\myself\\Desktop\\MyFile.txt\n self.directory = str(Path(self.complete).parent) # Ex: C:\\Users\\myself\\Desktop\n self.name = str(Path(self.complete).name) # Ex: MyFile.txt\n self.root = str(Path(self.complete).stem) # Ex: MyFile\n self.extension = str(Path(self.complete).suffix) # Ex: .txt\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Provides syntax for working with strings in the context of file management.",
"version": "0.0.4",
"project_urls": {
"GitHub": "https://github.com/SeanYeatts/quickpathstr.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "98904e489df214115c43f96cc088409f7358e0236b68dd2307e2951d8c56cc2f",
"md5": "879d3be10a5f86c1d37566a6a3ad96a7",
"sha256": "dbf904d5d4f791bd670803197083540d2ec7b13f52ec13819ba12f0b69f1187d"
},
"downloads": -1,
"filename": "quickpathstr-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "879d3be10a5f86c1d37566a6a3ad96a7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 2760,
"upload_time": "2023-06-24T16:18:18",
"upload_time_iso_8601": "2023-06-24T16:18:18.011045Z",
"url": "https://files.pythonhosted.org/packages/98/90/4e489df214115c43f96cc088409f7358e0236b68dd2307e2951d8c56cc2f/quickpathstr-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6fafb53047afaddaf9d113ecd1976c24b182807321694f068931423683da4479",
"md5": "83c03dd1c9c21bd428720c39ab1cc2b4",
"sha256": "e52088196e5bcab393568f3aa5e748de61366f2dd9cf151f2b10400380fe30ae"
},
"downloads": -1,
"filename": "quickpathstr-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "83c03dd1c9c21bd428720c39ab1cc2b4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 2186,
"upload_time": "2023-06-24T16:18:19",
"upload_time_iso_8601": "2023-06-24T16:18:19.584969Z",
"url": "https://files.pythonhosted.org/packages/6f/af/b53047afaddaf9d113ecd1976c24b182807321694f068931423683da4479/quickpathstr-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-24 16:18:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SeanYeatts",
"github_project": "quickpathstr",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "quickpathstr"
}