A Rust-based library for styled printing, tables, and emojis.
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:
-
🐞 Bug Fixes: If you find any issues, please submit a Pull Request (PR) with a fix.
-
📄 Documentation: Improving the documentation would help a lot, especially for those who aren't familiar with Rust.
-
⚡ Optimization: If you know how to make the Rust code faster 🚀 or cleaner, feel free to contribute!
-
✨ 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
Built Distribution
File details
Details for the file luxeprint-0.1.4.tar.gz
.
File metadata
- Download URL: luxeprint-0.1.4.tar.gz
- Upload date:
- Size: 73.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9280c2a93059564c297c12a0d97f265b20da1ae8d430946789793cc1032ba4e1 |
|
MD5 | 281f31cc4aac9b0b582f52ad779c9ce3 |
|
BLAKE2b-256 | 792f3e4eaafee233ba6953c21fa7b8e0f994ba34d62139ed65e6b0d3647c9361 |
File details
Details for the file luxeprint-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: luxeprint-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a0b2b0f807024566f6882b2a81ba953afe635ee823e6f07c8d705fdedbf2509 |
|
MD5 | c5ff007122783e54664ad037bb41eb82 |
|
BLAKE2b-256 | 0df5621aa10ea74b47fcfab7a75bffeba0db09d9d9709c10b153a3924cc5bbf9 |