Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
I made a CV Generator using PyQt6 and Python | Modern Design

# What my Project Does?

cvGen is a CV generator made using PyQt6 and Python. It collects user data via inputs given by the user and then crafts a beautiful CV using built-in HTML and CSS templates.

# Target Audience

People who want to make good looking CVs without using any command line tools / YAML formatting manually.

# Comparison

For comparison, I don't know what to compare it to since there are no other UI-based CV generators. If you know any, please let me know.

# GitHub


GitHub Link: https://github.com/rohankishore/cvGen

# Known Issues

Only one template as of now (looking forward to expanding it)
Only support input via the UI (coding support for JSON/YAML)

/r/Python
https://redd.it/1b2eerp
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!

# Weekly Thread: Professional Use, Jobs, and Education 🏒

Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.

---

## How it Works:

1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.

---

## Guidelines:

- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.

---

## Example Topics:

1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?

---

Let's help each other grow in our careers and education. Happy discussing! 🌟

/r/Python
https://redd.it/1b2ltwd
How does the the .only() method work?

q1 = Students.object.filter(major='cs').only('lastname')
q2 = Students.object.only('lastname')

Can someone elaborate on what the only() method's purpose is in q1 and q2? Any help will be greatly appreciated. Thank you very much.

/r/djangolearning
https://redd.it/1b2hkiq
Automate creating a virtual environment and upgrading pip tutorial

I've been building a lot of projects lately and got tired of upgrading pip each time I create a new venv (virtual environment), so I decided to look up solutions and found that I can use a script to run the steps I usually do manually.

This is obviously not something new or that necessary but thought it would be fun and save a few seconds especially when am building new projects everyday.

I created a short tutorial on how to do this: https://youtu.be/xMDh4TYoIB4?si=iEziqP5YQFj2wIHW



/r/Python
https://redd.it/1b2ldnp
Best Approach for Excel-Like Table with Sort, Filter and Freeze Panes

The title sums it up. What library is best to get here? I have been researching/chatting away and can't seem to get the freeze panes right. Can anyone recommend a solution here?

/r/flask
https://redd.it/1b2ijrp
Sharing with you a powerful social network I built using Django

Hello, fellow creators and tech enthusiasts! πŸ“· I’m thrilled to share with you a powerful social network I built using Django. My social network is all about sharing experiences. Imagine a platform where users can post their stories, lessons learned, and insightsβ€”whether it’s overcoming challenges, achieving personal growth, or simply connecting with like-minded individuals. It’s a space where we learn from each other, inspire one another, and foster meaningful connections. Here is the link to the source code if you want to learn from my Django Project: https://github.com/ShadieC/Storykin--Django_Social_Network. If you find this project useful, consider supporting it by buying me a coffee.

/r/django
https://redd.it/1b2tid5
D Chance to improve my profile for PhD after a terrible Ms thesis

I’m finishing my Master thesis in 2 weeks and I feel it super bad. Since I failed in the last Phd application cycle, I wanted to try it again, after my graduation. However, then people will care more about my thesis. I know bad thesis might be a big red flag for phd, but is there any chance to save my profile, like getting an RA position and publishing papers?

/r/MachineLearning
https://redd.it/1b2ozh7
recapcha not working.

i used this article to deploy my flask app
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-22-04

is i missed something? because it's working on my local host and previous hosting.

now giving this error: ERROR for site owner: Invalid site key

and i double checked everything my domain is registered on Google captcha console so this is not the issue..



/r/flask
https://redd.it/1b2haw9
This is what a +60k git diff gives Pythonistas this year

It was particularly challenging, the end result is worth it. A simple table replace a thousand words.

Comparison
----------

|Feature|niquests|requests|httpx|aiohttp|
|:-|:-|:-|:-|:-|
|`HTTP/1.1`|βœ…|βœ…|βœ…|βœ…|
|`HTTP/2`|βœ…|❌|βœ…|❌|
|`HTTP/3 over QUIC`|βœ…|❌|❌|❌|
|`Synchronous`|βœ…|βœ…|βœ…|❌|
|`Asynchronous`|βœ…|❌|βœ…|βœ…|
|`Thread Safe`|βœ…|βœ…|❌|*N/A*|
|`Task Safe`|βœ…|*N/A*|βœ…|βœ…|
|`OS Trust Store`|βœ…|❌|❌|❌|
|`Multiplexing`|βœ…|❌|*Limited*|❌|
|`DNSSEC`|βœ…|❌|❌|❌|
|`Customizable DNS Resolution`|βœ…|❌|❌|βœ…|
|`DNS over HTTPS`|βœ…|❌|❌|❌|
|`DNS over QUIC`|βœ…|❌|❌|❌|
|`DNS over TLS`|βœ…|❌|❌|❌|
|`Network Fine Tuning & Inspect`|βœ…|❌|*Limited*|*Limited*|
|`Certificate Revocation Protection`|βœ…|❌|❌|❌|
|`Session Persistence`|βœ…|βœ…|βœ…|βœ…|
|`In-memory Certificate CA & mTLS`|βœ…|❌|*Limited*|*Limited*|
|`SOCKS 4/5 Proxies`|βœ…|βœ…|βœ…|❌|
|`HTTP/HTTPS Proxies`|βœ…|βœ…|βœ…|βœ…|
|`TLS-in-TLS Support`|βœ…|βœ…|βœ…|βœ…|
|`Direct HTTP/3 Negocation`|βœ…|N/A|N/A|N/A|
|`Package / SLSA Signed`|βœ…|❌|❌|βœ…|

What My Project Does
--------------------

Gives an alternative in a limited HTTP clients world.

Target Audience
---------------

Made for the broader audience.

* Source: [https://github.com/jawah/niquests](https://github.com/jawah/niquests)

/r/Python
https://redd.it/1b2t6pd
Handling databases in deployment

Dear community,

I have been learning python (from scratch) for the last three years by tinkering with Django and making different web-applications. Last week I actually did my first deployment on pythonanywhere and got everything to work fine.

When I update the app I do it locally, push to github and then to pythonanywhere. I also update the database locally and push it together with the code. But if I am to implement user accounts, I reason that the database has to be online and can't be altered locally anymore. What is a good practice for doing this? Do you use third party solutions - same as for static files?

​

/r/django
https://redd.it/1b2wnf4
Help Flask Socketio + uWSGI + Nginx

Hey.
I am trying to use flask-socketio on my uwsgi + nginx server.

I read ...ALOT... of documentation pages and tutorials. Maybe I just can't read or my braincells are not enough. But I just cant get it working. Okay first of all a bit about the structure.
I have multiple flask servers running behind the nginx.
Every Server gets a path. So mydomain.com/projectname
So my current "test" project is under mydomain.com/sockettoe (dont ask just not creative in naming)
The first problem was socketio (in js fronend) trys to connect on mydomain.com wich is not where the flask-socketio runs. I fixed that by adding this to my config
location /socket.io

{

include uwsgi_params

uwsgi_pass unix:/pathtoproject/sockettoe/sockettoe.sock;

}


Now the server get my requests buuut they dont seem to connect. Cant fire any event.
What I thought is that the uwsgi does not run socketio but app(Flask app) so I tryed to change that but uwsgi does not want to run a SocketIo object. Can someone help me with this you will save me alot of headache because I will not give up. It must be possible.


Oh also my backend gets a Exception:

/r/flask
https://redd.it/1b2wwls
pyCage: A VSCode extension to search and install popular Python packages from the command palette.

What Does My Project Do?

pyCage is a VSCode extension powered by astral.sh's uv package manager and pip. It enables users to search for and download Python packages directly from the command palette, similar to Dart's package manager.

Target Audience

This extension is designed for individuals who frequently use venvs and struggle with remembering package names.

Comparison

The installation speed is notably fast due to the option to download using uv.It might be faster to download packages using pyCage than using the terminal in some cases.

GitHub

GitHub Link: https://github.com/qKitNp/pyCage

/r/Python
https://redd.it/1b32suc
How to handle APIs calls and async code on Pythonanyehere?

How to handle async code on Pythonanyehere? There is an article on their site that suggests using Django-Q and always-on tasks to handle async code, but the post seems outdated because Django-Q hasn't received any updates/changes for 3 years. Also, celery and redis are not supported I guess.
Do you have any suggestions on how to handle async code like calling APIs?
Thank you in advance.

/r/django
https://redd.it/1b2zc3o
Ruff 0.3.0 - first stable version of ruff formatter

Blog - https://astral.sh/blog/ruff-v0.3.0


Changes:

\- The Ruff 2024.2 style guide
\- Range Formatting
\- f-string placeholder formatting
\- Lint for invalid formatter suppression comments
\- Multiple new rules - both stable and in preview

/r/Python
https://redd.it/1b36z60
Real time platform

Hi guys I’m really looking for some advice! I’m working on a project nd I’m still developing it like 70% is done. I still have some questions :
Is the django authentication system decent to secure the data of my clients : password, emails, pictures, documents…


/r/django
https://redd.it/1b35skw
New python library for ELT

PyAirbyte just released to public beta - just tried it out, super easy to use and very pythonic. Is there anything else out there like this?

/r/Python
https://redd.it/1b36wde
Single commodity trading platform

I am looking at developing a trading platform that services a single commodity. Initially I want to keep as light weight as possible. It would only need to service the basic needs for transactions between two parties that want to trade. Is flask a good option?

I am fairly new to flask, but it appeals to me as it seems to be relatively lightweight compared to something like Django. I find some frameworks are far too feature rich, especially when you want something basic. I just want to be sure that flask isn’t too feature poor?

Any advice on this would be greatly appreciated.

/r/flask
https://redd.it/1b3hlx8
Django-admin-shellx - A terminal in your admin using xtermjs

Hey,

I built an Django app that adds a terminal using xterm.js to the admin.

It uses websockets with Django channels and xterm.js for the terminal.

Has multiple features as full screen mode, favorite commands, recording of actions and history of commands among others.

Here is the GitHub link:

https://github.com/adinhodovic/django-admin-shellx

Thanks for taking a look!

/r/django
https://redd.it/1b3edif