Skip to main content

No project description provided

Project description

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 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 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 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 🐙.

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

luxeprint-0.1.1.tar.gz (74.4 kB view details)

Uploaded Source

Built Distribution

luxeprint-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

File details

Details for the file luxeprint-0.1.1.tar.gz.

File metadata

  • Download URL: luxeprint-0.1.1.tar.gz
  • Upload date:
  • Size: 74.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for luxeprint-0.1.1.tar.gz
Algorithm Hash digest
SHA256 65ed70de2e51fcc75ae1bd978244939c70781022c9ab16deefc04139855ccddb
MD5 41feded221dbd09e4550710ce960258a
BLAKE2b-256 d2e0b6bff8c5663089db6c0175d6e9532d32772eaa9782678f4a0005be510297

See more details on using hashes here.

File details

Details for the file luxeprint-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for luxeprint-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb1a3e5b442a0f8ab2665e9a48907faf9b521fd4a2536898a2d14da39ef7c88b
MD5 a1fbf82ae70044708f260be1d72e3d12
BLAKE2b-256 a033b3d2421d057d5600af92e3540dc24f2b4bde4d51aefecdb6b5965a783eb5

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