Best courses Python and Django X
Hi all,
I have a new role at work, which is kind of link between IT and the technical role (I am coming from the techical side).
I enjoy coding and have basic python and java script skills which I get by with for personal projects and AI.
For this role, my work have agreed to fund some development and i am looking for the best python and mainly django x framework courses/plans to gain bettet knowledge anf best practice to be more aid to the IT department.
Wondered if anyone knew the best plan of action? Would likey need futher python training and then I am new to Django and offcial IT workflows and what not.
Tia
/r/Python
https://redd.it/1oj294x
Hi all,
I have a new role at work, which is kind of link between IT and the technical role (I am coming from the techical side).
I enjoy coding and have basic python and java script skills which I get by with for personal projects and AI.
For this role, my work have agreed to fund some development and i am looking for the best python and mainly django x framework courses/plans to gain bettet knowledge anf best practice to be more aid to the IT department.
Wondered if anyone knew the best plan of action? Would likey need futher python training and then I am new to Django and offcial IT workflows and what not.
Tia
/r/Python
https://redd.it/1oj294x
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Curious if someone has a better answer.
I'm designing an app where the user will be entering health information. The day/time the data is entered needs to be recorded which will be easy when I go live. As I'm developing and testing it I want to be able to store the data using different dates to simulate the way it will actually be used. I don't want to actually change the front end for this purposes because there are a lot of pages that are making posts to the app.
The way I thought of doing it is to have a conditional dialog box that pops up from each view asking for a day. The default will be the last date entered, which I can save in a text file each time so I don't have to re-enter and the dialog box will allow me to just increase by one day. This seems like the simplest way but it also seems like something that people have to deal with a lot as they're developing and thought I would post here to see if someone has a better solution or if there is something built into Django that does this for me.
/r/django
https://redd.it/1oj586h
I'm designing an app where the user will be entering health information. The day/time the data is entered needs to be recorded which will be easy when I go live. As I'm developing and testing it I want to be able to store the data using different dates to simulate the way it will actually be used. I don't want to actually change the front end for this purposes because there are a lot of pages that are making posts to the app.
The way I thought of doing it is to have a conditional dialog box that pops up from each view asking for a day. The default will be the last date entered, which I can save in a text file each time so I don't have to re-enter and the dialog box will allow me to just increase by one day. This seems like the simplest way but it also seems like something that people have to deal with a lot as they're developing and thought I would post here to see if someone has a better solution or if there is something built into Django that does this for me.
/r/django
https://redd.it/1oj586h
Reddit
From the django community on Reddit
Explore this post and more from the django community
Pylint 4 changes what's considered a constant. Does a use case exist?
Pylint 4 changed their definition of constants. Previously, all variables at the root of a module were considered constants and expected to be in all caps. With Pylint 4, they are now checking to see if a variable is reassigned non-exclusively. If it is, then it's treated as a "module-level variable" and expected to be in snake case.
So this pattern, which used to be valid, now raises an invalid-name warning.
SERIES_STD = ' ▌█' if platform.system() == 'Windows' else ' ▏▎▍▌▋▊▉█'
try:
SERIES_STD.encode(sys.__stdout__.encoding)
except UnicodeEncodeError:
SERIES_STD = ' |'
except (AttributeError, TypeError):
pass
This could be re-written to match the new definition of a constant, but doing so reduces readability.
In my mind any runtime code is placed in classes, function or guarded with a dunder name clause. This only leaves code needed for module initialization. Within that, I see two categories of variables at the module root, constants and globals.
* Constants
* After value is determine (like above example), it never changes
* All
/r/Python
https://redd.it/1oj4mcr
Pylint 4 changed their definition of constants. Previously, all variables at the root of a module were considered constants and expected to be in all caps. With Pylint 4, they are now checking to see if a variable is reassigned non-exclusively. If it is, then it's treated as a "module-level variable" and expected to be in snake case.
So this pattern, which used to be valid, now raises an invalid-name warning.
SERIES_STD = ' ▌█' if platform.system() == 'Windows' else ' ▏▎▍▌▋▊▉█'
try:
SERIES_STD.encode(sys.__stdout__.encoding)
except UnicodeEncodeError:
SERIES_STD = ' |'
except (AttributeError, TypeError):
pass
This could be re-written to match the new definition of a constant, but doing so reduces readability.
In my mind any runtime code is placed in classes, function or guarded with a dunder name clause. This only leaves code needed for module initialization. Within that, I see two categories of variables at the module root, constants and globals.
* Constants
* After value is determine (like above example), it never changes
* All
/r/Python
https://redd.it/1oj4mcr
Reddit
From the Python community on Reddit: Pylint 4 changes what's considered a constant. Does a use case exist?
Explore this post and more from the Python community
DNLP conferences look like a scam..
Not trying to punch down on other smart folks, but honestly, I feel like most NLP conference papers are kinda scams. Out of 10 papers I read, 9 have zero theoretical justification, and the 1 that does usually calls something a theorem when it’s basically just a lemma with ridiculous assumptions.
And then they all cliam about like a 1% benchmark improvement using methods that are impossible to reproduce because of the insane resource constraints in the LLM world.. Even more funny, most of the benchmarks and made by themselves
/r/MachineLearning
https://redd.it/1ojeldl
Not trying to punch down on other smart folks, but honestly, I feel like most NLP conference papers are kinda scams. Out of 10 papers I read, 9 have zero theoretical justification, and the 1 that does usually calls something a theorem when it’s basically just a lemma with ridiculous assumptions.
And then they all cliam about like a 1% benchmark improvement using methods that are impossible to reproduce because of the insane resource constraints in the LLM world.. Even more funny, most of the benchmarks and made by themselves
/r/MachineLearning
https://redd.it/1ojeldl
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Flask-RQ Tutorial A Simple Task Queue for Flask
https://www.youtube.com/watch?v=oDKuXmbWqX8
/r/flask
https://redd.it/1oj0012
https://www.youtube.com/watch?v=oDKuXmbWqX8
/r/flask
https://redd.it/1oj0012
YouTube
Flask-RQ Tutorial A Simple Task Queue for Flask
Learn Flask-RQ, a task queue for Flask that is much simpler and easier to use than Celery. If you only need basic background tasks for your app, then Flask-RQ might be the best solution for you. In this video, Anthony Herbert will walk you through setting…
PathQL: A Declarative SQL Like Layer For Pathlib
🐍 What PathQL Does
PathQL allows you to easily walk file systems and perform actions on the files that match "simple" query parameters, that don't require you to go into the depths of
The tool supports query functions that are common when crawling folders, tools to aggregate information about those files and finally actions to perform on those files. Out of the box it supports copy, move, delete, fastcopy and zip actions.
It is also VERY/sort-of easy to sub-class filters that can look into the contents of files to add data about the file itself (rather than the metadata), perhaps looking for ERROR lines in todays logs, or image files that have 24 bit color. For these types of filters it can be important to use the built in multithreading for sharing the load of reading into all of those files.
```python
from pathql import AgeDays, Size, Suffix, Query,ResultField
# Count, largest file size, and oldest file from the last 24 hours in the result set
query = Query(
whereexpr=(AgeDays() == 0) & (Size() > "10 mb") & Suffix("log"),
frompaths="C:/logs",
threaded=True
)
resultset =
/r/Python
https://redd.it/1ojgqmr
🐍 What PathQL Does
PathQL allows you to easily walk file systems and perform actions on the files that match "simple" query parameters, that don't require you to go into the depths of
os.stat_result and the datetime module to find file ages, sizes and attributes.The tool supports query functions that are common when crawling folders, tools to aggregate information about those files and finally actions to perform on those files. Out of the box it supports copy, move, delete, fastcopy and zip actions.
It is also VERY/sort-of easy to sub-class filters that can look into the contents of files to add data about the file itself (rather than the metadata), perhaps looking for ERROR lines in todays logs, or image files that have 24 bit color. For these types of filters it can be important to use the built in multithreading for sharing the load of reading into all of those files.
```python
from pathql import AgeDays, Size, Suffix, Query,ResultField
# Count, largest file size, and oldest file from the last 24 hours in the result set
query = Query(
whereexpr=(AgeDays() == 0) & (Size() > "10 mb") & Suffix("log"),
frompaths="C:/logs",
threaded=True
)
resultset =
/r/Python
https://redd.it/1ojgqmr
Reddit
From the Python community on Reddit: PathQL: A Declarative SQL Like Layer For Pathlib
Explore this post and more from the Python community
What's this sub's opinion on panda3d/interrogate?
https://github.com/panda3d/interrogate
I'm just curious how many people have even heard of it, and what people think of it.
Interrogate is a tool used by Panda3D to generate python bindings for its c++ code. it was spun into it's own repo a while back in the hopes that people outside the p3d community might use it.
/r/Python
https://redd.it/1ojgkmz
https://github.com/panda3d/interrogate
I'm just curious how many people have even heard of it, and what people think of it.
Interrogate is a tool used by Panda3D to generate python bindings for its c++ code. it was spun into it's own repo a while back in the hopes that people outside the p3d community might use it.
/r/Python
https://redd.it/1ojgkmz
GitHub
GitHub - panda3d/interrogate: Python binding generator for Panda3D
Python binding generator for Panda3D. Contribute to panda3d/interrogate development by creating an account on GitHub.
Is Django a good fit for a multithreaded application?
Hi everyone,
I need to develop an application with the following requirements:
Multithreaded handling of remote I/O
State machine management, each running in its own thread
REST web API for communication with other devices
A graphical UI for a touch panel PC
I was considering Django, since it would conveniently handle the database part (migrations included) and, with django-ninja, allow me to easily expose REST APIs.
However, I’m unsure about the best way to handle database access from other threads or processes.
Ideally, I’d like to separate the web part (Django + API) from the rest of the logic.
My current idea is to have two processes:
1. Uvicorn or whatever running Django with the web APIs
2. A separate Python process running the UI, state machines, and remote I/O polling, but using in some way the Django ORM
Would this kind of architecture be feasible?
And if so, what would be the recommended way for these two processes to communicate (e.g., shared database, message queue, websockets, etc.)?
Side note: I've asked chatgpt to help me with the translation while writing the explanation, I can assure I'm not a bot 🤣
/r/django
https://redd.it/1oj4bz3
Hi everyone,
I need to develop an application with the following requirements:
Multithreaded handling of remote I/O
State machine management, each running in its own thread
REST web API for communication with other devices
A graphical UI for a touch panel PC
I was considering Django, since it would conveniently handle the database part (migrations included) and, with django-ninja, allow me to easily expose REST APIs.
However, I’m unsure about the best way to handle database access from other threads or processes.
Ideally, I’d like to separate the web part (Django + API) from the rest of the logic.
My current idea is to have two processes:
1. Uvicorn or whatever running Django with the web APIs
2. A separate Python process running the UI, state machines, and remote I/O polling, but using in some way the Django ORM
Would this kind of architecture be feasible?
And if so, what would be the recommended way for these two processes to communicate (e.g., shared database, message queue, websockets, etc.)?
Side note: I've asked chatgpt to help me with the translation while writing the explanation, I can assure I'm not a bot 🤣
/r/django
https://redd.it/1oj4bz3
Reddit
From the django community on Reddit
Explore this post and more from the django community
[R] Researchers from the Center for AI Safety and Scale AI have released the Remote Labor Index (RLI), a benchmark testing AI agents on 240 real-world freelance jobs across 23 domains.
https://redd.it/1ojinwl
@pythondaily
https://redd.it/1ojinwl
@pythondaily
Reddit
From the MachineLearning community on Reddit: [R] Researchers from the Center for AI Safety and Scale AI have released the Remote…
Explore this post and more from the MachineLearning community
Career change -
After 20yrs in Linux Administration - with some Python and BASH scripting - I am now learning Django. Very complicated but love it. way way way too early stages now.
Am I late in this journey, can AI kick me out? Or should I keep going?
/r/djangolearning
https://redd.it/1oj4315
After 20yrs in Linux Administration - with some Python and BASH scripting - I am now learning Django. Very complicated but love it. way way way too early stages now.
Am I late in this journey, can AI kick me out? Or should I keep going?
/r/djangolearning
https://redd.it/1oj4315
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
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/1ojkvx8
# 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/1ojkvx8
Reddit
From the Python community on Reddit
Explore this post and more from the Python community