Skip to main content

directory_manager

directory_manager — удобная библиотека для управления файлами и директориями в Python.

Она предоставляет готовые инструменты для:

  • создания и удаления директорий и файлов
  • копирования с фильтрацией по расширениям
  • очистки директорий без удаления самих папок
  • архивирования и разархивирования .zip
  • логирования всех операций

Установка

pip install directory_manager_AP

Пример

from directory_manager import DirectoryManager
from pathlib import Path

dm = DirectoryManager("workspace")

# Создание папки и файла
dm.create_dir(Path("workspace/new_folder"))
dm.create_file(Path("workspace/new_folder/example.txt"), "Привет, мир!")

# Копирование всех .txt файлов без вложенности
dm.copy_flat(Path("workspace"), Path("backup"), extensions=[".txt"])

# Архивация
dm.zip_dir(Path("workspace"), Path("workspace.zip"))

# Очистка папки
dm.clear_dir(Path("workspace"))

Metadata

Release files for directory-manager-AP 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for directory-manager-AP 0.1.4
File Size Uploaded Provenance Actions
directory_manager_ap-0.1.4.tar.gz 11.5 kB Without provenance Details for directory_manager_ap-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for directory-manager-AP 0.1.4
File Interpreter ABI Platform Actions
directory_manager_ap-0.1.4-py3-none-any.whl Python 3 none any Details for directory_manager_ap-0.1.4-py3-none-any.whl

Total release size: 17.6 kB

Release files / directory_manager_ap-0.1.4.tar.gz

Download URL directory_manager_ap-0.1.4.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b8d09e8d8ee1cd1019d8c4ee84b5da281f77cdf96e73a273ca33db9790004292
BLAKE2b-256 checksum
How to use checksums
87cec264757cd15722b1eda486bee1e42eefbf1eefc59678b6462f2edf53f90d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / directory_manager_ap-0.1.4-py3-none-any.whl

Download URL directory_manager_ap-0.1.4-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
191767689eeadf44cf6201a7068d7694869b319847c59d46422e042da03085f4
BLAKE2b-256 checksum
How to use checksums
a2676cc28e8c3f2883e6a65ce177d4adca75f14878ff6a0b47aa199221f80678
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for directory-manager-AP 0.1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page