semvec/pypi-packages huggingface dataset:
disktools 0.0.3
Extensions to basic disk tools like du, df, etc, but written in python
License: MIT

# disktools
Extensions to basic disk tools like du, df, etc, but written in python.

## Installation

> pip install disktools


## Disk Usage (Cached)

*duc* is a python-based rewrite of *du*. It is relatively fast compared to its naive LLVM (numba optimized version). The main performance gain comes from using cache. Here is an example:

The output of 

```bash
duc /foo/bar
```

is equivalent to the output of


```bash
du -sb /foo/bar
```

The difference would be, that *duc* creates cache stock called **.duc** in each folder as it traverses over the file system tree, hosting all previous results for all the subfolders if there are any.

The minor caveat of such approach is that creating the **.duc** entry screws the *last modification* timestamp of the containing folder. But over time this is not important, since it happens only once. Newly cache updates do not affect the containing folder anymore. 

The idea of such caching design vs. global filesystem entry is to enable long term monitoring of any chosen sub path of your data. It has been tested to perform on XFS filesystems with volumes over 100TB and over 10 millions of files.

Any improvements and issue reports are welcomed.

---

You might also want to check out [findtools](https://github.com/ewiger/findtools)
shellwords 0.1.0
Parse line as shell words.
License: MIT
Keywords: shell,shellwords

python-shellwords
==================

|Build| |Coverage| |PyPI version|

Parse line as shell words.


* GitHub: https://github.com/mozillazg/python-shellwords
* License: MIT license
* PyPI: https://pypi.python.org/pypi/shellwords
* Python version: 2.6, 2.7, pypy, 3.3, 3.4

Usage
-------


.. code-block:: python

    >>> from shellwords import ShellWords
    >>> s = ShellWords()
    >>> s.parse("./foo --bar=baz")
    [u'./foo', u'--bar=baz']
    >>> s.parse('./foo --bar=baz foobar')
    [u'./foo', u'--bar=baz', u'foobar']


.. code-block:: python

    >>> os.environ['FOO'] = 'bar'
    >>> s = ShellWords(parse_env=True)
    >>> s.parse("./foo $FOO")
    [u'./foo', u'bar']

.. code-block:: python

    >>> s = ShellWords(parse_backtick=True)
    >>> s.parse("./foo `echo $SHELL`")
    [u'./foo', u'/bin/bash']


Thanks
-------

This is based on `go-shellwords`__ package.

__ https://github.com/mattn/go-shellwords


.. |Build| image:: https://api.travis-ci.org/mozillazg/python-shellwords.png?branch=master
   :target: https://travis-ci.org/mozillazg/python-shellwords
.. |Coverage| image:: https://coveralls.io/repos/mozillazg/python-shellwords/badge.png?branch=master
   :target: https://coveralls.io/r/mozillazg/python-shellwords
.. |PyPI version| image:: https://pypip.in/version/shellwords/badge.png
   :target: https://pypi.python.org/pypi/shellwords
.. |PyPI downloads| image:: https://pypip.in/download/shellwords/badge.png
   :target: https://pypi.python.org/pypi/shellwords
.. |Python versions| image:: https://pypip.in/py_versions/shellwords/badge.svg
   :target: https://pypi.python.org/pypi/shellwords


Changelog
--------------

0.1.0 (2015-01-29)
~~~~~~~~~~~~~~~~~~~~
* Initial Release