🔥Python Projects | Flask REST API with Sqlite Database in 100 lines

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • In this 20-min video, we will learn "How to write a Flask REST API and use Sqlite Database as a data store in less than 100 lines". The Books API will implement CRUD : Create, Retrieve, Update and Delete. The example shown in this video is a fully functional REST API.
    Link to source-code - github.com/rah...
    Flask API Playlist - • 🔥Python Projects | Fla...
    How to install HTTPIE without using Homebrew (Windows install) - "pip install --upgrade pip setuptools pip install --upgrade httpie"
    Installing Pip - pip.pypa.io/en...
    If you have suggestions as to how to improve this API, or you want me to add more features to this API, please use the comment section and let me know.

ความคิดเห็น • 14

  • @rabbaniable
    @rabbaniable 4 ปีที่แล้ว

    It's really nice session. Please do one session for Redis aswell

  • @shivammagotra3794
    @shivammagotra3794 4 ปีที่แล้ว

    Great Explanation. Helped a lot!!

  • @kartiksaxena936
    @kartiksaxena936 3 ปีที่แล้ว

    Great tutorial and easy to follow

  • @eklavyachandra
    @eklavyachandra 2 ปีที่แล้ว +1

    The title is "with sqlite", where is Sqlite?

  • @puneetkaura7252
    @puneetkaura7252 4 ปีที่แล้ว +1

    Good explanation

  • @maheshparihariiitdharwad6164
    @maheshparihariiitdharwad6164 2 ปีที่แล้ว

    my data is getting stored in 'books.db-shm' intead of 'books.db' is there any solution?

  • @oxxodome
    @oxxodome 4 ปีที่แล้ว +2

    Hi, Its very Nicely Explained!!! ,
    Can you please guide me as in how using FLASK, can I consume a REST API of another application say: url1/travel9/rest/places/ using GET method & put the data into another application say: url2/travel9/rest/places/ using POST method. Thanks

    • @rahularoradce
      @rahularoradce  4 ปีที่แล้ว +3

      Hi Abhishek. You can use "requests" to consume another API from flask.
      def some_func():
      r = requests.get('url1/travel9/rest/places')
      return r.text
      Please subscribe to my channel if you like the video. Thank you :)

  • @realblummusic
    @realblummusic 4 ปีที่แล้ว +1

    u should link and share the code :)

    • @rahularoradce
      @rahularoradce  4 ปีที่แล้ว

      Thank you for pointing it out. Sorry i missed it. It is now part of the description - github.com/rahularora/TH-cam-source-code/blob/master/flask-api-sqlite/api.py

  • @latinbishop1722
    @latinbishop1722 4 ปีที่แล้ว

    U mention sqlite in title but never saw it