django-filer-optimizer 0.1.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. django-filer-optimizer-0.1.1/.pre-commit-config.yaml +48 -0
  2. django-filer-optimizer-0.1.1/CODEOWNERS +2 -0
  3. django-filer-optimizer-0.1.1/CONTRIBUTING.md +3 -0
  4. django-filer-optimizer-0.1.1/LICENSE +21 -0
  5. django-filer-optimizer-0.1.1/MANIFEST.in +15 -0
  6. django-filer-optimizer-0.1.1/PKG-INFO +98 -0
  7. django-filer-optimizer-0.1.1/README.md +57 -0
  8. django-filer-optimizer-0.1.1/mkdocs.yml +70 -0
  9. django-filer-optimizer-0.1.1/pyproject.toml +45 -0
  10. django-filer-optimizer-0.1.1/requirements/dev.in +8 -0
  11. django-filer-optimizer-0.1.1/requirements/docs.in +3 -0
  12. django-filer-optimizer-0.1.1/requirements/docs.txt +451 -0
  13. django-filer-optimizer-0.1.1/requirements/py310-dev.txt +658 -0
  14. django-filer-optimizer-0.1.1/requirements/py310-django32.txt +226 -0
  15. django-filer-optimizer-0.1.1/requirements/py310-django42.txt +222 -0
  16. django-filer-optimizer-0.1.1/requirements/py311-dev.txt +648 -0
  17. django-filer-optimizer-0.1.1/requirements/py311-django32.txt +222 -0
  18. django-filer-optimizer-0.1.1/requirements/py311-django42.txt +218 -0
  19. django-filer-optimizer-0.1.1/requirements/py38-dev.txt +667 -0
  20. django-filer-optimizer-0.1.1/requirements/py38-django32.txt +226 -0
  21. django-filer-optimizer-0.1.1/requirements/py38-django42.txt +240 -0
  22. django-filer-optimizer-0.1.1/requirements/py39-dev.txt +659 -0
  23. django-filer-optimizer-0.1.1/requirements/py39-django32.txt +226 -0
  24. django-filer-optimizer-0.1.1/requirements/py39-django42.txt +222 -0
  25. django-filer-optimizer-0.1.1/requirements/requirements.in +3 -0
  26. django-filer-optimizer-0.1.1/runtests.py +52 -0
  27. django-filer-optimizer-0.1.1/setup.cfg +83 -0
  28. django-filer-optimizer-0.1.1/setup.py +57 -0
  29. django-filer-optimizer-0.1.1/src/django_filer_optimizer.egg-info/PKG-INFO +98 -0
  30. django-filer-optimizer-0.1.1/src/django_filer_optimizer.egg-info/SOURCES.txt +42 -0
  31. django-filer-optimizer-0.1.1/src/django_filer_optimizer.egg-info/dependency_links.txt +1 -0
  32. django-filer-optimizer-0.1.1/src/django_filer_optimizer.egg-info/not-zip-safe +1 -0
  33. django-filer-optimizer-0.1.1/src/django_filer_optimizer.egg-info/requires.txt +9 -0
  34. django-filer-optimizer-0.1.1/src/django_filer_optimizer.egg-info/top_level.txt +1 -0
  35. django-filer-optimizer-0.1.1/src/filer_optimizer/__init__.py +19 -0
  36. django-filer-optimizer-0.1.1/src/filer_optimizer/apps.py +11 -0
  37. django-filer-optimizer-0.1.1/src/filer_optimizer/signals.py +24 -0
  38. django-filer-optimizer-0.1.1/src/filer_optimizer/utils.py +149 -0
  39. django-filer-optimizer-0.1.1/tests/__init__.py +0 -0
  40. django-filer-optimizer-0.1.1/tests/settings.py +117 -0
  41. django-filer-optimizer-0.1.1/tests/test_fake.py +23 -0
  42. django-filer-optimizer-0.1.1/tests/urls.py +13 -0
  43. django-filer-optimizer-0.1.1/tox.ini +47 -0
@@ -0,0 +1,48 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.4.0
4
+ hooks:
5
+ - id: check-added-large-files
6
+ - id: check-case-conflict
7
+ - id: check-json
8
+ - id: check-merge-conflict
9
+ - id: check-symlinks
10
+ - id: check-toml
11
+ - id: end-of-file-fixer
12
+ - id: trailing-whitespace
13
+ exclude: .bumpversion.cfg
14
+ - repo: https://github.com/asottile/pyupgrade
15
+ rev: v3.10.1
16
+ hooks:
17
+ - id: pyupgrade
18
+ args: [--py36-plus]
19
+ - repo: https://github.com/psf/black
20
+ rev: 23.7.0
21
+ hooks:
22
+ - id: black
23
+ - repo: https://github.com/asottile/blacken-docs
24
+ rev: 1.15.0
25
+ hooks:
26
+ - id: blacken-docs
27
+ additional_dependencies:
28
+ - black>=22.12.0
29
+ - repo: https://github.com/pycqa/isort
30
+ rev: 5.12.0
31
+ hooks:
32
+ - id: isort
33
+ args: ["--profile", "black"]
34
+ - repo: https://github.com/PyCQA/flake8
35
+ rev: 6.1.0
36
+ hooks:
37
+ - id: flake8
38
+ additional_dependencies:
39
+ - flake8-bugbear
40
+ - flake8-comprehensions
41
+ - flake8-tidy-imports
42
+ - flake8-typing-imports
43
+ - repo: https://github.com/mgedmin/check-manifest
44
+ rev: "0.49"
45
+ hooks:
46
+ - id: check-manifest
47
+ args: [--no-build-isolation]
48
+ additional_dependencies: ["Django>=3.2"]
@@ -0,0 +1,2 @@
1
+ # Require review from Code Owners
2
+ * @dlrsp-dev
@@ -0,0 +1,3 @@
1
+ # Contributing
2
+
3
+ See the [Contributing guide in the documentation](https://dlrsp.github.io/django-filer-optimizer/community/contributing/).
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2010-present DLRSP (https://dlrsp.org) and other contributors.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,15 @@
1
+ include *.py
2
+ include *.rst
3
+ include *.md
4
+ include *.yaml
5
+ include *.yml
6
+ include *.cfg
7
+ include tox.ini
8
+ include LICENSE
9
+ include CODEOWNERS
10
+
11
+ recursive-include requirements *.in *.txt
12
+ recursive-exclude requirements *.py
13
+ recursive-include src *.py *.html *.css *.js *.po *.mo *.gif *.png
14
+ recursive-include tests *.py
15
+ recursive-exclude docs *
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.1
2
+ Name: django-filer-optimizer
3
+ Version: 0.1.1
4
+ Summary: Django application to extend the "django-filer" application with extra utils like.
5
+ Home-page: https://github.com/DLRSP/django-filer-optimizer
6
+ Author: DLRSP
7
+ Author-email: dlrsp.dev@gmail.com
8
+ License: MIT License
9
+ Keywords: django
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Web Environment
12
+ Classifier: Framework :: Django
13
+ Classifier: Framework :: Django :: 3.2
14
+ Classifier: Framework :: Django :: 4.2
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Operating System :: OS Independent
26
+ Classifier: Topic :: Internet :: WWW/HTTP
27
+ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
28
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
29
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
30
+ Classifier: Topic :: Software Development :: Libraries
31
+ Requires-Python: >=3.8
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Requires-Dist: Django>=3.2
35
+ Provides-Extra: testing
36
+ Requires-Dist: coverage; extra == "testing"
37
+ Requires-Dist: codecov; extra == "testing"
38
+ Provides-Extra: linting
39
+ Requires-Dist: flake8; extra == "linting"
40
+ Requires-Dist: pylint; extra == "linting"
41
+
42
+ # django-filer-optimizer [![PyPi license](https://img.shields.io/pypi/l/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
43
+
44
+ [![PyPi status](https://img.shields.io/pypi/status/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
45
+ [![PyPi version](https://img.shields.io/pypi/v/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
46
+ [![PyPi python version](https://img.shields.io/pypi/pyversions/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
47
+ [![PyPi downloads](https://img.shields.io/pypi/dm/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
48
+ [![PyPi downloads](https://img.shields.io/pypi/dw/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
49
+ [![PyPi downloads](https://img.shields.io/pypi/dd/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
50
+
51
+ ## GitHub ![GitHub release](https://img.shields.io/github/tag/DLRSP/django-filer-optimizer.svg) ![GitHub release](https://img.shields.io/github/release/DLRSP/django-filer-optimizer.svg)
52
+
53
+ ## Test [![codecov.io](https://codecov.io/github/DLRSP/django-filer-optimizer/coverage.svg?branch=main)](https://codecov.io/github/DLRSP/django-filer-optimizer?branch=main) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DLRSP/django-filer-optimizer/main.svg)](https://results.pre-commit.ci/latest/github/DLRSP/django-filer-optimizer/main) [![gitthub.com](https://github.com/DLRSP/django-filer-optimizer/actions/workflows/ci.yaml/badge.svg)](https://github.com/DLRSP/django-filer-optimizer/actions/workflows/ci.yaml)
54
+
55
+ ## Check Demo Project
56
+ * Check the demo repo on [GitHub](https://github.com/DLRSP/example/tree/django-filer-optimizer)
57
+
58
+ ## Requirements
59
+ - Python 3.8+ supported.
60
+ - Django 3.2+ supported.
61
+
62
+ ## Setup
63
+ 1. Install from **pip**:
64
+ ```shell
65
+ pip install django-filer-optimizer
66
+ ```
67
+ 2. Modify `settings.py` by adding the app to `INSTALLED_APPS`:
68
+ ```python
69
+ INSTALLED_APPS = [
70
+ # ...
71
+ "filer_optimizer",
72
+ # ...
73
+ ]
74
+ ```
75
+ 3. Finally, modify your project `urls.py` with handlers for all errors:
76
+ ```python
77
+ # ...other imports...
78
+
79
+ urlpatterns = [
80
+ # ...other urls...
81
+ ]
82
+ ```
83
+ 4. Execute Django's command `migrate` inside your project's root:
84
+ ```shell
85
+ python manage.py migrate
86
+ Running migrations:
87
+ Applying filer_optimizer.0001_initial... OK
88
+ ```
89
+
90
+ ## Run Example Project
91
+
92
+ ```shell
93
+ git clone --depth=50 --branch=django-filer-optimizer https://github.com/DLRSP/example.git DLRSP/example
94
+ cd DLRSP/example
95
+ python manage.py runserver
96
+ ```
97
+
98
+ Now browser the app @ http://127.0.0.1:8000
@@ -0,0 +1,57 @@
1
+ # django-filer-optimizer [![PyPi license](https://img.shields.io/pypi/l/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
2
+
3
+ [![PyPi status](https://img.shields.io/pypi/status/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
4
+ [![PyPi version](https://img.shields.io/pypi/v/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
5
+ [![PyPi python version](https://img.shields.io/pypi/pyversions/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
6
+ [![PyPi downloads](https://img.shields.io/pypi/dm/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
7
+ [![PyPi downloads](https://img.shields.io/pypi/dw/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
8
+ [![PyPi downloads](https://img.shields.io/pypi/dd/django-filer-optimizer.svg)](https://pypi.python.org/pypi/django-filer-optimizer)
9
+
10
+ ## GitHub ![GitHub release](https://img.shields.io/github/tag/DLRSP/django-filer-optimizer.svg) ![GitHub release](https://img.shields.io/github/release/DLRSP/django-filer-optimizer.svg)
11
+
12
+ ## Test [![codecov.io](https://codecov.io/github/DLRSP/django-filer-optimizer/coverage.svg?branch=main)](https://codecov.io/github/DLRSP/django-filer-optimizer?branch=main) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DLRSP/django-filer-optimizer/main.svg)](https://results.pre-commit.ci/latest/github/DLRSP/django-filer-optimizer/main) [![gitthub.com](https://github.com/DLRSP/django-filer-optimizer/actions/workflows/ci.yaml/badge.svg)](https://github.com/DLRSP/django-filer-optimizer/actions/workflows/ci.yaml)
13
+
14
+ ## Check Demo Project
15
+ * Check the demo repo on [GitHub](https://github.com/DLRSP/example/tree/django-filer-optimizer)
16
+
17
+ ## Requirements
18
+ - Python 3.8+ supported.
19
+ - Django 3.2+ supported.
20
+
21
+ ## Setup
22
+ 1. Install from **pip**:
23
+ ```shell
24
+ pip install django-filer-optimizer
25
+ ```
26
+ 2. Modify `settings.py` by adding the app to `INSTALLED_APPS`:
27
+ ```python
28
+ INSTALLED_APPS = [
29
+ # ...
30
+ "filer_optimizer",
31
+ # ...
32
+ ]
33
+ ```
34
+ 3. Finally, modify your project `urls.py` with handlers for all errors:
35
+ ```python
36
+ # ...other imports...
37
+
38
+ urlpatterns = [
39
+ # ...other urls...
40
+ ]
41
+ ```
42
+ 4. Execute Django's command `migrate` inside your project's root:
43
+ ```shell
44
+ python manage.py migrate
45
+ Running migrations:
46
+ Applying filer_optimizer.0001_initial... OK
47
+ ```
48
+
49
+ ## Run Example Project
50
+
51
+ ```shell
52
+ git clone --depth=50 --branch=django-filer-optimizer https://github.com/DLRSP/example.git DLRSP/example
53
+ cd DLRSP/example
54
+ python manage.py runserver
55
+ ```
56
+
57
+ Now browser the app @ http://127.0.0.1:8000
@@ -0,0 +1,70 @@
1
+ site_name: django-filer-optimizer
2
+ site_url: https://github.com/DLRSP/django-filer-optimizer/
3
+ site_description: Django application to extend the "django-filer" application with extra utils like.
4
+
5
+ repo_name: DLRSP/django-filer-optimizer
6
+ repo_url: https://github.com/DLRSP/django-filer-optimizer/
7
+
8
+ theme:
9
+ name: 'material'
10
+ palette:
11
+ # - primary: 'black'
12
+ # - accent: 'indigo'
13
+ - scheme: default
14
+ toggle:
15
+ icon: material/weather-sunny
16
+ name: Switch to dark mode
17
+ - scheme: slate #
18
+ toggle:
19
+ icon: material/weather-night
20
+ name: Switch to light mode
21
+ features:
22
+ - navigation.instant
23
+ - navigation.top
24
+ - content.code.annotate
25
+ - content.tabs.link
26
+ - search.suggest
27
+ - search.highlight
28
+ icon:
29
+ repo: fontawesome/brands/github-alt
30
+
31
+ plugins:
32
+ - search
33
+ - git-revision-date
34
+ # - tags
35
+
36
+ extra:
37
+ analytics:
38
+ provider: custom
39
+ social:
40
+ - icon: fontawesome/brands/twitter
41
+ link: https://twitter.com/DlrspTwits
42
+ name: DLRSP on Twitter
43
+ - icon: fontawesome/solid/paper-plane
44
+ link: mailto:dlrsp.dev@gmail.com
45
+ - icon: fontawesome/brands/github
46
+ link: https://github.com/DLRSP
47
+
48
+ markdown_extensions:
49
+ - toc:
50
+ anchorlink: True
51
+ - pymdownx.tabbed:
52
+ alternate_style: true
53
+ - pymdownx.highlight:
54
+ - pymdownx.inlinehilite:
55
+ - pymdownx.superfences:
56
+ - pymdownx.snippets:
57
+
58
+ nav:
59
+ - Quickstart: 'index.md'
60
+ - Tutorials:
61
+ - 'Example': 'tutorial/example.md'
62
+ - 'Customize':
63
+ - 'Templates': 'tutorial/templates.md'
64
+ - 'Images': 'tutorial/images.md'
65
+ - Community:
66
+ - 'References': 'community/references.md'
67
+ - 'Contributing': 'community/contributing.md'
68
+ - 'Third-Party-Packages': 'community/third-party-packages.md'
69
+
70
+ copyright: Copyright © 2010-present DLRSP
@@ -0,0 +1,45 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 40.8.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [tool.black]
6
+ target-version = ['py39']
7
+
8
+ [tool.isort]
9
+ profile = "black"
10
+
11
+ [tool.mypy]
12
+ check_untyped_defs = true
13
+ disallow_any_generics = true
14
+ disallow_incomplete_defs = true
15
+ disallow_untyped_defs = true
16
+ mypy_path = "src/"
17
+ no_implicit_optional = true
18
+ show_error_codes = true
19
+ warn_unreachable = true
20
+ warn_unused_ignores = true
21
+
22
+ [[tool.mypy.overrides]]
23
+ module = "tests.*"
24
+ allow_untyped_defs = true
25
+
26
+ [tool.pytest.ini_options]
27
+ addopts = """\
28
+ --strict-config
29
+ --strict-markers
30
+ --ds=tests.settings
31
+ """
32
+ django_find_project = false
33
+
34
+ # bump-my-version
35
+ [tool.bumpversion]
36
+ current_version = "0.1.1"
37
+ commit = true
38
+ tag = true
39
+ allow_dirty = true
40
+
41
+ [[tool.bumpversion.files]]
42
+ filename = "./setup.cfg"
43
+
44
+ [[tool.bumpversion.files]]
45
+ filename = "./src/filer_optimizer/__init__.py"
@@ -0,0 +1,8 @@
1
+ coverage
2
+ pytest
3
+ pytest-django
4
+ pytest-randomly
5
+ pre-commit
6
+ bump-my-version
7
+ twine
8
+ tox-py
@@ -0,0 +1,3 @@
1
+ mkdocs
2
+ mkdocs-material
3
+ mkdocs-git-revision-date-plugin