Monday Daily Thread: Project ideas!
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1eellgu
# Weekly Thread: Project Ideas 💡
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
## How it Works:
1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.
## Guidelines:
* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.
# Example Submissions:
## Project Idea: Chatbot
**Difficulty**: Intermediate
**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar
**Description**: Create a chatbot that can answer FAQs for a website.
**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)
# Project Idea: Weather Dashboard
**Difficulty**: Beginner
**Tech Stack**: HTML, CSS, JavaScript, API
**Description**: Build a dashboard that displays real-time weather information using a weather API.
**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)
## Project Idea: File Organizer
**Difficulty**: Beginner
**Tech Stack**: Python, File I/O
**Description**: Create a script that organizes files in a directory into sub-folders based on file type.
**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)
Let's help each other grow. Happy
/r/Python
https://redd.it/1eellgu
YouTube
Build & Integrate your own custom chatbot to a website (Python & JavaScript)
In this fun project you learn how to build a custom chatbot in Python and then integrate this to a website using Flask and JavaScript.
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
Starter Files: https://github.com/patrickloeber/chatbot-deployment
Get my Free NumPy Handbook: https://www.python-engi…
What benefit do PostgreSQL connection pools offer over CONNMAXAGE ?
Django 5.1 has psycopg connection pool support: https://docs.djangoproject.com/en/5.1/releases/5.1/#postgresql-connection-pools
How exactly is this different from the existing CONNMAXAGE setting which I assumed was using persistent connection pools already.
/r/django
https://redd.it/1eet0bl
Django 5.1 has psycopg connection pool support: https://docs.djangoproject.com/en/5.1/releases/5.1/#postgresql-connection-pools
How exactly is this different from the existing CONNMAXAGE setting which I assumed was using persistent connection pools already.
/r/django
https://redd.it/1eet0bl
Django Project
Django 5.1 release notes | Django documentation
The web framework for perfectionists with deadlines.
Thoughts on using Figma/Webflow with FastAPI
I dislike working on the front-end. I plan to use Figma exports or Webflow for the front end of my project. Is it sufficient to use FastAPI with Jinja templates for optimal performance?
/r/Python
https://redd.it/1eeqqtq
I dislike working on the front-end. I plan to use Figma exports or Webflow for the front end of my project. Is it sufficient to use FastAPI with Jinja templates for optimal performance?
/r/Python
https://redd.it/1eeqqtq
Reddit
Thoughts on using Figma/Webflow with FastAPI
: r/Python
: r/Python
1.3M subscribers in the Python community. The official Python community for Reddit! Stay up to date with the latest news, packages, and meta…
I created a command line tool using Python and Ollama to automatically create PRs on GitHub
Hey everybody!
# What My Project Does
I created this command line tool called jit that analyses your diffs and commit messages to generate a pull request description (based on your project's PR template if it has one) and then creates a pull request on GitHub (draft by default) using GitHub CLI.
# Target Audience
This tool is meant for developers that use GitHub. Mostly meant for hobby projects, but if you want you can use it on a production project (for work/clients) because:
* it utilizes a local LLM (no sharing your code to 3rd party APIs)
* The pull requests follow the template specified in your repository
* The pull request is marked as draft by default
# Comparison
I have not found any cli tools that do this in this manner. But I think GitHub's Copilot for Pull Requests will certainly generate better descriptions: [https://githubnext.com/projects/copilot-for-pull-requests/](https://githubnext.com/projects/copilot-for-pull-requests/)
# More about me and jit
I am predominantly a full-stack web developer (React, NestJS) for my job, but I love playing around with Python and other things. I have developed this using Python and Ollama with llama3.
I have been using jit almost every day, for about a month now, and it has made such a big difference in my day-to-day as a
/r/Python
https://redd.it/1eehm1a
Hey everybody!
# What My Project Does
I created this command line tool called jit that analyses your diffs and commit messages to generate a pull request description (based on your project's PR template if it has one) and then creates a pull request on GitHub (draft by default) using GitHub CLI.
# Target Audience
This tool is meant for developers that use GitHub. Mostly meant for hobby projects, but if you want you can use it on a production project (for work/clients) because:
* it utilizes a local LLM (no sharing your code to 3rd party APIs)
* The pull requests follow the template specified in your repository
* The pull request is marked as draft by default
# Comparison
I have not found any cli tools that do this in this manner. But I think GitHub's Copilot for Pull Requests will certainly generate better descriptions: [https://githubnext.com/projects/copilot-for-pull-requests/](https://githubnext.com/projects/copilot-for-pull-requests/)
# More about me and jit
I am predominantly a full-stack web developer (React, NestJS) for my job, but I love playing around with Python and other things. I have developed this using Python and Ollama with llama3.
I have been using jit almost every day, for about a month now, and it has made such a big difference in my day-to-day as a
/r/Python
https://redd.it/1eehm1a
GitHub Next
GitHub Next | Copilot for Pull Requests
GitHub Next Project: Pull requests are a central part of the GitHub user experience. Copilot for PRs brings the power of Copilot to the PR experience, to help you write better PR descriptions, and to help your team review and merge PRs faster.
D Simple Questions Thread
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the title.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/1ee9dra
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the title.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/1ee9dra
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
How long would it take to switch from SQLite to SQL?
Going from non prod to prod soon.
Also, anyone know how long it takes to implement google login? So users can click sign in with google etc
Thanks!!
(I am on azure)
/r/django
https://redd.it/1eexzx3
Going from non prod to prod soon.
Also, anyone know how long it takes to implement google login? So users can click sign in with google etc
Thanks!!
(I am on azure)
/r/django
https://redd.it/1eexzx3
Reddit
From the django community on Reddit
Explore this post and more from the django community
Do you feel like Python's type hinting got "stable"?
Basically the title.
I was reading through [https://docs.python.org/3.13/library/typing.html](https://docs.python.org/3.13/library/typing.html) and noticed that quite a lot happened over the last few years. Doing a text search for `deprecated since version x` with `x` being one of `3.9` to `3.13` I found these according numbers of occurrences:
* `3.9` -> 37
* `3.10` -> 0
* `3.11` -> 1
* `3.12` -> 3
* `3.13` -> 5
Which makes me question how "stable" Python type hinting has become these days. Do you think that there are still rough edges that need major overhauls or is Python 3.13 actually mostly where we need it to be in order to productively use static typing?
/r/Python
https://redd.it/1ef1ym0
Basically the title.
I was reading through [https://docs.python.org/3.13/library/typing.html](https://docs.python.org/3.13/library/typing.html) and noticed that quite a lot happened over the last few years. Doing a text search for `deprecated since version x` with `x` being one of `3.9` to `3.13` I found these according numbers of occurrences:
* `3.9` -> 37
* `3.10` -> 0
* `3.11` -> 1
* `3.12` -> 3
* `3.13` -> 5
Which makes me question how "stable" Python type hinting has become these days. Do you think that there are still rough edges that need major overhauls or is Python 3.13 actually mostly where we need it to be in order to productively use static typing?
/r/Python
https://redd.it/1ef1ym0
Python documentation
typing — Support for type hints
Source code: Lib/typing.py This module provides runtime support for type hints. Consider the function below: The function surface_area_of_cube takes an argument expected to be an instance of float,...
Is django (+ htmx) the right thing for me?
Hi everybody!
I'm coming from the data science python path. Long time ago I learned html and css - builded some static websites while studying but never got really into it - a little bit of bootstrap, jquery or wordpress on top was all I needed.
Now I want to build a website where different users can access different dashboards. After processing the data from different sources, it will be stored in a postgres database from where I want to access the data with django and build some dashboards for different use cases and users.
Furthermore I want to create some questionnaires where users have to log in and answer in predefined intervalls and store these values in my database too.
Most of my visualizations I do with matplotlib, seaborn and vega-altair in streamlit apps for now, but I don't like being limited by streamlit anymore. And my projects are getting bigger.
So I am searching a framework to learn which meets my needs.
Can you recommend django + htmx to me in good conscience?
Should I take the effort and learn a javascript framework?
Thank you for your thoughts!
/r/django
https://redd.it/1ef5zyw
Hi everybody!
I'm coming from the data science python path. Long time ago I learned html and css - builded some static websites while studying but never got really into it - a little bit of bootstrap, jquery or wordpress on top was all I needed.
Now I want to build a website where different users can access different dashboards. After processing the data from different sources, it will be stored in a postgres database from where I want to access the data with django and build some dashboards for different use cases and users.
Furthermore I want to create some questionnaires where users have to log in and answer in predefined intervalls and store these values in my database too.
Most of my visualizations I do with matplotlib, seaborn and vega-altair in streamlit apps for now, but I don't like being limited by streamlit anymore. And my projects are getting bigger.
So I am searching a framework to learn which meets my needs.
Can you recommend django + htmx to me in good conscience?
Should I take the effort and learn a javascript framework?
Thank you for your thoughts!
/r/django
https://redd.it/1ef5zyw
Reddit
From the django community on Reddit
Explore this post and more from the django community
🐶 immunipy: Find vulnerable dependencies in your Python projects
# What My Project Does
I've created immunipy a Python SCA tool that acts as a watchdog, keeping an eye out for security vulnerabilities and reporting them promptly, written in Rust. immunipy will scan your
It's easy to use and is really fast, all the vulnerabilities are reported in real time.
# Target Audience
I think that immunipy is useful for every project, specially the production ready ones, due that every time that you run it you will get an instant scan of your dependencies.
# Comparison
It's easy to use, just
/r/Python
https://redd.it/1ef02hg
# What My Project Does
I've created immunipy a Python SCA tool that acts as a watchdog, keeping an eye out for security vulnerabilities and reporting them promptly, written in Rust. immunipy will scan your
requirements.txt or poetry.lock files and search for existing vulnerabilities in your dependencies, if any of your dependencies is reported as vulnerable then you will get the information, such as: package, version, fixed version (if exists), vuln id, aliases and the location.It's easy to use and is really fast, all the vulnerabilities are reported in real time.
# Target Audience
I think that immunipy is useful for every project, specially the production ready ones, due that every time that you run it you will get an instant scan of your dependencies.
# Comparison
It's easy to use, just
pip install immunipy and you can run it! Also, you can add it in your CI/CD pipeline and run it regularly, this is useful if you want to keep your projects free of vulnerable dependencies./r/Python
https://redd.it/1ef02hg
GitHub
GitHub - rohaquinlop/immunipy: A Python SCA tool that acts as a watchdog, keeping an eye out for security vulnerabilities and reporting…
A Python SCA tool that acts as a watchdog, keeping an eye out for security vulnerabilities and reporting them promptly, written in Rust. - rohaquinlop/immunipy
Tuesday Daily Thread: Advanced questions
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1eff15m
# Weekly Wednesday Thread: Advanced Questions 🐍
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
## How it Works:
1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.
## Guidelines:
* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.
## Recommended Resources:
* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.
## Example Questions:
1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the
/r/Python
https://redd.it/1eff15m
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
How to Edit DOCX Documents on the Fly Using Flask?
Hi everyone,
I'm currently working on a Flask application and need to edit DOCX format documents on the fly. Has anyone done this before? If so, could you point me to any source code or libraries that can help with this?
Thanks in advance! ☺️
/r/flask
https://redd.it/1efhsde
Hi everyone,
I'm currently working on a Flask application and need to edit DOCX format documents on the fly. Has anyone done this before? If so, could you point me to any source code or libraries that can help with this?
Thanks in advance! ☺️
/r/flask
https://redd.it/1efhsde
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Spotify Route isnt working
I have been working on my Spotify Player Project with React and Flask when all of a sudden my route for playlist retrieval stops working and all of my other routes remain fine. I didn't touch it or anything it just broke all of a sudden if anyone could offer any help it would be much appreciated. https://github.com/00fff/SoundLink
/r/flask
https://redd.it/1efcecy
I have been working on my Spotify Player Project with React and Flask when all of a sudden my route for playlist retrieval stops working and all of my other routes remain fine. I didn't touch it or anything it just broke all of a sudden if anyone could offer any help it would be much appreciated. https://github.com/00fff/SoundLink
/r/flask
https://redd.it/1efcecy
GitHub
GitHub - 00fff/SoundLink
Contribute to 00fff/SoundLink development by creating an account on GitHub.
Is my portfolio good enough to get an entry-level position?
Is my portfolio good enough to get an entry-level position? I've been trying to get an entry-level position for about 4 to 5 months, but with no luck. If you guys have some time, can you guys check out my portfolio site and give me some feedback, please? Here is the portfolio site at Pythonanywhere, and here is my resume on Google Drive. Any feedback will be greatly appreciated. Thank you.
/r/djangolearning
https://redd.it/1efo7ol
Is my portfolio good enough to get an entry-level position? I've been trying to get an entry-level position for about 4 to 5 months, but with no luck. If you guys have some time, can you guys check out my portfolio site and give me some feedback, please? Here is the portfolio site at Pythonanywhere, and here is my resume on Google Drive. Any feedback will be greatly appreciated. Thank you.
/r/djangolearning
https://redd.it/1efo7ol
UXsim 1.4.0 released, with a ~20x speedup over 1.3.0 for large scale traffic scenarios
Version 1.4.0 of UXsim is released, which optimized two shortest path search functions by using better suited data formats (matrices where possible) and vectorization, for a \~20x speedup over 1.3.0. See:
[https://github.com/toruseo/UXsim/issues/53](https://github.com/toruseo/UXsim/issues/53)
https://github.com/toruseo/UXsim/issues/84
UXsim 1.4.0 highlights
Significant speed up for large-scale scenario
In combination with the previous v1.3.1 update, we have optimized the shortest path search and related functions. As a result, the calculation speed for large scenarios (e.g., those with 1000+ links) has increased by 10 to 100 times.
Implement new scenario writing/reading functions `W.save_scenario` and `W.load_scenario`.
As a demonstration of these updates, we have added demo in Chicago-Sketch dataset with 1 million vehicles.
UXsim
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/1efnuau
Version 1.4.0 of UXsim is released, which optimized two shortest path search functions by using better suited data formats (matrices where possible) and vectorization, for a \~20x speedup over 1.3.0. See:
[https://github.com/toruseo/UXsim/issues/53](https://github.com/toruseo/UXsim/issues/53)
https://github.com/toruseo/UXsim/issues/84
UXsim 1.4.0 highlights
Significant speed up for large-scale scenario
In combination with the previous v1.3.1 update, we have optimized the shortest path search and related functions. As a result, the calculation speed for large scenarios (e.g., those with 1000+ links) has increased by 10 to 100 times.
Implement new scenario writing/reading functions `W.save_scenario` and `W.load_scenario`.
As a demonstration of these updates, we have added demo in Chicago-Sketch dataset with 1 million vehicles.
UXsim
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/1efnuau
GitHub
Release v1.4.0 - Speed up · toruseo/UXsim
Highlights
Significant speed up for large-scale scenario
In combination with the previous v1.3.1 update, we have optimized the shortest path search and related functions. As a result, the calcula...
Significant speed up for large-scale scenario
In combination with the previous v1.3.1 update, we have optimized the shortest path search and related functions. As a result, the calcula...
Discussion Non compute hungry research publications that you really liked in the recent years?
There are several pieces of fantastic works happening all across the industry and academia. But greater the hype around a work more resource/compute heavy it generally is.
What about some works done in academia/industry/independently by a small group (or single author) that is really fundamental or impactful, yet required very little compute (a single or double GPU or sometimes even CPU)?
Which works do you have in mind and why do you think they stand out?
/r/MachineLearning
https://redd.it/1efmmnn
There are several pieces of fantastic works happening all across the industry and academia. But greater the hype around a work more resource/compute heavy it generally is.
What about some works done in academia/industry/independently by a small group (or single author) that is really fundamental or impactful, yet required very little compute (a single or double GPU or sometimes even CPU)?
Which works do you have in mind and why do you think they stand out?
/r/MachineLearning
https://redd.it/1efmmnn
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Django and Vue/Vite
hey yall!
So I'm trying to figure out how to structure a new django/vue project, i want the vue project to live inside the django project. i want to have my root django url point to the vue build files, i also want to be able to use the vite dev server as normal. From what i can tell, this means I need to get vite to proxy to django (not even sure that's supposed to mean).
im a little lost and i cannot find any good docs/resources on this topic, if anyone has any experience with this type of setup - pls help me out. if you have any good resources please send them my way
thanks
/r/django
https://redd.it/1efqj3z
hey yall!
So I'm trying to figure out how to structure a new django/vue project, i want the vue project to live inside the django project. i want to have my root django url point to the vue build files, i also want to be able to use the vite dev server as normal. From what i can tell, this means I need to get vite to proxy to django (not even sure that's supposed to mean).
im a little lost and i cannot find any good docs/resources on this topic, if anyone has any experience with this type of setup - pls help me out. if you have any good resources please send them my way
thanks
/r/django
https://redd.it/1efqj3z
Reddit
From the django community on Reddit
Explore this post and more from the django community
Whatever happened to "explicit is better than implicit"?
I'm making an app with FastAPI and PyTest, and it seems like everything relies on implicit magic to get things done.
With PyTest, it magically rewrites the bytecode so that you can use the built in
Another thing with PyTest is that it creates test classes implicitly, and calls test methods implicitly, so the only way you can inject dependencies like mock databases and the like is through fixtures. Fixtures are resolved implicitly by looking for something in the scope with a matching name. So you need to find somewhere at global scope where you need to stick your test-only dependencies and somehow switch off the production-only dependencies.
FastAPI is similar. It has 'magic' dependencies which it will try and resolve based on the identifier name when the path function is called, meaning that if those dependencies should be configurable, then you need to
/r/Python
https://redd.it/1efrusl
I'm making an app with FastAPI and PyTest, and it seems like everything relies on implicit magic to get things done.
With PyTest, it magically rewrites the bytecode so that you can use the built in
assert statement instead of custom methods. This is all fine until you try and use a helper method that contains asserts and now it gets the line numbers wrong, or you want to make a module of shared testing methods which won't get their bytecode rewritten unless you remember to ask pytest to specifically rewrite that module as well.Another thing with PyTest is that it creates test classes implicitly, and calls test methods implicitly, so the only way you can inject dependencies like mock databases and the like is through fixtures. Fixtures are resolved implicitly by looking for something in the scope with a matching name. So you need to find somewhere at global scope where you need to stick your test-only dependencies and somehow switch off the production-only dependencies.
FastAPI is similar. It has 'magic' dependencies which it will try and resolve based on the identifier name when the path function is called, meaning that if those dependencies should be configurable, then you need to
/r/Python
https://redd.it/1efrusl
Reddit
From the Python community on Reddit: Whatever happened to "explicit is better than implicit"?
Explore this post and more from the Python community
D NeurIPS 2024 Paper Reviews
NeurIPS 2024 paper reviews are supposed to be released today. I thought to create a discussion thread for us to discuss any issue/complain/celebration or anything else.
There is so much noise in the reviews every year. Some good work that the authors are proud of might get a low score because of the noisy system, given that NeurIPS is growing so large these years. We should keep in mind that the work is still valuable no matter what the score is.
/r/MachineLearning
https://redd.it/1efscr2
NeurIPS 2024 paper reviews are supposed to be released today. I thought to create a discussion thread for us to discuss any issue/complain/celebration or anything else.
There is so much noise in the reviews every year. Some good work that the authors are proud of might get a low score because of the noisy system, given that NeurIPS is growing so large these years. We should keep in mind that the work is still valuable no matter what the score is.
/r/MachineLearning
https://redd.it/1efscr2
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community