I've developed a library for send metrics to zabbix asynchronously
I have been using zabbix for monitoring a lot of metrics in my work, none of the most popular zabbix were capable of doing async tasks, so I've developed some simple package capable of doing this.
Tests, examples and how-tos can be found here: [https://github.com/gustavofbreunig/zabbix-sender-async](https://github.com/gustavofbreunig/zabbix-sender-async)
**What My Project Does**
Send zabbix sender messages using asyncio tasks.
**Target Audience**
SysAdmins who use Zabbix to monitor a large number of metrics.
**Comparison**
Instead of doing traditional way, using these abandoned library: [https://github.com/adubkov/py-zabbix](https://github.com/adubkov/py-zabbix)
from pyzabbix import ZabbixMetric, ZabbixSender
# Send metrics to zabbix trapper
packet = [
ZabbixMetric('hostname1', 'test[cpu_usage]', 2),
ZabbixMetric('hostname1', 'test[system_status]', "OK"),
ZabbixMetric('hostname1', 'test[disk_io]', '0.1'),
ZabbixMetric('hostname1', 'test[cpu_usage]', 20, 1411598020),
]
result = ZabbixSender(use_config=True).send(packet)
You can do this:
async def sendmetrics():
sender = AsyncSender('localhost', 10051)
metric = ItemData(host='hostname', key='test.metric.text', value='test package import')
result = await sender.send(metric)
/r/Python
https://redd.it/1cpw67l
I have been using zabbix for monitoring a lot of metrics in my work, none of the most popular zabbix were capable of doing async tasks, so I've developed some simple package capable of doing this.
Tests, examples and how-tos can be found here: [https://github.com/gustavofbreunig/zabbix-sender-async](https://github.com/gustavofbreunig/zabbix-sender-async)
**What My Project Does**
Send zabbix sender messages using asyncio tasks.
**Target Audience**
SysAdmins who use Zabbix to monitor a large number of metrics.
**Comparison**
Instead of doing traditional way, using these abandoned library: [https://github.com/adubkov/py-zabbix](https://github.com/adubkov/py-zabbix)
from pyzabbix import ZabbixMetric, ZabbixSender
# Send metrics to zabbix trapper
packet = [
ZabbixMetric('hostname1', 'test[cpu_usage]', 2),
ZabbixMetric('hostname1', 'test[system_status]', "OK"),
ZabbixMetric('hostname1', 'test[disk_io]', '0.1'),
ZabbixMetric('hostname1', 'test[cpu_usage]', 20, 1411598020),
]
result = ZabbixSender(use_config=True).send(packet)
You can do this:
async def sendmetrics():
sender = AsyncSender('localhost', 10051)
metric = ItemData(host='hostname', key='test.metric.text', value='test package import')
result = await sender.send(metric)
/r/Python
https://redd.it/1cpw67l
GitHub
GitHub - gustavofbreunig/zabbix-sender-async: Send metrics to zabbix using the async features of Python
Send metrics to zabbix using the async features of Python - gustavofbreunig/zabbix-sender-async
Python doc problem
Each item in turn is assigned to the target list using the standard rules for assignments (see Assignment statements), and then the suite is executed.
This is from python doc.'Assignment statements' is underlined, Why there is no reaction after I click it? How could I get more explanation of Assignment
statements?
/r/Python
https://redd.it/1cpym7m
Each item in turn is assigned to the target list using the standard rules for assignments (see Assignment statements), and then the suite is executed.
This is from python doc.'Assignment statements' is underlined, Why there is no reaction after I click it? How could I get more explanation of Assignment
statements?
/r/Python
https://redd.it/1cpym7m
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Reviewing Dataframe Changes? Looking for Your Preferred Methods!
After playing around with a dataframe—applying filters or other transformations—I'm curious about your methods for reviewing the changes.
In VS Code, the variable explorer is quite handy for a quick look at the modified dataframe. Alternatively, when working in a Jupyter notebook within VS Code, exporting the data to an Excel file provides a detailed view and allows for an easy deep dive into the results. What are your preferred practices for ensuring your data adjustments are precisely what you intended?
/r/Python
https://redd.it/1cpyem9
After playing around with a dataframe—applying filters or other transformations—I'm curious about your methods for reviewing the changes.
In VS Code, the variable explorer is quite handy for a quick look at the modified dataframe. Alternatively, when working in a Jupyter notebook within VS Code, exporting the data to an Excel file provides a detailed view and allows for an easy deep dive into the results. What are your preferred practices for ensuring your data adjustments are precisely what you intended?
/r/Python
https://redd.it/1cpyem9
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Feeling at a loss with all these transformer models from Hugging Face in NLP "Discussion"
"[Discussion\]"
Recently I've started to work on NLP projects, and currently working on this kaggle competition "essay scoring classification problem". I was looking at others codes, and decided on working with three technique- one with machine learning model, one with a huggingface transformer and one with facebook's fasttext (heard they are good at getting the outlier or infrequent synonymous words).
While fasttext has few documentation and code sources; on the contrary, I am feeling lost by seeing ALL these transformer pretrain models from huggingface for text classification!
Which model should I choose? At first my selection criteria was based on the autotokenization method provided by the those transformers. But now I've been thinking what other parameters should I look at (I am working with basic tokenization from NLTK for the time being). I mean let's just consider computer vision. If I want to develop a face recognition system, at first YOLO's version will be the typical approach, if I have very few samples of images few shot learning can be given a chance.
But what about text? I have nearly 17000 samples consisting of approximately 3,55,00,000 words in total to train. I was thinking of
/r/MachineLearning
https://redd.it/1cq017f
"[Discussion\]"
Recently I've started to work on NLP projects, and currently working on this kaggle competition "essay scoring classification problem". I was looking at others codes, and decided on working with three technique- one with machine learning model, one with a huggingface transformer and one with facebook's fasttext (heard they are good at getting the outlier or infrequent synonymous words).
While fasttext has few documentation and code sources; on the contrary, I am feeling lost by seeing ALL these transformer pretrain models from huggingface for text classification!
Which model should I choose? At first my selection criteria was based on the autotokenization method provided by the those transformers. But now I've been thinking what other parameters should I look at (I am working with basic tokenization from NLTK for the time being). I mean let's just consider computer vision. If I want to develop a face recognition system, at first YOLO's version will be the typical approach, if I have very few samples of images few shot learning can be given a chance.
But what about text? I have nearly 17000 samples consisting of approximately 3,55,00,000 words in total to train. I was thinking of
/r/MachineLearning
https://redd.it/1cq017f
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
I got this far with my django web app and apache with modwsgi, could use some help troubleshooting
I've been working on this web app I'm playing with and I finally got mod\wsgi to work and I got the app on screen but I don't think the packages are functioning properly.
Here's a screen shot of what I have on screen now
Thank you
https://preview.redd.it/z9p3rpy0nwzc1.png?width=2085&format=png&auto=webp&s=0e7ec7a00a5c83337fec706e56e03016bd60e908
not very useful web app
/r/djangolearning
https://redd.it/1cpxcbf
I've been working on this web app I'm playing with and I finally got mod\wsgi to work and I got the app on screen but I don't think the packages are functioning properly.
Here's a screen shot of what I have on screen now
Thank you
https://preview.redd.it/z9p3rpy0nwzc1.png?width=2085&format=png&auto=webp&s=0e7ec7a00a5c83337fec706e56e03016bd60e908
not very useful web app
/r/djangolearning
https://redd.it/1cpxcbf
Sunday Daily Thread: What's everyone working on this week?
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1cputlh
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1cputlh
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
I shared a crash course about Polars library of Python (Great library for big data) on YouTube
Hello everyone, I created a crash course of Polars library of Python and talked about data types in Polars, reading and writing operations, file handling, and powerful data manipulation techniques. I am leaving the link, have a great day!
https://www.youtube.com/watch?v=aiHSMYvoqYE&list=PLTsu3dft3CWiow7L7WrCd27ohlra\_5PGH&index=7&t=8s
/r/Python
https://redd.it/1cq68z6
Hello everyone, I created a crash course of Polars library of Python and talked about data types in Polars, reading and writing operations, file handling, and powerful data manipulation techniques. I am leaving the link, have a great day!
https://www.youtube.com/watch?v=aiHSMYvoqYE&list=PLTsu3dft3CWiow7L7WrCd27ohlra\_5PGH&index=7&t=8s
/r/Python
https://redd.it/1cq68z6
YouTube
Polars Crash Course [2024] - Python's Library of Big Data Analytics
Welcome to this comprehensive one-video tutorial on Polars, the powerful Python library for data manipulation and analysis. In this crash course, we will tak...
Manipulating image before uploading to database
I’m new to django and i need to figure out how to manipulate image before uploading to db
By manipulating i mean drawing on it by pil and getting face encoding using face_recoginition
/r/Python
https://redd.it/1cq88gy
I’m new to django and i need to figure out how to manipulate image before uploading to db
By manipulating i mean drawing on it by pil and getting face encoding using face_recoginition
/r/Python
https://redd.it/1cq88gy
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Library for automatic Cython 3.0 code annotations generation.
Hi everybody,
over the last year I've been developing a library that adds some Cython 3.0 annotations to existing python code.
What My Project Does:
For example if it sees a
It actually uses the built-in
Target Audience:
It is a side project I made mainly for fun. I don't know if it can be of interest to anybody, or if it could have some potential utility.
Comparison:
I did not find anything similar. There are a lot of very cool projects like
The link to the repository is here:
https://github.com/nucccc/markarth
/r/Python
https://redd.it/1cpqh34
Hi everybody,
over the last year I've been developing a library that adds some Cython 3.0 annotations to existing python code.
What My Project Does:
For example if it sees a
for i in range(): in a function it recognizes i as an integer and adds a i = cython.declare(cython.int)line at the beginning of the function.It actually uses the built-in
ast module under the hood for parsing, I found it a super useful library!Target Audience:
It is a side project I made mainly for fun. I don't know if it can be of interest to anybody, or if it could have some potential utility.
Comparison:
I did not find anything similar. There are a lot of very cool projects like
mypyc for example, but nothing that does this tiny little code generation specific to Cython.The link to the repository is here:
https://github.com/nucccc/markarth
/r/Python
https://redd.it/1cpqh34
GitHub
GitHub - nucccc/markarth: code conversion from python to cython
code conversion from python to cython. Contribute to nucccc/markarth development by creating an account on GitHub.
How do I add a new entry to my many to many related table in Django?
I have two models Course and Educators. Course has 3 fields course\_name, course\_educators and course\_past\_educators which link Educators to Courses by many to many. I want to write a function so that whenever a new entry is added to course\_educators that entry will be copied over to course\_past\_educators.
#models.py
#code for Educators model
class Educators(models.Model):
educator_name=models.CharField(max_length=20,default=None)
educator_img = models.ImageField(upload_to='educators_img',default=None)
#code for Courses model
class Course(models.Model):
course_name = models.CharField(max_length=100)
course_educators=models.ManyToManyField(Educators, related_name='current_educators', default=None, blank=True)
course_past_educators=models.ManyToManyField(Educators, related_name='past_educators', default=None, blank=True)
#views.py
#This is the function I wrote so that entries into course_past_educators are automatically added when course_educators is added with another entry.
u/receiver(m2m_changed, sender=Course.course_educators.through)
def create_past_educator_on_add(sender, instance, action, reverse, model, pk_set, **kwargs):
if action == 'post_add' and reverse is False:
/r/djangolearning
https://redd.it/1cq2j42
I have two models Course and Educators. Course has 3 fields course\_name, course\_educators and course\_past\_educators which link Educators to Courses by many to many. I want to write a function so that whenever a new entry is added to course\_educators that entry will be copied over to course\_past\_educators.
#models.py
#code for Educators model
class Educators(models.Model):
educator_name=models.CharField(max_length=20,default=None)
educator_img = models.ImageField(upload_to='educators_img',default=None)
#code for Courses model
class Course(models.Model):
course_name = models.CharField(max_length=100)
course_educators=models.ManyToManyField(Educators, related_name='current_educators', default=None, blank=True)
course_past_educators=models.ManyToManyField(Educators, related_name='past_educators', default=None, blank=True)
#views.py
#This is the function I wrote so that entries into course_past_educators are automatically added when course_educators is added with another entry.
u/receiver(m2m_changed, sender=Course.course_educators.through)
def create_past_educator_on_add(sender, instance, action, reverse, model, pk_set, **kwargs):
if action == 'post_add' and reverse is False:
/r/djangolearning
https://redd.it/1cq2j42
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Advice for Migrating from Django 2.0 to Django 5.x
Hey everyone,
I'm looking for some guidance on migrating my Django project from version 2.0 to the latest, version 5.x. Currently, my project is running on Django 2.0 with Python 3.6, but I'm eager to leverage the advancements and security enhancements offered by Django 5.x while upgrading to Python 3.12.
My project is of moderate sized and relies on around 30-40 Python packages for various functionalities. Surprisingly, there are no tests written, which is something I plan to rectify as part of this migration process.
Also it's been a long time I have touched Django & Python, so I need to brush up on my skills as well.
In my initial attempts at migration, I encountered login issues and noticed that web sockets were terminating before sending data. These challenges are making the migration process trickier than expected.
Could you please share any learning resources, tutorials, or tips that could help me learn the ropes of Django 5.x and Python 3.12 efficiently? Whether it's online courses, documentation guides, or community forums, any suggestions would be immensely valuable.
I'd greatly appreciate any advice, tips, or resources you could share to help smooth out this migration process. Specifically,
/r/django
https://redd.it/1cq68hq
Hey everyone,
I'm looking for some guidance on migrating my Django project from version 2.0 to the latest, version 5.x. Currently, my project is running on Django 2.0 with Python 3.6, but I'm eager to leverage the advancements and security enhancements offered by Django 5.x while upgrading to Python 3.12.
My project is of moderate sized and relies on around 30-40 Python packages for various functionalities. Surprisingly, there are no tests written, which is something I plan to rectify as part of this migration process.
Also it's been a long time I have touched Django & Python, so I need to brush up on my skills as well.
In my initial attempts at migration, I encountered login issues and noticed that web sockets were terminating before sending data. These challenges are making the migration process trickier than expected.
Could you please share any learning resources, tutorials, or tips that could help me learn the ropes of Django 5.x and Python 3.12 efficiently? Whether it's online courses, documentation guides, or community forums, any suggestions would be immensely valuable.
I'd greatly appreciate any advice, tips, or resources you could share to help smooth out this migration process. Specifically,
/r/django
https://redd.it/1cq68hq
Reddit
From the django community on Reddit
Explore this post and more from the django community
HTML 5,Python,Flask Framework All In One Complete Course | Free Udemy Course For limited enrolls
https://www.webhelperapp.com/html-5pythonflask-framework-all-in-one-complete-course/
/r/flask
https://redd.it/1cq8nw3
https://www.webhelperapp.com/html-5pythonflask-framework-all-in-one-complete-course/
/r/flask
https://redd.it/1cq8nw3
Free Udemy Coupons
HTML 5,Python,Flask Framework All In One Complete Course
Learn HTML 5 with Python From Beginner To Advanced Level, Flask Framework From Beginning,
Djangos AllAuth password leak?
I'm using django allauths library to handle my authentication on my site, i noticed a peculiarity though when I checked the logs. its seems thats the library is printing out the login request details like the example below:
i'm not entirely sure i can correct this so please let me know.
custom user uses AbstractUser
Login url is default AllAuth URL
- doesnt seem to occur in registration, havent checked from password changes etc
/r/django
https://redd.it/1cqlhwm
I'm using django allauths library to handle my authentication on my site, i noticed a peculiarity though when I checked the logs. its seems thats the library is printing out the login request details like the example below:
<QueryDict: {'csrfmiddlewaretoken': ['<token>'], 'login': ['email'], 'password': ['password']}>i dont have anything on my side printing out this intentionally so it must be from the library afaik, im concerned as this could cause a large problem for websites in production using this library.i'm not entirely sure i can correct this so please let me know.
custom user uses AbstractUser
Login url is default AllAuth URL
- doesnt seem to occur in registration, havent checked from password changes etc
/r/django
https://redd.it/1cqlhwm
Reddit
From the django community on Reddit
Explore this post and more from the django community
Looking For a Solution to manage Repeating Tasks for Users in Flask Web App
Context:
I'm running a Flask-based SaaS web app (server A), featuring a page where users can send request to an endpoint on server by clicking "START", the endpoint on server will fetch data from external APIs. The JS on the page will send request to the endpoint repeatedly every 3 seconds.They can also halt this process by clicking "STOP".
Requirements:
I need a solution that allows the server to continuously fetch data from external APIs for users without requiring them to keep the browser or app open until they decide to stop the process manually or the server initiates the stop.
Current Solutions and Challenges:
1. Sequential User Loop: Initially, I implemented a loop through all active users who clicked "START" to send requests to external APIs. However, this method faces the challenge of users' requests not being synchronized. Each request takes approximately 3 seconds to process. Consequently, users who initiate the process later have to wait for the previous requests to finish. For instance, if there are 100 users, the 100th user would need to wait at least 300 seconds before their task begins processing.
2. Celery-Beat/Redis Approach: To mitigate the synchronization issue, I created an endpoint on server A,
/r/flask
https://redd.it/1cqkucr
Context:
I'm running a Flask-based SaaS web app (server A), featuring a page where users can send request to an endpoint on server by clicking "START", the endpoint on server will fetch data from external APIs. The JS on the page will send request to the endpoint repeatedly every 3 seconds.They can also halt this process by clicking "STOP".
Requirements:
I need a solution that allows the server to continuously fetch data from external APIs for users without requiring them to keep the browser or app open until they decide to stop the process manually or the server initiates the stop.
Current Solutions and Challenges:
1. Sequential User Loop: Initially, I implemented a loop through all active users who clicked "START" to send requests to external APIs. However, this method faces the challenge of users' requests not being synchronized. Each request takes approximately 3 seconds to process. Consequently, users who initiate the process later have to wait for the previous requests to finish. For instance, if there are 100 users, the 100th user would need to wait at least 300 seconds before their task begins processing.
2. Celery-Beat/Redis Approach: To mitigate the synchronization issue, I created an endpoint on server A,
/r/flask
https://redd.it/1cqkucr
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Unused import changes Django SQL
I'm seeing a weird Django issue and I'm hoping someone here can point me in the right direction. One of my models has an unused import. If I remove that import, I start getting errors that a table cannot be truncated because of a foreign key (there is a foreign key relationship between the 2 tables). Restoring the "unused" import fixes the error.
Any ideas how to fix or debug this?
Thanks
/r/django
https://redd.it/1cqmxyy
I'm seeing a weird Django issue and I'm hoping someone here can point me in the right direction. One of my models has an unused import. If I remove that import, I start getting errors that a table cannot be truncated because of a foreign key (there is a foreign key relationship between the 2 tables). Restoring the "unused" import fixes the error.
Any ideas how to fix or debug this?
Thanks
/r/django
https://redd.it/1cqmxyy
Reddit
From the django community on Reddit
Explore this post and more from the django community
HTMX - Pagination, issue when paginating search results.
Hello, I am new to HTMX, I am using it in a Django project, in which I have a ListView that has pagination. The pagination works well with HTMX, but I have a problem when the queryset is filtered by the query variable sent from the html. When pressing the Submit button, it correctly returns the filtered list, and I can see the correct number of pages, but when changing to the second page this filter is lost, that is, it returns the complete object\_list to me. Can someone help me understand what I am doing wrong?
________________________________________________________________________
views.py
class TattooGalleryListView(ListView):
model = models.Tattoo
paginate_by= 12
def get_template_names(self):
if self.request.htmx:
return ["portfolio/partials/gallery.html"]
return ["portfolio/tattoo_gallery.html"]
def get_queryset(self):
if self.request.GET.get("consult"):
/r/django
https://redd.it/1cqnzbh
Hello, I am new to HTMX, I am using it in a Django project, in which I have a ListView that has pagination. The pagination works well with HTMX, but I have a problem when the queryset is filtered by the query variable sent from the html. When pressing the Submit button, it correctly returns the filtered list, and I can see the correct number of pages, but when changing to the second page this filter is lost, that is, it returns the complete object\_list to me. Can someone help me understand what I am doing wrong?
________________________________________________________________________
views.py
class TattooGalleryListView(ListView):
model = models.Tattoo
paginate_by= 12
def get_template_names(self):
if self.request.htmx:
return ["portfolio/partials/gallery.html"]
return ["portfolio/tattoo_gallery.html"]
def get_queryset(self):
if self.request.GET.get("consult"):
/r/django
https://redd.it/1cqnzbh
Reddit
From the django community on Reddit
Explore this post and more from the django community
Monday Daily Thread: Project ideas!
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1cqlqq7
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1cqlqq7
YouTube
Build & Integrate your own custom chatbot to a website (Python & JavaScript)
In this fun project you learn how to build a custom chatbot in Python and then integrate this to a website using Flask and JavaScript.
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
error deploying to railway
Hello everyone,
i have a DRF project which i added it to a container along with redis,postgres and nginx,
all containerized and when i deploy my project to railway it detect the dockerfile automatically but i get this error
>`Error: '${PORT}' is not a valid port number.`
in railway logs , it keep repeating the server crashes,
been 4 days trying to solve this,
im trying to deploy my project as a container which i have .
here is my config files:
DockerFile
...
RUN python manage.py collectstatic --no-input
# Set the command to run the Django development server
CMD ["gunicorn", "--bind", ":${PORT}","--workers","4", "project.wsgi" , "python manage.py migrate"]
**":${PORT}" >> tried both 0.0.0.0:${PORT} and 0.0.0.0:$PORT same error**
docker compose:
...
djangoapp:
build: .
command: gunicorn project.wsgi:application --bind :${PORT}
volumes:
- xxxxx
- xxxxx
environment:
- PORT
expose:
- $PORT
env_file:
/r/django
https://redd.it/1cqt96f
Hello everyone,
i have a DRF project which i added it to a container along with redis,postgres and nginx,
all containerized and when i deploy my project to railway it detect the dockerfile automatically but i get this error
>`Error: '${PORT}' is not a valid port number.`
in railway logs , it keep repeating the server crashes,
been 4 days trying to solve this,
im trying to deploy my project as a container which i have .
here is my config files:
DockerFile
...
RUN python manage.py collectstatic --no-input
# Set the command to run the Django development server
CMD ["gunicorn", "--bind", ":${PORT}","--workers","4", "project.wsgi" , "python manage.py migrate"]
**":${PORT}" >> tried both 0.0.0.0:${PORT} and 0.0.0.0:$PORT same error**
docker compose:
...
djangoapp:
build: .
command: gunicorn project.wsgi:application --bind :${PORT}
volumes:
- xxxxx
- xxxxx
environment:
- PORT
expose:
- $PORT
env_file:
/r/django
https://redd.it/1cqt96f
Reddit
From the django community on Reddit
Explore this post and more from the django community
Python & Django REST API Bootcamp - Build A Python Web API | Free Udemy Course for limited enrolls
https://www.webhelperapp.com/python-django-rest-api-bootcamp-build-a-python-web-api-2/
/r/djangolearning
https://redd.it/1cppg41
https://www.webhelperapp.com/python-django-rest-api-bootcamp-build-a-python-web-api-2/
/r/djangolearning
https://redd.it/1cppg41
Free Udemy Coupons
Python & Django REST API Bootcamp – Build A Python Web API
Do you want to build a complete Python RESTful API that is not only secure and stable but also deployed to a production ready environment ready to serve