Need help with Import csv to database, Export to csv, and updating a table
I have a simply Flask app connected with postgres of a company data. I have everything linked and have search features as well as a couple table views. I want to add a section to import new csv into the database, export the database as a csv as well as a button to update a certain table (consists of inserts, select, truncate, and re insert). Would anyone be able to help me with this please.
/r/flask
https://redd.it/1eynpy2
I have a simply Flask app connected with postgres of a company data. I have everything linked and have search features as well as a couple table views. I want to add a section to import new csv into the database, export the database as a csv as well as a button to update a certain table (consists of inserts, select, truncate, and re insert). Would anyone be able to help me with this please.
/r/flask
https://redd.it/1eynpy2
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
D What industry has the worst data?
Curious to hear - what industry do you think has the worst quality data for ML, consistently?
I'm not talking individual jobs that have no realistic and foreseeable ML applications like carpentry. I'm talking your larger industries, banking, pharma, telcos, tech (maybe a bit broad), agriculture, mining, etc, etc.
Who's the deepest in the sh**ter?
/r/MachineLearning
https://redd.it/1eyj7vq
Curious to hear - what industry do you think has the worst quality data for ML, consistently?
I'm not talking individual jobs that have no realistic and foreseeable ML applications like carpentry. I'm talking your larger industries, banking, pharma, telcos, tech (maybe a bit broad), agriculture, mining, etc, etc.
Who's the deepest in the sh**ter?
/r/MachineLearning
https://redd.it/1eyj7vq
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Master the python logging module
As a consultant I often find interesting topics that could warrent some knowledge sharing or educational content.
To satisfy my own hunger to share knowledge and be creative I've started to create videos with the purpose of free education for junior to medior devs.
My first video is about how the python logging module works and hopes to demystify some interesting behavior.
Hope you like it!
https://youtu.be/A3FkYRN9qog?si=89rAYSbpJQm0SfzP
/r/Python
https://redd.it/1eyn4n7
As a consultant I often find interesting topics that could warrent some knowledge sharing or educational content.
To satisfy my own hunger to share knowledge and be creative I've started to create videos with the purpose of free education for junior to medior devs.
My first video is about how the python logging module works and hopes to demystify some interesting behavior.
Hope you like it!
https://youtu.be/A3FkYRN9qog?si=89rAYSbpJQm0SfzP
/r/Python
https://redd.it/1eyn4n7
YouTube
Master the python logging module
This video gives insight into the python logging module. Master handers, filters, formatters, log hierarchy and log configuration.
A write-up is available at https://www.timnology.io/articles/python-logging
#python #code #tutorial #education
A write-up is available at https://www.timnology.io/articles/python-logging
#python #code #tutorial #education
deploying flask app
hey guys i made a small web app using flask. i want to buy a domain name and deploy it as a website so my friends can interact. what is a simple and easy to use hosting service? i'm talking upload and live since i'm not good with network knowledge. any suggestion will be greatly appreciated
/r/flask
https://redd.it/1eyqmvm
hey guys i made a small web app using flask. i want to buy a domain name and deploy it as a website so my friends can interact. what is a simple and easy to use hosting service? i'm talking upload and live since i'm not good with network knowledge. any suggestion will be greatly appreciated
/r/flask
https://redd.it/1eyqmvm
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Open-Source SocialStarter Project
Six months ago, I started working on SocialStarter, an open-source Django project aimed at creating a flexible template for building social networks. The project includes features like posts, likes, comments, user relationships, and django-allauth for authentication. Unfortunately, due to an increasingly demanding workload, I haven’t been able to continue its development.
However, I believe in the potential of this project and the value of open-source collaboration. If you're someone just starting out and looking for a project to contribute to and learn from, I encourage you to jump in. SocialStarter offers a solid foundation, and with the right contributions, it could evolve into something significant. That’s the beauty of open-source—together, we can take a small idea and grow it into something impactful. If you’re interested, feel free to explore the GitHub repo and contribute.
/r/django
https://redd.it/1eys5bl
Six months ago, I started working on SocialStarter, an open-source Django project aimed at creating a flexible template for building social networks. The project includes features like posts, likes, comments, user relationships, and django-allauth for authentication. Unfortunately, due to an increasingly demanding workload, I haven’t been able to continue its development.
However, I believe in the potential of this project and the value of open-source collaboration. If you're someone just starting out and looking for a project to contribute to and learn from, I encourage you to jump in. SocialStarter offers a solid foundation, and with the right contributions, it could evolve into something significant. That’s the beauty of open-source—together, we can take a small idea and grow it into something impactful. If you’re interested, feel free to explore the GitHub repo and contribute.
/r/django
https://redd.it/1eys5bl
GitHub
GitHub - eriktaveras/SocialStarter: SocialStarter is an open source project designed to serve as a template for the creation of…
SocialStarter is an open source project designed to serve as a template for the creation of social networks. - eriktaveras/SocialStarter
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1eyykga
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1eyykga
Redditinc
Reddit Rules
Reddit Rules - Reddit
ipydatagrid is now part of Project Jupyter
https://blog.jupyter.org/ipydatagrid-is-now-part-of-project-jupyter-3b3dfb877664
/r/IPython
https://redd.it/1eyv93s
https://blog.jupyter.org/ipydatagrid-is-now-part-of-project-jupyter-3b3dfb877664
/r/IPython
https://redd.it/1eyv93s
Medium
ipydatagrid is now part of Project Jupyter
Today, we are proud to announce that the ipydatagrid open source project has been incorporated into Project Jupyter as part of the Jupyter…
New Django Library: Django Action Trigger
It's been a while since I’ve shared something, but I’m excited to announce the release of a new Python library: Django Action Triggers.
This project is inspired by an older one I built a few years ago (django-email-signals). Django Action Triggers is a library that allows you to trigger actions based on database changes in your Django application.
It supports webhook integration and can send messages to brokers such as Kafka and RabbitMQ. You can easily set up actions to be triggered by specific events, all configurable through the front end.
What My Project Does
It allows you to configure triggers where a trigger is essentially watching out for some kind of database change. This is done using signals (post_save, pre_save, etc).
Alongside these triggers, you can configure some kind of action to take place. For now, this only will allow you to hit a webhook, or send a message to a message broker (RabbitMQ and Kafka supported).
Target Audience
At the moment, this is a toy project to get me comfortable write code that's supposed to be extensible again. However, would be nice if this eventually reaches production.
Comparison
From what I've seen so far, at the moment there isn't anything comparable unless you consider setting everything up
/r/django
https://redd.it/1eyyvt9
It's been a while since I’ve shared something, but I’m excited to announce the release of a new Python library: Django Action Triggers.
This project is inspired by an older one I built a few years ago (django-email-signals). Django Action Triggers is a library that allows you to trigger actions based on database changes in your Django application.
It supports webhook integration and can send messages to brokers such as Kafka and RabbitMQ. You can easily set up actions to be triggered by specific events, all configurable through the front end.
What My Project Does
It allows you to configure triggers where a trigger is essentially watching out for some kind of database change. This is done using signals (post_save, pre_save, etc).
Alongside these triggers, you can configure some kind of action to take place. For now, this only will allow you to hit a webhook, or send a message to a message broker (RabbitMQ and Kafka supported).
Target Audience
At the moment, this is a toy project to get me comfortable write code that's supposed to be extensible again. However, would be nice if this eventually reaches production.
Comparison
From what I've seen so far, at the moment there isn't anything comparable unless you consider setting everything up
/r/django
https://redd.it/1eyyvt9
Reddit
From the django community on Reddit: New Django Library: Django Action Trigger
Explore this post and more from the django community
New Django Library: Django Action Triggers
It's been a while since I’ve shared something, but I’m excited to announce the release of a new Python library: Django Action Triggers.
This project is inspired by an older one I built a few years ago (django-email-signals). Django Action Triggers is a library that allows you to trigger actions based on database changes in your Django application.
It supports webhook integration and can send messages to brokers such as Kafka and RabbitMQ. You can easily set up actions to be triggered by specific events, all configurable through the front end.
What My Project Does
It allows you to configure triggers where a trigger is essentially watching out for some kind of database change. This is done using signals (post_save, pre_save, etc).
Alongside these triggers, you can configure some kind of action to take place. For now, this only will allow you to hit a webhook, or send a message to a message broker (RabbitMQ and Kafka supported).
Target Audience
At the moment, this is a toy project to get me comfortable write code that's supposed to be extensible again. However, would be nice if this eventually reaches production.
Comparison
From what I've seen so far, at the moment there isn't anything comparable unless you consider setting everything up
/r/Python
https://redd.it/1eyz2pp
It's been a while since I’ve shared something, but I’m excited to announce the release of a new Python library: Django Action Triggers.
This project is inspired by an older one I built a few years ago (django-email-signals). Django Action Triggers is a library that allows you to trigger actions based on database changes in your Django application.
It supports webhook integration and can send messages to brokers such as Kafka and RabbitMQ. You can easily set up actions to be triggered by specific events, all configurable through the front end.
What My Project Does
It allows you to configure triggers where a trigger is essentially watching out for some kind of database change. This is done using signals (post_save, pre_save, etc).
Alongside these triggers, you can configure some kind of action to take place. For now, this only will allow you to hit a webhook, or send a message to a message broker (RabbitMQ and Kafka supported).
Target Audience
At the moment, this is a toy project to get me comfortable write code that's supposed to be extensible again. However, would be nice if this eventually reaches production.
Comparison
From what I've seen so far, at the moment there isn't anything comparable unless you consider setting everything up
/r/Python
https://redd.it/1eyz2pp
Reddit
From the Python community on Reddit: New Django Library: Django Action Triggers
Explore this post and more from the Python community
Would a Django-Next.js-JWT Authentication Starter Kit be Useful?
I've been toying with the idea of putting together a Django-Next.js-JWT integration specifically designed for handling authentication. Here’s what I’m thinking: using Django Rest Framework (DRF) along with simple_jwt for the backend, complemented by a custom admin panel using Jazzmin. On the frontend, Next.js would be used purely for consuming this setup, focusing solely on authentication boilerplate.
However, I’m curious about your thoughts on this. Given the existence of NextAuth, I wonder if this effort might be redundant. Do you think there's still value in having a dedicated Django-Next.js-JWT starter kit for those who prefer a more tailored approach or need specific backend customization?
I'd love to hear what you think about this idea. Do you think it's worth the effort, or should I reconsider? Your thoughts would really help me out!
/r/django
https://redd.it/1ez5a82
I've been toying with the idea of putting together a Django-Next.js-JWT integration specifically designed for handling authentication. Here’s what I’m thinking: using Django Rest Framework (DRF) along with simple_jwt for the backend, complemented by a custom admin panel using Jazzmin. On the frontend, Next.js would be used purely for consuming this setup, focusing solely on authentication boilerplate.
However, I’m curious about your thoughts on this. Given the existence of NextAuth, I wonder if this effort might be redundant. Do you think there's still value in having a dedicated Django-Next.js-JWT starter kit for those who prefer a more tailored approach or need specific backend customization?
I'd love to hear what you think about this idea. Do you think it's worth the effort, or should I reconsider? Your thoughts would really help me out!
/r/django
https://redd.it/1ez5a82
Reddit
From the django community on Reddit
Explore this post and more from the django community
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…