YoloDatasetCustomizer 0.3.0__tar.gz → 0.4.1__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 (17) hide show
  1. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/.gitattributes +0 -0
  2. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/.github/workflows/ci.yml +0 -0
  3. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/.gitignore +0 -0
  4. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/.python-version +0 -0
  5. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/LICENSE +0 -0
  6. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/PKG-INFO +17 -10
  7. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/README.md +17 -11
  8. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/pyproject.toml +59 -58
  9. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/resources/Improvements.txt +0 -0
  10. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/src/YoloDatasetCustomizer/__init__.py +1 -1
  11. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/src/YoloDatasetCustomizer/customizer.py +235 -174
  12. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/src/YoloDatasetCustomizer/labels.py +0 -0
  13. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/src/YoloDatasetCustomizer/paths.py +0 -0
  14. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/src/YoloDatasetCustomizer/reader.py +0 -0
  15. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/src/YoloDatasetCustomizer/writer.py +0 -0
  16. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/test/YoloDatasetCustomizer_test.py +43 -0
  17. {yolodatasetcustomizer-0.3.0 → yolodatasetcustomizer-0.4.1}/uv.lock +1117 -1113
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: YoloDatasetCustomizer
3
- Version: 0.3.0
3
+ Version: 0.4.1
4
4
  Summary: Load one or multiple datasets. Reduce, mix or merge into a custom dataset.
5
5
  Project-URL: Homepage, https://github.com/mLuca/YoloDatasetCustomizer
6
6
  Project-URL: Repository, https://github.com/mLuca/YoloDatasetCustomizer
@@ -23,6 +23,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
23
  Classifier: Topic :: Scientific/Engineering :: Image Recognition
24
24
  Requires-Python: >=3.10
25
25
  Requires-Dist: pyyaml>=6.0.3
26
+ Requires-Dist: rich>=13.0.0
26
27
  Description-Content-Type: text/markdown
27
28
 
28
29
  # Intro
@@ -42,15 +43,21 @@ If a path ends on _data.yaml_ it will take that file into account.
42
43
  If a path doesn't end on _/data.yaml_ it will recursevly look for all _data.yaml_ files from that directory downards.
43
44
  e.g.
44
45
 
45
- from YoloDatasetCustomizer import YoloDatasetCustomizer
46
+ ```python
47
+ from YoloDatasetCustomizer import YoloDatasetCustomizer
46
48
 
47
- ydc = YoloDatasetCustomizer(list_to_existing_datasets)
48
- ydc.add([one_more_existing_dataset])
49
+ ydc = YoloDatasetCustomizer(list_to_existing_datasets)
50
+ ydc.add_data_sets([one_more_existing_dataset])
49
51
 
50
- if ydc.create_new_dataset_for_class_names(set_of_wanted_class_names, optional_custom_path, optional_custom_name):
51
- print("All good")
52
- else:
53
- print("Oh no.")
52
+ if ydc.create_new_dataset_for_class_names(
53
+ class_names=<set_of_wanted_class_names>,
54
+ dst_path=<optional_custom_path>,
55
+ data_set_name=<optional_custom_name>,
56
+ ):
57
+ print("All good")
58
+ else:
59
+ print("Oh no.")
60
+ ```
54
61
 
55
62
  # Run tests
56
63
 
@@ -65,11 +72,11 @@ The project uses uv. Install dependencies and run tests with:
65
72
 
66
73
  # Build project
67
74
 
68
- Build the package
75
+ Build the package:
69
76
 
70
77
  uv build
71
78
 
72
- Publish to PyPI (still need twine)
79
+ Publish to PyPI (still need twine):
73
80
 
74
81
  uv pip install twine
75
82
  uv run twine upload dist/\*
@@ -15,15 +15,21 @@ If a path ends on _data.yaml_ it will take that file into account.
15
15
  If a path doesn't end on _/data.yaml_ it will recursevly look for all _data.yaml_ files from that directory downards.
16
16
  e.g.
17
17
 
18
- from YoloDatasetCustomizer import YoloDatasetCustomizer
19
-
20
- ydc = YoloDatasetCustomizer(list_to_existing_datasets)
21
- ydc.add([one_more_existing_dataset])
22
-
23
- if ydc.create_new_dataset_for_class_names(set_of_wanted_class_names, optional_custom_path, optional_custom_name):
24
- print("All good")
25
- else:
26
- print("Oh no.")
18
+ ```python
19
+ from YoloDatasetCustomizer import YoloDatasetCustomizer
20
+
21
+ ydc = YoloDatasetCustomizer(list_to_existing_datasets)
22
+ ydc.add_data_sets([one_more_existing_dataset])
23
+
24
+ if ydc.create_new_dataset_for_class_names(
25
+ class_names=<set_of_wanted_class_names>,
26
+ dst_path=<optional_custom_path>,
27
+ data_set_name=<optional_custom_name>,
28
+ ):
29
+ print("All good")
30
+ else:
31
+ print("Oh no.")
32
+ ```
27
33
 
28
34
  # Run tests
29
35
 
@@ -38,11 +44,11 @@ The project uses uv. Install dependencies and run tests with:
38
44
 
39
45
  # Build project
40
46
 
41
- Build the package
47
+ Build the package:
42
48
 
43
49
  uv build
44
50
 
45
- Publish to PyPI (still need twine)
51
+ Publish to PyPI (still need twine):
46
52
 
47
53
  uv pip install twine
48
54
  uv run twine upload dist/\*
@@ -1,58 +1,59 @@
1
- [build-system]
2
- requires = ["hatchling"]
3
- build-backend = "hatchling.build"
4
-
5
- [project]
6
- name = "YoloDatasetCustomizer"
7
- version = "0.3.0"
8
- description = "Load one or multiple datasets. Reduce, mix or merge into a custom dataset."
9
- readme = "README.md"
10
- requires-python = ">=3.10"
11
- license = {text = "GPL-3.0-only"}
12
- authors = [
13
- {name = "Luca Mazzon", email = "mazzon.luca@gmail.com"},
14
- ]
15
- keywords = ["ultralytics", "yolo", "dataset", "machine-learning", "computer-vision", "customization"]
16
- classifiers = [
17
- "Development Status :: 5 - Production/Stable",
18
- "Intended Audience :: Developers",
19
- "Intended Audience :: Science/Research",
20
- "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
21
- "Programming Language :: Python :: 3",
22
- "Programming Language :: Python :: 3.10",
23
- "Programming Language :: Python :: 3.11",
24
- "Programming Language :: Python :: 3.12",
25
- "Programming Language :: Python :: 3.13",
26
- "Programming Language :: Python :: 3.14",
27
- "Topic :: Scientific/Engineering :: Artificial Intelligence",
28
- "Topic :: Scientific/Engineering :: Image Recognition",
29
- ]
30
-
31
- dependencies = [
32
- "pyyaml>=6.0.3",
33
- ]
34
-
35
- [project.urls]
36
- Homepage = "https://github.com/mLuca/YoloDatasetCustomizer"
37
- Repository = "https://github.com/mLuca/YoloDatasetCustomizer"
38
- "Issue Tracker" = "https://github.com/mLuca/YoloDatasetCustomizer/issues"
39
-
40
- [dependency-groups]
41
- dev = [
42
- "pytest>=9.1.1",
43
- "twine>=6.2.0",
44
- "ruff>=0.14.0",
45
- "mypy>=1.18.0",
46
- ]
47
-
48
- [tool.ruff]
49
- line-length = 120
50
-
51
- [tool.ruff.lint]
52
- select = ["E", "F", "W", "I"]
53
- ignore = ["E501"]
54
-
55
- [tool.mypy]
56
- python_version = "3.10"
57
- files = ["src"]
58
- ignore_missing_imports = true
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "YoloDatasetCustomizer"
7
+ version = "0.4.1"
8
+ description = "Load one or multiple datasets. Reduce, mix or merge into a custom dataset."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = {text = "GPL-3.0-only"}
12
+ authors = [
13
+ {name = "Luca Mazzon", email = "mazzon.luca@gmail.com"},
14
+ ]
15
+ keywords = ["ultralytics", "yolo", "dataset", "machine-learning", "computer-vision", "customization"]
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Intended Audience :: Developers",
19
+ "Intended Audience :: Science/Research",
20
+ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Python :: 3.14",
27
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
28
+ "Topic :: Scientific/Engineering :: Image Recognition",
29
+ ]
30
+
31
+ dependencies = [
32
+ "pyyaml>=6.0.3",
33
+ "rich>=13.0.0",
34
+ ]
35
+
36
+ [project.urls]
37
+ Homepage = "https://github.com/mLuca/YoloDatasetCustomizer"
38
+ Repository = "https://github.com/mLuca/YoloDatasetCustomizer"
39
+ "Issue Tracker" = "https://github.com/mLuca/YoloDatasetCustomizer/issues"
40
+
41
+ [dependency-groups]
42
+ dev = [
43
+ "pytest>=9.1.1",
44
+ "twine>=6.2.0",
45
+ "ruff>=0.14.0",
46
+ "mypy>=1.18.0",
47
+ ]
48
+
49
+ [tool.ruff]
50
+ line-length = 120
51
+
52
+ [tool.ruff.lint]
53
+ select = ["E", "F", "W", "I"]
54
+ ignore = ["E501"]
55
+
56
+ [tool.mypy]
57
+ python_version = "3.10"
58
+ files = ["src"]
59
+ ignore_missing_imports = true
@@ -5,7 +5,7 @@ from .labels import LabelFile
5
5
  from .reader import YoloDataFileReader
6
6
  from .writer import YoloDataFileWriter
7
7
 
8
- __version__ = "0.3.0"
8
+ __version__ = "0.4.1"
9
9
  __author__ = "Luca Mazzon"
10
10
  __email__ = "mazzon.luca@gmail.com"
11
11