ansi2html
ansi2html copied to clipboard
❤️🩹 Looking for maintainers!
This project could really benefit from some love. I am looking for others that are willing to help maintaining it as my time is very limited these days.
Please state your interest here, I am more than happy to add new contributors to the project.
@ssbarnea I would be interested in helping out. I have some knowledge of python, as well as some knowledge of bash & CI. Let me know how I can assist!
I would make it a single executable file, which can be just copied without installation.
@abitrolly Probably you can look into projects that aim to do this by packaging python, deps into executables but the project itself will still be a python library. I doubt we will ever start publishing binaries for it on each platform, is a "bit" out of scope.
The idea is to have a single executable ansi2html.py, not binaries.
The library already has 5 files and combining them together would not make it easier to maintain. If you want to create a single file you can look at various projects that aim to do this. Lucky for us we do not really have external dependencies.
Still, i do not think that the project itself would benefit from that.
There are five files.
- https://github.com/pycontribs/ansi2html/blob/main/ansi2html/init.py - 3 lines, import function and export it, no logic
- https://github.com/pycontribs/ansi2html/blob/main/ansi2html/main.py - 4 lines, import function to run, no logic
- https://github.com/pycontribs/ansi2html/blob/main/ansi2html/converter.py - 764 LOC, actual meat
- https://github.com/pycontribs/ansi2html/blob/main/ansi2html/style.py - 270 lines, 100 of which are color constants
- https://github.com/pycontribs/ansi2html/blob/main/ansi2html/util.py - 5 lines, a single function that is not used
Keeping styling code separate from parser kind of makes sense, but for me having a single file that I can drag and drop in my project has some utility value as serving a replacement for ansi2html.sh.
You may want to investigate pipx, py2exe or other similar projects that can help you encapsulate python code. Lets avoid polluting this thread with this feature request. You are welcomed to create a feature request for it but I doubt we will do it.
Hi @ssbarnea I'm a past contributer and happy to team up on things ansi2html.
@hartwork If you're a veteran, I'd appreciate your thoughts on #126
@hartwork welcome back! Check https://github.com/pycontribs/ansi2html/invitations and that will give you maintain role.
@ssbarnea thank you! :pray:
Hey - are you still looking for some help? I am the author of pytest-tui, and I have started using your library as a way to write the console output from Pytest to HTML. I might be able to contribute.
There are definitely open issues that could use more hands with analysis and fixing.
I am more than happy to help you takeover maintenance and I will provide help. Main focus is to keep CI/CD (GHA) green, which usually involves some changes from time to time.
Best is to ping me on matrix/irc so we can address things in real time.
I feel dumb, but I don't know what matrix is. I do know what irc is but - what channel? Where?
@jeffwright13 Check https://github.com/ssbarnea for links to these channels. In fact even google chat with my email should work but i might little bit longer time for me to reply there.
Sorry for the late reply, I was out of town. I will check out the link above and reach out.