python-fsutil

high-level file-system operations for lazy devs.

MIT License

Downloads
553.6K
Stars
201
Committers
4

Bot releases are hidden (Show)

python-fsutil - 0.14.1 Latest Release

Published by fabiocaccamo 7 months ago

  • Add mypy to pre-commit.
  • Add transform_filepath method. #12 #13
  • Fix join_filename return value when basename or extension are empty.
  • Fix pyproject Ruff conf warnings.
  • Bump requirements and pre-commit hooks.
python-fsutil - 0.14.0

Published by fabiocaccamo 7 months ago

  • Add mypy to pre-commit.
  • Add transform_filepath method. #12 #13
  • Fix join_filename return value when basename or extension are empty.
  • Fix pyproject Ruff conf warnings.
  • Bump requirements and pre-commit hooks.
python-fsutil - 0.13.1

Published by fabiocaccamo 9 months ago

  • Fix permissions inheritance from existing file when using write_file with atomic=True. #94
  • Bump requirements and pre-commit hooks.
python-fsutil - 0.13.0

Published by fabiocaccamo 10 months ago

  • Add get_permissions and set_permissions methods.
  • Fix permissions lost when using write_file with atomic=True. #94
  • Improve write_file with atomic=True atomicity. #91
  • Remove tests duplicated code.
python-fsutil - 0.12.0

Published by fabiocaccamo 11 months ago

  • Add possibility to write files atomically (fsutil.write_file(path, content, atomic=True)). #91
python-fsutil - 0.11.0

Published by fabiocaccamo 12 months ago

  • Add Python 3.12 support. (#84)
  • Add tar files operations support. #48 (#87)
  • Switch from setup.cfg to pyproject.toml.
  • Replace flake8 with Ruff.
  • Fix tox test command.
  • Upgrade syntax for Python >= 3.8.
  • Reformat tests code.
  • Set Black pre-commit hook line-length option value.
  • Add fix-future-annotations pre-commit hook.
  • Bump requirements and pre-commit hooks.
python-fsutil - 0.10.0

Published by fabiocaccamo over 1 year ago

  • Rename default branch from master to main.
  • Move flake8 config to setup.cfg.
  • Increase flake8 checks.
  • Add mypy to CI (strict mode).
  • Add pre-commit to CI.
  • Force keyword arguments .
  • Remove unused import.
  • Add type hints. #18
  • Bump requirements and pre-commit hooks.
python-fsutil - 0.9.3

Published by fabiocaccamo almost 2 years ago

  • Remove tests/ from dist.
python-fsutil - 0.9.2

Published by fabiocaccamo almost 2 years ago

  • Fix FileNotFoundError when calling make_dirs_for_file with filename only.
  • Pin test requirements.
  • Bump test requirements.
python-fsutil - 0.9.1

Published by fabiocaccamo almost 2 years ago

  • Fix OSError when downloading multiple files to the same temp dir.
python-fsutil - 0.9.0

Published by fabiocaccamo almost 2 years ago

  • Drop old code targeting Python < 3.8.
  • Add get_unique_name method.
  • Add replace_file method.
  • Add replace_dir method.
  • Add get_dir_hash method. #10
  • Add support to pathlib.Path path arguments. #14
  • Add default value for pattern argument in search_dirs and search_files methods.
  • Add more assertions on path args.
  • Increase tests coverage.
  • Add setup.cfg (setuptools declarative syntax) generated using setuptools-py2cfg.
  • Add pyupgrade to pre-commit config.
  • Fix duplicated test name.
  • Remove unused variable in tests.
python-fsutil - 0.8.0

Published by fabiocaccamo almost 2 years ago

  • Add Python 3.11 support.
  • Drop Python < 3.8 support. #17
  • Add pypy to CI.
  • Add pre-commit.
  • Add default json encoder to write_file_json for encoding also datetime and set objects by default.
  • Replace str.format with f-strings.
  • Make dirpath argument optional in download_file method.
  • Fix download_file NameError when requests is not installed.
  • Increase tests coverage.
  • Bump requirements and GitHub actions versions.
python-fsutil -

Published by fabiocaccamo over 3 years ago

  • Added get_parent_dir method.
  • Updated join_path to force concatenation even with absolute paths.
  • Updated join_path to return a normalized path.
  • Updated join_filepath method to use join_path.
python-fsutil -

Published by fabiocaccamo almost 4 years ago

  • Added delete_dir_content method (alias for remove_dir_content method).
  • Added download_file method.
  • Added read_file_from_url method.
  • Added remove_dir_content and method.
python-fsutil -

Published by fabiocaccamo almost 4 years ago

  • Added create_zip_file method.
  • Added extract_zip_file method.
  • Added get_dir_creation_date method.
  • Added get_dir_creation_date_formatted method.
  • Added get_dir_last_modified_date method.
  • Added get_dir_last_modified_date_formatted method.
  • Added get_file_creation_date method.
  • Added get_file_creation_date_formatted method.
  • Added get_file_last_modified_date method.
  • Added get_file_last_modified_date_formatted method.
  • Added read_file_lines method.
  • Refactored tests.
python-fsutil -

Published by fabiocaccamo almost 4 years ago

  • Added convert_size_bytes_to_string method.
  • Added convert_size_string_to_bytes method.
  • Added get_dir_size method.
  • Added get_dir_size_formatted method.
  • Added get_file_size method.
  • Added get_file_size_formatted.
  • Renamed get_path to join_path.
  • Renamed get_hash to get_file_hash.
  • Fixed clean_dir method and added relative tests.
  • Improved code quality and tests coverage.
python-fsutil -

Published by fabiocaccamo almost 4 years ago

  • Released python-fsutil
Package Rankings
Top 17.24% on Spack.io
Top 3.38% on Pypi.org
Top 31.89% on Conda-forge.org
Badges
Extracted from project README
Related Projects