Onebite.dev
Developer tips & trick, one bite at a time
All
/
Series
/
Twitter
/
Free Stuff for Dev
/
Newsletter
Dev blog around python
Solving Error: pg_config executable not found psycopg2 install
On my mac machine, I tried to install a new python library with psycopg2 in it, I got pg_config error, here's how I solve this error
python
Tue May 24, 2022
How to add multiple types in pydantic
To allow pydantic to accept multiple values we can use Union
python
Thu Apr 28, 2022
How to make bcrypt checkpw function work
If you're using bcrypt in python, and try to use checkpw but keep failing, probably you save the hashed password in database wrong. Here's how I solve it.
python
Mon Apr 18, 2022
Solve alembic multiple head revisions are present
Just like git, When you have multiple branches on your migrations of sqlalchemy's alembic. It will tell you that you have two different versions that need to be solved.
python
Sun Apr 17, 2022
How to convert sqlalchemy object to json in FastAPI
Have you struggled on How to convert sqlalchemy object to json in FastAPI? Do you know that fastapi has jsonable_encoder to do exactly this job?
fastapi
python
Fri Apr 15, 2022
Solve error Alembic Can't locate revision identified by id_number
If you're using Alembic as your migration tool for sqlalchemy project on your python program, you might encountered this problem before -Alembic Can't locate revision identified by id_number- here's how to solve it.
python
Thu Apr 14, 2022
How to bulk update in sqlalchemy python?
Update multiple columns one by one is daunting. Learn how to do a bulk update on Sqlalchemy in python programing language to update multiple items at once.
python
Fri Apr 8, 2022
How to count most used words in database with python
How to count most used words in a sentence or article with python programming language
python
Sat Apr 6, 2019