michael-lazar / flask-gopher Goto Github PK
View Code? Open in Web Editor NEWA Flask extension to support the Gopher protocol
License: GNU General Public License v3.0
A Flask extension to support the Gopher protocol
License: GNU General Public License v3.0
The figlet dependency in flask-gopher is throwing the following error:
./run_server.py
Traceback (most recent call last):
File "/home/jblang/flask-gopher/demo/./run_server.py", line 23, in <module>
from pyfiglet import FigletFont
File "/home/jblang/flask-gopher/venv/lib/python3.12/site-packages/pyfiglet/__init__.py", line 11, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
This can be fixed by installing the latest version of setuptools:
pip install --upgrade setuptools
You may want to include a note in your readme or see if you can add a dependency so that the latest setuptools is automatically installed.
It appears that some recent updates to werkzeug have broken this plugin. I did a bit of digging and most of the relevant changes are around adding support for websockets. It might end up being infeasible to continue monkey-patching gopher compatibility (I hope not though!)
For now, I am going to pin the werkzeug dependency to < 1.0.0 and publish a new release.
Hi, very nice library. Could you confirm whether it's possible to serve this application behind a WSGI server, and how?
Thanks so much for your work on this project. ran across mozz.us and saw your ssl test.
The code and design look beautiful and I'd love to help any way I can (testing, docs, etc)...
Are you planning on releasing the ssl stuff soon? I imagine the current release is based off master, yeah?
Also curious about the port choice... was 7005 necessary for technical reasons related to ssl? Looks like you had a nice wrapper to transparently serve up the ssl or plaintext conditionally which nicely meets the requirements I saw discussed around having ssl solutions that don't block out existing clients.
Also, do you happen to know of a client that supports this? the piping to openssl command example you had worked nicely for me ( gopher://mozz.us:7005/1/demo-ssl ), but didn't have luck in lynx or any of the android clients I tried (Diggie Dog / Pocket Gopher)
TIA! Really excited to see your work on this. Just discovered gopher recently and it feels so deeply right and good. I found a way to actually maintain a blog :P
Been a long time since I've touched python, but you've given me a very good reason to!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.