Directory Manager Project
Overview
The Directory Manager Project is a Python extension written in Rust using PyO3. It facilitates efficient interaction with the filesystem, offering capabilities to handle files and directories. The project is cross-platform, compatible with both Unix-like and Windows systems.
Features
- File and Directory Operations: Manage files and directories with functions for reading, writing, moving, and deleting.
- Metadata Retrieval: Fetch file metadata such as last modified time, creation time, size, and read-only status.
- Content Manipulation: Overwrite or append content in files.
- Directory Traversal: Traverse, list, and perform batch operations on directories.
- Custom Python Classes: Includes
File,Directory, andDirectoryManagerclasses, each with specific functionalities.
How to Use (Python)
After installing the Directory Manager, you can use it in Python as follows:
-
Create a Directory Manager Instance:
from dirman import DirectoryManager dm = DirectoryManager('/path/to/directory')
-
File Operations:
- Reading a file:
file = dm.find_file(name="example.txt") content = file.read()
- Writing (overwriting) to a file:
file.write_over("New content")
- Appending to a file:
file.concat("Additional content")
- Reading a file:
-
Get Metadata:
metadata = file.get_metadata() print(metadata['last_modified'], metadata['size'])
-
Directory Operations:
- Moving files:
dm.move_files(name="example.txt",dest_directory_name="another_folder")
- Deleting directories:
dm.delete_directories(name="old_folder")
- Moving files:
Building with Maturin (Rust Source)
Maturin is a build system to build and publish Rust-based Python packages with minimal configuration.
Metadata
Release files for dirman 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| DirMan-0.1.7.tar.gz | 13.3 kB | Without provenance | Details for DirMan-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| DirMan-0.1.7-cp312-none-win_amd64.whl | CPython 3.12 | none | Windows x86-64 | Details for DirMan-0.1.7-cp312-none-win_amd64.whl |
Total release size: 228.7 kB
Release files / DirMan-0.1.7.tar.gz
| Download URL | DirMan-0.1.7.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7381ba4c3e050b518eb544abe7b65edd9aef66880286f81f2b7eecfc66b21d5c
|
|
BLAKE2b-256 checksum How to use checksums |
5c1fdfc49d7446a7a70f70ee2a60a47a1264a48dae0ea839dd29eebc40ceee33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Release files / DirMan-0.1.7-cp312-none-win_amd64.whl
| Download URL | DirMan-0.1.7-cp312-none-win_amd64.whl |
|---|---|
| Size | 215.4 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a71c565686d519ab5442f0a552b4579a978ccf9c10d773003b9391688d7ad0a5
|
|
BLAKE2b-256 checksum How to use checksums |
8e3dcb64b0deab817b2bd7f0cdaf0dedc18f93945e3cfeea890397e4a58d295b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Security for dirman 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.