Skip to main content

'Output Decorator - Library for decorating strings in CLI apps'

Project description

Output Decorator v0.0.3

GitHub release (latest by date) PyPI - Downloads GitHub top language PyPI GitHub PyPI - Format


Output Decorator - Library for decorating strings in CLI apps


Help:

pip install outputdecorator

from output_decorator import StringDecorator

text = StringDecorator.string_decorate(text='Python', symbol='*', print_flag=False)
print(text) # ************************************ Python ***********************************

StringDecorator.string_decorate(text='Python', symbol='*', print_flag=True) 

StringDecorator.framed_decorate(text='Python', top_symbol='*', bottom_symbol='-')
"""
******
Python
------
"""
# Output: ************************************ Python ***********************************

Disclaimer of liability:

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

outputdecorator-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

outputdecorator-0.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file outputdecorator-0.0.3.tar.gz.

File metadata

  • Download URL: outputdecorator-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

File hashes

Hashes for outputdecorator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1b4e655f2f139ba3808fcf15fe4ef3140501c163baff159c65e7e7182644bc1a
MD5 215f3e7f0f0a8add54d3c3577bebf5c6
BLAKE2b-256 f134e2c67106118d0dbfc8b101f55920776967229d9643b82cbdfbdc6845317d

See more details on using hashes here.

File details

Details for the file outputdecorator-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: outputdecorator-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

File hashes

Hashes for outputdecorator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b04d42e801f3476965ef8221724d56f1664af14e9a2b9b8cbd48d3aa77d3b899
MD5 14ec7bbe0ee037fa5f9f716986714d56
BLAKE2b-256 9c881441cb22e9839e4705153e003041979b428206e0ead784264ca24a7ed9e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page