tarumba 0.0.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 (43) hide show
  1. tarumba-0.0.1/.github/workflows/build.yml +20 -0
  2. tarumba-0.0.1/.github/workflows/linting.yml +29 -0
  3. tarumba-0.0.1/.github/workflows/tests.yml +28 -0
  4. tarumba-0.0.1/.gitignore +164 -0
  5. tarumba-0.0.1/.pylintrc +643 -0
  6. tarumba-0.0.1/COPYING +674 -0
  7. tarumba-0.0.1/PKG-INFO +155 -0
  8. tarumba-0.0.1/README.md +128 -0
  9. tarumba-0.0.1/hatch_build.py +11 -0
  10. tarumba-0.0.1/icon.svg +12 -0
  11. tarumba-0.0.1/pyproject.toml +108 -0
  12. tarumba-0.0.1/src/tarumba/__about__.py +6 -0
  13. tarumba-0.0.1/src/tarumba/__init__.py +13 -0
  14. tarumba-0.0.1/src/tarumba/__main__.py +124 -0
  15. tarumba-0.0.1/src/tarumba/backend/__init__.py +0 -0
  16. tarumba-0.0.1/src/tarumba/backend/backend.py +175 -0
  17. tarumba-0.0.1/src/tarumba/backend/bzip2.py +218 -0
  18. tarumba-0.0.1/src/tarumba/backend/gzip.py +265 -0
  19. tarumba-0.0.1/src/tarumba/backend/rar.py +338 -0
  20. tarumba-0.0.1/src/tarumba/backend/tar.py +317 -0
  21. tarumba-0.0.1/src/tarumba/backend/x7z.py +380 -0
  22. tarumba-0.0.1/src/tarumba/backend/xz.py +248 -0
  23. tarumba-0.0.1/src/tarumba/backend/zip.py +312 -0
  24. tarumba-0.0.1/src/tarumba/classifier.py +206 -0
  25. tarumba-0.0.1/src/tarumba/cmd_parser.py +109 -0
  26. tarumba-0.0.1/src/tarumba/config.py +152 -0
  27. tarumba-0.0.1/src/tarumba/constants.py +61 -0
  28. tarumba-0.0.1/src/tarumba/data_classes.py +156 -0
  29. tarumba-0.0.1/src/tarumba/errors.py +16 -0
  30. tarumba-0.0.1/src/tarumba/executor.py +116 -0
  31. tarumba-0.0.1/src/tarumba/file_utils.py +400 -0
  32. tarumba-0.0.1/src/tarumba/gui/__init__.py +8 -0
  33. tarumba-0.0.1/src/tarumba/gui/console.py +366 -0
  34. tarumba-0.0.1/src/tarumba/gui/gui.py +72 -0
  35. tarumba-0.0.1/src/tarumba/locale/es/LC_MESSAGES/tarumba.mo +0 -0
  36. tarumba-0.0.1/src/tarumba/locale/es/LC_MESSAGES/tarumba.po +397 -0
  37. tarumba-0.0.1/src/tarumba/manager.py +439 -0
  38. tarumba-0.0.1/src/tarumba/recompressor.py +134 -0
  39. tarumba-0.0.1/src/tarumba/utils.py +187 -0
  40. tarumba-0.0.1/tests/__init__.py +0 -0
  41. tarumba-0.0.1/tests/test_backend.py +523 -0
  42. tarumba-0.0.1/tests/test_main.py +60 -0
  43. tarumba-0.0.1/tests/utils.py +255 -0
@@ -0,0 +1,20 @@
1
+ name: Build project
2
+ run-name: Build project
3
+
4
+ on:
5
+ push: {}
6
+ pull_request: {}
7
+ release:
8
+ types:
9
+ - created
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Fetch code
16
+ uses: actions/checkout@v4
17
+ - name: Install hatch
18
+ uses: pypa/hatch@install
19
+ - name: Build project
20
+ run: hatch build
@@ -0,0 +1,29 @@
1
+ name: Code linting
2
+ run-name: Code linting
3
+
4
+ on:
5
+ push: {}
6
+ pull_request: {}
7
+ release:
8
+ types:
9
+ - created
10
+
11
+ jobs:
12
+ ruff:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Fetch code
16
+ uses: actions/checkout@v4
17
+ - name: Install hatch
18
+ uses: pypa/hatch@install
19
+ - name: Lint code using ruff
20
+ run: hatch fmt --check
21
+ pylint:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - name: Fetch code
25
+ uses: actions/checkout@v4
26
+ - name: Install hatch
27
+ uses: pypa/hatch@install
28
+ - name: Lint code using pylint
29
+ run: hatch run pylint src tests
@@ -0,0 +1,28 @@
1
+ name: Unit testing
2
+ run-name: Unit testing
3
+
4
+ on:
5
+ push: {}
6
+ pull_request: {}
7
+ release:
8
+ types:
9
+ - created
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17
+ steps:
18
+ - name: Install backends
19
+ uses: awalsh128/cache-apt-pkgs-action@latest
20
+ with:
21
+ packages: 7zip 7zip-standalone p7zip-full bzip2 gzip rar tar xz-utils zip unzip
22
+ version: 1.0
23
+ - name: Fetch code
24
+ uses: actions/checkout@v4
25
+ - name: Install hatch
26
+ uses: pypa/hatch@install
27
+ - name: Run tests
28
+ run: hatch test -v -py ${{ matrix.python-version }}
@@ -0,0 +1,164 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+ test_files/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # poetry
99
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
+ #poetry.lock
104
+
105
+ # pdm
106
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
+ #pdm.lock
108
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
+ # in version control.
110
+ # https://pdm.fming.dev/#use-with-ide
111
+ .pdm.toml
112
+
113
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
114
+ __pypackages__/
115
+
116
+ # Celery stuff
117
+ celerybeat-schedule
118
+ celerybeat.pid
119
+
120
+ # SageMath parsed files
121
+ *.sage.py
122
+
123
+ # Environments
124
+ .env
125
+ .venv
126
+ env/
127
+ venv/
128
+ ENV/
129
+ env.bak/
130
+ venv.bak/
131
+
132
+ # Spyder project settings
133
+ .spyderproject
134
+ .spyproject
135
+
136
+ # Rope project settings
137
+ .ropeproject
138
+
139
+ # mkdocs documentation
140
+ /site
141
+
142
+ # mypy
143
+ .mypy_cache/
144
+ .dmypy.json
145
+ dmypy.json
146
+
147
+ # Pyre type checker
148
+ .pyre/
149
+
150
+ # pytype static type analyzer
151
+ .pytype/
152
+
153
+ # Cython debug symbols
154
+ cython_debug/
155
+
156
+ # PyCharm
157
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
158
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
159
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
160
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
161
+ #.idea/
162
+
163
+ # vim
164
+ .*.swp