classyclick 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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Filipe Pina
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,41 @@
1
+ Metadata-Version: 2.1
2
+ Name: classyclick
3
+ Version: 0.0.1
4
+ Summary: Class-based definitions of click commands
5
+ Author-email: Filipe Pina <shelf-corncob-said@duck.com>
6
+ Project-URL: Homepage, https://github.com/fopina/classyclick
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+
11
+ # classyclick
12
+
13
+ [![ci](https://github.com/fopina/classyclick/actions/workflows/publish-main.yml/badge.svg)](https://github.com/fopina/classyclick/actions/workflows/publish-main.yml)
14
+ [![test](https://github.com/fopina/classyclick/actions/workflows/test.yml/badge.svg)](https://github.com/fopina/classyclick/actions/workflows/test.yml)
15
+ [![codecov](https://codecov.io/github/fopina/classyclick/graph/badge.svg)](https://codecov.io/github/fopina/classyclick)
16
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/classyclick.svg)](https://pypi.org/project/classyclick/)
17
+ [![Current version on PyPi](https://img.shields.io/pypi/v/classyclick)](https://pypi.org/project/classyclick/)
18
+ [![Very popular](https://img.shields.io/pypi/dm/classyclick)](https://pypistats.org/packages/classyclick)
19
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
20
+
21
+ Class-based definitions of click commands
22
+
23
+ > WORK IN PROGRESS
24
+
25
+ ## Install
26
+
27
+ ```
28
+ pip install classyclick
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ ```python
34
+ >>> from example import demo
35
+ >>> demo.echo('ehlo')
36
+ 'EHLO right back at ya!'
37
+ ```
38
+
39
+ ## Build
40
+
41
+ Check out [CONTRIBUTING.md](CONTRIBUTING.md)
@@ -0,0 +1,31 @@
1
+ # classyclick
2
+
3
+ [![ci](https://github.com/fopina/classyclick/actions/workflows/publish-main.yml/badge.svg)](https://github.com/fopina/classyclick/actions/workflows/publish-main.yml)
4
+ [![test](https://github.com/fopina/classyclick/actions/workflows/test.yml/badge.svg)](https://github.com/fopina/classyclick/actions/workflows/test.yml)
5
+ [![codecov](https://codecov.io/github/fopina/classyclick/graph/badge.svg)](https://codecov.io/github/fopina/classyclick)
6
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/classyclick.svg)](https://pypi.org/project/classyclick/)
7
+ [![Current version on PyPi](https://img.shields.io/pypi/v/classyclick)](https://pypi.org/project/classyclick/)
8
+ [![Very popular](https://img.shields.io/pypi/dm/classyclick)](https://pypistats.org/packages/classyclick)
9
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
10
+
11
+ Class-based definitions of click commands
12
+
13
+ > WORK IN PROGRESS
14
+
15
+ ## Install
16
+
17
+ ```
18
+ pip install classyclick
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```python
24
+ >>> from example import demo
25
+ >>> demo.echo('ehlo')
26
+ 'EHLO right back at ya!'
27
+ ```
28
+
29
+ ## Build
30
+
31
+ Check out [CONTRIBUTING.md](CONTRIBUTING.md)
@@ -0,0 +1,16 @@
1
+ from typing import TYPE_CHECKING
2
+
3
+ if TYPE_CHECKING:
4
+ from typing import Tuple, Union
5
+
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '0.0.1'
16
+ __version_tuple__ = version_tuple = tuple(map(int, version.split('.')))
@@ -0,0 +1,15 @@
1
+ import sys
2
+
3
+ from . import demo
4
+
5
+
6
+ def main():
7
+ arg = ' '.join(sys.argv[1:])
8
+ if not arg:
9
+ print('Got nothing to say?')
10
+ else:
11
+ print(demo.echo(arg))
12
+
13
+
14
+ if __name__ == '__main__':
15
+ main()
@@ -0,0 +1,2 @@
1
+ def echo(input: str):
2
+ return f'{input.upper()} right back at ya!'
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.1
2
+ Name: classyclick
3
+ Version: 0.0.1
4
+ Summary: Class-based definitions of click commands
5
+ Author-email: Filipe Pina <shelf-corncob-said@duck.com>
6
+ Project-URL: Homepage, https://github.com/fopina/classyclick
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+
11
+ # classyclick
12
+
13
+ [![ci](https://github.com/fopina/classyclick/actions/workflows/publish-main.yml/badge.svg)](https://github.com/fopina/classyclick/actions/workflows/publish-main.yml)
14
+ [![test](https://github.com/fopina/classyclick/actions/workflows/test.yml/badge.svg)](https://github.com/fopina/classyclick/actions/workflows/test.yml)
15
+ [![codecov](https://codecov.io/github/fopina/classyclick/graph/badge.svg)](https://codecov.io/github/fopina/classyclick)
16
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/classyclick.svg)](https://pypi.org/project/classyclick/)
17
+ [![Current version on PyPi](https://img.shields.io/pypi/v/classyclick)](https://pypi.org/project/classyclick/)
18
+ [![Very popular](https://img.shields.io/pypi/dm/classyclick)](https://pypistats.org/packages/classyclick)
19
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
20
+
21
+ Class-based definitions of click commands
22
+
23
+ > WORK IN PROGRESS
24
+
25
+ ## Install
26
+
27
+ ```
28
+ pip install classyclick
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ ```python
34
+ >>> from example import demo
35
+ >>> demo.echo('ehlo')
36
+ 'EHLO right back at ya!'
37
+ ```
38
+
39
+ ## Build
40
+
41
+ Check out [CONTRIBUTING.md](CONTRIBUTING.md)
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ classyclick/__init__.py
5
+ classyclick/__main__.py
6
+ classyclick/demo.py
7
+ classyclick.egg-info/PKG-INFO
8
+ classyclick.egg-info/SOURCES.txt
9
+ classyclick.egg-info/dependency_links.txt
10
+ classyclick.egg-info/top_level.txt
11
+ tests/test_demo.py
@@ -0,0 +1 @@
1
+ classyclick
@@ -0,0 +1,60 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0.0,<69.3.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "classyclick"
7
+ authors = [{name="Filipe Pina", email="shelf-corncob-said@duck.com" }]
8
+ dynamic = ["version"]
9
+ description = "Class-based definitions of click commands"
10
+ readme = "README.md"
11
+ requires-python = ">=3.10"
12
+ dependencies = []
13
+
14
+ [project.urls]
15
+ Homepage = "https://github.com/fopina/classyclick"
16
+
17
+ [tool.setuptools.packages.find]
18
+ include = ["classyclick*"]
19
+
20
+ [tool.setuptools.dynamic]
21
+ version = {attr = "classyclick.__version__"}
22
+
23
+ [tool.ruff]
24
+ line-length = 120
25
+ indent-width = 4
26
+
27
+ target-version = "py310"
28
+
29
+ [tool.ruff.lint]
30
+ # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
31
+ # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
32
+ # McCabe complexity (`C901`) by default.
33
+ select = ["E4", "E7", "E9", "F", "I"]
34
+ ignore = []
35
+
36
+ fixable = ["ALL"]
37
+ unfixable = []
38
+
39
+ # Allow unused variables when underscore-prefixed.
40
+ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
41
+
42
+ [tool.ruff.format]
43
+ quote-style = "single"
44
+ indent-style = "space"
45
+ skip-magic-trailing-comma = false
46
+ line-ending = "auto"
47
+
48
+ [tool.pytest.ini_options]
49
+ minversion = "6.0"
50
+ addopts = "-ra -q --disable-socket"
51
+ testpaths = [
52
+ "tests",
53
+ ]
54
+
55
+ [tool.coverage.run]
56
+ source = ["classyclick"]
57
+
58
+ [tool.coverage.report]
59
+ show_missing = true
60
+ skip_covered = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,9 @@
1
+ import unittest
2
+
3
+ import classyclick.demo
4
+
5
+
6
+ class Test(unittest.TestCase):
7
+ # TODO: update with your own unit tests and assertions
8
+ def test_echo(self):
9
+ self.assertEqual(classyclick.demo.echo('hey'), 'HEY right back at ya!')