Skip to main content

Usage

Usage Params Return Value
ansiprint() str: msg, str: color-name/ansi, str: end, boolean: flush str: msg
ansi() str: color-name/ansi str: ansi
clear() None: None None: None

Examples


ansiprint()

Code:

ansiprint("This is red!","red")
ansiprint("This is blue!","blue")
ansiprint("This is white and ends with \"!\"",end="!")

Result: result


ansi()

Code:

print(ansi("red") + "This is red!" + ansi("reset"))
print(ansi("blue") + "This is blue!" + ansi("reset"))
print(ansi(34) + "This is the ansi \"34\"!" + ansi("reset")) # ansi codes are in the ansi chart below

Result: result


clear()

Code:

print("This message isn't seen because the console is cleared after!")
clear()
print("This message is seen because it is after the console is cleared!")

Result: result


Ansi Chart

ansi chart

Metadata

Release files for AnsiPrint 0.0.7

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

Source distribution (sdist)

Source distribution for AnsiPrint 0.0.7
File Size Uploaded Provenance
AnsiPrint-0.0.7.tar.gz 2.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for AnsiPrint 0.0.7
File Interpreter ABI Platform
AnsiPrint-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / AnsiPrint-0.0.7.tar.gz

Download URL AnsiPrint-0.0.7.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d2971ed6f4e1750c00901ed93efa0a9183a2c57184d8981fe74947159aacefc9
BLAKE2b-256 checksum
How to use checksums
62346b9b31349df656d153ff054bfb7f15edd69199fee6786f8818da0895200e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.2

Release files / AnsiPrint-0.0.7-py3-none-any.whl

Download URL AnsiPrint-0.0.7-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c777d23d583664e41f848802bcae7196fb6286d952e7f28a9fcc0074983ca32d
BLAKE2b-256 checksum
How to use checksums
16052aad6e0f8128a31fb88ea97d132a5ad77f7f60f0d9c09e650f5beb629cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.2

Security for AnsiPrint 0.0.7

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