Skip to main content

Утилиты для работы с файловой системой

Project description

vebfs logo

vebfs

Удобная библиотека Python для работы с файловой системой: копирование, перемещение, удаление, резервное копирование и поиск по шаблону.

Установка

Установка из исходников (локально):

git clone https://github.com/your-username/vebfs.git
cd vebfs
pip install -e .

Использование

from vebfs import (
    copy_file, move_file, delete_file, delete_directory,
    create_backup, get_file_size, list_all_files,
    ensure_directory_exists, find_files, find_directories
)

# Копирование
copy_file("example.txt", "copy_example.txt")

# Перемещение
move_file("copy_example.txt", "moved_example.txt")

# Бэкап
create_backup("moved_example.txt", "backup.txt")

# Удаление
delete_file("moved_example.txt")
delete_directory("old_folder", recursive=True)

# Проверка папки
ensure_directory_exists("logs")

# Поиск
print("Все .txt файлы:", find_files(".", "*.txt"))
print("Все директории с 'log':", find_directories(".", "log*"))

Тестирование

python -m unittest discover tests

Лицензия

BSD 2-Clause License

Copyright (c) 2025, veb-bet

Project details


Download files

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

Source Distribution

vebfs-0.1.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vebfs-0.1.2-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file vebfs-0.1.2.tar.gz.

File metadata

  • Download URL: vebfs-0.1.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vebfs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ded07996de697b756013fb2e331525c9c8a477796a0ac1e52f3cae9cd6bebc72
MD5 11b95dcd496195f3b90e9c7a7e2fe221
BLAKE2b-256 5f24772a4508a984f9ac0aa7e874e38791cb59d4d24353ec943b1e6fcba383c6

See more details on using hashes here.

File details

Details for the file vebfs-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: vebfs-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for vebfs-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56c2273253f8e2778cc0cd5e9ff6083587e6c17fcd52234eee0d6a1487d192bf
MD5 139b8203c862f2c3372bf990071a0a0f
BLAKE2b-256 046c8fdc94b2ab125e2f66e50effe0ae2eca2977fcbf7264755a7c7b8722039a

See more details on using hashes here.

Supported by

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