Compare commits

...

3 Commits

4 changed files with 52 additions and 6 deletions

View File

@ -1 +1,5 @@
The Dazed Gerbil's Command Line Tools
# The Dazed Gerbil's Command Line Tools
This is intended to become a simple set of tools I use on a regular basis when developing a cli based app.
You almost certainly don't want to use this. There are probably hundreds of alternatives on PyPi already - each one notably better than my own.

6
dg_clt/screen.py Normal file
View File

@ -0,0 +1,6 @@
import os
import subprocess
def clear():
subprocess.call('clear' if os.name == 'posix' else 'cls')

31
poetry.lock generated
View File

@ -11,6 +11,20 @@ files = [
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
]
[[package]]
name = "exceptiongroup"
version = "1.2.2"
description = "Backport of PEP 654 (exception groups)"
optional = false
python-versions = ">=3.7"
files = [
{file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"},
{file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"},
]
[package.extras]
test = ["pytest (>=6)"]
[[package]]
name = "iniconfig"
version = "2.0.0"
@ -61,14 +75,27 @@ files = [
[package.dependencies]
colorama = {version = "*", markers = "sys_platform == \"win32\""}
exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""}
iniconfig = "*"
packaging = "*"
pluggy = ">=1.5,<2"
tomli = {version = ">=1", markers = "python_version < \"3.11\""}
[package.extras]
dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
[[package]]
name = "tomli"
version = "2.0.1"
description = "A lil' TOML parser"
optional = false
python-versions = ">=3.7"
files = [
{file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
]
[metadata]
lock-version = "2.0"
python-versions = "^3.12"
content-hash = "2a6f42b37c8e1285176c4168a1a7237f5d0304838e805bba713c070a57aff8a7"
python-versions = "^3.10"
content-hash = "ada74c84311f85a2b0fec7899a2a98ae9c4541a160cdd6db668864f492ef5779"

View File

@ -1,13 +1,22 @@
[tool.poetry]
name = "dg-clt"
version = "0.1.0"
version = "0.1.4"
description = "The Dazed Gerbil's Command Line Tools"
authors = ["Calum Andrew Morrell <calum@drulum.com>"]
readme = "README.md"
license = "GPL-3.0-or-later"
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
]
[tool.poetry.dependencies]
python = "^3.12"
python = "^3.10"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"