Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyANSIEscapes - Console Manipulation using ANSI Escapes Sequences

This package provides human readable functions for adding ANSI escapes sequences to your python console outputs. It's loosy based on ansiescapes, however offers more convenience functions for formatting Rich Text.

Update: Ships with emojis, so you can use :smile: in your messages(strings) pass to ansi.format()-calls.

Installation

pip install pyansiescapes

Usage

import pyansiescapes.commands as ansi

# Print blue text on white background:
print(ansi.format("Hello ANSI!", color = 'blue', background = 'white'))

API-Reference

The documentation is hosted on readthedocs.io

You can also access the docs using help(ansi) in a python REPL.

License

This repository is licensed under the MIT License. See LICENSE for details.

Metadata

Release files for pyansiescapes 0.0.1.dev61

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyansiescapes 0.0.1.dev61
File Size Uploaded Provenance Actions
pyansiescapes-0.0.1.dev61.tar.gz 16.7 kB Without provenance Details for pyansiescapes-0.0.1.dev61.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyansiescapes 0.0.1.dev61
File Interpreter ABI Platform Actions
pyansiescapes-0.0.1.dev61-py3-none-any.whl Python 3 none any Details for pyansiescapes-0.0.1.dev61-py3-none-any.whl

Total release size: 33.8 kB

Release files / pyansiescapes-0.0.1.dev61.tar.gz

Download URL pyansiescapes-0.0.1.dev61.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5dc4307257bf266582d516eea8b17c33e96c218b62ad6d84c574a5dc1cf96cde
BLAKE2b-256 checksum
How to use checksums
088a83e8f98cfd76f83486d5f4f10908730878dc49f83dcc414e7f94d24aa234
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / pyansiescapes-0.0.1.dev61-py3-none-any.whl

Download URL pyansiescapes-0.0.1.dev61-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73b5985f7b9c4214f1f29f1855b8462b28bf64288fdd542f95c231fb689b3fc3
BLAKE2b-256 checksum
How to use checksums
0ea37087ec193f9c0dec3b9792795125771755a6c87baa5d3ec09622fd40cf50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Security for pyansiescapes 0.0.1.dev61

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page