Changed code to support older Python versions
This commit is contained in:
parent
eb92d2d36f
commit
582458cdd0
5027 changed files with 794942 additions and 4 deletions
|
|
@ -0,0 +1 @@
|
|||
pip
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
Metadata-Version: 2.4
|
||||
Name: rich-toolkit
|
||||
Version: 0.17.0
|
||||
Summary: Rich toolkit for building command-line applications
|
||||
License-Expression: MIT
|
||||
License-File: LICENSE
|
||||
License-File: LICENSE-THIRD-PARTY
|
||||
Classifier: Development Status :: 4 - Beta
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Topic :: Software Development :: Libraries
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Requires-Python: >=3.8
|
||||
Requires-Dist: click>=8.1.7
|
||||
Requires-Dist: rich>=13.7.1
|
||||
Requires-Dist: typing-extensions>=4.12.2
|
||||
Description-Content-Type: text/markdown
|
||||
|
||||
# Rich Toolkit
|
||||
|
||||
This is a very opinionated set of components for building CLI applications.
|
||||
It is based on [Rich](https://github.com/Textualize/rich)
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install rich-toolkit
|
||||
```
|
||||
|
||||
## Example usage
|
||||
|
||||
Rich toolkit comes with an `App` class, this is used to give a consistent
|
||||
style to your CLI application, it can be used as a context manager, like so:
|
||||
|
||||
```python
|
||||
TODO: new example
|
||||
```
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
rich_toolkit-0.17.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
rich_toolkit-0.17.0.dist-info/METADATA,sha256=bkl2GLnZ-5lWJqoMwa69c9JI_hZi0Nl0Rj6mz-8U-dY,1033
|
||||
rich_toolkit-0.17.0.dist-info/RECORD,,
|
||||
rich_toolkit-0.17.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
||||
rich_toolkit-0.17.0.dist-info/licenses/LICENSE,sha256=cVeSUfwn7g0UsWhiiGCIB-PKRr-Fut9GSN5NKDzYpTI,1072
|
||||
rich_toolkit-0.17.0.dist-info/licenses/LICENSE-THIRD-PARTY,sha256=USYxoKfy-tTk1fM-CYUeoq_AzgnUDjfDGN9_MYfMvhY,2864
|
||||
rich_toolkit/__init__.py,sha256=qML3pC1uR9g1L9lHzhg7PXKc1fc7lxgnJawHyTpRp5s,140
|
||||
rich_toolkit/__pycache__/__init__.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/_getchar.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/_input_handler.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/_rich_components.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/button.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/container.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/element.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/form.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/input.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/menu.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/progress.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/spacer.cpython-311.pyc,,
|
||||
rich_toolkit/__pycache__/toolkit.cpython-311.pyc,,
|
||||
rich_toolkit/_getchar.py,sha256=xtdVJPuHehFj9kyg6EbD8AZvD3lN09_AByu4B8OJH7w,4841
|
||||
rich_toolkit/_input_handler.py,sha256=4JFaM8yB8jSgGqdK09-xo0XovDaan7TaGxbcPDk0HjE,4422
|
||||
rich_toolkit/_rich_components.py,sha256=5PD2A9hMj1fUFkEPyuz1Q23VASUikaSRfaDeYRtxeyQ,5423
|
||||
rich_toolkit/button.py,sha256=qtIlWeEttszpFHU24heYt4wWuPMOONrwCc70spepN9Q,654
|
||||
rich_toolkit/container.py,sha256=iPt0UURkqSE8HpfslKOTbhTkIytfAZ8yndDEf1BPTUE,5983
|
||||
rich_toolkit/element.py,sha256=N8wsR_QQj3uiqZNT1BSLnOQ41M4vVKPr2O3PYkwR544,940
|
||||
rich_toolkit/form.py,sha256=41doF5YhTRtYM6D1A-hqsuq3JZLgpg0MvaGKroNyxnI,1887
|
||||
rich_toolkit/input.py,sha256=UcRB6PwpiruQumjBUW9biBp29Y1IbrsVFzXNDSAx6lc,4247
|
||||
rich_toolkit/menu.py,sha256=bsxp9GN_idmcqc9aOXEGxPrBj6Mlm2pqhrCbTGgHbVw,9132
|
||||
rich_toolkit/progress.py,sha256=eO2OJSCADeqfGO9tGyksYTEcYJmsW8wE3rNjI-nEoUQ,1931
|
||||
rich_toolkit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
rich_toolkit/spacer.py,sha256=y9hWTudzBzDPnhX1S2g8M2vsitRLK6eUTlLNTFRpd80,112
|
||||
rich_toolkit/styles/__init__.py,sha256=Uo4y90hYZ7Yl0aNjfAcLBc6CRtk9d5qgS9mRkucW3zk,245
|
||||
rich_toolkit/styles/__pycache__/__init__.cpython-311.pyc,,
|
||||
rich_toolkit/styles/__pycache__/base.cpython-311.pyc,,
|
||||
rich_toolkit/styles/__pycache__/border.cpython-311.pyc,,
|
||||
rich_toolkit/styles/__pycache__/fancy.cpython-311.pyc,,
|
||||
rich_toolkit/styles/__pycache__/minimal.cpython-311.pyc,,
|
||||
rich_toolkit/styles/__pycache__/tagged.cpython-311.pyc,,
|
||||
rich_toolkit/styles/base.py,sha256=Qp9dKB-9wOFct1nKHEfpbbnumO7zHGOtasXIDQLZ4uc,14759
|
||||
rich_toolkit/styles/border.py,sha256=lkIFullE1ruSZMUc33NvxggK6P_KzA3SyMRvy5rTpKY,8339
|
||||
rich_toolkit/styles/fancy.py,sha256=tuNRdDsQ-okoWqw4EU71bSrG6A2YVRcFw_Y3Xw-6Qcs,5079
|
||||
rich_toolkit/styles/minimal.py,sha256=9x0RTy-yRYLBLRunCjFqyOnw1An-XkYw0B6izpE9ZsU,70
|
||||
rich_toolkit/styles/tagged.py,sha256=MC_kAt3_Mu-8TZdKFe25a3NUcfFnDSALJqswcjBnKJY,4227
|
||||
rich_toolkit/toolkit.py,sha256=QJtR3QjM4asqOdeZbwGVSVBs0ZmuKhdHqzMGRwrTmbQ,4198
|
||||
rich_toolkit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
rich_toolkit/utils/__pycache__/__init__.cpython-311.pyc,,
|
||||
rich_toolkit/utils/__pycache__/colors.cpython-311.pyc,,
|
||||
rich_toolkit/utils/__pycache__/map_range.cpython-311.pyc,,
|
||||
rich_toolkit/utils/colors.py,sha256=cJ8oYha9spDBgVcmr6wDEv9oacTBz1NV_cUwhPHgmZc,6744
|
||||
rich_toolkit/utils/map_range.py,sha256=0FOvH6fVp4kCppbJ4Sbo5t6zQyDEFnK5btvxccGr9eI,336
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Wheel-Version: 1.0
|
||||
Generator: hatchling 1.28.0
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2024 Patrick Arminio
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
Third-Party Licenses
|
||||
=====================
|
||||
|
||||
This project includes code derived from the following third-party projects:
|
||||
|
||||
Click
|
||||
-----
|
||||
Copyright 2014 Pallets
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
The following files contain code derived from Click:
|
||||
- src/rich_toolkit/_getchar.py
|
||||
|
||||
|
||||
Textual
|
||||
-------
|
||||
Copyright (c) 2023 Textualize Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
The following files contain code derived from Textual:
|
||||
- src/rich_toolkit/_getchar_textual.py
|
||||
Loading…
Add table
Add a link
Reference in a new issue