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
Which Newsletters you use ? For staying update in dev aspects ?

Hey all,

Which newsletter did you subscribe to get the best and hottest information about Tech (Python, react or whatever)?

Any recommendations?

I know this one Tech Bytes but looking forward to another one/ more

Thanks In advance for helping fellow peer.

/r/Python
https://redd.it/1cbuvbg
Runtime type checking performance

I'm trying to decide whether to use typeguard or stick to assert isinstance in the places where I care. Has anyone done benchmarking testing of the overhead of using type guards "at"typeguard decorator ?

/r/Python
https://redd.it/1cb689x
Best way to grade Jupyter-Notebooks?

I recently took a job with a professor, that includes helping with the grading of biweekly assignments. So I basically have now 30 Notebooks that I have to grade. Top of my head I can think of these approaches:

1. Convert to PDF and write into the PDF
2. Duplicate the Notebook and write the comments in extra blocks
3. Create a .txt file with all my note

Does anybody have experience with this and can share their workflow?

/r/Python
https://redd.it/1cbxubs
findwhere - my first Python package published to PyPi

[PyPi](
https://pypi.org/project/find-where/)
[Source](
https://github.com/danohn/findwhere)

What My Project Does
find_where is a Python package that provides a function to find values in dictionaries where a specified key matches a given value, similar to filtering in SQL.

Target Audience
This is my first attempt at creating a Python package so I would describe this as a toy project at this stage but am definitely looking for feedback from the wider community.

Comparison
I mainly wrote this package because I kept on writing the same iterable based code when trying to find a value, given a key:

data = {
"people":
{"first_name": "John", "last_name": "Smith", "age": 25},
{"first_name": "Alice", "last_name": "Jones", "age": 32},

}

firstname = None

for result in data["people"]:
if result["age"] == 32:
first
name = result"first_name"
break

print(firstname)


When using find\
where, you can

/r/Python
https://redd.it/1cbr1fz
I was looking at hosting a Flask app on my LAN..Is there any difference in hosting speed if I run Flask on Ubuntu Server as opposed to the current OS I have, which is Windows 8.1? I am downloading Ubuntu Server..but..is it faster to host than others?


When hosting Flask app using Ubuntu Server as opposed to Windows 8.1 to host?

/r/flask
https://redd.it/1cc3i52
pwdgen v2 -a simple password generator

https://github.com/RadoTheProgrammer/pwdgen

# What my project does

My project generate simple, strong, memorable and easy-to-type passwords.

The system is simple: it generate 2 pronounceable words separated by a special char, with a number at start or end.

I tried creating a password generator that combines simplicity, security, memorability, and ease of type.

This should be secure enough because it can generate 4e15 possibilities of passwords and uses the secrets module.

# Target audience

For anyone who need to have passwords easily.

# Comparison

Most passwords manager generate completely passwords with completely random characters that aren't very easy to memorize or tape.

Examples include DashlaneNortonAvast.

Or other like Bitwarden generate passwords that are not really fast-to-type.

The mine generate sth like 7Xy-Bonuwucete 0Qubyby+Pomafy , or 7Zuxogu:Lebuwo .

# Usage

You can install it with pip install pwd-generator and use the cli version:

pwdgen

To use it in a python code

import pwdgen
print(pwdgen.generate())

# Changes from last post

I already made another post for this, but this was not well received because my code use the random module.

I updated it to use the secrets module.

#

/r/Python
https://redd.it/1cc300n
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/1ccdo2r
For those doing fullstack freelancing with Flask...

Hello! I am a Flask developer and I've got some curiosities!
For those of you who are doing freelance using Flask, I have a few questions :
\-Are you building every site you make from scratch? Or you are using templates? For example, if someone asks you to build them a forum, you use a previously built one as a base and remodel on it or rebuild it from scratch? Do you create your own templates or copy projects from Git?
\-What other technologies do you combine with Flask? What do you prefer to use for databases if the client doesn't have a preference on that?
\-What do you use on front-end and why?
\-Do you use vanilla CSS or frameworks? Why?
\-Have you ever run in a situation where Flask can't do something?
\-What is your favorite cloud provider for uploading/hosting the website?


/r/flask
https://redd.it/1cccogm
What are your favourite pre-commit hooks and why?

Just getting started with pre-commit and I think it's awesome. Looking to find out what other code automation tools people are using. Let me know what works for you and why. Thanks!

/r/Python
https://redd.it/1cc9wtr
Python Interview Cheat Sheet Website!

Hey everyone,

I’ve recently launched a new website aimed at helping fellow programmers ace their Python interviews. It’s not just limited to Python though; it also covers essential topics like big-O notation, object-oriented programming, design patterns, and more!

I’d love to hear your thoughts and feedback on the content, layout, and anything else you think could be improved.

Check it out here https://hlop3z.github.io/interviews-python/ and let me know what you think. Your input is invaluable in making this resource the best it can be. Thanks in advance for your time and insights! 🚀🐍

Note: It’s mainly to be used in a computer or tablet. You can see it in your mobile, but the python section won’t look as intended.

/r/Python
https://redd.it/1cckeip
Flask Monitoring Dashboard.

/r/flask
https://redd.it/1cclcd9
UXsim 1.2.0 released with support for (self-driving) taxis and shared mobility

[Version 1.2.0](https://github.com/toruseo/UXsim/releases/tag/v1.2.0) of UXsim is released, which allows simulating taxis, shared mobility and self-driving taxis!

**Main Changes in 1.2.0**

* Add taxi (aka. shared mobility) functions
* A standard vehicle in UXsim just travel from A to B and disappear. This is like a private owned vehicle.
* From this update, a Vehicle with mode="taxi" behave like a taxi. Specifically, they travel through a network by passing through specific nodes that are dynamically updated, simulating passenger pickup and drop-off.
* New sub-module uxsim.TaxiHandler handles these matters.
* Built-in vehicle-to-passneger matching methods are also available.
* This addresses Issue #41
* From now on, we follow the Semantic Versioning rigorously.

**UXsim**

[UXsim](https://github.com/toruseo/UXsim) is a free, open-source macroscopic and mesoscopic network traffic flow simulator written in Python. It simulates the movements of car travelers and traffic congestion in road networks. It is suitable for simulating large-scale (e.g., city-scale) traffic phenomena. UXsim is especially useful for scientific and educational purposes because of its simple, lightweight, and customizable features, but users are free to use UXsim for any purpose.

/r/Python
https://redd.it/1ccmzr8