Example: Django + NextJS + JWT Authentication
https://github.com/kalvincalimag/django-nextjs-jwt-starter
/r/django
https://redd.it/1ez8v9l
https://github.com/kalvincalimag/django-nextjs-jwt-starter
/r/django
https://redd.it/1ez8v9l
GitHub
GitHub - kalvincalimag/django-nextjs-jwt-starter: An example setup integrating Django REST Framework, React/NextJS, and JWT Authentication…
An example setup integrating Django REST Framework, React/NextJS, and JWT Authentication for your development needs - kalvincalimag/django-nextjs-jwt-starter
opencv based ttf rendering
Hey if you were ever wondering how you can load custom fonts in opencv, you cant do that natively, but i i developed a project that helps you load custom fonts in opencv python.
What My Project Does
My project allows you to render ttf files inside opencv and place text in images
Target Audience
Anyone who is working with text and computer vision
Comparison
From what ive seen there arent many other projects out there that does this, but some of similar projects i have seen are:
- https://pypi.org/project/a-cv2-putTrueTypeText/ this project get the job done, but have really messy code and doesnt have any documentation.
Repo: https://github.com/ivanrj7j/Font
Documentation: https://github.com/ivanrj7j/Font/wiki
I am looking for feedback thank you!
/r/Python
https://redd.it/1ez8w02
Hey if you were ever wondering how you can load custom fonts in opencv, you cant do that natively, but i i developed a project that helps you load custom fonts in opencv python.
What My Project Does
My project allows you to render ttf files inside opencv and place text in images
Target Audience
Anyone who is working with text and computer vision
Comparison
From what ive seen there arent many other projects out there that does this, but some of similar projects i have seen are:
- https://pypi.org/project/a-cv2-putTrueTypeText/ this project get the job done, but have really messy code and doesnt have any documentation.
Repo: https://github.com/ivanrj7j/Font
Documentation: https://github.com/ivanrj7j/Font/wiki
I am looking for feedback thank you!
/r/Python
https://redd.it/1ez8w02
PyPI
a-cv2-putTrueTypeText
Like cv2.putText, but with TrueType Fonts (ttf)
Do Operating Systems Really Impact Web Development?
I've always used macOS throughout my web development journey, and I'm curious to know if the operating system you use has a significant impact on web development. Apart from personal preference, are there any major differences or benefits in using different operating systems like Windows or Linux for web development tasks?
Thanks!
/r/django
https://redd.it/1ezjhvn
I've always used macOS throughout my web development journey, and I'm curious to know if the operating system you use has a significant impact on web development. Apart from personal preference, are there any major differences or benefits in using different operating systems like Windows or Linux for web development tasks?
Thanks!
/r/django
https://redd.it/1ezjhvn
Reddit
From the django community on Reddit
Explore this post and more from the django community
Best way to manage sockets with django
Hey, what is the best way to manage sockets with Django? I tried using Daphne, but it didn’t work well for me. It was working fine for a while, but then I had trouble restarting the Daphne server, even after restoring the configuration to the last working state. I’ve had enough of Daphne. Are there any good alternatives?
/r/django
https://redd.it/1ezmm1y
Hey, what is the best way to manage sockets with Django? I tried using Daphne, but it didn’t work well for me. It was working fine for a while, but then I had trouble restarting the Daphne server, even after restoring the configuration to the last working state. I’ve had enough of Daphne. Are there any good alternatives?
/r/django
https://redd.it/1ezmm1y
Reddit
From the django community on Reddit
Explore this post and more from the django community
Celery is making me go insane
To preface this, I am using WSL2 Ubuntu in windows 11 for my development environment. I use visual studio code for my code editor.
I wanted to integrate Celery and Redis in a project I was working on, but I keep encountering this issue. Even if the task had already completed and is successful (based on Flower monitoring), when I try to retrieve the task result or task status in my flask app using AsyncResult and .get() it just loads infinitely and shows the status as PENDING and the result as NULL.
Now, I created a new stripped down flask app just to isolate the issue. And even with just a basic Flask app setup I am still experiencing it. I have been messing around with this for more than 48 hours now and it's driving me crazy.
Here are some code snippets from the stripped down flask app:
**\_\_init\_\_.py**
import os, time
from datetime import timedelta
from flask import Flask
from dotenv import load_dotenv
from .extensions import prepare_extensions, celery_init_app
load_dotenv()
app = Flask(__name__)
/r/flask
https://redd.it/1ez7nov
To preface this, I am using WSL2 Ubuntu in windows 11 for my development environment. I use visual studio code for my code editor.
I wanted to integrate Celery and Redis in a project I was working on, but I keep encountering this issue. Even if the task had already completed and is successful (based on Flower monitoring), when I try to retrieve the task result or task status in my flask app using AsyncResult and .get() it just loads infinitely and shows the status as PENDING and the result as NULL.
Now, I created a new stripped down flask app just to isolate the issue. And even with just a basic Flask app setup I am still experiencing it. I have been messing around with this for more than 48 hours now and it's driving me crazy.
Here are some code snippets from the stripped down flask app:
**\_\_init\_\_.py**
import os, time
from datetime import timedelta
from flask import Flask
from dotenv import load_dotenv
from .extensions import prepare_extensions, celery_init_app
load_dotenv()
app = Flask(__name__)
/r/flask
https://redd.it/1ez7nov
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1ezrsav
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1ezrsav
YouTube
Data Structures and Algorithms in Python - Full Course for Beginners
A beginner-friendly introduction to common data structures (linked lists, stacks, queues, graphs) and algorithms (search, sorting, recursion, dynamic programming) in Python. This course will help you prepare for coding interviews and assessments.
🔗 Course…
🔗 Course…
Tetris in Python - Tutorial
Hello friends!
I am a senior game developer and have prepared a video for beginners on how to make Tetris in Python.
Tetris in Python for Beginners | Programming Basic Concepts - YouTube
Enjoy!
/r/Python
https://redd.it/1ezjm77
Hello friends!
I am a senior game developer and have prepared a video for beginners on how to make Tetris in Python.
Tetris in Python for Beginners | Programming Basic Concepts - YouTube
Enjoy!
/r/Python
https://redd.it/1ezjm77
YouTube
Tetris in Python for Beginners | Programming Basic Concepts
In this video, we'll explore a Python-based implementation of the classic Tetris game. Our version of Tetris, built using the Pygame library, features smooth gameplay, and all Tetromino shapes.
Video provides comprehensive walkthrough of the code and design…
Video provides comprehensive walkthrough of the code and design…
why choose django?
im in north america, why would someone choose django over say springboot/dot net which many established companies use? or node/express whihc many startups use? what does python/django offer than would make anyone pick it over these fraemworks. also Should I learn flask or django or fastapi first?
/r/django
https://redd.it/1ezun01
im in north america, why would someone choose django over say springboot/dot net which many established companies use? or node/express whihc many startups use? what does python/django offer than would make anyone pick it over these fraemworks. also Should I learn flask or django or fastapi first?
/r/django
https://redd.it/1ezun01
Reddit
From the django community on Reddit
Explore this post and more from the django community
Hiring Remote Frontend Developer
Hi everyone, we have added a new job on our platform. If you are looking for a Remote Frontend Developer job please check the job link below.
Role - Remote Frontend Developer (Remote, Full Time)
Job Link - https://devloprr.com/jobs#283
/r/flask
https://redd.it/1ezxl8s
Hi everyone, we have added a new job on our platform. If you are looking for a Remote Frontend Developer job please check the job link below.
Role - Remote Frontend Developer (Remote, Full Time)
Job Link - https://devloprr.com/jobs#283
/r/flask
https://redd.it/1ezxl8s
Devloprr
Login - devloprr.com
devloprr.com is a new social media and collaboration platform created for Developers/programmers where developers can create account, blogs and post short content and long articles and earn money from Monetization as well.
Beautiful Pancakes - A simple way to implement file writing and opening on PyQt's QGraphicsScene
Hey all!
# I am a relatively new Python programmer with experience in PyQt blah blah blah...
Anyways, when I was creating QGraphicsScene test files, I wanted to figure out a way to write QGraphicsItems to files, and then read those files to open them. This really doesn't exist for PyQt/PySide, as I have only found ways to do that in C++ Qt.
*So thats why I just finished Beautiful Pancakes today, [here's the repository\](https://github.com/ktechhydle/beautiful_pancakes).*
# What my project does
Implements file reading and writing for QGraphicsScenes with full support for file dialogs. PySide6 and PyQt5 supported.
# Target audience
It's great for basic to complex scenes, but I will try to update it and eventually make it work for advanced and performance heavy scenes.
# Comparison
There are alternatives, but most are written in C++. I have yet to find a PyQt version.
All serialization/deserialization is done in Pickle.
I hope you enjoy.
/r/Python
https://redd.it/1eznfvj
Hey all!
# I am a relatively new Python programmer with experience in PyQt blah blah blah...
Anyways, when I was creating QGraphicsScene test files, I wanted to figure out a way to write QGraphicsItems to files, and then read those files to open them. This really doesn't exist for PyQt/PySide, as I have only found ways to do that in C++ Qt.
*So thats why I just finished Beautiful Pancakes today, [here's the repository\](https://github.com/ktechhydle/beautiful_pancakes).*
# What my project does
Implements file reading and writing for QGraphicsScenes with full support for file dialogs. PySide6 and PyQt5 supported.
# Target audience
It's great for basic to complex scenes, but I will try to update it and eventually make it work for advanced and performance heavy scenes.
# Comparison
There are alternatives, but most are written in C++. I have yet to find a PyQt version.
All serialization/deserialization is done in Pickle.
I hope you enjoy.
/r/Python
https://redd.it/1eznfvj
GitHub
GitHub - ktechhydle/beautiful_pancakes: The official QGraphicsScene custom file writing/reading framework of MP Software based…
The official QGraphicsScene custom file writing/reading framework of MP Software based on MPRUN's SceneManager class - ktechhydle/beautiful_pancakes
Django Full Course for Beginners
https://youtu.be/6whz7Ujfpw0?si=sw2A2G1VifKbdVBf
/r/djangolearning
https://redd.it/1ezhuec
https://youtu.be/6whz7Ujfpw0?si=sw2A2G1VifKbdVBf
/r/djangolearning
https://redd.it/1ezhuec
YouTube
Django Full Course for Beginners | Part 1
Django for Beginners | Dr. Charles Severance's Course (CC-BY)
Explore Django basics with Dr. Charles Severance (https://www.youtube.com/@ChuckSeverance). This course covers HTTP, Django models, forms, JavaScript, jQuery, AJAX, and more. Course resources…
Explore Django basics with Dr. Charles Severance (https://www.youtube.com/@ChuckSeverance). This course covers HTTP, Django models, forms, JavaScript, jQuery, AJAX, and more. Course resources…
vectorized CIE distance in basiccolormath 3.0
[ShayHill/basic\colormath: Simple color conversion and perceptual (DeltaE CIE 2000) difference (github.com)](https://github.com/ShayHill/basiccolormath)
# What My Project Does
Everything I wanted to salvage from the [python-colormath](https://github.com/gtaylor/python-colormath/tree/master) library ... with no numpy deps and 14x speed.
* Perceptual (DeltaE CIE 2000) and Euclidean distance between colors
* Conversion between RGB, HSV, HSL, and 8-bit hex colors
* Simple, one-way conversion to Lab
* Some convenience functions for RGB tuples and 8-bit hex color strings
# Target Audience
Meant for production.
# vectorized functions
If you have numpy installed in your env, basic\colormath will provide vectorized versions of most functions.
|Function|Vectorized Function|
|:-|:-|
|float_to_8bit_int|floats_to_uint8|
|get_delta_e|get_deltas_e|
|get_delta_e_hex|get_deltas_e_hex|
|get_delta_e_lab|get_deltas_e_lab|
|get_euclidean|get_euclideans|
|get_euclidean_hex|get_euclideans_hex|
|get_sqeuclidean|get_sqeuclideans|
|get_sqeuclidean_hex|get_sqeuclideans_hex|
|hex_to_rgb|hexs_to_rgb|
|hsl_to_rgb|hsls_to_rgb|
|hsv_to_rgb|hsvs_to_rgb|
|rgb_to_hex|rgbs_to_hex|
|rgb_to_hsl|rgbs_to_hsl|
|rgb_to_hsv|rgbs_to_hsv|
|rgb_to_lab|rgbs_to_lab|
# Comparison
Sadly, python-colormath has been abandoned, long enough now that a numpy function on which it relies has been not only deprecated but removed. If you still need to use python-colormath, patch
import numpy as np
import numpy.typing as npt
def patchasscalar(a: npt.NDArraynp.float64) -> float:
"""Alias for np.item(). Patch np.asscalar for colormath.
:param a: numpy array
:return: input array as scalar
"""
/r/Python
https://redd.it/1ezjfx2
[ShayHill/basic\colormath: Simple color conversion and perceptual (DeltaE CIE 2000) difference (github.com)](https://github.com/ShayHill/basiccolormath)
# What My Project Does
Everything I wanted to salvage from the [python-colormath](https://github.com/gtaylor/python-colormath/tree/master) library ... with no numpy deps and 14x speed.
* Perceptual (DeltaE CIE 2000) and Euclidean distance between colors
* Conversion between RGB, HSV, HSL, and 8-bit hex colors
* Simple, one-way conversion to Lab
* Some convenience functions for RGB tuples and 8-bit hex color strings
# Target Audience
Meant for production.
# vectorized functions
If you have numpy installed in your env, basic\colormath will provide vectorized versions of most functions.
|Function|Vectorized Function|
|:-|:-|
|float_to_8bit_int|floats_to_uint8|
|get_delta_e|get_deltas_e|
|get_delta_e_hex|get_deltas_e_hex|
|get_delta_e_lab|get_deltas_e_lab|
|get_euclidean|get_euclideans|
|get_euclidean_hex|get_euclideans_hex|
|get_sqeuclidean|get_sqeuclideans|
|get_sqeuclidean_hex|get_sqeuclideans_hex|
|hex_to_rgb|hexs_to_rgb|
|hsl_to_rgb|hsls_to_rgb|
|hsv_to_rgb|hsvs_to_rgb|
|rgb_to_hex|rgbs_to_hex|
|rgb_to_hsl|rgbs_to_hsl|
|rgb_to_hsv|rgbs_to_hsv|
|rgb_to_lab|rgbs_to_lab|
# Comparison
Sadly, python-colormath has been abandoned, long enough now that a numpy function on which it relies has been not only deprecated but removed. If you still need to use python-colormath, patch
np.asscalar:import numpy as np
import numpy.typing as npt
def patchasscalar(a: npt.NDArraynp.float64) -> float:
"""Alias for np.item(). Patch np.asscalar for colormath.
:param a: numpy array
:return: input array as scalar
"""
/r/Python
https://redd.it/1ezjfx2
No vote of non-confidence as a result of recent events
Here is the python.org discussion affirming the Steering Council's actions with respect to Tim Peters, David Mertz, and Karl Knechtel.
/r/Python
https://redd.it/1f00qdo
Here is the python.org discussion affirming the Steering Council's actions with respect to Tim Peters, David Mertz, and Karl Knechtel.
/r/Python
https://redd.it/1f00qdo
Discussions on Python.org
Calling for a Vote of No Confidence
According to the guidance in PEP 13, I am calling for a vote of no confidence for the entire council. This motion is based on their recent action of suspending a core developer in which they withheld critical information: The core developer’s name. Without…
Okrolearn a machine learning library which is for powerful analzys and training while being light
I’m excited to share a project I’ve been working on called okrolearn. Which was created to allow for powerful analazys features and neural network training capabilities my own ideas while being as light as possible.
Target audience:
Machine learning enjoyers, mobile machine learning coders, data scientists.
Comparison:
Compared to things like pytorch or tensorflow it has better macOS support, better cpu usage, is way more light weight, is designed for lighter models, has features that these don't have,
What my project does:
* Trainin machine learning models
* Deploy models
* Is light
* Have analazys features such as correlation heatmaps, plotting kmeans, histograms, plotting losses, paramaters, etc.
* Manage layers for models, convolutional, l regularisation, batch, instance, dropout normalisers
* Have gpu support, custom kernels on gpu
* Have experimental features such as suggesting architecture and layers based on temperature and input data
* Have better macOS support
* Have better cpu performance
Why did I create this for simpler models or models that had to be lightweight tensorflow or pytorch didn't do a good job, I also wanted this library to be mainly in python, also converting pytorch tensors back to numpy arrays for me to analyse them was to slow and annoying, there were also ideas that I wanted to implement on
/r/Python
https://redd.it/1f02lho
I’m excited to share a project I’ve been working on called okrolearn. Which was created to allow for powerful analazys features and neural network training capabilities my own ideas while being as light as possible.
Target audience:
Machine learning enjoyers, mobile machine learning coders, data scientists.
Comparison:
Compared to things like pytorch or tensorflow it has better macOS support, better cpu usage, is way more light weight, is designed for lighter models, has features that these don't have,
What my project does:
* Trainin machine learning models
* Deploy models
* Is light
* Have analazys features such as correlation heatmaps, plotting kmeans, histograms, plotting losses, paramaters, etc.
* Manage layers for models, convolutional, l regularisation, batch, instance, dropout normalisers
* Have gpu support, custom kernels on gpu
* Have experimental features such as suggesting architecture and layers based on temperature and input data
* Have better macOS support
* Have better cpu performance
Why did I create this for simpler models or models that had to be lightweight tensorflow or pytorch didn't do a good job, I also wanted this library to be mainly in python, also converting pytorch tensors back to numpy arrays for me to analyse them was to slow and annoying, there were also ideas that I wanted to implement on
/r/Python
https://redd.it/1f02lho
Reddit
From the Python community on Reddit: Okrolearn a machine learning library which is for powerful analzys and training while being…
Explore this post and more from the Python community
Make-like task runner in Python
I made a complete Make-like build tool & task runner in Python.
I wanted to adopt Make's scheme of rules, targets, recipes, and dependencies mainly because it's simple, intuitive, and widely used.
Inspiration for the project came from using doit for similar tasks, and growing tired of the confusing API. There are other similar tools out there, but what I wanted was a lightweight, easy-to-use, flexible, and well documented task runner & dependency resolver for a data processing pipeline in Python.
GitHub: https://github.com/gird-dev/gird
Simple example & comparison with doit: https://stackoverflow.com/a/77752742
Rule definition example: https://github.com/gird-dev/gird?tab=readme-ov-file#example-girdfilepy
/r/Python
https://redd.it/1f028a6
I made a complete Make-like build tool & task runner in Python.
I wanted to adopt Make's scheme of rules, targets, recipes, and dependencies mainly because it's simple, intuitive, and widely used.
Inspiration for the project came from using doit for similar tasks, and growing tired of the confusing API. There are other similar tools out there, but what I wanted was a lightweight, easy-to-use, flexible, and well documented task runner & dependency resolver for a data processing pipeline in Python.
GitHub: https://github.com/gird-dev/gird
Simple example & comparison with doit: https://stackoverflow.com/a/77752742
Rule definition example: https://github.com/gird-dev/gird?tab=readme-ov-file#example-girdfilepy
/r/Python
https://redd.it/1f028a6
pydoit.org
pydoit - Task Runner - Python CLI Tool
doit comes from the idea of bringing the power of build-tools to execute any kind of task
A Dead Simple Work Queue Using SQLite
I wrote an article on using sqlite3 to create an asynchronous task queue. I am hoping to share it in case anyone is interested and also to get some feedback. Please let me know what you think, and thank you! https://blog.tomhuibregtse.com/a-dead-simple-work-queue-using-sqlite
/r/Python
https://redd.it/1f06ft5
I wrote an article on using sqlite3 to create an asynchronous task queue. I am hoping to share it in case anyone is interested and also to get some feedback. Please let me know what you think, and thank you! https://blog.tomhuibregtse.com/a-dead-simple-work-queue-using-sqlite
/r/Python
https://redd.it/1f06ft5
Tom on Django
Simple SQLite Work Queue Implementation
Create a simple asynchronous task queue using SQLite. Includes example code and explainer. Get involved by sharing feedback and suggestions
Flask Full Tutorial For Beginners
https://youtu.be/klaRFL8UfNs?si=bopWI1sgWqTwJFT8
/r/flask
https://redd.it/1f09ctm
https://youtu.be/klaRFL8UfNs?si=bopWI1sgWqTwJFT8
/r/flask
https://redd.it/1f09ctm
YouTube
Flask Full Tutorial For Beginners
Learn Flask (For Beginners!)
Ever wanted to learn Flask? This course is created by https://www.youtube.com/@UCfgSHpMOBXqmtqufxgVp68g and released under CC BY, teaches you Flask is a micro web framework written in Python. It is classified as a microframework…
Ever wanted to learn Flask? This course is created by https://www.youtube.com/@UCfgSHpMOBXqmtqufxgVp68g and released under CC BY, teaches you Flask is a micro web framework written in Python. It is classified as a microframework…