Skip to main content

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

Project description

vebfs logo

vebfs

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

Установка

Установите библиотеку через PyPI:

pip install vebfs

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

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.3.tar.gz (9.0 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.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vebfs-0.1.3.tar.gz
  • Upload date:
  • Size: 9.0 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.3.tar.gz
Algorithm Hash digest
SHA256 22d87d58a3710a7b8f78042d305ba907208099980f885ecf7c5d289a76b13943
MD5 c17bcbcdfaa69749bac2379a7908efe2
BLAKE2b-256 4f5efb93fe481529ef32d373e4e660cf2df2eef757ae97afcad7ceb4899edc02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vebfs-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33cb628a532ede008742978827c4c61046f71e552b46724da5cc92006c483e28
MD5 0ba688eb316c29c3bc2b357d8d569ca7
BLAKE2b-256 ebd4bf886a55b231ec8e3d88e96cf2d50cd8b4805da161cf180e193b2f5a2f0a

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