pathutility


Namepathutility JSON
Version 1.0.0 PyPI version JSON
download
home_page
Summarypathutility is a Python library for working with file paths.
upload_time2023-12-04 11:16:51
maintainer
docs_urlNone
authorMarc anglisano
requires_python>=3.8
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PathUtils

## Introduction
PathUtils is a utility class for handling various path-related operations in Python. It provides methods for retrieving file information, checking file existence, creating directories, detecting file encoding, and listing files in a directory.

## Installation
To install PathUtils, simply use pip:

```bash
pip install pathutility

```

## Usage Example
Here's an example of how to use the PathUtils class:

```python
from pathutility import PathUtils

# Create an instance of PathUtils
path_util = PathUtils()

# Get file information
file_path = '/path/to/file.txt'
print(f"File name: {path_util.get_filename(file_path)}")
print(f"File size: {path_util.get_file_size(file_path)} bytes")
print(f"File creation time: {path_util.get_file_creation_time(file_path)}")

# List files in a directory
directory_path = '/path/to/directory'
files_list = path_util.list_files_in_directory(directory_path)
print(f"Files in directory: {files_list}")
```

## Documentation
The Sphinx-generated documentation for PathUtils can be found [here](https://anglisanosa.github.io/pathutility/).

## Contribution
Feel free to contribute by submitting issues [here](https://github.com/anglisanosa/pathutility/issues).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pathutility",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Marc anglisano",
    "author_email": "marcanglisano@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "# PathUtils\n\n## Introduction\nPathUtils is a utility class for handling various path-related operations in Python. It provides methods for retrieving file information, checking file existence, creating directories, detecting file encoding, and listing files in a directory.\n\n## Installation\nTo install PathUtils, simply use pip:\n\n```bash\npip install pathutility\n\n```\n\n## Usage Example\nHere's an example of how to use the PathUtils class:\n\n```python\nfrom pathutility import PathUtils\n\n# Create an instance of PathUtils\npath_util = PathUtils()\n\n# Get file information\nfile_path = '/path/to/file.txt'\nprint(f\"File name: {path_util.get_filename(file_path)}\")\nprint(f\"File size: {path_util.get_file_size(file_path)} bytes\")\nprint(f\"File creation time: {path_util.get_file_creation_time(file_path)}\")\n\n# List files in a directory\ndirectory_path = '/path/to/directory'\nfiles_list = path_util.list_files_in_directory(directory_path)\nprint(f\"Files in directory: {files_list}\")\n```\n\n## Documentation\nThe Sphinx-generated documentation for PathUtils can be found [here](https://anglisanosa.github.io/pathutility/).\n\n## Contribution\nFeel free to contribute by submitting issues [here](https://github.com/anglisanosa/pathutility/issues).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "pathutility is a Python library for working with file paths.",
    "version": "1.0.0",
    "project_urls": {
        "Bug Reports": "https://github.com/anglisanosa/pathutility/issues",
        "Documentation": "https://anglisanosa.github.io/pathutility/",
        "Source": "https://github.com/anglisanosa/pathutility"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67689faa7bad7e64248079ff9ada728d4123a4082df4746a259dbe2e95d7a313",
                "md5": "33d7ba7e6bf0f3aaebf21d3bb43400e4",
                "sha256": "a5762d1a4748bd1392dafcf26479be3a5ad10d11607f30144c8f6216eb0c8404"
            },
            "downloads": -1,
            "filename": "pathutility-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "33d7ba7e6bf0f3aaebf21d3bb43400e4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4006,
            "upload_time": "2023-12-04T11:16:51",
            "upload_time_iso_8601": "2023-12-04T11:16:51.246742Z",
            "url": "https://files.pythonhosted.org/packages/67/68/9faa7bad7e64248079ff9ada728d4123a4082df4746a259dbe2e95d7a313/pathutility-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-04 11:16:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "anglisanosa",
    "github_project": "pathutility",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pathutility"
}
        
Elapsed time: 0.14400s