flinventory 0.4.2__tar.gz → 0.4.3__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.
Files changed (24) hide show
  1. {flinventory-0.4.2 → flinventory-0.4.3}/PKG-INFO +20 -6
  2. {flinventory-0.4.2 → flinventory-0.4.3}/README.md +20 -6
  3. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/__main__.py +6 -1
  4. {flinventory-0.4.2 → flinventory-0.4.3}/pyproject.toml +3 -4
  5. {flinventory-0.4.2 → flinventory-0.4.3}/LICENSE +0 -0
  6. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/__init__.py +0 -0
  7. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/box.py +0 -0
  8. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/constant.py +0 -0
  9. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/datacleanup.py +0 -0
  10. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/defaulted_data.py +0 -0
  11. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/generate_labels.py +0 -0
  12. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/inventory_io.py +0 -0
  13. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/location.py +0 -0
  14. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/sign.py +0 -0
  15. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/signprinter_latex.py +0 -0
  16. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/thing.py +0 -0
  17. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/thingtemplate_latex/.gitignore +0 -0
  18. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/thingtemplate_latex/dummyImage.jpg +0 -0
  19. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/thingtemplate_latex/sign.tex +0 -0
  20. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/thingtemplate_latex/signlist-footer.tex +0 -0
  21. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/thingtemplate_latex/signlist-header.tex +0 -0
  22. {flinventory-0.4.2 → flinventory-0.4.3}/flinventory/thingtemplate_latex/signs-example.tex +0 -0
  23. {flinventory-0.4.2 → flinventory-0.4.3}/tests/__init__.py +0 -0
  24. {flinventory-0.4.2 → flinventory-0.4.3}/tests/test_defaulted_data.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flinventory
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: An inventory system for self-help repair shops
5
5
  Author-Email: flukx <flinventory-flukx@612211124.xyz>
6
6
  License: GPL3
@@ -55,9 +55,23 @@ The data format is a specific directory structure with specific file names:
55
55
 
56
56
  No keys in `things/someID/*yaml` are mandatory. Therefore, code that uses the data has to handle missing data.
57
57
 
58
- ## Functionalities
59
- With this repository alone, entering data means writing the json files by hand. For a GUI method, see [flinventory-GUI](https://codeberg.org/flukx/flinventory-gui).
58
+ ## Install
59
+ `pip install flinventory`
60
60
 
61
- The scripts are
62
- - `generate_labels.py` for creating signs that can be printed and glued to the boxes. The size and formatting of the signs happens in `things/*/sign.json`. Also it creates a list of all names of all things with a reference to their location. This list is in markdown and can be converted with pandoc to a printable (multiple page) list. For details see the help messages.
63
- - `datacleanup.py` for various tasks for reformatting the yaml files. This is helpful to have a bit of standardisation to avoid big git diffs when the yaml files are read and written again. For details see the help messages.
61
+ or
62
+ ```
63
+ git clone https://codeberg.org/flukx/flinventory
64
+ # install requirements listed in pyproject.toml
65
+ # e.g. with
66
+ nix-shell
67
+ ```
68
+
69
+ ## Usage
70
+ flinventory is mainly intended as a python module used
71
+ in the [flinventory-GUI](https://codeberg.org/flukx/flinventory-gui).
72
+ But by installing this module, also the command-line interface `flinventory-cli` is installed.
73
+ (It can also be run with the repo and `python -m flinventory`.)
74
+
75
+ This command-line interface includes
76
+ - `flinventory-cli label` for creating signs that can be printed and glued to the boxes. The size and formatting of the signs happens in `things/*/sign.json`. Also, it creates a list of all names of all things with a reference to their location. This list is in markdown and can be converted with pandoc to a printable (multiple page) list. For details see the help messages.
77
+ - `flinventory-cli {normalize,printed,shortcut,unprinted,useIDs,locationsFile}` for various tasks for reformatting the yaml files. This is helpful to have a bit of standardisation to avoid big git diffs when the yaml files are read and written again. For details see the help messages.
@@ -32,9 +32,23 @@ The data format is a specific directory structure with specific file names:
32
32
 
33
33
  No keys in `things/someID/*yaml` are mandatory. Therefore, code that uses the data has to handle missing data.
34
34
 
35
- ## Functionalities
36
- With this repository alone, entering data means writing the json files by hand. For a GUI method, see [flinventory-GUI](https://codeberg.org/flukx/flinventory-gui).
37
-
38
- The scripts are
39
- - `generate_labels.py` for creating signs that can be printed and glued to the boxes. The size and formatting of the signs happens in `things/*/sign.json`. Also it creates a list of all names of all things with a reference to their location. This list is in markdown and can be converted with pandoc to a printable (multiple page) list. For details see the help messages.
40
- - `datacleanup.py` for various tasks for reformatting the yaml files. This is helpful to have a bit of standardisation to avoid big git diffs when the yaml files are read and written again. For details see the help messages.
35
+ ## Install
36
+ `pip install flinventory`
37
+
38
+ or
39
+ ```
40
+ git clone https://codeberg.org/flukx/flinventory
41
+ # install requirements listed in pyproject.toml
42
+ # e.g. with
43
+ nix-shell
44
+ ```
45
+
46
+ ## Usage
47
+ flinventory is mainly intended as a python module used
48
+ in the [flinventory-GUI](https://codeberg.org/flukx/flinventory-gui).
49
+ But by installing this module, also the command-line interface `flinventory-cli` is installed.
50
+ (It can also be run with the repo and `python -m flinventory`.)
51
+
52
+ This command-line interface includes
53
+ - `flinventory-cli label` for creating signs that can be printed and glued to the boxes. The size and formatting of the signs happens in `things/*/sign.json`. Also, it creates a list of all names of all things with a reference to their location. This list is in markdown and can be converted with pandoc to a printable (multiple page) list. For details see the help messages.
54
+ - `flinventory-cli {normalize,printed,shortcut,unprinted,useIDs,locationsFile}` for various tasks for reformatting the yaml files. This is helpful to have a bit of standardisation to avoid big git diffs when the yaml files are read and written again. For details see the help messages.
@@ -34,7 +34,8 @@ def parse_args():
34
34
  return parser.parse_args()
35
35
 
36
36
 
37
- if __name__ == "__main__":
37
+ def main():
38
+ """Run the command-line interface."""
38
39
  arguments = parse_args()
39
40
  datacleanup.logging_config(arguments)
40
41
  try:
@@ -43,3 +44,7 @@ if __name__ == "__main__":
43
44
  print("No command given. See -h for help information.")
44
45
  else:
45
46
  function(arguments)
47
+
48
+
49
+ if __name__ == "__main__":
50
+ main()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flinventory"
3
- version = "0.4.2"
3
+ version = "0.4.3"
4
4
  description = "An inventory system for self-help repair shops"
5
5
  authors = [
6
6
  { name = "flukx", email = "flinventory-flukx@612211124.xyz" },
@@ -31,9 +31,8 @@ text = "GPL3"
31
31
  Homepage = "https://codeberg.org/flukx/flinventory"
32
32
  Issues = "https://codeberg.org/flukx/flinventory/issues"
33
33
 
34
- [projects.scripts]
35
- datacleanup = "flinventory.datacleanup:main"
36
- generate_labels = "flinventory.generate_labels:main"
34
+ [project.scripts]
35
+ flinventory-cli = "flinventory.__main__:main"
37
36
 
38
37
  [build-system]
39
38
  requires = [
File without changes