No video

How to Easily Create REST APIs with Flask-RESTX

  Рет қаралды 30,468

Pretty Printed

Pretty Printed

Күн бұрын

Flask-RESTX is a good library to use if you're interested in creating REST APIs in Flask. In this video, I'll walk you through an example API that I created.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted....
Get the code I wrote in this video: prettyprinted....
Twitter: / pretty_printed
Github: github.com/pre...

Пікірлер: 38
@爱吃香菜
@爱吃香菜 22 күн бұрын
This is what i need.Thanks!
@ehabbustami7691
@ehabbustami7691 8 ай бұрын
Thank you for this introduction, really helpful. I would like to see similar thing about flask-smorest and if possible a comparison with these packages and FASTApi
@reginaldcobb4356
@reginaldcobb4356 Жыл бұрын
Very nice tutorial. Exactly what I was looking for...
@prettyprinted
@prettyprinted Жыл бұрын
Glad it helped! Thanks for watching.
@soltivco
@soltivco 9 ай бұрын
Great lesson! I would like to see a lesson from you on RESTX Socketio.
@user-ku1bv9go6t
@user-ku1bv9go6t 8 ай бұрын
thank you so much ,that was great help to fix my project
@calistusobeke7520
@calistusobeke7520 8 ай бұрын
I really did enjoyed the tutorial. Awesome 👌 work
@ayeshsilva6919
@ayeshsilva6919 5 ай бұрын
Great video! Very helpful
@eboyd53
@eboyd53 Жыл бұрын
What kind of magic do you have going on at 3:20 with your "flaskenv" file? I had to "load_dotenv('flaskenv')" in the create_app function to make it do the debug mode.
@vimmasi1
@vimmasi1 8 ай бұрын
I would like to know, if possible, how to create an example Student when the app is running for the first time. Without the need to import it manually using Flask Shell
@erik....
@erik.... Жыл бұрын
This is interesting.. I started using flask-restx a few months ago for the REST parts of the API but still using Marshmallow for converting models to JSON. I wonder if it has all the features needed to drop Marshmallow completely...
@prettyprinted
@prettyprinted Жыл бұрын
I think Marshmallow is necessary. It doesn't appear they will continue working on the request parsing part of the library because it would overlap with what Marshmallow already does.
@XekoN10
@XekoN10 Жыл бұрын
Can you do a tutorial on how to use marshmallow + flask-restx
@martinndegwa7155
@martinndegwa7155 10 ай бұрын
Good tutorial, Thank you
@mrit2871
@mrit2871 4 ай бұрын
1:41 command: source env\bin\activate DOES NOT work
@trfdhglhnjkbnlkk
@trfdhglhnjkbnlkk 4 ай бұрын
you can change to env/Scripts/activate
@deekshithasanapathi8595
@deekshithasanapathi8595 4 ай бұрын
For windows: env\Scripts\activate
@nurilhidayati29
@nurilhidayati29 Жыл бұрын
it's awesomee. Can you add a code how to upload multiple data using flask-restx and documentation with Swagger?
@moisesJu
@moisesJu 11 ай бұрын
Can we have a tutorial generating a client from an openApi specification and actually using that client?
@deepakkumarjoshi
@deepakkumarjoshi Жыл бұрын
Why is the swagger header not coming?
@andreialuculesei1842
@andreialuculesei1842 Жыл бұрын
does anyone have an error like : Fetch error INTERNAL SERVER ERROR /swagger.json after adding the marshall?
@rauleblanko6769
@rauleblanko6769 Жыл бұрын
don't you know why your site is unavailable? not opening at all
@tharoseth8064
@tharoseth8064 10 ай бұрын
I want to deploy with docker but I dont know how to a docker file with your project structure, so could you tell me please?
@2dapoint424
@2dapoint424 6 ай бұрын
Did you figure out?
@kelvinwong4796
@kelvinwong4796 4 ай бұрын
Same here. I know FLASK can use gunicorn to deploy in Docker. However, it seems not work in flask-restx😢
@samiam.402
@samiam.402 Жыл бұрын
Nice! I didn't know this library was available. Isn't this similar to Fast-API?
@prettyprinted
@prettyprinted Жыл бұрын
RESTX does bring Flask closer to what FastAPI offers for API creation, but with this you still maintain the benefits of using Flask.
@samiam.402
@samiam.402 Жыл бұрын
Just revisiting this today. Gonna use this for a React front-end, Flask back-end, app I'm building for my portfolio.
@chetnakolte1016
@chetnakolte1016 11 ай бұрын
Error: While importing 'app', an ImportError was raised: Traceback (most recent call last): File "c:\users\chetna.kolte\desktop\flask_demo\fenv\lib\site-packages\flask_restx\api.py", line 18, in from flask.helpers import _endpoint_from_view_func ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers' (c:\users\chetna.kolte\desktop\flask_demo\fenv\lib\site-packages\flask\helpers.py) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\users\chetna.kolte\desktop\flask_demo\fenv\lib\site-packages\flask\cli.py", line 219, in locate_app __import__(module_name) File "C:\Users\Chetna.Kolte\Desktop\flask_demo\app\__init__.py", line 2, in from .extensions import api,db File "C:\Users\Chetna.Kolte\Desktop\flask_demo\app\extensions.py", line 2, in from flask_restx import Api File "c:\users\chetna.kolte\desktop\flask_demo\fenv\lib\site-packages\flask_restx\__init__.py", line 2, in from .api import Api # noqa File "c:\users\chetna.kolte\desktop\flask_demo\fenv\lib\site-packages\flask_restx\api.py", line 20, in from flask.scaffold import _endpoint_from_view_func ModuleNotFoundError: No module named 'flask.scaffold' getting this error while running the flask run please help
@user-vk9xu1vq8i
@user-vk9xu1vq8i 10 ай бұрын
Hi! Do you solved this problem? I have the same :)
@bendaouda3236
@bendaouda3236 9 ай бұрын
Hello, what's your Flask version ? 3.0.0 ?
@marcelogrsp
@marcelogrsp Жыл бұрын
Isn’t there a way to avoid the input model? To need to create it isn’t cool
@prettyprinted
@prettyprinted Жыл бұрын
The input model is mostly for the documentation. You can add your own documentation to Swagger and do your own validation inside of the resources. RESTX recommends Marshmallow to do that.
@soldadopreciso
@soldadopreciso Жыл бұрын
Interesting *back_populates*
@user-wv9vk8io1y
@user-wv9vk8io1y Жыл бұрын
+
@user-fh7kp8op6x
@user-fh7kp8op6x Жыл бұрын
annoyingly fast for someone learning to code along and study. take a breather now n then. Allow a little time for students to see, understand and code along, which makes it much much easier to learn. Not recommended for beginners.
@mashaad5734
@mashaad5734 Жыл бұрын
It is fast, but a couple of tips: 1) watch it first, without coding along. Give your full attention to what he's saying. Have a notepad handy to quickly write down questions/things to look up. 2) look up everything you have questions on. 3) code along and make changes to see what happens. 4) pause/rewind as needed. Lastly, flask restx docs state that you should be familiar with flask prior to using it. If you're not, I'd recommend checking out a beginner tutorial on flask first, and then circle back round to restx. ETA: Anthony has a ton of videos on flask/sqlalchemy; definitely check them out for a more detailed breakdown!
@prettyprinted
@prettyprinted Жыл бұрын
Watching the videos multiple times is the best approach. It's not practical to go any slower without making the video considerably longer. 35 minutes is already long for KZfaq.
Getting Started With Testing in Flask
28:31
Pretty Printed
Рет қаралды 25 М.
Python REST API Tutorial - Building a Flask REST API
1:14:01
Tech With Tim
Рет қаралды 762 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 52 МЛН
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 15 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН
Build APIs with Flask (the right way)
49:09
microapis
Рет қаралды 10 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 159 М.
REST API With Flask & SQL Alchemy
35:25
Traversy Media
Рет қаралды 296 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,5 МЛН
Intro to Flask-RESTPlus
15:10
Pretty Printed
Рет қаралды 49 М.
These Coding Projects Give You An Unfair Advantage
14:39
Harkirat Singh
Рет қаралды 347 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10