simple-html 1.0.0 -- fast html rendering for people that don't like templates
I just released 1.0.0 of simple-html. As far as I can tell, it's typically faster than jinja2, django template rendering, dominate, and fast-html. It's type safe, straightforward, and doesn't try to do anything too complex.
I'd be interested in any feedback -- thanks!
pypi
github
/r/Python
https://redd.it/182yj2j
I just released 1.0.0 of simple-html. As far as I can tell, it's typically faster than jinja2, django template rendering, dominate, and fast-html. It's type safe, straightforward, and doesn't try to do anything too complex.
I'd be interested in any feedback -- thanks!
pypi
github
/r/Python
https://redd.it/182yj2j
Django-related Black Friday Discounts
https://adamj.eu/tech/2023/11/20/django-black-friday-deals-2023/
/r/django
https://redd.it/1832fuy
https://adamj.eu/tech/2023/11/20/django-black-friday-deals-2023/
/r/django
https://redd.it/1832fuy
adamj.eu
Django-related Deals for Black Friday and Cyber Monday 2023 - Adam Johnson
Here are some Django-related deals for this year’s Black Friday (24th Nov) and Cyber Monday (27th Nov), including my own.
Large Scale LinkedIn Job Scraper
Hey everyone, over summer I created a LinkedIn scraper to clean and store almost all real time job postings, along with dozens of attributes. You should only need 3-4 accounts to keep it reliably running, since it utilizes targeted requests rather than loading entire pages.
Here’s the repo link:
https://github.com/ArshKA/LinkedIn-Job-Scraper
There are a lot of extensions you can create and attach on top of this code, for both market/industry analysis, and for personal use (such as implementing your own searching/filtering mechanism + easy apply script, social media bot, etc). Anyway, have a look and let me know if you encounter any problems.
Also, if you’re into data science, I posted a large chunk of scraped data on Kaggle which I’ll be updating, so feel free to check it out:
https://www.kaggle.com/datasets/arshkon/linkedin-job-postings
/r/Python
https://redd.it/1830b0q
Hey everyone, over summer I created a LinkedIn scraper to clean and store almost all real time job postings, along with dozens of attributes. You should only need 3-4 accounts to keep it reliably running, since it utilizes targeted requests rather than loading entire pages.
Here’s the repo link:
https://github.com/ArshKA/LinkedIn-Job-Scraper
There are a lot of extensions you can create and attach on top of this code, for both market/industry analysis, and for personal use (such as implementing your own searching/filtering mechanism + easy apply script, social media bot, etc). Anyway, have a look and let me know if you encounter any problems.
Also, if you’re into data science, I posted a large chunk of scraped data on Kaggle which I’ll be updating, so feel free to check it out:
https://www.kaggle.com/datasets/arshkon/linkedin-job-postings
/r/Python
https://redd.it/1830b0q
GitHub
GitHub - ArshKA/LinkedIn-Job-Scraper: LinkedIn scraper to retrieve and store a live stream of job postings
LinkedIn scraper to retrieve and store a live stream of job postings - ArshKA/LinkedIn-Job-Scraper
Should I have seperate user and person models
Hello everyone. I'm kinda new to django and am looking for some guidance on how to set up my models. The webapp im building will record information such as name, phone number and address when the user registers in addition to their email and password as login credentials.
I've always thought the login details should be kept seperate from the user information in terms of database design. So in cases like this, is it considered okay to just abstract the user model to store all I need and the login info, or should I have 2 seperate models?
If seperate models is the way to go, how would I go about providing the user id to the person model if they're created on the same form?
/r/django
https://redd.it/183c39r
Hello everyone. I'm kinda new to django and am looking for some guidance on how to set up my models. The webapp im building will record information such as name, phone number and address when the user registers in addition to their email and password as login credentials.
I've always thought the login details should be kept seperate from the user information in terms of database design. So in cases like this, is it considered okay to just abstract the user model to store all I need and the login info, or should I have 2 seperate models?
If seperate models is the way to go, how would I go about providing the user id to the person model if they're created on the same form?
/r/django
https://redd.it/183c39r
Reddit
From the django community on Reddit
Explore this post and more from the django community
P Yolov8 hyperparameters for best generalization
I’m training an object detection model on yolov8 but my training data is a little biased because it doesn’t represent the real life distribution.
(I want to count objects of one class but different shape in a video and need them to be detected with near equal probability. )
How can I make sure to generalise the model enough so that the bias doesn’t have too much of an effect?
I know it will come with more false positives, but that’s not a problem.
/r/MachineLearning
https://redd.it/183fxtq
I’m training an object detection model on yolov8 but my training data is a little biased because it doesn’t represent the real life distribution.
(I want to count objects of one class but different shape in a video and need them to be detected with near equal probability. )
How can I make sure to generalise the model enough so that the bias doesn’t have too much of an effect?
I know it will come with more false positives, but that’s not a problem.
/r/MachineLearning
https://redd.it/183fxtq
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
IDE made with PyQt6 and Python
GitHub: https://github.com/rohankishore/Aura-Text
​
https://preview.redd.it/cbiss7g8oh2c1.png?width=1780&format=png&auto=webp&s=702c63eaaee2c2df08d783f33458297bcd399ca8
https://preview.redd.it/b0gbanp8oh2c1.png?width=1763&format=png&auto=webp&s=e2d699a15dfd725091a6420595dd276f3bae1f00
/r/Python
https://redd.it/183ivz2
GitHub: https://github.com/rohankishore/Aura-Text
​
https://preview.redd.it/cbiss7g8oh2c1.png?width=1780&format=png&auto=webp&s=702c63eaaee2c2df08d783f33458297bcd399ca8
https://preview.redd.it/b0gbanp8oh2c1.png?width=1763&format=png&auto=webp&s=e2d699a15dfd725091a6420595dd276f3bae1f00
/r/Python
https://redd.it/183ivz2
GitHub
GitHub - rohankishore/Aura-Text: Aura Text is a versatile and powerful text editor powered by QScintilla that provides all the…
Aura Text is a versatile and powerful text editor powered by QScintilla that provides all the necessary tools for developers. It is build using PyQt6 and Python. - rohankishore/Aura-Text
Query data warehouse, display results in nice table and allow for edits to be pushed back to another table.
Title says it all. What is the best approach here using grid.js or something similar?
/r/flask
https://redd.it/183ifsv
Title says it all. What is the best approach here using grid.js or something similar?
/r/flask
https://redd.it/183ifsv
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Best relevant/real-world Django apps job seekers should make themselves...
Iam currently trying for a python django developer job as a career change after doing an internship, since the job market is shit and it will take some time to recover from it, Iam thinking of developing a practical application all by myself in the meantime , the kind that i will have to make after getting a job as a developer so that it will help me to master Django more efficiently and increase my chances of getting hired, what are the ones i should try ?, also it will be great if resources that will help me for this are suggested...
/r/django
https://redd.it/183jitc
Iam currently trying for a python django developer job as a career change after doing an internship, since the job market is shit and it will take some time to recover from it, Iam thinking of developing a practical application all by myself in the meantime , the kind that i will have to make after getting a job as a developer so that it will help me to master Django more efficiently and increase my chances of getting hired, what are the ones i should try ?, also it will be great if resources that will help me for this are suggested...
/r/django
https://redd.it/183jitc
Reddit
From the django community on Reddit
Explore this post and more from the django community
CPython int implementation explained
https://tenthousandmeters.com/blog/python-behind-the-scenes-8-how-python-integers-work/
/r/Python
https://redd.it/183gaks
https://tenthousandmeters.com/blog/python-behind-the-scenes-8-how-python-integers-work/
/r/Python
https://redd.it/183gaks
Tenthousandmeters
Python behind the scenes #8: how Python integers work
In the previous parts of this series we studied the core of the CPython interpreter and saw how the most fundamental aspects of Python are...
Can I use Django admin on AWS Lambda?
AWS Lambda is serverless so it does not store any state. My application is made keeping that in mind (using token auth) however Django admin uses session auth which needs to store state so is there any I can use Admin in Lambda?
/r/djangolearning
https://redd.it/183o0v0
AWS Lambda is serverless so it does not store any state. My application is made keeping that in mind (using token auth) however Django admin uses session auth which needs to store state so is there any I can use Admin in Lambda?
/r/djangolearning
https://redd.it/183o0v0
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
How Python's new security developer hopes to improve all software supply chains
https://developers.slashdot.org/story/23/11/25/1655226/how-pythons-new-security-developer-hopes-to-help-all-software-supply-chains
/r/Python
https://redd.it/183w48y
https://developers.slashdot.org/story/23/11/25/1655226/how-pythons-new-security-developer-hopes-to-help-all-software-supply-chains
/r/Python
https://redd.it/183w48y
developers.slashdot.org
How Python's New Security Developer Hopes To Help All Software Supply Chains
Long-time Slashdot reader destinyland writes: The Linux Foundation recently funded a new "security developer in residence" position for Python. (It's funded through the Linux Foundation's own "Open Software Security foundation", which has a stated mission…
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/183xb5f
# 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/183xb5f
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Frontend framework for a backend dev
I'm looking for a frontend framework to help me build a web app. I'm decent at writing basic CSS and JS however I find things like React a little too complicated, but I want something more modern than Bootstrap.
It seems like a combination of HTMX, TailWindCSS with Alphine.JS is popular. I'm a little worried about so many moving parts but open to try it if there isn't a single solution.
/r/django
https://redd.it/1840zbr
I'm looking for a frontend framework to help me build a web app. I'm decent at writing basic CSS and JS however I find things like React a little too complicated, but I want something more modern than Bootstrap.
It seems like a combination of HTMX, TailWindCSS with Alphine.JS is popular. I'm a little worried about so many moving parts but open to try it if there isn't a single solution.
/r/django
https://redd.it/1840zbr
Reddit
From the django community on Reddit
Explore this post and more from the django community
I have been practicing, would love code reviews.
https://github.com/imcyber0wl/myblog
https://github.com/imcyber0wl/zaudio (just finished this one, may take some time to stop showing the "str has no attribute append" error, too tired to reboot the instance lol, just refresh the page)
https://github.com/imcyber0wl/shoptest
Im still learning, so please be gentle. Also, yes the front end sucks because i hate making the front end.
/r/djangolearning
https://redd.it/183uvif
https://github.com/imcyber0wl/myblog
https://github.com/imcyber0wl/zaudio (just finished this one, may take some time to stop showing the "str has no attribute append" error, too tired to reboot the instance lol, just refresh the page)
https://github.com/imcyber0wl/shoptest
Im still learning, so please be gentle. Also, yes the front end sucks because i hate making the front end.
/r/djangolearning
https://redd.it/183uvif
GitHub
GitHub - imcyber0wl/myblog: A blog with humble front end design deployed on AWS. Uses caching and logging.
A blog with humble front end design deployed on AWS. Uses caching and logging. - GitHub - imcyber0wl/myblog: A blog with humble front end design deployed on AWS. Uses caching and logging.
Help for sending information to my database
I am doing a project for university on my localhost, what is the most usefull way to catch information on a html form to mysql database ? If someone has the documentation or if someone could help me telling me how I can do it in a usefull way I would be very appreciated
/r/djangolearning
https://redd.it/183l5pa
I am doing a project for university on my localhost, what is the most usefull way to catch information on a html form to mysql database ? If someone has the documentation or if someone could help me telling me how I can do it in a usefull way I would be very appreciated
/r/djangolearning
https://redd.it/183l5pa
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Best relevant/real-world Django apps job seekers should make themselves...
Iam currently trying for a python django developer job as a career change after doing an internship, since the job market is shit and it will take some time to recover from it, Iam thinking of developing a practical application all by myself in the meantime , the kind that i will have to make after getting a job as a developer so that it will help me to master Django more efficiently and increase my chances of getting hired, what are the ones i should try ?, also it will be great if resources that will help me for this are suggested, also need to know about the relevant methods for things like authorisation etc...
/r/djangolearning
https://redd.it/183kfrq
Iam currently trying for a python django developer job as a career change after doing an internship, since the job market is shit and it will take some time to recover from it, Iam thinking of developing a practical application all by myself in the meantime , the kind that i will have to make after getting a job as a developer so that it will help me to master Django more efficiently and increase my chances of getting hired, what are the ones i should try ?, also it will be great if resources that will help me for this are suggested, also need to know about the relevant methods for things like authorisation etc...
/r/djangolearning
https://redd.it/183kfrq
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Bill Gates told a German newspaper that GPT5 wouldn't be much better than GPT4: "there are reasons to believe that we have reached a plateau" [N]
https://www.handelsblatt.com/technik/ki/bill-gates-mit-ki-koennen-medikamente-viel-schneller-entwickelt-werden/29450298.html
/r/MachineLearning
https://redd.it/183tft1
https://www.handelsblatt.com/technik/ki/bill-gates-mit-ki-koennen-medikamente-viel-schneller-entwickelt-werden/29450298.html
/r/MachineLearning
https://redd.it/183tft1
Handelsblatt
Bill Gates: „Mit KI können Medikamente viel schneller entwickelt werden"
Microsoft-Gründer Bill Gates spricht über Fortschritte in der künstlichen Intelligenz, wie sie dem globalen Süden helfen kann und warum Bäume pflanzen nicht das beste Mittel gegen den Klimawandel ist.
Cleanlab
Cleanlab is a new Python library that automatically cleans data sets (outliers, duplicates, data labels), featurizes and trains multi-modal data sets (eg tabular, image)
https://github.com/cleanlab/cleanlab
​
/r/Python
https://redd.it/18474eh
Cleanlab is a new Python library that automatically cleans data sets (outliers, duplicates, data labels), featurizes and trains multi-modal data sets (eg tabular, image)
https://github.com/cleanlab/cleanlab
​
/r/Python
https://redd.it/18474eh
GitHub
GitHub - cleanlab/cleanlab: Cleanlab's open-source library is the standard data-centric AI package for data quality and machine…
Cleanlab's open-source library is the standard data-centric AI package for data quality and machine learning with messy, real-world data and labels. - cleanlab/cleanlab
I made a CLI Python file that creates a template for a flask project. It creates all the folders and files plus databases and testing environment. Link to the GitHub repo in the description.
https://github.com/shakey0/flask-starter-template
Make sure you have Pipenv installed globally on your system. Instructions are at the bottom of the README.
Please note that if you're on Windows and haven't yet run anything on " 127.0.0.1 ", you may need to open Command Prompt as an administrator, run the command " netsh winsock reset " and then restart your computer.
/r/Python
https://redd.it/1848hpn
https://github.com/shakey0/flask-starter-template
Make sure you have Pipenv installed globally on your system. Instructions are at the bottom of the README.
Please note that if you're on Windows and haven't yet run anything on " 127.0.0.1 ", you may need to open Command Prompt as an administrator, run the command " netsh winsock reset " and then restart your computer.
/r/Python
https://redd.it/1848hpn
GitHub
GitHub - shakey0/flask-starter-template
Contribute to shakey0/flask-starter-template development by creating an account on GitHub.
How to organize your team to work with Django and Git ?
Hi everyone,
I'm a student in computer sciences and with 5 friends we will go on a challenge where we must create a web site in \~16 hours.
We chose to use Django because it really conform to what we need, and we learned how to use it for this challenge.
However, we learned separately and we might know how to create a project on our own but not as a team.
We know how to use Git and will obviously use it, but we don't know how we should organize ourselves to work efficiently.
How shoud we work with Git so our Django project is optimal ? I'll explain what I mean :
It might appends that we are working on dependant project, like one guy on a database and another one on the front end to show this database. How can we prepare and work so we don't have to always ask eachother what are they doing ?
Also for the templates, the url management, and how to avoid big merge conflict ? If we do separate apps in Django, how can we do so at the end it's easy to merge them ?
For now
/r/django
https://redd.it/1848sdk
Hi everyone,
I'm a student in computer sciences and with 5 friends we will go on a challenge where we must create a web site in \~16 hours.
We chose to use Django because it really conform to what we need, and we learned how to use it for this challenge.
However, we learned separately and we might know how to create a project on our own but not as a team.
We know how to use Git and will obviously use it, but we don't know how we should organize ourselves to work efficiently.
How shoud we work with Git so our Django project is optimal ? I'll explain what I mean :
It might appends that we are working on dependant project, like one guy on a database and another one on the front end to show this database. How can we prepare and work so we don't have to always ask eachother what are they doing ?
Also for the templates, the url management, and how to avoid big merge conflict ? If we do separate apps in Django, how can we do so at the end it's easy to merge them ?
For now
/r/django
https://redd.it/1848sdk
Reddit
From the django community on Reddit
Explore this post and more from the django community