Duskfallcrew commited on
Commit
6de9681
·
1 Parent(s): 6dc489c

Add project files and configure Git LFS

Browse files
Files changed (36) hide show
  1. .DS_Store +0 -0
  2. Dataset Tools Previews/Screenshot 2025-01-22 at 12.40.23.png +3 -0
  3. Dataset Tools Previews/Screenshot 2025-01-22 at 12.42.58.png +3 -0
  4. Dataset Tools Previews/Screenshot 2025-01-22 at 12.52.22.png +3 -0
  5. Dataset Tools Previews/Screenshot 2025-01-22 at 12.52.36.png +3 -0
  6. Dataset Tools Previews/Screenshot 2025-01-22 at 12.53.01.png +3 -0
  7. Dataset Tools Previews/Screenshot 2025-01-22 at 12.57.32.png +3 -0
  8. Dataset-Tools-main/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  9. Dataset-Tools-main/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  10. Dataset-Tools-main/.github/workflows/codacy.yml +61 -0
  11. Dataset-Tools-main/.github/workflows/dependency-review.yml +39 -0
  12. Dataset-Tools-main/.github/workflows/greetings.yml +16 -0
  13. Dataset-Tools-main/.github/workflows/pytest.yml +31 -0
  14. Dataset-Tools-main/.github/workflows/stale.yml +27 -0
  15. Dataset-Tools-main/.gitignore +12 -0
  16. Dataset-Tools-main/CODE_OF_CONDUCT.md +128 -0
  17. Dataset-Tools-main/CONTRIBUTING.md +152 -0
  18. Dataset-Tools-main/LICENSE +121 -0
  19. Dataset-Tools-main/README.md +144 -0
  20. Dataset-Tools-main/SECURITY.md +21 -0
  21. Dataset-Tools-main/_version.py +3 -0
  22. Dataset-Tools-main/dataset_tools/__init__.py +3 -0
  23. Dataset-Tools-main/dataset_tools/access_disk.py +3 -0
  24. Dataset-Tools-main/dataset_tools/correct_types.py +3 -0
  25. Dataset-Tools-main/dataset_tools/logger.py +3 -0
  26. Dataset-Tools-main/dataset_tools/main.py +3 -0
  27. Dataset-Tools-main/dataset_tools/metadata_parser.py +3 -0
  28. Dataset-Tools-main/dataset_tools/ui.py +3 -0
  29. Dataset-Tools-main/dataset_tools/widgets.py +3 -0
  30. Dataset-Tools-main/pyproject.toml +79 -0
  31. Dataset-Tools-main/tests/__init__.py +0 -0
  32. Dataset-Tools-main/tests/test_access_disk.py +3 -0
  33. Dataset-Tools-main/tests/test_img.png +3 -0
  34. Dataset-Tools-main/tests/test_md_ps.py +3 -0
  35. Dataset-Tools-main/tests/test_ui.py +3 -0
  36. README.md +144 -3
.DS_Store ADDED
Binary file (6.15 kB). View file
 
Dataset Tools Previews/Screenshot 2025-01-22 at 12.40.23.png ADDED

Git LFS Details

  • SHA256: aba8b5aa41775c1e7a363b0982b14ec6641b78b401e45e638bb9d482d0d21cf5
  • Pointer size: 131 Bytes
  • Size of remote file: 693 kB
Dataset Tools Previews/Screenshot 2025-01-22 at 12.42.58.png ADDED

Git LFS Details

  • SHA256: b2451dbf79641d3d1b65d573662cf91a906a8beef2f35b9505c7ce8717a50fd3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
Dataset Tools Previews/Screenshot 2025-01-22 at 12.52.22.png ADDED

Git LFS Details

  • SHA256: 2fbe618d143275c9a5325d29d3ffe0446417f917bc7b3e78a3168924e840a51d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.54 MB
Dataset Tools Previews/Screenshot 2025-01-22 at 12.52.36.png ADDED

Git LFS Details

  • SHA256: dc91e3fdb78e7ac9527181169dfa775e8d0fae57f23385fc9ea9a43373404b8c
  • Pointer size: 131 Bytes
  • Size of remote file: 945 kB
Dataset Tools Previews/Screenshot 2025-01-22 at 12.53.01.png ADDED

Git LFS Details

  • SHA256: 584371848bc29fee04cb824b11fed5587b0264787c5744e70c2e81a9053be370
  • Pointer size: 132 Bytes
  • Size of remote file: 1.33 MB
Dataset Tools Previews/Screenshot 2025-01-22 at 12.57.32.png ADDED

Git LFS Details

  • SHA256: e7e03c8b68e8fcd0900e54f71e3a8268537c28ab5c12d3ac90fd7ae49205e55a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.69 MB
Dataset-Tools-main/.github/ISSUE_TEMPLATE/bug_report.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: e.g. iOS
28
+ - Browser: e.g. chrome, safari
29
+ - Version: e.g. 22
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: e.g. iPhone13
33
+ - OS: [e.g. iOS18
34
+ - Browser: e.g. stock browser, safari
35
+ - Version: e.g. 22
36
+
37
+ **Additional context**
38
+ Add any other context about the problem here.
Dataset-Tools-main/.github/ISSUE_TEMPLATE/feature_request.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
Dataset-Tools-main/.github/workflows/codacy.yml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ # This workflow checks out code, performs a Codacy security scan
7
+ # and integrates the results with the
8
+ # GitHub Advanced Security code scanning feature. For more information on
9
+ # the Codacy security scan action usage and parameters, see
10
+ # https://github.com/codacy/codacy-analysis-cli-action.
11
+ # For more information on Codacy Analysis CLI in general, see
12
+ # https://github.com/codacy/codacy-analysis-cli.
13
+
14
+ name: Codacy Security Scan
15
+
16
+ on:
17
+ push:
18
+ branches: [ "main","kn/x" ]
19
+ pull_request:
20
+ # The branches below must be a subset of the branches above
21
+ branches: [ "main","kn/x" ]
22
+ schedule:
23
+ - cron: '42 1 * * 2'
24
+
25
+ permissions:
26
+ contents: read
27
+
28
+ jobs:
29
+ codacy-security-scan:
30
+ permissions:
31
+ contents: read # for actions/checkout to fetch code
32
+ security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
33
+ actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
34
+ name: Codacy Security Scan
35
+ runs-on: ubuntu-latest
36
+ steps:
37
+ # Checkout the repository to the GitHub Actions runner
38
+ - name: Checkout code
39
+ uses: actions/checkout@v4
40
+
41
+ # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
42
+ - name: Run Codacy Analysis CLI
43
+ uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
44
+ with:
45
+ # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
46
+ # You can also omit the token and run the tools that support default configurations
47
+ project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
48
+ verbose: true
49
+ output: results.sarif
50
+ format: sarif
51
+ # Adjust severity of non-security issues
52
+ gh-code-scanning-compat: true
53
+ # Force 0 exit code to allow SARIF file generation
54
+ # This will handover control about PR rejection to the GitHub side
55
+ max-allowed-issues: 2147483647
56
+
57
+ # Upload the SARIF file generated in the previous step
58
+ - name: Upload SARIF results file
59
+ uses: github/codeql-action/upload-sarif@v3
60
+ with:
61
+ sarif_file: results.sarif
Dataset-Tools-main/.github/workflows/dependency-review.yml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dependency Review Action
2
+ #
3
+ # This Action will scan dependency manifest files that change as part of a Pull Request,
4
+ # surfacing known-vulnerable versions of the packages declared or updated in the PR.
5
+ # Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable
6
+ # packages will be blocked from merging.
7
+ #
8
+ # Source repository: https://github.com/actions/dependency-review-action
9
+ # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
10
+ name: 'Dependency review'
11
+ on:
12
+ pull_request:
13
+ branches: [ "main", "kn/x" ]
14
+
15
+ # If using a dependency submission action in this workflow this permission will need to be set to:
16
+ #
17
+ # permissions:
18
+ # contents: write
19
+ #
20
+ # https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api
21
+ permissions:
22
+ contents: read
23
+ # Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
24
+ pull-requests: write
25
+
26
+ jobs:
27
+ dependency-review:
28
+ runs-on: ubuntu-latest
29
+ steps:
30
+ - name: 'Checkout repository'
31
+ uses: actions/checkout@v4
32
+ - name: 'Dependency Review'
33
+ uses: actions/dependency-review-action@v4
34
+ # Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
35
+ with:
36
+ comment-summary-in-pr: always
37
+ # fail-on-severity: moderate
38
+ # deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later
39
+ # retry-on-snapshot-warnings: true
Dataset-Tools-main/.github/workflows/greetings.yml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Greetings
2
+
3
+ on: [pull_request_target, issues]
4
+
5
+ jobs:
6
+ greeting:
7
+ runs-on: ubuntu-latest
8
+ permissions:
9
+ issues: write
10
+ pull-requests: write
11
+ steps:
12
+ - uses: actions/first-interaction@v1
13
+ with:
14
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
15
+ issue-message: "Welcome to the repo! Make sure you don't rewrite things that don't need rewriting, keep your code clean and proper!"
16
+ pr-message: "THANKS! Onto it, will check it asap!"
Dataset-Tools-main/.github/workflows/pytest.yml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Install Python dependencies, run tests
3
+
4
+ name: PyTest
5
+
6
+ on:
7
+ push:
8
+ branches: [ "kn/x", "main","kn/dusk" ]
9
+ pull_request:
10
+ branches: [ "kn/x", "main","kn/dusk" ]
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+
17
+ test:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v2
23
+ with:
24
+ python-version: 3.13
25
+ - name: Install dependencies and run Test
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ python -m venv .venv
29
+ source .venv/bin/activate
30
+ pip install .[dev]
31
+ pytest -vv
Dataset-Tools-main/.github/workflows/stale.yml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2
+ #
3
+ # You can adjust the behavior by modifying this file.
4
+ # For more information, see:
5
+ # https://github.com/actions/stale
6
+ name: Mark stale issues and pull requests
7
+
8
+ on:
9
+ schedule:
10
+ - cron: '20 11 * * *'
11
+
12
+ jobs:
13
+ stale:
14
+
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ issues: write
18
+ pull-requests: write
19
+
20
+ steps:
21
+ - uses: actions/stale@v5
22
+ with:
23
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
24
+ stale-issue-message: 'Stale issue message'
25
+ stale-pr-message: 'Stale pull request message'
26
+ stale-issue-label: 'no-issue-activity'
27
+ stale-pr-label: 'no-pr-activity'
Dataset-Tools-main/.gitignore ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .DS_Store
2
+ dataset_tools.egg-info
3
+ dataset_tools.dataset_tools.egg-info
4
+ build
5
+ dataset_tools/__pycache__/__init__.cpython-310.pyc
6
+ dataset_tools/__pycache__/access_disk.cpython-310.pyc
7
+ dataset_tools/__pycache__/correct_types.cpython-310.pyc
8
+ dataset_tools/__pycache__/logger.cpython-310.pyc
9
+ dataset_tools/__pycache__/main.cpython-310.pyc
10
+ dataset_tools/__pycache__/metadata_parser.cpython-310.pyc
11
+ dataset_tools/__pycache__/ui.cpython-310.pyc
12
+ dataset_tools/__pycache__/widgets.cpython-310.pyc
Dataset-Tools-main/CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage:https://www.contributor-covenant.org](https://www.contributor-covenant.org)
125
+
126
+ For answers to common questions about this code of conduct, see the [FAQ at
127
+ https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at
128
+ [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
Dataset-Tools-main/CONTRIBUTING.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Volunteering help for KTISEOS NYX projects
2
+
3
+ [__Promotion and Docs__](#promotion-and-docs)<br>
4
+ [__Setting up For Development__](#setting-up-for-development)<br>
5
+ [__Contributing Code__](#contributing-code)<br>
6
+ [__Previous Builds__](#previous-builds)<br>
7
+
8
+ ## Promotion And Docs
9
+
10
+ We're always looking for help with:
11
+
12
+ - Video Tutorials
13
+ - Documenting
14
+ - Feature Ideas
15
+ - Aesthetic Suggestions
16
+ - Design Discussion
17
+ - New Code
18
+
19
+ Coordinate with us by:
20
+
21
+ - Opening a topic in [discussions](https://github.com/Ktiseos-Nyx/Dataset-Tools/discussions/new/choose)
22
+ - Opening an [issue](https://github.com/Ktiseos-Nyx/Dataset-Tools/issues/new/choose)
23
+ - Connect with us live on discord!
24
+
25
+ <a href="https://discord.gg/5t2kYxt7An" target="_blank">
26
+
27
+ ![A flat logo for Discord](https://img.shields.io/badge/%20Discord%20_%20_%20_%20_%20_%7C-_?style=flat-square&labelColor=rgb(65%2C69%2C191)&color=rgb(65%2C69%2C191))
28
+
29
+ </a>
30
+
31
+
32
+ ## Contributing Code
33
+
34
+ ### Specifications :
35
+
36
+ > #### Formatting/Linting Specification
37
+ > ```
38
+ > editor = Visual Studio Code
39
+ > formatting = Ruff/Black/Better Align
40
+ > docstrings = NumPY/Sphinx
41
+ > installation = setuptools
42
+ > testing = pytest
43
+ > typing = Pydantic
44
+ > ui = QT
45
+ > ```
46
+
47
+ > #### Variable dictionary
48
+ > ```
49
+ > # Actions
50
+ > Delegate / Arrange / Direct / Traffic / Filter / Coordinate / Assign
51
+ > Fetch / Get / Extract / Pull / Send / Feed / Push
52
+ > Delineate / Format / Detail / Cat|Concat / Show / Join / Splice
53
+ > Diverge / Unite / Resolve / Generate / Activate
54
+ > Identify / Compare / Detect / Measure / Scan / Scrutinize
55
+ > Log / Cache / Read / Load / Capture / Populate / Save
56
+ > Test / Interpret / Poll / Interrogate / Flag / Mark / Mask / Trace
57
+ > Protect / Register / Ignore / Canonize
58
+ > Check / Validate / Normalize
59
+ > Advance / Skip / Exit / Leave / Cross / Structure / Fold
60
+
61
+ > # Conditions
62
+ > Raw / Upstream / Downstream / Up / Down / Low / High
63
+ > Active / Passive / Inactive / Public / Private
64
+ > Extrinsic / Intrinsic / Static / Dynamic / Valid / Invalid
65
+ > Indirect / Direct / Pending / Next
66
+ > Maybe / Local / Remote / Persistent / Relevant
67
+
68
+ > # Object
69
+ > File / Folder / Fragment / Component / Segment
70
+ > Header/ Content / Pattern / Target / Aspect
71
+ > State / Signal / Trigger / Level / Status / Attribute
72
+ > Location / Path / Parameter / Code / Mask
73
+ > Net / Disk
74
+
75
+ > # Between bits
76
+ > Is / Has / Can
77
+
78
+ > # File and Folder handling
79
+
80
+ > file_contents = data inside the file
81
+ > file_name = exclusively
82
+ > file_path = the path leading up to the file, with no file name
83
+ > file_path_named = relative or absolute path including name
84
+
85
+ > empty_file_name = a file to be created
86
+ > empty_file_name_and_path = relative or absolute path including name to be created
87
+
88
+ > folder_contents = file names inside a folder
89
+ > folder_name = the name of the folder
90
+ > folder_name_and_path = relative or absolute path including name
91
+ > empty_folder_name = a folder to be created
92
+ > empty_folder_name_and_path = relative or absolute path including name to be created
93
+
94
+ > # Key and Value handling
95
+ > key_name
96
+ > key_name_and_path
97
+ > empty_key_name
98
+ > empty_key_name_and_path
99
+
100
+ > value_name
101
+ > value_name_and_path
102
+ > empty_key_name
103
+ > empty_key_name_and_path
104
+ > new_key_name
105
+ > ```
106
+
107
+ ## Setting Up For Development
108
+
109
+ These are the instructions to follow for people who want to build the app with us!
110
+
111
+ ### Dev Installation:
112
+ > ```
113
+ > pip install -e .[dev]
114
+ > ```
115
+
116
+ ### Update version:
117
+ > ```
118
+ > python -m _version
119
+ > ```
120
+ >
121
+
122
+ ### Run with debug logging :
123
+ > ```
124
+ > dataset-tools -d
125
+ > ```
126
+ > or
127
+ > ```
128
+ > python -m main --log debug
129
+ > ```
130
+
131
+ ### Reinstallation:
132
+ > ```
133
+ > pip uninstall dataset-tools
134
+ > ```
135
+
136
+
137
+ ## Previous Builds
138
+
139
+ ### Where we started from
140
+
141
+ Here you can see some screenshots of previous versions of the application. Look at our baby pics! 🍼
142
+
143
+ <img width="797" alt="Screenshot of the Application" src="https://github.com/user-attachments/assets/7e14c542-482d-42f4-a9ae-4305c9e2c383">
144
+
145
+ <img width="459" alt="Screenshot 2024-06-14 at 22 00 40" src="https://github.com/duskfallcrew/Dataset-Tools/assets/58930427/9dc7f859-13d5-4e75-9f21-171648b3061e">
146
+ <img width="464" alt="Screenshot 2024-06-14 at 22 09 01" src="https://github.com/duskfallcrew/Dataset-Tools/assets/58930427/dbfd0678-aff4-47f2-a23f-e7cfa14582ef">
147
+ <img width="1202" alt="Screenshot 2024-06-15 at 00 03 47" src="https://github.com/duskfallcrew/Dataset-Tools/assets/58930427/a2e1b5bb-7ffc-43e9-8002-56aa977478f6">
148
+ <img width="1198" alt="Screenshot 2024-06-15 at 00 03 55" src="https://github.com/duskfallcrew/Dataset-Tools/assets/58930427/8f948d75-96ae-4ae7-b87b-0ad8887e6745">
149
+ <img width="1678" alt="Screenshot 2024-06-15 at 00 04 16" src="https://github.com/duskfallcrew/Dataset-Tools/assets/58930427/bba4d2a7-9aaa-42f3-82f8-b866db8f0084">
150
+ <img width="1183" alt="Screenshot 2024-06-15 at 14 06 00" src="https://github.com/duskfallcrew/Dataset-Tools/assets/58930427/a513f6df-1fca-421b-ae8b-401abc7741cb">
151
+ <img width="1190" alt="Screenshot 2024-06-15 at 15 01 45" src="https://github.com/duskfallcrew/Dataset-Tools/assets/58930427/10d386f8-ae21-4672-964c-5d4ebc889275">
152
+
Dataset-Tools-main/LICENSE ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
Dataset-Tools-main/README.md ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Dataset-Tools: A Simple Dataset Viewer for AI Art
3
+
4
+ <span style="text-align: center">
5
+
6
+ [__How to use Dataset-Tools__](#how-to-use-dataset-tools)<br>
7
+ [__Launching the Application__](#launching-the-application)<br>
8
+ [__User Interface Overview__](#user-interface-overview)<br>
9
+ [__Improve the Project__](CONTRIBUTING.md)<br>
10
+ [__Help the Creators__](#help-the-creators)<br>
11
+
12
+ </span>
13
+
14
+ | Badge | Description |
15
+ | :-------------------------------------- | :---------------------------------------- |
16
+ | [![GitHub](https://img.shields.io/badge/GitHub-View%20on%20GitHub-181717?logo=github&style=for-the-badge)](https://github.com/Ktiseos-Nyx) | Our Github |
17
+ | ![Build Status](https://img.shields.io/badge/build-passing-brightgreen) | Indicates the build status of the project. |
18
+ | [![PyTest](https://github.com/Ktiseos-Nyx/Dataset-Tools/actions/workflows/pytest.yml/badge.svg)](https://github.com/Ktiseos-Nyx/Dataset-Tools/actions/workflows/pytest.yml) | PyTest results. |
19
+ | ![CC0 1.0 License](https://img.shields.io/badge/License-CC0_1.0-lightgrey.svg) | Creative Commons Zero v1.0 Universal (Public Domain Dedication) |
20
+ | [![Discord](https://img.shields.io/discord/1024442483750490222?logo=discord&style=for-the-badge&color=5865F2)](https://discord.gg/5t2kYxt7An) | Discord Server |
21
+ | [![Ko-Fi](https://img.shields.io/badge/Ko--fi-Support%20on%20Ko--fi-FF5E5B?logo=kofi&style=for-the-badge)](https://ko-fi.com/duskfallcrew) | Duskfallcrew Ko-FI |
22
+ | [![Twitch](https://img.shields.io/badge/Twitch-Follow%20on%20Twitch-9146FF?logo=twitch&style=for-the-badge)](https://twitch.tv/duskfallcrew) | Watch on Twitch |
23
+
24
+
25
+
26
+
27
+
28
+ <hr>
29
+
30
+ Dataset-Tools is a desktop application designed to help users browse and manage their image and text datasets, particularly those used with AI art generation tools like Stable Diffusion. Developed using PyQt6, it provides a simple and intuitive graphical interface for browsing images, viewing metadata, and examining associated text prompts. This project is inspired by tools within the AI art community (☮️[receyuki](https://github.com/receyuki/stable-diffusion-prompt-reader)🤍) and aims to empower users in improving their dataset curation workflow.
31
+
32
+ https://github.com/user-attachments/assets/f8b4187b-2603-4bae-aa4a-dc3f621b5696
33
+
34
+
35
+ ## How to Use Dataset-Tools
36
+
37
+ ### Requirements
38
+
39
+ To run the program, you will need the following software:
40
+
41
+ #### Python:
42
+ - [Python.org](https://www.python.org/downloads/) or [Try `uv`](https://github.com/astral-sh/uv?tab=readme-ov-file#installation)
43
+
44
+ #### Git:
45
+ - [Windows](https://gitforwindows.org/)
46
+ - [MacOS first option](https://git-scm.com/downloads/mac), [or second option](https://brew.sh/)
47
+ - [Linux](https://git-scm.com/downloads/linux)
48
+
49
+ ### Launching the Application
50
+
51
+ #### 1. Open your ``terminal`` shell console of choice.🐣 (ie: ```powershell```,```cmd```,```zsh```,```bash```, etc.)
52
+
53
+ #### 2. ``git clone`` or download the Dataset-Tools repository from GitHub.
54
+
55
+ ```sh
56
+ git clone https://github.com/Ktiseos-Nyx/Dataset-Tools.git
57
+ ```
58
+
59
+ #### 3. Move into Dataset-Tools folder and `pip install`the required dependencies:
60
+
61
+ ```sh
62
+ cd Dataset-Tools
63
+ pip install .
64
+ ```
65
+
66
+ > [!NOTE]
67
+ > `uv` users
68
+ > ```sh
69
+ > cd Dataset-Tools
70
+ > uv pip install .
71
+ > ```
72
+
73
+ #### 4. Run the application with `dataset-tools` command:
74
+
75
+ ```sh
76
+ dataset-tools
77
+ ```
78
+
79
+ #### You're in!
80
+
81
+ <br>
82
+
83
+ ### User Interface Overview
84
+ <hr>
85
+
86
+ The application window has the following main components:
87
+
88
+ * **Current Folder:** Displays the path of the currently loaded folder.
89
+ * **Open Folder:** A button to select a folder containing images and text files.
90
+ * **Image List:** Displays a list of images and text files found in the selected folder.
91
+ * **Image Preview:** An area to display a selected image.
92
+ * **Metadata Box:** A text area to display the extracted metadata from the selected image (including Stable Diffusion prompt, settings, etc.).
93
+
94
+ ### Managing Images and Text
95
+
96
+ * **Selecting Images:** Click on an image or text file in the list to display its preview, metadata, and associated text content.
97
+ * **Viewing Metadata:** Metadata associated with the selected image is displayed on the text area, such as steps, samplers, seeds, and more.
98
+ * **Viewing Text:** The content of any text file associated with the selected image is displayed on the text box.
99
+
100
+ ## Key Features
101
+
102
+ * **Graphical User Interface (GUI):** Built with PyQt6 for a modern and cross-platform experience.
103
+ * **Image Previews:** Quickly view images in a dedicated preview area.
104
+ * **Metadata Extraction:** Extract and display relevant metadata from PNG image files, especially those generated from Stable Diffusion.
105
+ * **Text Viewing:** Display the content of text files.
106
+ * **Clear Layout:** A simple and intuitive layout, with list view on the left, and preview on the right.
107
+
108
+ ## Future Developments
109
+
110
+ * **Filtering/Sorting:** Options to filter and sort files.
111
+ * **Thumbnail Generation:** Implement thumbnails for faster browsing.
112
+ * **Themes:** Introduce customizable themes for appearance.
113
+ * **Better User Experience:** Test on different operating systems and screen resolutions to optimize user experience.
114
+ * **Video Tutorials:** Create video tutorials to show users how to use the program.
115
+ * **Text Tutorials:** Create detailed tutorials in text and image to show the user how to use the program.
116
+
117
+ ## Help the Creators
118
+
119
+ <a href="https://discord.gg/5t2kYxt7An" target="_blank">
120
+
121
+ ![A flat logo for Discord](https://img.shields.io/badge/%20Discord%20_%20_%20_%20_%20_%7C-_?style=flat-square&labelColor=rgb(65%2C69%2C191)&color=rgb(65%2C69%2C191))
122
+
123
+ </a>
124
+
125
+ ### --**__<{ Ktiseos Nyx }>__**--
126
+
127
+ is a creator collective consisting of
128
+
129
+
130
+
131
+
132
+
133
+ #### [Duskfall Portal Crew on GitHub](https://github.com/duskfallcrew)
134
+
135
+ The Duskfall Portal crew would like to thank -
136
+
137
+ * ChatGPT 3.5 & 4o: Powering innovative solutions and creative endeavors.
138
+ * Support of my peers, and the community at Large.
139
+ * [Canvas icons created by Freepik - Flaticon](https://www.flaticon.com/free-icons/canvas)
140
+ * Inspired by [receyuki/stable-diffusion-prompt-reader](https://github.com/receyuki/stable-diffusion-prompt-reader)
141
+
142
+ #### [EXDYSA on GitHub](https://github.com/exdysa)
143
+
144
+ ...and more to come!
Dataset-Tools-main/SECURITY.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ As stated below until we get a hold on FINAL versioning the security updates of this are largely just based on what OLD branches exist.
6
+
7
+ There are no UPDATES to SEVERELY OLD CODE from before 2025.
8
+
9
+ Currently there's no "SECURTITY UPDATES" due to the flucation in development of this.
10
+ but moving forward:
11
+
12
+ | Version | Supported |
13
+ | ------- | ------------------ |
14
+ | Newest | :white_check_mark: |
15
+ | WAY OLD | :x: |
16
+ | DevClaude/Dev | :x: |
17
+ | < OldVersions | :x: |
18
+
19
+ ## Reporting a Vulnerability
20
+
21
+ Use the issues and discussions tabs to report things, or visit our discord.
Dataset-Tools-main/_version.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4db4a4a7f4b1f1c6a7575474b007fcbccbd5add011414a59154ef745a6e47934
3
+ size 465
Dataset-Tools-main/dataset_tools/__init__.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04cc7f2ea4d08239c96fc2454734f146faa7ea0bc63ed199ca7b4d9e9ce06b04
3
+ size 1293
Dataset-Tools-main/dataset_tools/access_disk.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f171c3de2dbab0662d3e0f7a9397282a2213e2885dc696e1131a4c9795f4bf35
3
+ size 3542
Dataset-Tools-main/dataset_tools/correct_types.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c59f2e982c1cf093ea568761b71b0445780b7d6253ed990d14fb5ca575f6d8e
3
+ size 4995
Dataset-Tools-main/dataset_tools/logger.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87ea4b3d8f36084f32d11c9757d3cda574690c26d96757dab34deab93b69fc08
3
+ size 2969
Dataset-Tools-main/dataset_tools/main.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e6f3fa273230e492cd6a61366880c4dee128d5df38101cec21b7b97648ae3be
3
+ size 598
Dataset-Tools-main/dataset_tools/metadata_parser.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42dd2c8dd5e45cf754f229adad7d1477a6cc8d42cfbb9213f7890270cd325824
3
+ size 16826
Dataset-Tools-main/dataset_tools/ui.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:743d0bf53055c8e4b12ef944d0a6faf46bf15054a505881a25e8bfa4972b4043
3
+ size 11319
Dataset-Tools-main/dataset_tools/widgets.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e975e414e17adea1ddfccdc65ef68b238ce8fb0aa81e10dd8ebbd9b554e727b
3
+ size 3407
Dataset-Tools-main/pyproject.toml ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ [build-system]
3
+ requires = ["setuptools", "setuptools_scm"]
4
+ build-backend = "setuptools.build_meta"
5
+
6
+ [project]
7
+ name = "dataset-tools"
8
+ description = "An ultralight metadata viewer to help you visualize and edit dataset text."
9
+ authors = [{ name = "Ktiseos Nyx", email = "[email protected]" }]
10
+ requires-python = ">= 3.10"
11
+ license = { file = "LICENSE" }
12
+ readme = "README.md"
13
+ urls = { source = "https://github.com/orgs/Ktiseos-Nyx/Dataset-Tools" }
14
+ dynamic = ["version"]
15
+
16
+ keywords = [
17
+ "training",
18
+ "text",
19
+ "images",
20
+ "AI",
21
+ "editing",
22
+ "dataset",
23
+ "metadata",
24
+ "generative",
25
+ "art",
26
+ ]
27
+ classifiers = [
28
+ "Topic :: Multimedia :: Graphics",
29
+ "Topic :: Multimedia :: Graphics :: Viewers",
30
+ "Topic :: Text Processing :: General",
31
+ "Topic :: Artistic Software",
32
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
33
+ "Intended Audience :: Other Audience",
34
+ "Programming Language :: Python :: 3.10",
35
+ "Programming Language :: Python :: 3.11",
36
+ "Programming Language :: Python :: 3.12",
37
+ "Operating System :: OS Independent",
38
+ "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
39
+ "Environment :: X11 Applications :: Qt",
40
+ ]
41
+ dependencies = [
42
+ "rich",
43
+ "pydantic",
44
+ "pydantic-core",
45
+ "pillow",
46
+ "PyQt6",
47
+ "toml",
48
+ "typing-extensions",
49
+ ]
50
+ [project.optional-dependencies]
51
+ dev = ["pytest"]
52
+ kn = ["ruff", "pylint"]
53
+
54
+ [project.scripts]
55
+ dataset-tools = "dataset_tools.main:main"
56
+
57
+ [tool.setuptools_scm]
58
+ write_to = "_version.py"
59
+
60
+ # Personal preferences
61
+ [tool.uv]
62
+ dev-dependencies = ["pytest"]
63
+
64
+ [tool.ruff]
65
+ line-length = 120
66
+ include = ["*.py"]
67
+ extend-exclude = ["^tests/.*$", "test.*$"]
68
+
69
+ [tool.pylint]
70
+ ignore-paths = ["^tests/.*$", "test_.*$"]
71
+
72
+ [tool.ruff.format]
73
+
74
+ [tool.ruff.lint.pycodestyle]
75
+ max-line-length = 120
76
+ ignore-overlong-task-comments = true
77
+
78
+ [tool.typos]
79
+ files.extend-exclude = ["^tests/.*$", "test.*$"]
Dataset-Tools-main/tests/__init__.py ADDED
File without changes
Dataset-Tools-main/tests/test_access_disk.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96fbd3330698b10bc167bd98ad6faedcaf3df4785598096ce566d584812a3745
3
+ size 790
Dataset-Tools-main/tests/test_img.png ADDED

Git LFS Details

  • SHA256: 968e11df3eb75a782472f0d4de1de48349bad0a220a8f5400b167c0ce293d70a
  • Pointer size: 132 Bytes
  • Size of remote file: 2.39 MB
Dataset-Tools-main/tests/test_md_ps.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fa0bcf7a93c810c480b3cf0f10e138c7b42ae104e17ea713120aa472b3ae759
3
+ size 15128
Dataset-Tools-main/tests/test_ui.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47c93ce8a57e2a788ab181ed1f582e62de71471fb9d30e2d17f81a15b0c08adb
3
+ size 1468
README.md CHANGED
@@ -1,3 +1,144 @@
1
- ---
2
- license: cc0-1.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Dataset-Tools: A Simple Dataset Viewer for AI Art
3
+
4
+ <span style="text-align: center">
5
+
6
+ [__How to use Dataset-Tools__](#how-to-use-dataset-tools)<br>
7
+ [__Launching the Application__](#launching-the-application)<br>
8
+ [__User Interface Overview__](#user-interface-overview)<br>
9
+ [__Improve the Project__](CONTRIBUTING.md)<br>
10
+ [__Help the Creators__](#help-the-creators)<br>
11
+
12
+ </span>
13
+
14
+ | Badge | Description |
15
+ | :-------------------------------------- | :---------------------------------------- |
16
+ | [![GitHub](https://img.shields.io/badge/GitHub-View%20on%20GitHub-181717?logo=github&style=for-the-badge)](https://github.com/Ktiseos-Nyx) | Our Github |
17
+ | ![Build Status](https://img.shields.io/badge/build-passing-brightgreen) | Indicates the build status of the project. |
18
+ | [![PyTest](https://github.com/Ktiseos-Nyx/Dataset-Tools/actions/workflows/pytest.yml/badge.svg)](https://github.com/Ktiseos-Nyx/Dataset-Tools/actions/workflows/pytest.yml) | PyTest results. |
19
+ | ![CC0 1.0 License](https://img.shields.io/badge/License-CC0_1.0-lightgrey.svg) | Creative Commons Zero v1.0 Universal (Public Domain Dedication) |
20
+ | [![Discord](https://img.shields.io/discord/1024442483750490222?logo=discord&style=for-the-badge&color=5865F2)](https://discord.gg/5t2kYxt7An) | Discord Server |
21
+ | [![Ko-Fi](https://img.shields.io/badge/Ko--fi-Support%20on%20Ko--fi-FF5E5B?logo=kofi&style=for-the-badge)](https://ko-fi.com/duskfallcrew) | Duskfallcrew Ko-FI |
22
+ | [![Twitch](https://img.shields.io/badge/Twitch-Follow%20on%20Twitch-9146FF?logo=twitch&style=for-the-badge)](https://twitch.tv/duskfallcrew) | Watch on Twitch |
23
+
24
+
25
+
26
+
27
+
28
+ <hr>
29
+
30
+ Dataset-Tools is a desktop application designed to help users browse and manage their image and text datasets, particularly those used with AI art generation tools like Stable Diffusion. Developed using PyQt6, it provides a simple and intuitive graphical interface for browsing images, viewing metadata, and examining associated text prompts. This project is inspired by tools within the AI art community (☮️[receyuki](https://github.com/receyuki/stable-diffusion-prompt-reader)🤍) and aims to empower users in improving their dataset curation workflow.
31
+
32
+ https://github.com/user-attachments/assets/f8b4187b-2603-4bae-aa4a-dc3f621b5696
33
+
34
+
35
+ ## How to Use Dataset-Tools
36
+
37
+ ### Requirements
38
+
39
+ To run the program, you will need the following software:
40
+
41
+ #### Python:
42
+ - [Python.org](https://www.python.org/downloads/) or [Try `uv`](https://github.com/astral-sh/uv?tab=readme-ov-file#installation)
43
+
44
+ #### Git:
45
+ - [Windows](https://gitforwindows.org/)
46
+ - [MacOS first option](https://git-scm.com/downloads/mac), [or second option](https://brew.sh/)
47
+ - [Linux](https://git-scm.com/downloads/linux)
48
+
49
+ ### Launching the Application
50
+
51
+ #### 1. Open your ``terminal`` shell console of choice.🐣 (ie: ```powershell```,```cmd```,```zsh```,```bash```, etc.)
52
+
53
+ #### 2. ``git clone`` or download the Dataset-Tools repository from GitHub.
54
+
55
+ ```sh
56
+ git clone https://github.com/Ktiseos-Nyx/Dataset-Tools.git
57
+ ```
58
+
59
+ #### 3. Move into Dataset-Tools folder and `pip install`the required dependencies:
60
+
61
+ ```sh
62
+ cd Dataset-Tools
63
+ pip install .
64
+ ```
65
+
66
+ > [!NOTE]
67
+ > `uv` users
68
+ > ```sh
69
+ > cd Dataset-Tools
70
+ > uv pip install .
71
+ > ```
72
+
73
+ #### 4. Run the application with `dataset-tools` command:
74
+
75
+ ```sh
76
+ dataset-tools
77
+ ```
78
+
79
+ #### You're in!
80
+
81
+ <br>
82
+
83
+ ### User Interface Overview
84
+ <hr>
85
+
86
+ The application window has the following main components:
87
+
88
+ * **Current Folder:** Displays the path of the currently loaded folder.
89
+ * **Open Folder:** A button to select a folder containing images and text files.
90
+ * **Image List:** Displays a list of images and text files found in the selected folder.
91
+ * **Image Preview:** An area to display a selected image.
92
+ * **Metadata Box:** A text area to display the extracted metadata from the selected image (including Stable Diffusion prompt, settings, etc.).
93
+
94
+ ### Managing Images and Text
95
+
96
+ * **Selecting Images:** Click on an image or text file in the list to display its preview, metadata, and associated text content.
97
+ * **Viewing Metadata:** Metadata associated with the selected image is displayed on the text area, such as steps, samplers, seeds, and more.
98
+ * **Viewing Text:** The content of any text file associated with the selected image is displayed on the text box.
99
+
100
+ ## Key Features
101
+
102
+ * **Graphical User Interface (GUI):** Built with PyQt6 for a modern and cross-platform experience.
103
+ * **Image Previews:** Quickly view images in a dedicated preview area.
104
+ * **Metadata Extraction:** Extract and display relevant metadata from PNG image files, especially those generated from Stable Diffusion.
105
+ * **Text Viewing:** Display the content of text files.
106
+ * **Clear Layout:** A simple and intuitive layout, with list view on the left, and preview on the right.
107
+
108
+ ## Future Developments
109
+
110
+ * **Filtering/Sorting:** Options to filter and sort files.
111
+ * **Thumbnail Generation:** Implement thumbnails for faster browsing.
112
+ * **Themes:** Introduce customizable themes for appearance.
113
+ * **Better User Experience:** Test on different operating systems and screen resolutions to optimize user experience.
114
+ * **Video Tutorials:** Create video tutorials to show users how to use the program.
115
+ * **Text Tutorials:** Create detailed tutorials in text and image to show the user how to use the program.
116
+
117
+ ## Help the Creators
118
+
119
+ <a href="https://discord.gg/5t2kYxt7An" target="_blank">
120
+
121
+ ![A flat logo for Discord](https://img.shields.io/badge/%20Discord%20_%20_%20_%20_%20_%7C-_?style=flat-square&labelColor=rgb(65%2C69%2C191)&color=rgb(65%2C69%2C191))
122
+
123
+ </a>
124
+
125
+ ### --**__<{ Ktiseos Nyx }>__**--
126
+
127
+ is a creator collective consisting of
128
+
129
+
130
+
131
+
132
+
133
+ #### [Duskfall Portal Crew on GitHub](https://github.com/duskfallcrew)
134
+
135
+ The Duskfall Portal crew would like to thank -
136
+
137
+ * ChatGPT 3.5 & 4o: Powering innovative solutions and creative endeavors.
138
+ * Support of my peers, and the community at Large.
139
+ * [Canvas icons created by Freepik - Flaticon](https://www.flaticon.com/free-icons/canvas)
140
+ * Inspired by [receyuki/stable-diffusion-prompt-reader](https://github.com/receyuki/stable-diffusion-prompt-reader)
141
+
142
+ #### [EXDYSA on GitHub](https://github.com/exdysa)
143
+
144
+ ...and more to come!