Skip to main content

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.

Release files for dtd 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dtd 0.1.0
File Size Uploaded
dtd-0.1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dtd 0.1.0
File Interpreter ABI Platform
dtd-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 11.7 kB

Release files / dtd-0.1.0.tar.gz

Download URL dtd-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0bd914be3cebe9216800282fe68ffe7c82434a739f2c76a040562789a3fce0c7
BLAKE2b-256 checksum
How to use checksums
289d7d732cdb836cddd24de488db4484e92cbefe4ed7d6972768b4b37cb8f94d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / dtd-0.1.0-py2.py3-none-any.whl

Download URL dtd-0.1.0-py2.py3-none-any.whl
Size 3.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
542e03861036485f0171a246ee3b370adf65caaba53da6eee273e138f038733e
BLAKE2b-256 checksum
How to use checksums
6b9cfe5321d10d9c85729d83f430c885fe13c4e921f9208acc35221d4c345adb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page