Skip to main content

Project: luxeprint - Styled Printing and Tables in Rust for Python 🚀

👋 Welcome to luxeprint, a Rust 🦀 library for advanced styled printing, tables, and emoji rendering 😀.

This project was created entirely by the 🤖 ChatGPT o1-preview model and is being maintained by someone with little to no experience in Rust 🦀. Please bear with me as we figure this out together! 🙏

Install

pip intall -U luxeprint

Examples of Use

Here are some examples of how to use luxeprint in your projects.

✨ Styled Printing

You can use the library to print styled text directly from your Python code:

from luxeprint.luxeprint import rprint

# Print styled text 🖨️
rprint("Hello, [bold magenta]World[/bold magenta]! :vampire:")

📝 Render and Print Tables

Luxeprint also allows you to render and print tables, complete with ANSI styles:

from luxeprint.luxeprint import render_table, rprint

# Data for the table 📊
data = [
    ["[blue]Name", "[red]Age", "[green]City"],
    ["Alice", "30", "New York"],
    ["Bob", "25", "Los Angeles"],
    ["Charlie", "35", "Chicago"]
]

# Render and print the table 🖨️
table_output = render_table(data)
rprint(table_output)

🎨 Highlight Code

Syntax highlighting is also available:

from luxeprint.luxeprint import highlight

code = '''
def greet(name):
    print(f"Hello, {name}!")

greet("World")
'''

highlighted_code = highlight(code, "python")
rprint(highlighted_code)

🤝 How to Contribute

Since the maintainer (that's me!) doesn't know much about Rust 🦀, any help would be greatly appreciated 🙏. Here are some ways you can contribute:

  1. 🐞 Bug Fixes: If you find any issues, please submit a Pull Request (PR) with a fix.

  2. 📄 Documentation: Improving the documentation would help a lot, especially for those who aren't familiar with Rust.

  3. ⚡ Optimization: If you know how to make the Rust code faster 🚀 or cleaner, feel free to contribute!

  4. ✨ Adding Features: If there's a feature you think would be cool 😎, please add it and submit a PR.

To get started, simply fork the repository, make your changes, and submit a Pull Request. Since I'm still learning Rust 🦀, please keep your explanations simple! 🤓

📬 Contact

If you have questions ❓ or need clarification on anything, feel free to open an issue on the GitHub repository 🐙.

Metadata

Release files for luxeprint 1.1.0

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

Source distribution (sdist)

Source distribution for luxeprint 1.1.0
File Size Uploaded Provenance Actions
luxeprint-1.1.0.tar.gz 74.0 kB Without provenance Details for luxeprint-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for luxeprint 1.1.0
File Interpreter ABI Platform Actions
luxeprint-1.1.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for luxeprint-1.1.0-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 1.7 MB

Release files / luxeprint-1.1.0.tar.gz

Download URL luxeprint-1.1.0.tar.gz
Size 74.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4fa206147a7764ed622290c48fdb7f0abfe30d02d59b3cb899189bdd8cee7c36
BLAKE2b-256 checksum
How to use checksums
133064cf3f60fa19cf4dc2cf8c76417aba9c95bfb28264f0a3d271013e418b7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.7.4

Release files / luxeprint-1.1.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL luxeprint-1.1.0-cp312-cp312-macosx_11_0_arm64.whl
Size 1.7 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cbfc09bf061604316d6f2539f7bf08b9e10b113830e4e1d1c487141f332d9d72
BLAKE2b-256 checksum
How to use checksums
09596ac9adce951cea64fa389042ece1fde07cea07b08313d531d72d9bd47c1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.7.4

Security for luxeprint 1.1.0

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