Metadata-Version: 2.1
Name: dtd
Version: 0.1.0
Summary: Python package to patch all the internal functions to ignore .DS_Store file in Mac
Home-page: https://github.com/muditbac/dtd
Author: Mudit Bachhawat
Author-email: mudit5bachhawat@gmail.com
License: MIT license
Keywords: dtd
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.5

=================
Death to DS_Store
=================


.. image:: https://img.shields.io/pypi/v/dtd.svg
        :target: https://pypi.python.org/pypi/dtd

.. image:: https://img.shields.io/travis/muditbac/dtd.svg
        :target: https://travis-ci.com/muditbac/dtd

.. image:: https://readthedocs.org/projects/dtd/badge/?version=latest
        :target: https://dtd.readthedocs.io/en/latest/?badge=latest
        :alt: 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

.. code-block:: python

    >>> 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

.. code-block:: python

    >>> 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

.. code-block:: python

    >>> 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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.1.0 (2020-06-27)
------------------

* First release on PyPI.


