Vibhu-Agarwal

Vibhu-Agarwal

Avid Pythonista and a Full Stack Developer

Member Since 4 years ago

India

Experience Points
50
follower
Lessons Completed
56
follow
Lessons Completed
81
stars
Best Reply Awards
81
repos

632 contributions in the last year

Pinned
⚡ A Desktop App made in Python to handle tasks related to Attendance Management of an Institute
⚡ Material referenced in the talks @pythonindia @python-sverige
⚡ A web application for an organization to manage entry records of visitors
⚡ Hedwig, the messenger 🦉💬 - an asynchronous web-server to support chat-applications having multiple rooms/groups
⚡ A social-media cum collaboration platform for hostellers 🏨👨‍🎓👩‍🎓
⚡ My Interactive Resume on CLI - as a Python Package
Activity
Oct
14
1 week ago
Activity icon
fork

Vibhu-Agarwal forked expressjs/express

⚡ Fast, unopinionated, minimalist web framework for node.
Vibhu-Agarwal MIT License Updated
fork time in 1 week ago
Activity icon
fork

Vibhu-Agarwal forked fastify/fastify

⚡ Fast and low overhead web framework, for Node.js
Vibhu-Agarwal Updated
fork time in 1 week ago
Oct
8
2 weeks ago
pull request

Vibhu-Agarwal pull request encode/uvicorn

Vibhu-Agarwal
Vibhu-Agarwal

[middleware/wsgi.py] Replace list with deque for `send_queue`

Fix for the issue mentioned in #1136

pull request

Vibhu-Agarwal pull request encode/uvicorn

Vibhu-Agarwal
Vibhu-Agarwal

[protocols/httptools_impl.py] Replace list with deque for `pipeline`

Fix for the issue mentioned in #1136

Activity icon
created branch

Vibhu-Agarwal in Vibhu-Agarwal/uvicorn create branch issue_1136_b

createdAt 2 weeks ago
Activity icon
created branch

Vibhu-Agarwal in Vibhu-Agarwal/uvicorn create branch issue_1136_a

createdAt 2 weeks ago
Sep
7
1 month ago
Activity icon
issue

Vibhu-Agarwal issue comment Vibhu-Agarwal/Developing-an-SSO-Service-using-Django

Vibhu-Agarwal
Vibhu-Agarwal

How to create a SSO service?

  • Is there any specific way to create the service?
  • How to create the Standalone server callback url in Django in this example?
Vibhu-Agarwal
Vibhu-Agarwal

The lines you're pointing to, are used here: https://github.com/Vibhu-Agarwal/Developing-an-SSO-Service-using-Django/blob/a0b33fcb47a1ba7ece25248b6a6e46c3c519c559/Single-Sign-On/src/services/models.py#L24-L27 ... which, in turn, is being used here while saving Service (model) instances https://github.com/Vibhu-Agarwal/Developing-an-SSO-Service-using-Django/blob/a0b33fcb47a1ba7ece25248b6a6e46c3c519c559/Single-Sign-On/src/services/models.py#L40-L43 It seems odd that user creation on the stand-alone-service is working but the same thing through SSO is not. Try to print out the arguments passed in line 24 above to see how the callback URL is being called. Also if you can, please show me the logs of both SSO and StandAloneService.

PS. If you're running the SSO and StandAloneService on localhost, check if you've put the correct address of StandAloneService in the callback URL, which in this case, would differ from SSO by the port number.

Sep
6
1 month ago
Activity icon
issue

Vibhu-Agarwal issue comment Vibhu-Agarwal/Developing-an-SSO-Service-using-Django

Vibhu-Agarwal
Vibhu-Agarwal

How to create a SSO service?

  • Is there any specific way to create the service?
  • How to create the Standalone server callback url in Django in this example?
Vibhu-Agarwal
Vibhu-Agarwal

Hey @kinwoon, I'm assuming that you've watched my PyCon talk. If you haven't, it'll help you understand how this project is set up. If you have, thanks a lot for attending my talk :)

Is there any specific way to create the service?

If you're following a particular protocol (like OAuth), you have to follow its guidelines. In this repository, as discussed in the talk, a custom implementation has been done, which doesn't fully comply with any standard protocol, but did the job for us. If you have to develop a Stand-Alone-Service corresponding to the SSO given in this repository, you've got to keep the public key of SSO with the Stand-Alone-Service, and you've got to set up the Service (model) instances (on SSO side) properly in order to maintain licence management stuff.

How to create the Standalone server callback url in Django in this example?

For SSO given in this repository, I've provided the Stand-Alone-Service implementation as well. I've pointed out the implementation below:

https://github.com/Vibhu-Agarwal/Developing-an-SSO-Service-using-Django/blob/a0b33fcb47a1ba7ece25248b6a6e46c3c519c559/StandAloneService/src/users/urls.py#L8

https://github.com/Vibhu-Agarwal/Developing-an-SSO-Service-using-Django/blob/a0b33fcb47a1ba7ece25248b6a6e46c3c519c559/StandAloneService/src/users/views.py#L18-L22

https://github.com/Vibhu-Agarwal/Developing-an-SSO-Service-using-Django/blob/a0b33fcb47a1ba7ece25248b6a6e46c3c519c559/StandAloneService/src/users/permissions.py#L10-L28

Aug
15
2 months ago
Jul
28
2 months ago
Activity icon
issue

Vibhu-Agarwal issue encode/uvicorn

Vibhu-Agarwal
Vibhu-Agarwal

Queue operations on lists

Checklist

  • The bug is reproducible against the latest release and/or master.
  • There are no similar issues or pull requests to fix it yet.

Issue

I noticed that list is being used for queue-based operations in a couple of places:

These operations, therefore, incur O(n) memory movement costs:

Question

Is there a reason why list is being used and not a native queue like asyncio.Queue?
If there is a need of synchronous operation, we can use collections.deque.