What would your Reddit Upvoting Model look like?
I think it is easy to see that Users <-> Posts would be a many-to-many with Comments in between, but how would you deal with keeping track of Upvotes whilst retaining User information?
Was just browsing when the thought came to my mind and I can't come up with a good scalable solution...
/r/django
https://redd.it/uebgfj
I think it is easy to see that Users <-> Posts would be a many-to-many with Comments in between, but how would you deal with keeping track of Upvotes whilst retaining User information?
Was just browsing when the thought came to my mind and I can't come up with a good scalable solution...
/r/django
https://redd.it/uebgfj
reddit
What would your Reddit Upvoting Model look like?
I think it is easy to see that Users <-> Posts would be a many-to-many with Comments in between, but how would you deal with keeping track of...
Once VueJS mastered, does using VueJS with Django require more time to create sites from scratch compared to solutions like Django with HTMX
Hey everyone,
I work in finance as an analyst but i also happen to be involved in projects where i deploy web apps. Last one i deployed was using this stack : Django + MS SERVER (my company's DB server) + HTMX + Vanilla JS + HTML/CSS.
However, i would like to be more comfortable with JS. I mess around with JS Vanilla and HTMX which helped me make my web app SPA. But i like being close to the industry standards because maybe one day i will develop my own app for a personal business project, or i'd want to become a full time developer and move from finance.
The dilemma is that at my work, i don't have the time of being a real full stack dev. But i also hate libraries like Dash etc and the inflexibility they have. I started playing around with dash and i didn't like writing HTML in a Python file, i just didn't get the point, i'd rather write plain HTML and CSS like it's supposed to be done, it's the same time spent.
So my question is, as with CSS, does learning a front-end JS framework helps you deploy your apps faster once you get
/r/django
https://redd.it/ueu5dz
Hey everyone,
I work in finance as an analyst but i also happen to be involved in projects where i deploy web apps. Last one i deployed was using this stack : Django + MS SERVER (my company's DB server) + HTMX + Vanilla JS + HTML/CSS.
However, i would like to be more comfortable with JS. I mess around with JS Vanilla and HTMX which helped me make my web app SPA. But i like being close to the industry standards because maybe one day i will develop my own app for a personal business project, or i'd want to become a full time developer and move from finance.
The dilemma is that at my work, i don't have the time of being a real full stack dev. But i also hate libraries like Dash etc and the inflexibility they have. I started playing around with dash and i didn't like writing HTML in a Python file, i just didn't get the point, i'd rather write plain HTML and CSS like it's supposed to be done, it's the same time spent.
So my question is, as with CSS, does learning a front-end JS framework helps you deploy your apps faster once you get
/r/django
https://redd.it/ueu5dz
reddit
Once VueJS mastered, does using VueJS with Django require more...
Hey everyone, I work in finance as an analyst but i also happen to be involved in projects where i deploy web apps. Last one i deployed was using...
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/ueyz7b
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/ueyz7b
reddit
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic? Use this thread to chat about and...
Rich, Textual, and Rich-CLI have a new website
https://www.textualize.io/
/r/Python
https://redd.it/uf88s6
https://www.textualize.io/
/r/Python
https://redd.it/uf88s6
www.textualize.io
Textualize - Home
You Should Compile Your Python And Here's Why
https://glyph.twistedmatrix.com/2022/04/you-should-compile-your-python-and-heres-why.html
/r/Python
https://redd.it/uf6bzi
https://glyph.twistedmatrix.com/2022/04/you-should-compile-your-python-and-heres-why.html
/r/Python
https://redd.it/uf6bzi
Twistedmatrix
You Should Compile Your Python And Here’s Why
write Python that’s faster than C by optimizing your code, adding standard type annotations, and using Mypyc.
My Utility to greatly simplify writing scripts
https://github.com/Ovsyanka83/pysh
/r/Python
https://redd.it/ufbn9t
https://github.com/Ovsyanka83/pysh
/r/Python
https://redd.it/ufbn9t
GitHub
GitHub - Ovsyanka83/pysh: A library of small functions that simplify scripting in python
A library of small functions that simplify scripting in python - GitHub - Ovsyanka83/pysh: A library of small functions that simplify scripting in python
Just created my first pytest plugin: Pyshot!
Hey guys!
I created a pytest plugin called Pyshot. It is intended to facilitate screenshot taking during testcases using selenium, here are the links if you want to check it!
Package: https://pypi.org/project/pyshot/
Repo: https://github.com/anggelomos/pyshot
​
Pyshot demo
/r/Python
https://redd.it/ufhzso
Hey guys!
I created a pytest plugin called Pyshot. It is intended to facilitate screenshot taking during testcases using selenium, here are the links if you want to check it!
Package: https://pypi.org/project/pyshot/
Repo: https://github.com/anggelomos/pyshot
​
Pyshot demo
/r/Python
https://redd.it/ufhzso
PyPI
pyshot
Pytest plugin to facilitate screenshot taking with selenium webdriver
How to Set-up Jupyter notebook for C++ and Java.
I know there's a kernel xeus-cling for C++ but i guess it's not for windows. I've seen tutorials, tried with conda, pip but nothing helps. Can anyone give me a step by step tutorial please??
Thanks in advance
/r/JupyterNotebooks
https://redd.it/uf671w
I know there's a kernel xeus-cling for C++ but i guess it's not for windows. I've seen tutorials, tried with conda, pip but nothing helps. Can anyone give me a step by step tutorial please??
Thanks in advance
/r/JupyterNotebooks
https://redd.it/uf671w
reddit
How to Set-up Jupyter notebook for C++ and Java.
I know there's a kernel xeus-cling for C++ but i guess it's not for windows. I've seen tutorials, tried with conda, pip but nothing helps. Can...
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/ufnesj
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/ufnesj
reddit
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
How To Monitor Open Source Trends With The OpenBB Terminal!
Admittedly, we are likely a little biased when it comes to open-source projects. The rest of the world may only be learning what OSS is because Elon Musk has been twatting about opening up the algorithm.
We all know the value, I don't need to sell y'all on it. When it comes to following projects, you can keep your ear even closer to the ground with the Open Source Menu of the OpenBB Terminal.
If you haven't already, the first thing you need to do is go to GitHub and star the OpenBB Terminal Repo.
OpenBB GitHub Repo
OpenBB GitHub Repo \(https:\/\/github.com\/OpenBB-finance\/OpenBBTerminal\)
While you're there, fork the repo and follow along!
Get To The OSS Menu
There are four commands to choose from in the OSS submenu:
rs: Repo Summary
(🦋) /alternative/oss/ $ rs -h
usage: rs -r REPO -h --export EXPORT --raw
Display a repo summary Source: https://api.github.com
optional arguments:
-r REPO, --repo REPO Repository to search for repo summary. Format: org/repo, e.g., openbb-finance/openbbterminal (default: None)
-h, --help
/r/Python
https://redd.it/ufrlwg
Admittedly, we are likely a little biased when it comes to open-source projects. The rest of the world may only be learning what OSS is because Elon Musk has been twatting about opening up the algorithm.
We all know the value, I don't need to sell y'all on it. When it comes to following projects, you can keep your ear even closer to the ground with the Open Source Menu of the OpenBB Terminal.
If you haven't already, the first thing you need to do is go to GitHub and star the OpenBB Terminal Repo.
OpenBB GitHub Repo
OpenBB GitHub Repo \(https:\/\/github.com\/OpenBB-finance\/OpenBBTerminal\)
While you're there, fork the repo and follow along!
Get To The OSS Menu
There are four commands to choose from in the OSS submenu:
rs: Repo Summary
(🦋) /alternative/oss/ $ rs -h
usage: rs -r REPO -h --export EXPORT --raw
Display a repo summary Source: https://api.github.com
optional arguments:
-r REPO, --repo REPO Repository to search for repo summary. Format: org/repo, e.g., openbb-finance/openbbterminal (default: None)
-h, --help
/r/Python
https://redd.it/ufrlwg
GitHub
GitHub - OpenBB-finance/OpenBB: Financial data platform for analysts, quants and AI agents.
Financial data platform for analysts, quants and AI agents. - OpenBB-finance/OpenBB
Hide sensitive information in PDF using Python and NLP
Cheers Python community!Just finished writing a module for
In a nutshell, here what it does (you can change the color of the boxes)
sample.jpg
Under the hood, it's all about
I would appreciate if anyone tries to use! (or you can star the repository ⭐)
Feedback and reports a bug is highly welcomed!
I also did my best to write a comprehensive README.md, if you want to get started. So please check it out! GitHub Repo
/r/Python
https://redd.it/ufxsuc
Cheers Python community!Just finished writing a module for
PDF anonymization which detects sensitive information and hides it!In a nutshell, here what it does (you can change the color of the boxes)
sample.jpg
Under the hood, it's all about
pytesseract (for OCR) and transformers (for NER). I also used pdf2image for conversion and some RegEx.I would appreciate if anyone tries to use! (or you can star the repository ⭐)
Feedback and reports a bug is highly welcomed!
I also did my best to write a comprehensive README.md, if you want to get started. So please check it out! GitHub Repo
/r/Python
https://redd.it/ufxsuc
This media is not supported in your browser
VIEW IN TELEGRAM
I built my first web app, Meddle, a medical themed variation of popular word guessing game | Made with Flask + JavaScript
https://redd.it/ufyrz7
@pythondaily
https://redd.it/ufyrz7
@pythondaily
This media is not supported in your browser
VIEW IN TELEGRAM
open-source python library for making a UI that runs in the browser or inside a jupyter notebook, package is available on PyPI
https://redd.it/ug4xcx
@pythondaily
https://redd.it/ug4xcx
@pythondaily
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code! If you're looking for project ideas, you might be interested in checking out Al Sweigart's, "The Big Book of Small Python Projects" which provides a list of projects and the code to make them work.
/r/Python
https://redd.it/ugcuyr
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code! If you're looking for project ideas, you might be interested in checking out Al Sweigart's, "The Big Book of Small Python Projects" which provides a list of projects and the code to make them work.
/r/Python
https://redd.it/ugcuyr
Inventwithpython
The Big Book of Small Python Projects
A Page in : The Big Book of Small Python Projects
Use MongoDB without Azure's CosmosDB in Azure Web App Django Project
How to establish a connection with the MongoDB Atlas in a Django project that has been deployed in Azure Web App. What will the database configurations in settings.py look like?
This is not working in settings.py:
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'db-name',
'CLIENT': {
'host': 'mongodb+srv://<username>:<password>@<atlas cluster>/<myFirstDatabase>?retryWrites=true&w=majority'
}
}
}
python==3.9
django==4.0.4
djongo==1.3.6
I'm in desperate need of assistance. I need to have this resolved as soon as possible.
/r/djangolearning
https://redd.it/ugpdij
How to establish a connection with the MongoDB Atlas in a Django project that has been deployed in Azure Web App. What will the database configurations in settings.py look like?
This is not working in settings.py:
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'db-name',
'CLIENT': {
'host': 'mongodb+srv://<username>:<password>@<atlas cluster>/<myFirstDatabase>?retryWrites=true&w=majority'
}
}
}
python==3.9
django==4.0.4
djongo==1.3.6
I'm in desperate need of assistance. I need to have this resolved as soon as possible.
/r/djangolearning
https://redd.it/ugpdij
Introducing the Boto S3 Router Package on PyPI
https://lakefs.io/introducing-the-boto-s3-router-package-on-pypi/
/r/Python
https://redd.it/ugkmv7
https://lakefs.io/introducing-the-boto-s3-router-package-on-pypi/
/r/Python
https://redd.it/ugkmv7
Git for Data - lakeFS
Introducing the Boto S3 Router Package on PyPI!
Learn how the Boto S3 Router package simplifies working with composite or multi-region object store backends and how it enhances data management.
Nbcellstest Alternative?
I'm running JupyterLab 3.2.8 which is currently not compatible with nbcellstest. Does anyone have any recommendations for a similar package that isn't nbval?
/r/JupyterNotebooks
https://redd.it/ugrqfs
I'm running JupyterLab 3.2.8 which is currently not compatible with nbcellstest. Does anyone have any recommendations for a similar package that isn't nbval?
/r/JupyterNotebooks
https://redd.it/ugrqfs
GitHub
GitHub - jpmorganchase/nbcelltests: Cell-by-cell testing for production Jupyter notebooks in JupyterLab
Cell-by-cell testing for production Jupyter notebooks in JupyterLab - GitHub - jpmorganchase/nbcelltests: Cell-by-cell testing for production Jupyter notebooks in JupyterLab
Django for Startup MVP?
Hey, I just joined a few friends working on a fun side project. Put vaguely, its a simplified social media platform and they're prototyping it on Django using the simple templating language and vanilla JS/Jquery to make the MVP. I don't have much experience here so I'll ask if anyone knows:
1. Is this typical for the frontend or should a framework like react/angular be used?
2. The security concerns of running a full scale social media using django?
3. How hard it would be to migrate any current work that's been done to another more industrial platform (perhaps after the MVP is made)? What would a more industrial system be?
Thanks in advance
/r/django
https://redd.it/uhmovf
Hey, I just joined a few friends working on a fun side project. Put vaguely, its a simplified social media platform and they're prototyping it on Django using the simple templating language and vanilla JS/Jquery to make the MVP. I don't have much experience here so I'll ask if anyone knows:
1. Is this typical for the frontend or should a framework like react/angular be used?
2. The security concerns of running a full scale social media using django?
3. How hard it would be to migrate any current work that's been done to another more industrial platform (perhaps after the MVP is made)? What would a more industrial system be?
Thanks in advance
/r/django
https://redd.it/uhmovf
reddit
Django for Startup MVP?
Hey, I just joined a few friends working on a fun side project. Put vaguely, its a simplified social media platform and they're prototyping it on...
Wednesday Daily Thread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/uhtmvt
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/uhtmvt
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members