Pyramid [ Python Framework ] : Start Small, Finish Big !

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ม.ค. 2025

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

  • @BekBrace
    @BekBrace  4 ปีที่แล้ว +11

    Just wanted to point out that the first folder is mistakenly called " func_decorators " although I did not show decorators in the first example

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

      Thank you man

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

      hey man! just needed a help from you!
      can you just tell me that which GO framework is similar to Pyramid???

    • @mobalaaa
      @mobalaaa 7 หลายเดือนก่อน

      brother, i saw you on net ninja, your channel is great, and i don't know how you're not a 100K subs yet !!

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

    pyramid ? Never heard of it ! Thank you Bek for sharing this !!

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

      Always a pleasure !

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

    How to map data from database to create a web api i have intialized default values into the database using alembic

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

      Hey Deb. I do not have an immediate answer, tbh, but once I know how I'll let you know

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

    Can u please show how to do crud operations using pyramid and postgress sql there are no tutorials available and it's very difficult to learn without any

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

      I will prepare a full tutorial on that my friend

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

      Pls do it i am really in need of a tutorial . U are the life saver of many .

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

      Can u pls prepare it within this month sir

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

    Really understandable and easy way to learn. Thank you sir.

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

      Glad it helped you, Muhammad 🙂

  • @cristiangosselin5166
    @cristiangosselin5166 3 ปีที่แล้ว +1

    Do you use virtual environment, when I exucute it I have to pass an absolute path like C:\env\Scripts\python .py. How can use execute the scripts directly with python keyword???

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

      I didn’t use virtual environment here, you install pyramid and execute your script directly

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

      @@BekBrace dope

  • @matthewshortle5274
    @matthewshortle5274 ปีที่แล้ว

    On the JSON renderer, my web app keeps returning "Hello World" instead of the JSON data. How do I fix that?

    • @BekBrace
      @BekBrace  ปีที่แล้ว

      there are a few things you can check to fix this issue:
      Check that the JSON renderer is registered
      Make sure that the JSON renderer is registered in your Pyramid application. You can do this by checking your configurations to ensure that the following line is included:
      config.include('pyramid.renderers')
      Check that the JSON renderer is enabled
      You also need to ensure that the JSON renderer is enabled in your application. This can be done by adding the following line to your application configuration file:
      config.add_renderer('json', 'pyramid.renderers.JSON')
      Check that the view is returning the JSON data
      Make sure that the view is returning the JSON data and not just the string "Hello World". You can check this by adding the following line to your view:
      return {'data': json_data}
      Where json_data is the actual JSON data that you want to return.
      Hope this was useful my friend, and thank you for watching

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

    Hii, amazing tutorial. Do you have a course where we can learn this framework in detail?

    • @BekBrace
      @BekBrace  3 ปีที่แล้ว +2

      Thanks man
      No, not really but I can if there is a general demand , I can create a tutorial for a web app or something like that

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

      @@BekBrace that'd be really helpful man. Because, I can't find a tutorial for that on youtube pr even on online platforms like Udemy, etc.

  • @pietraderdetective8953
    @pietraderdetective8953 ปีที่แล้ว

    interesting framework!
    some questions: 1) will it support async in the future? i see from the video it's a wsgi framework 2) how is the ecosystem of supporting libraries? is there a list of all the supporting libraries?
    I'm currently using Flask and the only thing I found lacking is the lack of native async support.

    • @BekBrace
      @BekBrace  ปีที่แล้ว

      tbh, I haven't seen any third part libraries supporting Pyramid, also Pyramid does not support async await unfortunately, however you can use ASYNCIO native library in Python in any framework. Soon, I will publish a web app project using Pyramid - don't miss it 😉

  • @RahiyanSafinOfficial
    @RahiyanSafinOfficial 3 ปีที่แล้ว +1

    hey man! just needed a help from you!
    can you just tell me that which GO framework is similar to Pyramid???

    • @BekBrace
      @BekBrace  3 ปีที่แล้ว +1

      Oh I'm so sorry man, but I really don't know.
      I never programmed in GO

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

      @@BekBrace can you atleast tell me how fast and optimized this framework is compared to NodeJS (Express, Nest)

    • @BekBrace
      @BekBrace  3 ปีที่แล้ว +1

      @@RahiyanSafinOfficial oh no , Express for node is much much faster and a million times better; because of the v8 engine of node js, as far as Nest, never worked with it, but I can tell you that something like FastAPI is very close to Express for node or Revel for Go - also take in mind, that Go language is by far the fastest language in sending and retrieving data because it’s built on top of Asynchronous technology. Hope that was useful

  • @pauldhartley
    @pauldhartley 3 ปีที่แล้ว +1

    I just tried your code for the first application, it ran and stopped, no errors, no output. I am not using the same version of pyramid, but the latest (2.0 I think).

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

      But have you managed to know what was the issue ?

  • @blahman442
    @blahman442 3 ปีที่แล้ว +1

    Cool. Could you also do a tutorial on RESTFul apis using pyramid ?

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

      A great idea for a future video 👌

  • @vladimirrumyantsev7445
    @vladimirrumyantsev7445 3 ปีที่แล้ว +2

    Doesn't support async programming such is pretty sad by my opinion, hope they'll add it in the future releases

    • @BekBrace
      @BekBrace  3 ปีที่แล้ว +2

      Nope, coroutines aren't native to Pyramid, but if you care about coroutines then you might want to study FastAPI as it supports concurrent code with no IO blocking [ th-cam.com/video/62pP9pfzNRs/w-d-xo.html ]

    • @vladimirrumyantsev7445
      @vladimirrumyantsev7445 3 ปีที่แล้ว +1

      @@BekBrace thank you 👍

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

      @@BekBrace also Tornado framework, is built on async/await without asyncio library of python, it would be good if you make course on Tornado

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

      @@BRISKLYHIDDEN yes, AIOHTTP, Tornado and Growler are the three well known async frameworks in Python

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

    mince! Pyramid?!

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

    I wondered why Pyramid is not even fraction of as popular as Django or Flask are?
    The Pyramid's installation & documentation pages answered me clearly. One of the crappiest installation guide ever written.

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

      Actually it's not that bad, next month there will be a cool app tutorial I've prepared with pyramid - I hope you'll like it

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

      ​@@BekBrace That would be great. But the installation guide is talking about installing python, and then weird way of creating some environment... I have python installed and I know how to create virtual environment, set environment variables (if needed)... I even write bash scripts to automate a lot of stuff on regular basis..but still I found its documentation confusing & boring. Even though the slogan is very interesting and catchy.

    • @BekBrace
      @BekBrace  ปีที่แล้ว

      @@felicytatomaszewska Hopefully on November 12th you'll change your opinion after you watch the next Pyramid App tutorial 🙂 btw, I agree that documentation pages aren't the best