Hacker News new | past | comments | ask | show | jobs | submit | more hotfixguru's comments login

By doing it with friends. We’ve written a bunch of Python packages, such as Django-GUID[1], ASGI-Correlation-ID[2], install-poetry GitHub action[3] etc... We’re a organization on GitHub with friends who do this together. Helps when multiple can answer GitHub issues etc.

I do write some open source for work, but that too is mostly done at my spare time.

No income, but I sponsor others. FOSS is mostly to learn and do something a bit different.

[1] https://github.com/snok/django-guid

[2] https://github.com/snok/asgi-correlation-id

[3] https://github.com/snok/install-poetry


Best way to find logs connected to one of your API requests is by using correlation IDs, which are injected to each log message. Me and my friend wrote libraries to do this for both Django[1] and ASGI apps(starlette, FastAPI)[2]

[1] https://github.com/snok/django-guid

[2] https://github.com/snok/asgi-correlation-id


This have happened since 12.3.1 at the office for me (not at home though). Hope this resolves it.


I have also made an attempt at writing an article for developers that want to implement Oauth2.[1] Not a complete guide, but a short(8min) read that aims to get you started.

[1]https://engineering.intility.com/article/implementing-oauth2...


Append `site:Reddit.com` instead of just `Reddit` :)


If anyone makes this work with heroku Postgres, let me know!

I started a container and connected it, but instantly got an email from heroku telling me i had 19500 of my 10000 rows, and 215 tables. Not really any hobby-project viable priced hosting options in their documentation.


Does this autocomplete experience translate into IDEs when using client libraries, such as the Python library?


I think, in general, most FastAPI and Pydantic related libraries are heavily typed, use poetry, GitHub pipelines, black, isort, flake8 etc. so if you want to look at the ecosystem around a package I’ll recommend a few here, that has a smaller scope than the huge libraries Pydantic/FastAPI are. All packages listed below has all these things.

FastAPI-Azure-Auth [0] is a library to do authentication and authorization through Azure AD using tokens.

ASGI—Correlation-ID[1] is a package that utilizes contextvars to store information through the asyncio stack, in order to attach correlation/request ID to every log message from a request. Django-GUID [2] does the same for both sync and async Django.

Pydantic-factories [3] is an awesome library to mock data for your pydantic models.

[0] https://github.com/Intility/fastapi-azure-auth

[1] https://github.com/snok/asgi-correlation-id

[2] https://github.com/snok/django-guid

[3] https://github.com/Goldziher/pydantic-factories


NetBox[0] is a large project that does this.

https://github.com/netbox-community/netbox


I agree with you. Most my packages are around ~100 stars, and I'm met with a lot of respect and appreciation.[1][2]

My library for Correlation-IDs in Django[3] got implemented by AWX, which also was a nice experience![4]

Maybe it is the Django/FastAPI community, but "you'll get a load of entitled users" is straight up not true in my experience.

[1] https://github.com/Intility/fastapi-azure-auth/issues/24

[2] https://github.com/Intility/fastapi-azure-auth/issues/39

[3] https://github.com/snok/django-guid

[4] https://github.com/ansible/awx/pull/9332

(Bonus Correlation-ID package for Starlette/FastAPI: https://github.com/snok/asgi-correlation-id )


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: