Skip to main content

Python package to patch all the internal functions to ignore .DS_Store file in Mac

Project description

Death to DS_Store

https://img.shields.io/pypi/v/dtd.svg https://img.shields.io/travis/muditbac/dtd.svg Documentation Status

Python package to patch all the internal functions to ignore .DS_Store file in Mac

  • Free software: MIT license

  • Documentation: Usage mentioned below

Features

  • Patches pathlib internal functions to ignore .DS_Store file

Examples

Before

>>> import pathlib
>>> list(pathlib.Path('./tests').iterdir())
[PosixPath('tests/.DS_Store'), PosixPath('tests/__init__.py'), PosixPath('tests/__pycache__'), PosixPath('tests/test_dtd.py'), PosixPath('tests/test_pathlib.py')]

After

>>> import pathlib
>>> import dtd
>>> dtd.patch_all()
>>> list(pathlib.Path('./tests').iterdir())
[PosixPath('tests/__init__.py'), PosixPath('tests/__pycache__'), PosixPath('tests/test_dtd.py'), PosixPath('tests/test_pathlib.py')]

Quick usage by just importing autopatch

>>> import pathlib
>>> from dtd import autopatch
>>> list(pathlib.Path('./tests').iterdir())
[PosixPath('tests/__init__.py'), PosixPath('tests/__pycache__'), PosixPath('tests/test_dtd.py'), PosixPath('tests/test_pathlib.py')]

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2020-06-27)

  • First release on PyPI.

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

dtd-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

dtd-0.1.0-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dtd-0.1.0.tar.gz.

File metadata

  • Download URL: dtd-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for dtd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0bd914be3cebe9216800282fe68ffe7c82434a739f2c76a040562789a3fce0c7
MD5 e1b80a1476f51807f15a07887e7fe66f
BLAKE2b-256 289d7d732cdb836cddd24de488db4484e92cbefe4ed7d6972768b4b37cb8f94d

See more details on using hashes here.

File details

Details for the file dtd-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: dtd-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for dtd-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 542e03861036485f0171a246ee3b370adf65caaba53da6eee273e138f038733e
MD5 5269aab9fb60436604deb2db3f5160c7
BLAKE2b-256 6b9cfe5321d10d9c85729d83f430c885fe13c4e921f9208acc35221d4c345adb

See more details on using hashes here.

Supported by

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