prettytable 3.11.0__tar.gz → 3.13.0__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.
- {prettytable-3.11.0 → prettytable-3.13.0}/.coveragerc +4 -0
- prettytable-3.13.0/.github/FUNDING.yml +2 -0
- prettytable-3.13.0/.github/SECURITY.md +5 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/workflows/labels.yml +4 -3
- prettytable-3.13.0/.github/workflows/lint.yml +36 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/workflows/release-drafter.yml +1 -4
- prettytable-3.13.0/.github/workflows/release.yml +76 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/workflows/require-pr-label.yml +8 -3
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/workflows/test.yml +17 -8
- {prettytable-3.11.0 → prettytable-3.13.0}/.gitignore +3 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/.pre-commit-config.yaml +24 -14
- {prettytable-3.11.0 → prettytable-3.13.0}/CHANGELOG.md +1 -1
- {prettytable-3.11.0 → prettytable-3.13.0}/PKG-INFO +27 -18
- {prettytable-3.11.0 → prettytable-3.13.0}/README.md +17 -8
- prettytable-3.13.0/RELEASING.md +25 -0
- prettytable-3.13.0/pyproject.toml +94 -0
- prettytable-3.13.0/src/prettytable/__init__.py +62 -0
- prettytable-3.13.0/src/prettytable/__main__.py +47 -0
- prettytable-3.13.0/src/prettytable/_version.py +16 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/src/prettytable/colortable.py +42 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/src/prettytable/prettytable.py +492 -287
- {prettytable-3.11.0 → prettytable-3.13.0}/tests/test_colortable.py +35 -4
- {prettytable-3.11.0 → prettytable-3.13.0}/tests/test_prettytable.py +357 -66
- {prettytable-3.11.0 → prettytable-3.13.0}/tox.ini +10 -2
- prettytable-3.11.0/.github/workflows/lint.yml +0 -21
- prettytable-3.11.0/.github/workflows/release.yml +0 -57
- prettytable-3.11.0/CODE_OF_CONDUCT.md +0 -46
- prettytable-3.11.0/CONTRIBUTING.md +0 -5
- prettytable-3.11.0/RELEASING.md +0 -29
- prettytable-3.11.0/pyproject.toml +0 -87
- prettytable-3.11.0/src/prettytable/__init__.py +0 -57
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/dependabot.yml +0 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/labels.yml +0 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/.github/release-drafter.yml +0 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/LICENSE +0 -0
- {prettytable-3.11.0 → prettytable-3.13.0}/src/prettytable/py.typed +0 -0
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
name: Sync labels
|
|
2
2
|
|
|
3
|
-
permissions:
|
|
4
|
-
pull-requests: write
|
|
5
|
-
|
|
6
3
|
on:
|
|
7
4
|
push:
|
|
8
5
|
branches:
|
|
@@ -13,9 +10,13 @@ on:
|
|
|
13
10
|
|
|
14
11
|
jobs:
|
|
15
12
|
sync:
|
|
13
|
+
permissions:
|
|
14
|
+
pull-requests: write
|
|
16
15
|
runs-on: ubuntu-latest
|
|
17
16
|
steps:
|
|
18
17
|
- uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
persist-credentials: false
|
|
19
20
|
- uses: micnncim/action-label-syncer@v1
|
|
20
21
|
with:
|
|
21
22
|
prune: false
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request, workflow_dispatch]
|
|
4
|
+
|
|
5
|
+
env:
|
|
6
|
+
FORCE_COLOR: 1
|
|
7
|
+
|
|
8
|
+
permissions: {}
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
lint:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
persist-credentials: false
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.x"
|
|
21
|
+
- uses: tox-dev/action-pre-commit-uv@v1
|
|
22
|
+
|
|
23
|
+
mypy:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
with:
|
|
29
|
+
persist-credentials: false
|
|
30
|
+
- uses: actions/setup-python@v5
|
|
31
|
+
with:
|
|
32
|
+
python-version: "3.x"
|
|
33
|
+
- name: Install uv
|
|
34
|
+
uses: astral-sh/setup-uv@v5
|
|
35
|
+
- name: Mypy
|
|
36
|
+
run: uvx --with tox-uv tox -e mypy
|
|
@@ -14,12 +14,9 @@ on:
|
|
|
14
14
|
# types: [opened, reopened, synchronize]
|
|
15
15
|
workflow_dispatch:
|
|
16
16
|
|
|
17
|
-
permissions:
|
|
18
|
-
contents: read
|
|
19
|
-
|
|
20
17
|
jobs:
|
|
21
18
|
update_release_draft:
|
|
22
|
-
if: github.repository_owner == '
|
|
19
|
+
if: github.repository_owner == 'prettytable'
|
|
23
20
|
permissions:
|
|
24
21
|
# write permission is required to create a GitHub Release
|
|
25
22
|
contents: write
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
name: Build package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
release:
|
|
7
|
+
types:
|
|
8
|
+
- published
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions: {}
|
|
12
|
+
|
|
13
|
+
env:
|
|
14
|
+
FORCE_COLOR: 1
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
# Always build & lint package.
|
|
18
|
+
build-package:
|
|
19
|
+
name: Build & verify package
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
fetch-depth: 0
|
|
26
|
+
persist-credentials: false
|
|
27
|
+
|
|
28
|
+
- uses: hynek/build-and-inspect-python-package@v2
|
|
29
|
+
|
|
30
|
+
# Publish to Test PyPI on every commit on main.
|
|
31
|
+
release-test-pypi:
|
|
32
|
+
name: Publish in-dev package to test.pypi.org
|
|
33
|
+
if: |
|
|
34
|
+
github.repository_owner == 'prettytable'
|
|
35
|
+
&& github.event_name == 'push'
|
|
36
|
+
&& github.ref == 'refs/heads/main'
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
needs: build-package
|
|
39
|
+
|
|
40
|
+
permissions:
|
|
41
|
+
id-token: write
|
|
42
|
+
|
|
43
|
+
steps:
|
|
44
|
+
- name: Download packages built by build-and-inspect-python-package
|
|
45
|
+
uses: actions/download-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
name: Packages
|
|
48
|
+
path: dist
|
|
49
|
+
|
|
50
|
+
- name: Publish to Test PyPI
|
|
51
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
52
|
+
with:
|
|
53
|
+
repository-url: https://test.pypi.org/legacy/
|
|
54
|
+
|
|
55
|
+
# Publish to PyPI on GitHub Releases.
|
|
56
|
+
release-pypi:
|
|
57
|
+
name: Publish to PyPI
|
|
58
|
+
# Only run for published releases.
|
|
59
|
+
if: |
|
|
60
|
+
github.repository_owner == 'prettytable'
|
|
61
|
+
&& github.event.action == 'published'
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
needs: build-package
|
|
64
|
+
|
|
65
|
+
permissions:
|
|
66
|
+
id-token: write
|
|
67
|
+
|
|
68
|
+
steps:
|
|
69
|
+
- name: Download packages built by build-and-inspect-python-package
|
|
70
|
+
uses: actions/download-artifact@v4
|
|
71
|
+
with:
|
|
72
|
+
name: Packages
|
|
73
|
+
path: dist
|
|
74
|
+
|
|
75
|
+
- name: Publish to PyPI
|
|
76
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -17,6 +17,11 @@ jobs:
|
|
|
17
17
|
with:
|
|
18
18
|
mode: minimum
|
|
19
19
|
count: 1
|
|
20
|
-
labels:
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
labels: |
|
|
21
|
+
changelog: Added
|
|
22
|
+
changelog: Changed
|
|
23
|
+
changelog: Deprecated
|
|
24
|
+
changelog: Fixed
|
|
25
|
+
changelog: Removed
|
|
26
|
+
changelog: Security
|
|
27
|
+
changelog: skip
|
|
@@ -2,6 +2,8 @@ name: Test
|
|
|
2
2
|
|
|
3
3
|
on: [push, pull_request, workflow_dispatch]
|
|
4
4
|
|
|
5
|
+
permissions: {}
|
|
6
|
+
|
|
5
7
|
env:
|
|
6
8
|
FORCE_COLOR: 1
|
|
7
9
|
|
|
@@ -11,30 +13,37 @@ jobs:
|
|
|
11
13
|
strategy:
|
|
12
14
|
fail-fast: false
|
|
13
15
|
matrix:
|
|
14
|
-
python-version: ["pypy3.10", "3.
|
|
16
|
+
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
15
17
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
|
16
18
|
|
|
17
19
|
steps:
|
|
18
20
|
- uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
19
23
|
|
|
20
24
|
- name: Set up Python ${{ matrix.python-version }}
|
|
21
25
|
uses: actions/setup-python@v5
|
|
22
26
|
with:
|
|
23
27
|
python-version: ${{ matrix.python-version }}
|
|
24
28
|
allow-prereleases: true
|
|
25
|
-
cache: pip
|
|
26
29
|
|
|
27
|
-
- name: Install
|
|
28
|
-
|
|
29
|
-
python -m pip install -U pip
|
|
30
|
-
python -m pip install -U tox
|
|
30
|
+
- name: Install uv
|
|
31
|
+
uses: astral-sh/setup-uv@v5
|
|
31
32
|
|
|
32
33
|
- name: Tox tests
|
|
33
34
|
run: |
|
|
34
|
-
tox -e py
|
|
35
|
+
uvx --with tox-uv tox -e py
|
|
35
36
|
|
|
36
37
|
- name: Upload coverage
|
|
37
|
-
uses: codecov/codecov-action@
|
|
38
|
+
uses: codecov/codecov-action@v5
|
|
38
39
|
with:
|
|
39
40
|
flags: ${{ matrix.os }}
|
|
40
41
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
|
42
|
+
|
|
43
|
+
success:
|
|
44
|
+
needs: test
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
name: Test successful
|
|
47
|
+
steps:
|
|
48
|
+
- name: Success
|
|
49
|
+
run: echo Test successful
|
|
@@ -1,52 +1,62 @@
|
|
|
1
1
|
repos:
|
|
2
2
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
3
|
-
rev: v0.
|
|
3
|
+
rev: v0.9.2
|
|
4
4
|
hooks:
|
|
5
5
|
- id: ruff
|
|
6
6
|
args: [--exit-non-zero-on-fix]
|
|
7
7
|
|
|
8
8
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
9
|
-
rev: 24.
|
|
9
|
+
rev: 24.10.0
|
|
10
10
|
hooks:
|
|
11
11
|
- id: black
|
|
12
12
|
|
|
13
13
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
14
|
-
rev:
|
|
14
|
+
rev: v5.0.0
|
|
15
15
|
hooks:
|
|
16
|
+
- id: check-added-large-files
|
|
16
17
|
- id: check-case-conflict
|
|
17
18
|
- id: check-merge-conflict
|
|
18
19
|
- id: check-toml
|
|
19
20
|
- id: check-yaml
|
|
20
21
|
- id: debug-statements
|
|
21
22
|
- id: end-of-file-fixer
|
|
23
|
+
- id: forbid-submodules
|
|
22
24
|
- id: trailing-whitespace
|
|
23
25
|
exclude: .github/ISSUE_TEMPLATE/bug_report.md|tests/test_prettytable.py
|
|
24
26
|
|
|
25
|
-
- repo: https://github.com/
|
|
26
|
-
rev:
|
|
27
|
+
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
28
|
+
rev: 0.31.0
|
|
27
29
|
hooks:
|
|
28
|
-
- id:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
- id: check-dependabot
|
|
31
|
+
- id: check-github-workflows
|
|
32
|
+
|
|
33
|
+
- repo: https://github.com/rhysd/actionlint
|
|
34
|
+
rev: v1.7.7
|
|
35
|
+
hooks:
|
|
36
|
+
- id: actionlint
|
|
37
|
+
|
|
38
|
+
- repo: https://github.com/woodruffw/zizmor-pre-commit
|
|
39
|
+
rev: v1.2.2
|
|
40
|
+
hooks:
|
|
41
|
+
- id: zizmor
|
|
32
42
|
|
|
33
43
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
34
|
-
rev:
|
|
44
|
+
rev: v2.5.0
|
|
35
45
|
hooks:
|
|
36
46
|
- id: pyproject-fmt
|
|
37
47
|
|
|
38
48
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
39
|
-
rev: v0.
|
|
49
|
+
rev: v0.23
|
|
40
50
|
hooks:
|
|
41
51
|
- id: validate-pyproject
|
|
42
52
|
|
|
43
53
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
|
44
|
-
rev: 1.
|
|
54
|
+
rev: 1.5.0
|
|
45
55
|
hooks:
|
|
46
56
|
- id: tox-ini-fmt
|
|
47
57
|
|
|
48
|
-
- repo: https://github.com/
|
|
49
|
-
rev:
|
|
58
|
+
- repo: https://github.com/rbubley/mirrors-prettier
|
|
59
|
+
rev: v3.4.2
|
|
50
60
|
hooks:
|
|
51
61
|
- id: prettier
|
|
52
62
|
args: [--prose-wrap=always, --print-width=88]
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: prettytable
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.13.0
|
|
4
4
|
Summary: A simple Python library for easily displaying tabular data in a visually appealing ASCII table format
|
|
5
|
-
Project-URL: Changelog, https://github.com/
|
|
6
|
-
Project-URL:
|
|
7
|
-
Project-URL:
|
|
5
|
+
Project-URL: Changelog, https://github.com/prettytable/prettytable/releases
|
|
6
|
+
Project-URL: Funding, https://tidelift.com/subscription/pkg/pypi-prettytable?utm_source=pypi-prettytable&utm_medium=pypi
|
|
7
|
+
Project-URL: Homepage, https://github.com/prettytable/prettytable
|
|
8
|
+
Project-URL: Source, https://github.com/prettytable/prettytable
|
|
8
9
|
Author-email: Luke Maurits <luke@maurits.id.au>
|
|
9
|
-
Maintainer:
|
|
10
|
-
License: BSD
|
|
10
|
+
Maintainer: Hugo van Kemenade
|
|
11
|
+
License-Expression: BSD-3-Clause
|
|
11
12
|
License-File: LICENSE
|
|
12
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
23
23
|
Classifier: Topic :: Text Processing
|
|
24
24
|
Classifier: Typing :: Typed
|
|
25
|
-
Requires-Python: >=3.
|
|
25
|
+
Requires-Python: >=3.9
|
|
26
26
|
Requires-Dist: wcwidth
|
|
27
27
|
Provides-Extra: tests
|
|
28
28
|
Requires-Dist: pytest; extra == 'tests'
|
|
@@ -32,13 +32,13 @@ Description-Content-Type: text/markdown
|
|
|
32
32
|
|
|
33
33
|
# PrettyTable
|
|
34
34
|
|
|
35
|
-
[](https://jazzband.co/)
|
|
36
35
|
[](https://pypi.org/project/prettytable/)
|
|
37
36
|
[](https://pypi.org/project/prettytable/)
|
|
38
37
|
[](https://pypistats.org/packages/prettytable)
|
|
39
|
-
[](https://github.com/prettytable/prettytable/actions)
|
|
39
|
+
[](https://codecov.io/gh/prettytable/prettytable)
|
|
40
|
+
[](https://github.com/psf/black)
|
|
41
|
+
[](https://tidelift.com/subscription/pkg/pypi-prettytable?utm_source=pypi-prettytable&utm_medium=badge)
|
|
42
42
|
|
|
43
43
|
PrettyTable lets you print tables in an attractive ASCII form:
|
|
44
44
|
|
|
@@ -64,11 +64,19 @@ Install via pip:
|
|
|
64
64
|
|
|
65
65
|
Install latest development version:
|
|
66
66
|
|
|
67
|
-
python -m pip install -U git+https://github.com/
|
|
67
|
+
python -m pip install -U git+https://github.com/prettytable/prettytable
|
|
68
68
|
|
|
69
69
|
Or from `requirements.txt`:
|
|
70
70
|
|
|
71
|
-
-e git://github.com/
|
|
71
|
+
-e git://github.com/prettytable/prettytable.git#egg=prettytable
|
|
72
|
+
|
|
73
|
+
## Demo
|
|
74
|
+
|
|
75
|
+
To see demo output, run:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
python3 -m prettytable
|
|
79
|
+
```
|
|
72
80
|
|
|
73
81
|
## Tutorial on how to use the PrettyTable API
|
|
74
82
|
|
|
@@ -464,8 +472,9 @@ You can set the style for your table using the `set_style` method before any cal
|
|
|
464
472
|
`print` or `get_string`. Here's how to print a table in Markdown format:
|
|
465
473
|
|
|
466
474
|
```python
|
|
467
|
-
from prettytable import
|
|
468
|
-
|
|
475
|
+
from prettytable import TableStyle
|
|
476
|
+
|
|
477
|
+
table.set_style(TableStyle.MARKDOWN)
|
|
469
478
|
print(table)
|
|
470
479
|
```
|
|
471
480
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# PrettyTable
|
|
2
2
|
|
|
3
|
-
[](https://jazzband.co/)
|
|
4
3
|
[](https://pypi.org/project/prettytable/)
|
|
5
4
|
[](https://pypi.org/project/prettytable/)
|
|
6
5
|
[](https://pypistats.org/packages/prettytable)
|
|
7
|
-
[](https://github.com/prettytable/prettytable/actions)
|
|
7
|
+
[](https://codecov.io/gh/prettytable/prettytable)
|
|
8
|
+
[](https://github.com/psf/black)
|
|
9
|
+
[](https://tidelift.com/subscription/pkg/pypi-prettytable?utm_source=pypi-prettytable&utm_medium=badge)
|
|
10
10
|
|
|
11
11
|
PrettyTable lets you print tables in an attractive ASCII form:
|
|
12
12
|
|
|
@@ -32,11 +32,19 @@ Install via pip:
|
|
|
32
32
|
|
|
33
33
|
Install latest development version:
|
|
34
34
|
|
|
35
|
-
python -m pip install -U git+https://github.com/
|
|
35
|
+
python -m pip install -U git+https://github.com/prettytable/prettytable
|
|
36
36
|
|
|
37
37
|
Or from `requirements.txt`:
|
|
38
38
|
|
|
39
|
-
-e git://github.com/
|
|
39
|
+
-e git://github.com/prettytable/prettytable.git#egg=prettytable
|
|
40
|
+
|
|
41
|
+
## Demo
|
|
42
|
+
|
|
43
|
+
To see demo output, run:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
python3 -m prettytable
|
|
47
|
+
```
|
|
40
48
|
|
|
41
49
|
## Tutorial on how to use the PrettyTable API
|
|
42
50
|
|
|
@@ -432,8 +440,9 @@ You can set the style for your table using the `set_style` method before any cal
|
|
|
432
440
|
`print` or `get_string`. Here's how to print a table in Markdown format:
|
|
433
441
|
|
|
434
442
|
```python
|
|
435
|
-
from prettytable import
|
|
436
|
-
|
|
443
|
+
from prettytable import TableStyle
|
|
444
|
+
|
|
445
|
+
table.set_style(TableStyle.MARKDOWN)
|
|
437
446
|
print(table)
|
|
438
447
|
```
|
|
439
448
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Release checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Get `main` to the appropriate code release state.
|
|
4
|
+
[GitHub Actions](https://github.com/hugovk/tinytext/actions) should be running
|
|
5
|
+
cleanly for all merges to `main`.
|
|
6
|
+
[](https://github.com/hugovk/tinytext/actions)
|
|
7
|
+
|
|
8
|
+
- [ ] Edit release draft, adjust text if needed:
|
|
9
|
+
https://github.com/hugovk/tinytext/releases
|
|
10
|
+
|
|
11
|
+
- [ ] Check next tag is correct, amend if needed
|
|
12
|
+
|
|
13
|
+
- [ ] Publish release
|
|
14
|
+
|
|
15
|
+
- [ ] Check the tagged
|
|
16
|
+
[GitHub Actions build](https://github.com/hugovk/tinytext/actions/workflows/deploy.yml)
|
|
17
|
+
has deployed to [PyPI](https://pypi.org/project/tinytext/#history)
|
|
18
|
+
|
|
19
|
+
- [ ] Check installation:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip uninstall -y prettytable
|
|
23
|
+
pip install -U prettytable
|
|
24
|
+
python3 -c "import prettytable; print(prettytable.__version__)"
|
|
25
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
build-backend = "hatchling.build"
|
|
3
|
+
requires = [
|
|
4
|
+
"hatch-vcs",
|
|
5
|
+
"hatchling>=1.27",
|
|
6
|
+
]
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = "prettytable"
|
|
10
|
+
description = "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
license = "BSD-3-Clause"
|
|
13
|
+
license-files = [ "LICENSE" ]
|
|
14
|
+
maintainers = [ { name = "Hugo van Kemenade" } ]
|
|
15
|
+
authors = [ { name = "Luke Maurits", email = "luke@maurits.id.au" } ]
|
|
16
|
+
requires-python = ">=3.9"
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Programming Language :: Python",
|
|
19
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
20
|
+
"Programming Language :: Python :: 3.9",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Programming Language :: Python :: 3.14",
|
|
26
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
27
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
28
|
+
"Topic :: Text Processing",
|
|
29
|
+
"Typing :: Typed",
|
|
30
|
+
]
|
|
31
|
+
dynamic = [ "version" ]
|
|
32
|
+
dependencies = [
|
|
33
|
+
"wcwidth",
|
|
34
|
+
]
|
|
35
|
+
optional-dependencies.tests = [
|
|
36
|
+
"pytest",
|
|
37
|
+
"pytest-cov",
|
|
38
|
+
"pytest-lazy-fixtures",
|
|
39
|
+
]
|
|
40
|
+
urls.Changelog = "https://github.com/prettytable/prettytable/releases"
|
|
41
|
+
urls.Funding = "https://tidelift.com/subscription/pkg/pypi-prettytable?utm_source=pypi-prettytable&utm_medium=pypi"
|
|
42
|
+
urls.Homepage = "https://github.com/prettytable/prettytable"
|
|
43
|
+
urls.Source = "https://github.com/prettytable/prettytable"
|
|
44
|
+
|
|
45
|
+
[tool.hatch]
|
|
46
|
+
version.source = "vcs"
|
|
47
|
+
|
|
48
|
+
[tool.hatch.build.hooks.vcs]
|
|
49
|
+
version-file = "src/prettytable/_version.py"
|
|
50
|
+
|
|
51
|
+
[tool.hatch.version.raw-options]
|
|
52
|
+
local_scheme = "no-local-version"
|
|
53
|
+
|
|
54
|
+
[tool.ruff]
|
|
55
|
+
fix = true
|
|
56
|
+
|
|
57
|
+
lint.select = [
|
|
58
|
+
"C4", # flake8-comprehensions
|
|
59
|
+
"E", # pycodestyle
|
|
60
|
+
"EM", # flake8-errmsg
|
|
61
|
+
"F", # pyflakes
|
|
62
|
+
"I", # isort
|
|
63
|
+
"ICN", # flake8-import-conventions
|
|
64
|
+
"ISC", # flake8-implicit-str-concat
|
|
65
|
+
"LOG", # flake8-logging
|
|
66
|
+
"PGH", # pygrep-hooks
|
|
67
|
+
"PYI", # flake8-pyi
|
|
68
|
+
"RUF022", # unsorted-dunder-all
|
|
69
|
+
"RUF100", # unused noqa (yesqa)
|
|
70
|
+
"UP", # pyupgrade
|
|
71
|
+
"W", # pycodestyle
|
|
72
|
+
"YTT", # flake8-2020
|
|
73
|
+
]
|
|
74
|
+
lint.ignore = [
|
|
75
|
+
"E203", # Whitespace before ':'
|
|
76
|
+
"E221", # Multiple spaces before operator
|
|
77
|
+
"E226", # Missing whitespace around arithmetic operator
|
|
78
|
+
"E241", # Multiple spaces after ','
|
|
79
|
+
"UP038", # Makes code slower and more verbose
|
|
80
|
+
]
|
|
81
|
+
lint.flake8-import-conventions.aliases.datetime = "dt"
|
|
82
|
+
lint.flake8-import-conventions.banned-from = [ "datetime" ]
|
|
83
|
+
lint.isort.known-first-party = [ "prettytable" ]
|
|
84
|
+
lint.isort.required-imports = [ "from __future__ import annotations" ]
|
|
85
|
+
|
|
86
|
+
[tool.pyproject-fmt]
|
|
87
|
+
max_supported_python = "3.14"
|
|
88
|
+
|
|
89
|
+
[tool.pytest.ini_options]
|
|
90
|
+
filterwarnings = [
|
|
91
|
+
# Python <= 3.11
|
|
92
|
+
"ignore:sys.monitoring isn't available, using default core:coverage.exceptions.CoverageWarning",
|
|
93
|
+
]
|
|
94
|
+
testpaths = [ "tests" ]
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from ._version import __version__
|
|
6
|
+
from .prettytable import ( # noqa: F401
|
|
7
|
+
_DEPRECATED_ALL,
|
|
8
|
+
_DEPRECATED_DEFAULT,
|
|
9
|
+
_DEPRECATED_DOUBLE_BORDER,
|
|
10
|
+
_DEPRECATED_FRAME,
|
|
11
|
+
_DEPRECATED_HEADER,
|
|
12
|
+
_DEPRECATED_MARKDOWN,
|
|
13
|
+
_DEPRECATED_MSWORD_FRIENDLY,
|
|
14
|
+
_DEPRECATED_NONE,
|
|
15
|
+
_DEPRECATED_ORGMODE,
|
|
16
|
+
_DEPRECATED_PLAIN_COLUMNS,
|
|
17
|
+
_DEPRECATED_RANDOM,
|
|
18
|
+
_DEPRECATED_SINGLE_BORDER,
|
|
19
|
+
HRuleStyle,
|
|
20
|
+
PrettyTable,
|
|
21
|
+
RowType,
|
|
22
|
+
TableHandler,
|
|
23
|
+
TableStyle,
|
|
24
|
+
VRuleStyle,
|
|
25
|
+
_warn_deprecation,
|
|
26
|
+
from_csv,
|
|
27
|
+
from_db_cursor,
|
|
28
|
+
from_html,
|
|
29
|
+
from_html_one,
|
|
30
|
+
from_json,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
__all__ = [
|
|
34
|
+
"ALL",
|
|
35
|
+
"DEFAULT",
|
|
36
|
+
"DOUBLE_BORDER",
|
|
37
|
+
"FRAME",
|
|
38
|
+
"HEADER",
|
|
39
|
+
"MARKDOWN",
|
|
40
|
+
"MSWORD_FRIENDLY",
|
|
41
|
+
"NONE",
|
|
42
|
+
"ORGMODE",
|
|
43
|
+
"PLAIN_COLUMNS",
|
|
44
|
+
"RANDOM",
|
|
45
|
+
"SINGLE_BORDER",
|
|
46
|
+
"HRuleStyle",
|
|
47
|
+
"PrettyTable",
|
|
48
|
+
"RowType",
|
|
49
|
+
"TableHandler",
|
|
50
|
+
"TableStyle",
|
|
51
|
+
"VRuleStyle",
|
|
52
|
+
"__version__",
|
|
53
|
+
"from_csv",
|
|
54
|
+
"from_db_cursor",
|
|
55
|
+
"from_html",
|
|
56
|
+
"from_html_one",
|
|
57
|
+
"from_json",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def __getattr__(name: str) -> Any:
|
|
62
|
+
return _warn_deprecation(name, module_globals=globals())
|