Skip to main content

decorators utility

Project description

Project Readme

decorators utility

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:

pip install pathutility

Usage Example

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

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.

Contribution

Feel free to contribute by submitting issues here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

decoratorsutility-0.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file decoratorsutility-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for decoratorsutility-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f20744692456dbaecaf7e3563a387f2227f7d5df7a67b10897bf9a3bd0ac7343
MD5 cc676feb9c743e13cbbf4f84f0219e0a
BLAKE2b-256 09e6d3c27a996e3167a10974d6ae4781d2820bc6a5bf64d5ff9dccb73322765d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page