Official Website - Flask-Meld.dev
Project inspiration (outdated examples) - Ditch Javascript Frameworks For Pure Python Joy
Join the community on Discord - https://discord.gg/DMgSwwdahN
Meld is a framework for Flask to meld your frontend and backend code. What does that mean? It means you can enjoy writing dynamic user interfaces in pure Python.
Less context switching. No need to write javascript. More fun!
sh
pip install -r tests/requirements.txt
playwright install
```sh
pytest
pytest --headed ```
sh
pytest --ignore=tests/browser
When I install flask-meld, it says
flask-meld 0.13.1 requires click==7.1.2, but you have click 8.1.3 which is incompatible
because flask-2.2.2 requires click>=8.0
Downgrading Flask does NOT solve the issue either as flask-sqlalchemy-3.0.2 requires flask>=2.2.2
To reproduce:
pip install flask-meld
pip install flask==2.0.3
I cannot recreate the search example on https://www.flask-meld.dev/ which shows the function users()
running a query and returning the results. Then the template directly uses those objects, such as in <h3>{{ user.name }}</h3>
.
When I try to recreate that pattern, I get an exception: TypeError: Object of type XYZ is not JSON serializable
, related to line 259 in componenty.py.
I was hoping that since the templates were rendered on the server, I would not need to write a serializer for my models. Is that not correct?
Updated to the last flask-meld with pip. I have this error on loading of a page using meld component
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
And then I'm not able to have a component working (with a previous version it work)
Is there a process to upload files using a component?
Example of google recaptcha that will disappear when using form validation https://user-images.githubusercontent.com/467659/123309097-b8e9eb00-d4e1-11eb-868f-ef595a63256c.mp4
Beginning at the following paragraph the README shows new users how to build a minimal app that illustrates what is possible with Flask-Meld:
https://github.com/mikeabrahamsen/Flask-Meld/blob/main/README.md#initialize-meld-in-an-existing-project-alternative-method-to-get-started
A tree showing the project layout would be helpful.
Full Changelog: https://github.com/mikeabrahamsen/Flask-Meld/compare/0.13.0...0.13.1
Full Changelog: https://github.com/mikeabrahamsen/Flask-Meld/compare/0.7.0...0.13.0
Full Changelog: https://github.com/mikeabrahamsen/Flask-Meld/compare/0.7.0...0.13.0
These changes were made as part of the PyCon 2021 code sprint. Huge thank you to everyone involved, these contributions have helped extend the capabilities of Meld as well as make it easier for new users to get started!
Install flask-meld to your Python environment: pip install flask-meld
Replace "project_name" with the name of your project
meld new project_name
Change to your project_name directory and install requirements
cd project_name; pip install -r requirements.txt
Run the flask-meld development server
flask run
Helping Python developers deploy applications at conveyor.dev
GitHub Repository Homepageflask python