typer-cli 0.0.12__tar.gz → 0.12.dev1__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.
- {typer-cli-0.0.12 → typer_cli-0.12.dev1}/LICENSE +1 -1
- typer_cli-0.12.dev1/PKG-INFO +80 -0
- typer_cli-0.12.dev1/README.md +49 -0
- typer_cli-0.12.dev1/pdm_build.py +40 -0
- typer_cli-0.12.dev1/pyproject.toml +62 -0
- typer-cli-0.0.12/PKG-INFO +0 -539
- typer-cli-0.0.12/README.md +0 -494
- typer-cli-0.0.12/pyproject.toml +0 -64
- typer-cli-0.0.12/setup.py +0 -34
- typer-cli-0.0.12/typer_cli/__init__.py +0 -1
- typer-cli-0.0.12/typer_cli/__main__.py +0 -3
- typer-cli-0.0.12/typer_cli/main.py +0 -306
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: typer-cli
|
|
3
|
+
Version: 0.12.dev1
|
|
4
|
+
Summary: Typer, build great CLIs. Easy to code. Based on Python type hints.
|
|
5
|
+
Home-page: https://github.com/tiangolo/typer
|
|
6
|
+
Author-Email: Sebastián Ramírez <tiangolo@gmail.com>
|
|
7
|
+
Classifier: Intended Audience :: Information Technology
|
|
8
|
+
Classifier: Intended Audience :: System Administrators
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
13
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
15
|
+
Classifier: Topic :: Software Development
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Classifier: Development Status :: 4 - Beta
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
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: License :: OSI Approved :: MIT License
|
|
26
|
+
Project-URL: Documentation, https://typer.tiangolo.com/
|
|
27
|
+
Project-URL: Homepage, https://github.com/tiangolo/typer
|
|
28
|
+
Requires-Python: >=3.7
|
|
29
|
+
Requires-Dist: typer-slim[standard]==0.12.dev1
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer"></a>
|
|
34
|
+
</p>
|
|
35
|
+
<p align="center">
|
|
36
|
+
<em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em>
|
|
37
|
+
</p>
|
|
38
|
+
<p align="center">
|
|
39
|
+
<a href="https://github.com/tiangolo/typer/actions?query=workflow%3ATest" target="_blank">
|
|
40
|
+
<img src="https://github.com/tiangolo/typer/workflows/Test/badge.svg" alt="Test">
|
|
41
|
+
</a>
|
|
42
|
+
<a href="https://github.com/tiangolo/typer/actions?query=workflow%3APublish" target="_blank">
|
|
43
|
+
<img src="https://github.com/tiangolo/typer/workflows/Publish/badge.svg" alt="Publish">
|
|
44
|
+
</a>
|
|
45
|
+
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/tiangolo/typer" target="_blank">
|
|
46
|
+
<img src="https://coverage-badge.samuelcolvin.workers.dev/tiangolo/typer.svg" alt="Coverage">
|
|
47
|
+
<a href="https://pypi.org/project/typer" target="_blank">
|
|
48
|
+
<img src="https://img.shields.io/pypi/v/typer?color=%2334D058&label=pypi%20package" alt="Package version">
|
|
49
|
+
</a>
|
|
50
|
+
</p>
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
**Documentation**: <a href="https://typer.tiangolo.com" target="_blank">https://typer.tiangolo.com/tutorial/typer-command/</a>
|
|
55
|
+
|
|
56
|
+
**Source Code**: <a href="https://github.com/tiangolo/typer" target="_blank">https://github.com/tiangolo/typer</a>
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
Typer is a library for building <abbr title="command line interface, programs executed from a terminal">CLI</abbr> applications that users will **love using** and developers will **love creating**. Based on Python type hints.
|
|
61
|
+
|
|
62
|
+
## Typer CLI
|
|
63
|
+
|
|
64
|
+
This package, `typer-cli`, only provides a command `typer` in the shell with the same functionality of `python -m typer`.
|
|
65
|
+
|
|
66
|
+
The only reason why this is a separate package is to allow developers to opt out of the `typer` command by installing `typer-slim`, that doesn't include `typer-cli`.
|
|
67
|
+
|
|
68
|
+
You probably **should not** install this package.
|
|
69
|
+
|
|
70
|
+
Install instead:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pip install typer
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
That includes this package, `typer-cli`, with the `typer` command.
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
This project is licensed under the terms of the MIT license.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer"></a>
|
|
3
|
+
</p>
|
|
4
|
+
<p align="center">
|
|
5
|
+
<em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em>
|
|
6
|
+
</p>
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://github.com/tiangolo/typer/actions?query=workflow%3ATest" target="_blank">
|
|
9
|
+
<img src="https://github.com/tiangolo/typer/workflows/Test/badge.svg" alt="Test">
|
|
10
|
+
</a>
|
|
11
|
+
<a href="https://github.com/tiangolo/typer/actions?query=workflow%3APublish" target="_blank">
|
|
12
|
+
<img src="https://github.com/tiangolo/typer/workflows/Publish/badge.svg" alt="Publish">
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/tiangolo/typer" target="_blank">
|
|
15
|
+
<img src="https://coverage-badge.samuelcolvin.workers.dev/tiangolo/typer.svg" alt="Coverage">
|
|
16
|
+
<a href="https://pypi.org/project/typer" target="_blank">
|
|
17
|
+
<img src="https://img.shields.io/pypi/v/typer?color=%2334D058&label=pypi%20package" alt="Package version">
|
|
18
|
+
</a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
**Documentation**: <a href="https://typer.tiangolo.com" target="_blank">https://typer.tiangolo.com/tutorial/typer-command/</a>
|
|
24
|
+
|
|
25
|
+
**Source Code**: <a href="https://github.com/tiangolo/typer" target="_blank">https://github.com/tiangolo/typer</a>
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
Typer is a library for building <abbr title="command line interface, programs executed from a terminal">CLI</abbr> applications that users will **love using** and developers will **love creating**. Based on Python type hints.
|
|
30
|
+
|
|
31
|
+
## Typer CLI
|
|
32
|
+
|
|
33
|
+
This package, `typer-cli`, only provides a command `typer` in the shell with the same functionality of `python -m typer`.
|
|
34
|
+
|
|
35
|
+
The only reason why this is a separate package is to allow developers to opt out of the `typer` command by installing `typer-slim`, that doesn't include `typer-cli`.
|
|
36
|
+
|
|
37
|
+
You probably **should not** install this package.
|
|
38
|
+
|
|
39
|
+
Install instead:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install typer
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
That includes this package, `typer-cli`, with the `typer` command.
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
This project is licensed under the terms of the MIT license.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
from pdm.backend.hooks import Context
|
|
5
|
+
|
|
6
|
+
packages_to_sync = ["typer-slim"]
|
|
7
|
+
|
|
8
|
+
license_name = "LICENSE"
|
|
9
|
+
license_path = Path("..") / license_name
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def pdm_build_hook_enabled(context: Context):
|
|
13
|
+
return context.target == "sdist"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def pdm_build_initialize(context: Context):
|
|
17
|
+
metadata = context.config.metadata
|
|
18
|
+
# Get main version
|
|
19
|
+
version = metadata["version"]
|
|
20
|
+
# Update version in dependencies to sync them
|
|
21
|
+
dependencies: List[str] = metadata["dependencies"]
|
|
22
|
+
new_dependencies = []
|
|
23
|
+
for dep in dependencies:
|
|
24
|
+
if any(dep.startswith(name) for name in packages_to_sync):
|
|
25
|
+
new_dep = f"{dep}=={version}"
|
|
26
|
+
new_dependencies.append(new_dep)
|
|
27
|
+
else:
|
|
28
|
+
new_dependencies.append(dep)
|
|
29
|
+
if new_dependencies != dependencies:
|
|
30
|
+
metadata["dependencies"] = new_dependencies
|
|
31
|
+
# LICENSE
|
|
32
|
+
license_content = license_path.read_text()
|
|
33
|
+
context.ensure_build_dir()
|
|
34
|
+
# # Workaround, copy LICENSE to package_dir during build
|
|
35
|
+
Path(license_name).write_text(license_content)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def pdm_build_finalize(context: Context, artifact: Path):
|
|
39
|
+
# Workaround, remove LICENSE from package_dir after build
|
|
40
|
+
Path(license_name).unlink()
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"pdm-backend",
|
|
4
|
+
]
|
|
5
|
+
build-backend = "pdm.backend"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "typer-cli"
|
|
9
|
+
dynamic = []
|
|
10
|
+
description = "Typer, build great CLIs. Easy to code. Based on Python type hints."
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Sebastián Ramírez", email = "tiangolo@gmail.com" },
|
|
13
|
+
]
|
|
14
|
+
readme = "README.md"
|
|
15
|
+
requires-python = ">=3.7"
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Intended Audience :: Information Technology",
|
|
18
|
+
"Intended Audience :: System Administrators",
|
|
19
|
+
"Operating System :: OS Independent",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python",
|
|
22
|
+
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
23
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
24
|
+
"Topic :: Software Development :: Libraries",
|
|
25
|
+
"Topic :: Software Development",
|
|
26
|
+
"Typing :: Typed",
|
|
27
|
+
"Development Status :: 4 - Beta",
|
|
28
|
+
"Intended Audience :: Developers",
|
|
29
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
30
|
+
"Programming Language :: Python :: 3.7",
|
|
31
|
+
"Programming Language :: Python :: 3.8",
|
|
32
|
+
"Programming Language :: Python :: 3.9",
|
|
33
|
+
"Programming Language :: Python :: 3.10",
|
|
34
|
+
"Programming Language :: Python :: 3.11",
|
|
35
|
+
"License :: OSI Approved :: MIT License",
|
|
36
|
+
]
|
|
37
|
+
dependencies = [
|
|
38
|
+
"typer-slim[standard]==0.12.dev1",
|
|
39
|
+
]
|
|
40
|
+
version = "0.12.dev1"
|
|
41
|
+
|
|
42
|
+
[project.urls]
|
|
43
|
+
Documentation = "https://typer.tiangolo.com/"
|
|
44
|
+
homepage = "https://github.com/tiangolo/typer"
|
|
45
|
+
|
|
46
|
+
[project.optional-dependencies]
|
|
47
|
+
all = []
|
|
48
|
+
|
|
49
|
+
[project.scripts]
|
|
50
|
+
typer = "typer.cli:main"
|
|
51
|
+
|
|
52
|
+
[tool.pdm]
|
|
53
|
+
distribution = true
|
|
54
|
+
|
|
55
|
+
[tool.pdm.version]
|
|
56
|
+
source = "file"
|
|
57
|
+
path = "../typer/__init__.py"
|
|
58
|
+
|
|
59
|
+
[tool.pdm.build]
|
|
60
|
+
excludes = [
|
|
61
|
+
"*",
|
|
62
|
+
]
|