Python package to patch all the internal functions to ignore .DS_Store file in Mac
Project description
Death to DS_Store
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bd914be3cebe9216800282fe68ffe7c82434a739f2c76a040562789a3fce0c7
|
|
| MD5 |
e1b80a1476f51807f15a07887e7fe66f
|
|
| BLAKE2b-256 |
289d7d732cdb836cddd24de488db4484e92cbefe4ed7d6972768b4b37cb8f94d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
542e03861036485f0171a246ee3b370adf65caaba53da6eee273e138f038733e
|
|
| MD5 |
5269aab9fb60436604deb2db3f5160c7
|
|
| BLAKE2b-256 |
6b9cfe5321d10d9c85729d83f430c885fe13c4e921f9208acc35221d4c345adb
|