filelisting 1.2.2__tar.gz → 1.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {filelisting-1.2.2/src/filelisting.egg-info → filelisting-1.2.4}/PKG-INFO +10 -51
- filelisting-1.2.4/README.rst +5 -0
- {filelisting-1.2.2 → filelisting-1.2.4}/pyproject.toml +8 -5
- filelisting-1.2.4/src/filelisting/__init__.py +2 -0
- filelisting-1.2.4/src/filelisting/core/__init__.py +42 -0
- filelisting-1.2.4/src/filelisting/tests/__init__.py +11 -0
- filelisting-1.2.4/src/filelisting/tests/test_1984.py +10 -0
- {filelisting-1.2.2 → filelisting-1.2.4/src/filelisting.egg-info}/PKG-INFO +10 -51
- {filelisting-1.2.2 → filelisting-1.2.4}/src/filelisting.egg-info/SOURCES.txt +4 -1
- filelisting-1.2.4/src/filelisting.egg-info/requires.txt +2 -0
- filelisting-1.2.2/README.rst +0 -49
- filelisting-1.2.2/src/filelisting/__init__.py +0 -38
- filelisting-1.2.2/src/filelisting.egg-info/requires.txt +0 -2
- {filelisting-1.2.2 → filelisting-1.2.4}/LICENSE.txt +0 -0
- {filelisting-1.2.2 → filelisting-1.2.4}/MANIFEST.in +0 -0
- {filelisting-1.2.2 → filelisting-1.2.4}/setup.cfg +0 -0
- {filelisting-1.2.2 → filelisting-1.2.4}/src/filelisting/__main__.py +0 -0
- {filelisting-1.2.2 → filelisting-1.2.4}/src/filelisting.egg-info/dependency_links.txt +0 -0
- {filelisting-1.2.2 → filelisting-1.2.4}/src/filelisting.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: filelisting
|
|
3
|
-
Version: 1.2.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.2.4
|
|
4
|
+
Summary: This project lists files under given paths.
|
|
5
5
|
Author-email: Johannes <johannes-programming@mailfence.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
7
7
|
|
|
@@ -24,9 +24,12 @@ License: The MIT License (MIT)
|
|
|
24
24
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
25
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
26
|
SOFTWARE.
|
|
27
|
-
Project-URL: Documentation, https://
|
|
27
|
+
Project-URL: Documentation, https://filelisting.johannes-programming.online/
|
|
28
28
|
Project-URL: Download, https://pypi.org/project/filelisting/#files
|
|
29
|
-
Project-URL:
|
|
29
|
+
Project-URL: Index, https://pypi.org/project/filelisting/
|
|
30
|
+
Project-URL: Source, https://github.com/johannes-programming/filelisting/
|
|
31
|
+
Project-URL: Website, https://filelisting.johannes-programming.online/
|
|
32
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
30
33
|
Classifier: License :: OSI Approved :: MIT License
|
|
31
34
|
Classifier: Programming Language :: Python
|
|
32
35
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -35,54 +38,10 @@ Requires-Python: >=3.11
|
|
|
35
38
|
Description-Content-Type: text/x-rst
|
|
36
39
|
License-File: LICENSE.txt
|
|
37
40
|
Requires-Dist: click>=8.1.7
|
|
38
|
-
Requires-Dist:
|
|
41
|
+
Requires-Dist: preparse>=0.0.11
|
|
39
42
|
|
|
40
43
|
===========
|
|
41
44
|
filelisting
|
|
42
45
|
===========
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
--------
|
|
46
|
-
|
|
47
|
-
List files under given paths.
|
|
48
|
-
|
|
49
|
-
Installation
|
|
50
|
-
------------
|
|
51
|
-
|
|
52
|
-
To install ``filelisting``, you can use ``pip``. Open your terminal and run:
|
|
53
|
-
|
|
54
|
-
.. code-block:: bash
|
|
55
|
-
|
|
56
|
-
pip install filelisting
|
|
57
|
-
|
|
58
|
-
CLI
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
The project provides a CLI. For more information apply the ``--help`` flag.
|
|
62
|
-
|
|
63
|
-
Features
|
|
64
|
-
--------
|
|
65
|
-
|
|
66
|
-
* ``main`` constitutes the CLI
|
|
67
|
-
* ``file_generator`` takes an arbitrary number of paths and iterates over the references files
|
|
68
|
-
* ``file_list`` returns a list version of ``file_generator``
|
|
69
|
-
|
|
70
|
-
License
|
|
71
|
-
-------
|
|
72
|
-
|
|
73
|
-
This project is licensed under the MIT License.
|
|
74
|
-
|
|
75
|
-
Links
|
|
76
|
-
-----
|
|
77
|
-
|
|
78
|
-
* `Documentation <https://pypi.org/project/filelisting>`_
|
|
79
|
-
* `Download <https://pypi.org/project/filelisting/#files>`_
|
|
80
|
-
* `Source <https://github.com/johannes-programming/filelisting>`_
|
|
81
|
-
|
|
82
|
-
Credits
|
|
83
|
-
-------
|
|
84
|
-
|
|
85
|
-
* Author: Johannes
|
|
86
|
-
* Email: johannes-programming@mailfence.com
|
|
87
|
-
|
|
88
|
-
Thank you for using ``filelisting``!
|
|
47
|
+
Visit the website `https://filelisting.johannes-programming.online/ <https://filelisting.johannes-programming.online/>`_ for more information.
|
|
@@ -9,6 +9,7 @@ authors = [
|
|
|
9
9
|
{ email = "johannes-programming@mailfence.com", name = "Johannes" },
|
|
10
10
|
]
|
|
11
11
|
classifiers = [
|
|
12
|
+
"Development Status :: 5 - Production/Stable",
|
|
12
13
|
"License :: OSI Approved :: MIT License",
|
|
13
14
|
"Programming Language :: Python",
|
|
14
15
|
"Programming Language :: Python :: 3",
|
|
@@ -16,19 +17,21 @@ classifiers = [
|
|
|
16
17
|
]
|
|
17
18
|
dependencies = [
|
|
18
19
|
"click>=8.1.7",
|
|
19
|
-
"
|
|
20
|
+
"preparse>=0.0.11",
|
|
20
21
|
]
|
|
21
|
-
description = "
|
|
22
|
+
description = "This project lists files under given paths."
|
|
22
23
|
keywords = []
|
|
23
24
|
name = "filelisting"
|
|
24
25
|
readme = "README.rst"
|
|
25
26
|
requires-python = ">=3.11"
|
|
26
|
-
version = "1.2.
|
|
27
|
+
version = "1.2.4"
|
|
27
28
|
|
|
28
29
|
[project.license]
|
|
29
30
|
file = "LICENSE.txt"
|
|
30
31
|
|
|
31
32
|
[project.urls]
|
|
32
|
-
Documentation = "https://
|
|
33
|
+
Documentation = "https://filelisting.johannes-programming.online/"
|
|
33
34
|
Download = "https://pypi.org/project/filelisting/#files"
|
|
34
|
-
|
|
35
|
+
Index = "https://pypi.org/project/filelisting/"
|
|
36
|
+
Source = "https://github.com/johannes-programming/filelisting/"
|
|
37
|
+
Website = "https://filelisting.johannes-programming.online/"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from typing import *
|
|
3
|
+
|
|
4
|
+
import click
|
|
5
|
+
import preparse
|
|
6
|
+
|
|
7
|
+
__all__ = ["file_generator", "file_list", "main"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def file_generator(*paths: Any) -> Generator[str, None, None]:
|
|
11
|
+
"This generator yields the files under the given path."
|
|
12
|
+
for raw_path in paths:
|
|
13
|
+
path = str(raw_path)
|
|
14
|
+
path = os.path.expanduser(path)
|
|
15
|
+
path = os.path.expandvars(path)
|
|
16
|
+
if os.path.isfile(path):
|
|
17
|
+
yield path
|
|
18
|
+
continue
|
|
19
|
+
for root, dnames, fnames in os.walk(path):
|
|
20
|
+
for fname in fnames:
|
|
21
|
+
file = os.path.join(root, fname)
|
|
22
|
+
yield file
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def file_list(*paths: Any) -> List[str]:
|
|
26
|
+
"This function returns a list of the files under the given path."
|
|
27
|
+
return list(file_generator(*paths))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@preparse.PreParser(posix=False).click()
|
|
31
|
+
@click.command(add_help_option=False)
|
|
32
|
+
@click.help_option("-h", "--help")
|
|
33
|
+
@click.version_option(None, "-V", "--version")
|
|
34
|
+
@click.argument("path", nargs=-1)
|
|
35
|
+
def main(path):
|
|
36
|
+
"List files under given paths."
|
|
37
|
+
for f in file_list(*path):
|
|
38
|
+
click.echo(f)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
if __name__ == "__main__":
|
|
42
|
+
main()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: filelisting
|
|
3
|
-
Version: 1.2.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.2.4
|
|
4
|
+
Summary: This project lists files under given paths.
|
|
5
5
|
Author-email: Johannes <johannes-programming@mailfence.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
7
7
|
|
|
@@ -24,9 +24,12 @@ License: The MIT License (MIT)
|
|
|
24
24
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
25
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
26
|
SOFTWARE.
|
|
27
|
-
Project-URL: Documentation, https://
|
|
27
|
+
Project-URL: Documentation, https://filelisting.johannes-programming.online/
|
|
28
28
|
Project-URL: Download, https://pypi.org/project/filelisting/#files
|
|
29
|
-
Project-URL:
|
|
29
|
+
Project-URL: Index, https://pypi.org/project/filelisting/
|
|
30
|
+
Project-URL: Source, https://github.com/johannes-programming/filelisting/
|
|
31
|
+
Project-URL: Website, https://filelisting.johannes-programming.online/
|
|
32
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
30
33
|
Classifier: License :: OSI Approved :: MIT License
|
|
31
34
|
Classifier: Programming Language :: Python
|
|
32
35
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -35,54 +38,10 @@ Requires-Python: >=3.11
|
|
|
35
38
|
Description-Content-Type: text/x-rst
|
|
36
39
|
License-File: LICENSE.txt
|
|
37
40
|
Requires-Dist: click>=8.1.7
|
|
38
|
-
Requires-Dist:
|
|
41
|
+
Requires-Dist: preparse>=0.0.11
|
|
39
42
|
|
|
40
43
|
===========
|
|
41
44
|
filelisting
|
|
42
45
|
===========
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
--------
|
|
46
|
-
|
|
47
|
-
List files under given paths.
|
|
48
|
-
|
|
49
|
-
Installation
|
|
50
|
-
------------
|
|
51
|
-
|
|
52
|
-
To install ``filelisting``, you can use ``pip``. Open your terminal and run:
|
|
53
|
-
|
|
54
|
-
.. code-block:: bash
|
|
55
|
-
|
|
56
|
-
pip install filelisting
|
|
57
|
-
|
|
58
|
-
CLI
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
The project provides a CLI. For more information apply the ``--help`` flag.
|
|
62
|
-
|
|
63
|
-
Features
|
|
64
|
-
--------
|
|
65
|
-
|
|
66
|
-
* ``main`` constitutes the CLI
|
|
67
|
-
* ``file_generator`` takes an arbitrary number of paths and iterates over the references files
|
|
68
|
-
* ``file_list`` returns a list version of ``file_generator``
|
|
69
|
-
|
|
70
|
-
License
|
|
71
|
-
-------
|
|
72
|
-
|
|
73
|
-
This project is licensed under the MIT License.
|
|
74
|
-
|
|
75
|
-
Links
|
|
76
|
-
-----
|
|
77
|
-
|
|
78
|
-
* `Documentation <https://pypi.org/project/filelisting>`_
|
|
79
|
-
* `Download <https://pypi.org/project/filelisting/#files>`_
|
|
80
|
-
* `Source <https://github.com/johannes-programming/filelisting>`_
|
|
81
|
-
|
|
82
|
-
Credits
|
|
83
|
-
-------
|
|
84
|
-
|
|
85
|
-
* Author: Johannes
|
|
86
|
-
* Email: johannes-programming@mailfence.com
|
|
87
|
-
|
|
88
|
-
Thank you for using ``filelisting``!
|
|
47
|
+
Visit the website `https://filelisting.johannes-programming.online/ <https://filelisting.johannes-programming.online/>`_ for more information.
|
|
@@ -9,4 +9,7 @@ src/filelisting.egg-info/PKG-INFO
|
|
|
9
9
|
src/filelisting.egg-info/SOURCES.txt
|
|
10
10
|
src/filelisting.egg-info/dependency_links.txt
|
|
11
11
|
src/filelisting.egg-info/requires.txt
|
|
12
|
-
src/filelisting.egg-info/top_level.txt
|
|
12
|
+
src/filelisting.egg-info/top_level.txt
|
|
13
|
+
src/filelisting/core/__init__.py
|
|
14
|
+
src/filelisting/tests/__init__.py
|
|
15
|
+
src/filelisting/tests/test_1984.py
|
filelisting-1.2.2/README.rst
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
===========
|
|
2
|
-
filelisting
|
|
3
|
-
===========
|
|
4
|
-
|
|
5
|
-
Overview
|
|
6
|
-
--------
|
|
7
|
-
|
|
8
|
-
List files under given paths.
|
|
9
|
-
|
|
10
|
-
Installation
|
|
11
|
-
------------
|
|
12
|
-
|
|
13
|
-
To install ``filelisting``, you can use ``pip``. Open your terminal and run:
|
|
14
|
-
|
|
15
|
-
.. code-block:: bash
|
|
16
|
-
|
|
17
|
-
pip install filelisting
|
|
18
|
-
|
|
19
|
-
CLI
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
The project provides a CLI. For more information apply the ``--help`` flag.
|
|
23
|
-
|
|
24
|
-
Features
|
|
25
|
-
--------
|
|
26
|
-
|
|
27
|
-
* ``main`` constitutes the CLI
|
|
28
|
-
* ``file_generator`` takes an arbitrary number of paths and iterates over the references files
|
|
29
|
-
* ``file_list`` returns a list version of ``file_generator``
|
|
30
|
-
|
|
31
|
-
License
|
|
32
|
-
-------
|
|
33
|
-
|
|
34
|
-
This project is licensed under the MIT License.
|
|
35
|
-
|
|
36
|
-
Links
|
|
37
|
-
-----
|
|
38
|
-
|
|
39
|
-
* `Documentation <https://pypi.org/project/filelisting>`_
|
|
40
|
-
* `Download <https://pypi.org/project/filelisting/#files>`_
|
|
41
|
-
* `Source <https://github.com/johannes-programming/filelisting>`_
|
|
42
|
-
|
|
43
|
-
Credits
|
|
44
|
-
-------
|
|
45
|
-
|
|
46
|
-
* Author: Johannes
|
|
47
|
-
* Email: johannes-programming@mailfence.com
|
|
48
|
-
|
|
49
|
-
Thank you for using ``filelisting``!
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import os as _os
|
|
2
|
-
|
|
3
|
-
import click as _click
|
|
4
|
-
import getoptify as _getoptify
|
|
5
|
-
|
|
6
|
-
_CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def file_generator(*paths):
|
|
10
|
-
for raw_path in paths:
|
|
11
|
-
path = raw_path
|
|
12
|
-
path = _os.path.expanduser(path)
|
|
13
|
-
path = _os.path.expandvars(path)
|
|
14
|
-
if _os.path.isfile(path):
|
|
15
|
-
yield path
|
|
16
|
-
continue
|
|
17
|
-
for root, dnames, fnames in _os.walk(path):
|
|
18
|
-
for fname in fnames:
|
|
19
|
-
file = _os.path.join(root, fname)
|
|
20
|
-
yield file
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
def file_list(*paths):
|
|
24
|
-
return list(file_generator(*paths))
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
@_getoptify.command(shortopts="hV")
|
|
28
|
-
@_click.command(context_settings=_CONTEXT_SETTINGS)
|
|
29
|
-
@_click.version_option(None, "-V", "--version")
|
|
30
|
-
@_click.argument("path", nargs=-1)
|
|
31
|
-
def main(path):
|
|
32
|
-
"""List files under given paths."""
|
|
33
|
-
for f in file_list(*path):
|
|
34
|
-
_click.echo(f)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if __name__ == "__main__":
|
|
38
|
-
main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|