PyQt best option for commercial use?
I'm looking to possibly develop an app that will run on a Linux Desktop, specifically Ubuntu, and the latest OS X. The UI and performance are very important. Is PyQt my best option?
/r/Python
https://redd.it/1g6brra
I'm looking to possibly develop an app that will run on a Linux Desktop, specifically Ubuntu, and the latest OS X. The UI and performance are very important. Is PyQt my best option?
/r/Python
https://redd.it/1g6brra
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Lost my sqlite database😱. After that I wrote a backup noscript that runs once a day
This is just a warning to all you guys, remember to backup your database cause shit happens. Now I rest easy cause I wrote a backup noscript that runs automatically once a day just to backup my db, I know its going to fill up my space very soon and raise my costs but I do think its worth it, by the way the project I lost the db for was still a new project so there was not a lot of records in there anyway so not all hope is lost
/r/django
https://redd.it/1g6l5dv
This is just a warning to all you guys, remember to backup your database cause shit happens. Now I rest easy cause I wrote a backup noscript that runs automatically once a day just to backup my db, I know its going to fill up my space very soon and raise my costs but I do think its worth it, by the way the project I lost the db for was still a new project so there was not a lot of records in there anyway so not all hope is lost
/r/django
https://redd.it/1g6l5dv
Reddit
From the django community on Reddit
Explore this post and more from the django 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/1g6wbs0
# 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/1g6wbs0
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…
stick or move to another
So i made an inventory management system in Django for my internship project.
i chose Django for several reasons:
- i wanted to learn python and discover how to do weB apps with it
- i wanted to be unique because all of my colleagues used PHP (Laravel)
- Django has pretty much everything compared to Flask
- ...
Django is the first backend web framework i ever tried.
About the experience..., it was not that good i don't why.
Is it bc the result code IT WAS LITERALLY A MESS
i could not fix bugs or add features without breaking something
and then rollback to the previous version.
and sometimes i wanted to something simple but Django make it hard
like custom forms and how to integrate Django with CSS frameworks make it
an absolute MESS.
what i am missing in my knowledge to have a great experience with Django?
do i miss something in Django or in web/dev itself?
did you have some issues too with Django at your early days learning it?
should i move to something else like Laravel or Spring (ik some Java and PHP)
or just stick with Django?
bc i feel like it is not for me.
project repo
i hope i explained the problem.
thank you in advance.
/r/django
https://redd.it/1g6q4h5
So i made an inventory management system in Django for my internship project.
i chose Django for several reasons:
- i wanted to learn python and discover how to do weB apps with it
- i wanted to be unique because all of my colleagues used PHP (Laravel)
- Django has pretty much everything compared to Flask
- ...
Django is the first backend web framework i ever tried.
About the experience..., it was not that good i don't why.
Is it bc the result code IT WAS LITERALLY A MESS
i could not fix bugs or add features without breaking something
and then rollback to the previous version.
and sometimes i wanted to something simple but Django make it hard
like custom forms and how to integrate Django with CSS frameworks make it
an absolute MESS.
what i am missing in my knowledge to have a great experience with Django?
do i miss something in Django or in web/dev itself?
did you have some issues too with Django at your early days learning it?
should i move to something else like Laravel or Spring (ik some Java and PHP)
or just stick with Django?
bc i feel like it is not for me.
project repo
i hope i explained the problem.
thank you in advance.
/r/django
https://redd.it/1g6q4h5
GitHub
GitHub - karimelkh/inventory_ms
Contribute to karimelkh/inventory_ms development by creating an account on GitHub.
Aid with using anaconda to load fashionmnist
Hello could someone please step out how from the anaconda.navigator to load fashionmnist (which is on a laptop that’s never run it and may be missing things needed)
/r/Python
https://redd.it/1g6wjqj
Hello could someone please step out how from the anaconda.navigator to load fashionmnist (which is on a laptop that’s never run it and may be missing things needed)
/r/Python
https://redd.it/1g6wjqj
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Best resources to learn
Having always use node js for my backends, I’m trying to widen my skills. What are the go to resources to learn Django?
/r/djangolearning
https://redd.it/1g6ull9
Having always use node js for my backends, I’m trying to widen my skills. What are the go to resources to learn Django?
/r/djangolearning
https://redd.it/1g6ull9
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Django SQL Lite DB Built-in Size !?
I want to create a django app but for now i use a noscript on my PC the fetch some data and all the final results are stored into a json that can reach size of 600 to 700 MBs.... Can the DB store this size ? I have a hosting provider where to put the app on and unfortunate, my current plan doesn't have access to bigger DBs, only some that can store up to 350 MBs...
/r/django
https://redd.it/1g7022w
I want to create a django app but for now i use a noscript on my PC the fetch some data and all the final results are stored into a json that can reach size of 600 to 700 MBs.... Can the DB store this size ? I have a hosting provider where to put the app on and unfortunate, my current plan doesn't have access to bigger DBs, only some that can store up to 350 MBs...
/r/django
https://redd.it/1g7022w
Reddit
From the django community on Reddit
Explore this post and more from the django community
filefrag - library and executable to explore file fragmentation
Spent last night making this, added some turd polish today and added it to pypi.
## 🤷 why/what?
I wanted to get file fragmentation info so I can punch holes in files, aligned with memory pages. But I really didn't want to parse
It only works on Linux as it depends on the FIE interface, but pull requests welcome etc.
## ⚒️ how?
See the video for a demo including installing from source, but you can install with pip:
Then you can run
To use the library, just call
⛓️💥 inspect fragmentation
🔍 find out where data is on your physical drive
🟰 compare extents between paths
📔 use them as dict keys
🕳️ check files for holes, like before and after hole punching
✅verify your XFS deduplication strategy, write your own stats tool
💩 dump file layouts to json (`print(f"{filemap:j}"`)
⚠️ break your disk
/r/Python
https://redd.it/1g70lqb
Spent last night making this, added some turd polish today and added it to pypi.
## 🤷 why/what?
I wanted to get file fragmentation info so I can punch holes in files, aligned with memory pages. But I really didn't want to parse
filefrag's outputs, so I wrote a python version with a friendly API and a command line that can produce json.It only works on Linux as it depends on the FIE interface, but pull requests welcome etc.
## ⚒️ how?
See the video for a demo including installing from source, but you can install with pip:
pip install filefragThen you can run
pyfilefrag, see --help for details. It has --verbose, and --json outputs for your parsing pleasure.To use the library, just call
filefrag.FileMap('/path/whatever') to build a map of the extents in the file using ioctl's interface. Then you can poke about in the guts of a file:⛓️💥 inspect fragmentation
🔍 find out where data is on your physical drive
🟰 compare extents between paths
📔 use them as dict keys
🕳️ check files for holes, like before and after hole punching
✅verify your XFS deduplication strategy, write your own stats tool
💩 dump file layouts to json (`print(f"{filemap:j}"`)
⚠️ break your disk
/r/Python
https://redd.it/1g70lqb
asciinema.org
pyfilefrag 0.0.1
Installing and using file fragment explorer
How to write the Terms and privacy section of the website ?
i got to that point where you must write the terms and privacy, and i was thinking if there is a custom terms or privacy to include or rules to follow when writing them, any suggestions ?
/r/djangolearning
https://redd.it/1g765b5
i got to that point where you must write the terms and privacy, and i was thinking if there is a custom terms or privacy to include or rules to follow when writing them, any suggestions ?
/r/djangolearning
https://redd.it/1g765b5
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
FriendlyDateParser, just another Python module for date parsing!
Hello!
I've just released **FriendlyDateParser**, just another Python module for date parsing.
## What My Project Does
It can parse complex date expressions like:
* `2 days before the last day of next month`
* `1h15m after next Sunday at midnight CEST`
* `the second Monday of 2012`
The goal is to make working with date references straightforward, even when the expressions are complex.
## Target Audience
At this point, the module is still young and bugs should be expected. There may still be some edge cases which are not handled correctly.
## Comparison
Well, actually the reason for writing this module is that I had been using [**dateparser**](https://dateparser.readthedocs.io/) (*the* mature module with a similar purpose) for a while, but I found it was not able to handle all the cases I needed. So, I created **FriendlyDateParser** to address those gaps.
On the other hand, `dateparser` is multilingual while `friendlydateparser` only support English expressions (and I don't plan to extend the module in that way).
## Links
Check out the documentation and repo [here](https://github.com/salva/py-friendlydateparser)!
The module is also available from [PyPI](https://pypi.org/project/friendlydateparser/)
I'd love to hear your feedback and see how it works for you!
/r/Python
https://redd.it/1g6nwca
Hello!
I've just released **FriendlyDateParser**, just another Python module for date parsing.
## What My Project Does
It can parse complex date expressions like:
* `2 days before the last day of next month`
* `1h15m after next Sunday at midnight CEST`
* `the second Monday of 2012`
The goal is to make working with date references straightforward, even when the expressions are complex.
## Target Audience
At this point, the module is still young and bugs should be expected. There may still be some edge cases which are not handled correctly.
## Comparison
Well, actually the reason for writing this module is that I had been using [**dateparser**](https://dateparser.readthedocs.io/) (*the* mature module with a similar purpose) for a while, but I found it was not able to handle all the cases I needed. So, I created **FriendlyDateParser** to address those gaps.
On the other hand, `dateparser` is multilingual while `friendlydateparser` only support English expressions (and I don't plan to extend the module in that way).
## Links
Check out the documentation and repo [here](https://github.com/salva/py-friendlydateparser)!
The module is also available from [PyPI](https://pypi.org/project/friendlydateparser/)
I'd love to hear your feedback and see how it works for you!
/r/Python
https://redd.it/1g6nwca
GitHub
GitHub - salva/py-friendlydateparser
Contribute to salva/py-friendlydateparser development by creating an account on GitHub.
Creating simple inventory management app
Hi all, I'm trying to learn about Flask and decided to create a simple inventory management app which allows me to add, remove and edit entries in sqlite db using frontend. I was able to make the python app work but I'm stuck on the frontend part. I have the html file in "templates" folder and the the js noscript in the "static" folder, but when I try to run it, I end up with this error: "Failed to load resource: the server responded with a status of 404 (NOT FOUND)". Can someone help me out on what I'm missing?
Here's my repo: https://github.com/iraklikeshelava/inventory-management
/r/flask
https://redd.it/1g6fcyb
Hi all, I'm trying to learn about Flask and decided to create a simple inventory management app which allows me to add, remove and edit entries in sqlite db using frontend. I was able to make the python app work but I'm stuck on the frontend part. I have the html file in "templates" folder and the the js noscript in the "static" folder, but when I try to run it, I end up with this error: "Failed to load resource: the server responded with a status of 404 (NOT FOUND)". Can someone help me out on what I'm missing?
Here's my repo: https://github.com/iraklikeshelava/inventory-management
/r/flask
https://redd.it/1g6fcyb
GitHub
GitHub - iraklikeshelava/inventory-management: A sample Flask/sqlite3 app to add, remove and edit entries in DB
A sample Flask/sqlite3 app to add, remove and edit entries in DB - iraklikeshelava/inventory-management
Real-time YouTube Comment Sentiment Analysis with Kafka, Spark, Docker, and Streamlit
Hey r/Python! 👋
# What My Project Does:
This project performs real-time sentiment analysis on YouTube comments using a stack of Kafka, Spark, Docker, and Streamlit. It classifies comments into positive, neutral, or negative sentiments and displays the results in a web interface for easy visualization and interpretation. The aim is to provide insights on how users are reacting to YouTube videos in real-time, which can be especially useful for content creators, marketers, or analysts who want to track audience reception.
# Target Audience:
This project is primarily a learning-focused, proof-of-concept to demonstrate the power of real-time big data analytics with modern tools. While it could potentially be expanded into a production-ready system, it’s currently a toy project meant for educational purposes and exploring various technologies. Developers looking to explore Kafka, Spark, and Streamlit in a Dockerized environment will find this project helpful.
# Comparison:
What sets this project apart from existing alternatives is its real-time processing capability combined with the use of big data tools. Most sentiment analysis projects process data in batch mode or on a smaller scale, while this project uses Kafka for real-time streaming and Spark for distributed processing. It’s also containerized with Docker, which makes it easy to deploy and scale.
/r/Python
https://redd.it/1g7cs5l
Hey r/Python! 👋
# What My Project Does:
This project performs real-time sentiment analysis on YouTube comments using a stack of Kafka, Spark, Docker, and Streamlit. It classifies comments into positive, neutral, or negative sentiments and displays the results in a web interface for easy visualization and interpretation. The aim is to provide insights on how users are reacting to YouTube videos in real-time, which can be especially useful for content creators, marketers, or analysts who want to track audience reception.
# Target Audience:
This project is primarily a learning-focused, proof-of-concept to demonstrate the power of real-time big data analytics with modern tools. While it could potentially be expanded into a production-ready system, it’s currently a toy project meant for educational purposes and exploring various technologies. Developers looking to explore Kafka, Spark, and Streamlit in a Dockerized environment will find this project helpful.
# Comparison:
What sets this project apart from existing alternatives is its real-time processing capability combined with the use of big data tools. Most sentiment analysis projects process data in batch mode or on a smaller scale, while this project uses Kafka for real-time streaming and Spark for distributed processing. It’s also containerized with Docker, which makes it easy to deploy and scale.
/r/Python
https://redd.it/1g7cs5l
Reddit
From the Python community on Reddit: Real-time YouTube Comment Sentiment Analysis with Kafka, Spark, Docker, and Streamlit
Explore this post and more from the Python community
Symlink in static dir to serve files
I understand that only images within the static dir can be displayed directly for security purposes.
Does creating a symlink within static, pointing to another folder, pose a security risk? How would someone go about exploiting this to access other data on the server?
/r/flask
https://redd.it/1g6n3ym
I understand that only images within the static dir can be displayed directly for security purposes.
Does creating a symlink within static, pointing to another folder, pose a security risk? How would someone go about exploiting this to access other data on the server?
/r/flask
https://redd.it/1g6n3ym
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
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 noscript 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/1g7m7nw
# 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 noscript 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/1g7m7nw
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Feel like an ostracized freak for using Django as a monolithic websocket backend
Never did web-development before this and wanted to create the simplest possible websocket web app in python with a database.
I have Django serving my react.js frontend and handling the async websockets through channels. I don't use redis, celery, or microservices.
My backend code is async, so using one server process for multiple users works perfectly without scaling issues. I don't need a distributed task queue system since my async code is basically just waiting for IO. When I have something CPU intensive like gunzipping I just use a ProcessPoolExecutor to not block the event loop.
There's basically no documentation on how to set up the app the way I did and it's basically just been me hacking and experimenting with what works. I feel like I've been using django the wrong way since day one since every guide is either simple synchronous forum website, or straight to redis/celery/rabbitmq/kubernetes/gunicorn. There's no common ground.
/r/django
https://redd.it/1g7e8yf
Never did web-development before this and wanted to create the simplest possible websocket web app in python with a database.
I have Django serving my react.js frontend and handling the async websockets through channels. I don't use redis, celery, or microservices.
My backend code is async, so using one server process for multiple users works perfectly without scaling issues. I don't need a distributed task queue system since my async code is basically just waiting for IO. When I have something CPU intensive like gunzipping I just use a ProcessPoolExecutor to not block the event loop.
There's basically no documentation on how to set up the app the way I did and it's basically just been me hacking and experimenting with what works. I feel like I've been using django the wrong way since day one since every guide is either simple synchronous forum website, or straight to redis/celery/rabbitmq/kubernetes/gunicorn. There's no common ground.
/r/django
https://redd.it/1g7e8yf
Reddit
From the django community on Reddit
Explore this post and more from the django community
Firebase for authentication ?
Hey everyone! What do you think about using Firebase authentication in Django instead of Django Alluth?
Which one has been the better experience for you? ( or any other other auth provider like Supbase) , Thanks
/r/django
https://redd.it/1g7qfy2
Hey everyone! What do you think about using Firebase authentication in Django instead of Django Alluth?
Which one has been the better experience for you? ( or any other other auth provider like Supbase) , Thanks
/r/django
https://redd.it/1g7qfy2
Reddit
From the django community on Reddit
Explore this post and more from the django community
Getting started with DRF for my VueJS frontend
Hello, so I posted something similar to this issue a week ago or less. But I'm trying to connect my Django project to my VueJS frontend pages that I created using DRF.
To my understanding I have to create API with DRF, so I was following the DRF docs tutorial and followed everything it said for coding the views, serializers, etc.... But then I ran `python manage.py runserver` and this caused all kinds of errors.
So I decided it was for the best to clone my project from my remote repo on Github and start all over with DRF. Now that I'm back to square one, my question is, what approach should I do to get started with DRF to create API end points for my frontend and backend? I want to try again with the DRF docs, but I don't want to fuck up my project again with an endless cycle of errors.
I'm beginning to think that I should just create a new app within my project, maybe that's what threw the errors I was getting before. What do you guys think? Here is the link to my Github repo, the project name is MyProject https://github.com/remoteconn-7891/MyProject.
/r/django
https://redd.it/1g7prk8
Hello, so I posted something similar to this issue a week ago or less. But I'm trying to connect my Django project to my VueJS frontend pages that I created using DRF.
To my understanding I have to create API with DRF, so I was following the DRF docs tutorial and followed everything it said for coding the views, serializers, etc.... But then I ran `python manage.py runserver` and this caused all kinds of errors.
So I decided it was for the best to clone my project from my remote repo on Github and start all over with DRF. Now that I'm back to square one, my question is, what approach should I do to get started with DRF to create API end points for my frontend and backend? I want to try again with the DRF docs, but I don't want to fuck up my project again with an endless cycle of errors.
I'm beginning to think that I should just create a new app within my project, maybe that's what threw the errors I was getting before. What do you guys think? Here is the link to my Github repo, the project name is MyProject https://github.com/remoteconn-7891/MyProject.
/r/django
https://redd.it/1g7prk8