package-utils 0.4.1__tar.gz → 0.4.2__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.
- {package-utils-0.4.1 → package-utils-0.4.2}/PKG-INFO +26 -2
- {package-utils-0.4.1 → package-utils-0.4.2}/README.md +25 -1
- {package-utils-0.4.1 → package-utils-0.4.2}/pyproject.toml +1 -1
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils.egg-info/PKG-INFO +26 -2
- {package-utils-0.4.1 → package-utils-0.4.2}/LICENSE +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/setup.cfg +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/__init__.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/cli/__init__.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/cli/cli_runner.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/cli/convertors/__init__.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/cli/convertors/class_.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/cli/convertors/dataclass.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/cli/convertors/method.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/cli/convertors/parameter.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/cli/entry_point.py +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils/py.typed +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils.egg-info/SOURCES.txt +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils.egg-info/dependency_links.txt +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils.egg-info/requires.txt +0 -0
- {package-utils-0.4.1 → package-utils-0.4.2}/src/package_utils.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: package-utils
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Common utilities for Python packages
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License: MIT
|
|
@@ -21,7 +21,31 @@ Requires-Dist: package-dev-utils<1,>=0.1.3; extra == "dev"
|
|
|
21
21
|

|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from dataclasses import dataclass, field
|
|
27
|
+
from pathlib import Path
|
|
28
|
+
|
|
29
|
+
from package_utils.cli.entry_point import create_entry_point
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@dataclass
|
|
33
|
+
class Options:
|
|
34
|
+
debug: bool = False
|
|
35
|
+
output_path: Path = field(default_factory=Path.cwd)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def main(options: Options):
|
|
39
|
+
...
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
entry_point = create_entry_point(main)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__ == "__main__":
|
|
46
|
+
entry_point()
|
|
47
|
+
```
|
|
48
|
+
see examples in [tests](https://github.com/quintenroets/package-utils/tree/main/tests) and [python-package-template](https://github.com/quintenroets/python-package-template/blob/main/src/python_package_template/cli/entry_point.py)
|
|
25
49
|
|
|
26
50
|
## Installation
|
|
27
51
|
```shell
|
|
@@ -5,7 +5,31 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
```python
|
|
10
|
+
from dataclasses import dataclass, field
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from package_utils.cli.entry_point import create_entry_point
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass
|
|
17
|
+
class Options:
|
|
18
|
+
debug: bool = False
|
|
19
|
+
output_path: Path = field(default_factory=Path.cwd)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def main(options: Options):
|
|
23
|
+
...
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
entry_point = create_entry_point(main)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
if __name__ == "__main__":
|
|
30
|
+
entry_point()
|
|
31
|
+
```
|
|
32
|
+
see examples in [tests](https://github.com/quintenroets/package-utils/tree/main/tests) and [python-package-template](https://github.com/quintenroets/python-package-template/blob/main/src/python_package_template/cli/entry_point.py)
|
|
9
33
|
|
|
10
34
|
## Installation
|
|
11
35
|
```shell
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: package-utils
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Common utilities for Python packages
|
|
5
5
|
Author-email: Quinten Roets <qdr2104@columbia.edu>
|
|
6
6
|
License: MIT
|
|
@@ -21,7 +21,31 @@ Requires-Dist: package-dev-utils<1,>=0.1.3; extra == "dev"
|
|
|
21
21
|

|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from dataclasses import dataclass, field
|
|
27
|
+
from pathlib import Path
|
|
28
|
+
|
|
29
|
+
from package_utils.cli.entry_point import create_entry_point
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@dataclass
|
|
33
|
+
class Options:
|
|
34
|
+
debug: bool = False
|
|
35
|
+
output_path: Path = field(default_factory=Path.cwd)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def main(options: Options):
|
|
39
|
+
...
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
entry_point = create_entry_point(main)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__ == "__main__":
|
|
46
|
+
entry_point()
|
|
47
|
+
```
|
|
48
|
+
see examples in [tests](https://github.com/quintenroets/package-utils/tree/main/tests) and [python-package-template](https://github.com/quintenroets/python-package-template/blob/main/src/python_package_template/cli/entry_point.py)
|
|
25
49
|
|
|
26
50
|
## Installation
|
|
27
51
|
```shell
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|