How are you managing local env-specific config/secrets?
Hi all, I manage a team running a number of web services both internally and externally ay my company, and one issue I always have is managing local configuration and secrets.
For example, we have develop/staging/prod instances for each web application, which allows us to validate changes and promote these changes to escalating prod-like environments. I think this pattern is probably pretty familiar to most folks but I'm happy to elaborate more.
However, one thing I have not figured out a good workflow for is managing local secrets. For example, when we are generating database migrations against prod, we need to be pointed to the prod database. What I have found works well enough is to store the secrets in a .env.local file, or .env.prod, .env.staging, .env.develop, etc. And then we just pass these around. It all sounds primitive, but it works well enough, but it feels a bit unwieldy and requires manual config switching to change envs.
However, I also don't imagine this is the best practice. So I guess my questions: how do you store and manage local secrets for dev purposes? I think this question touches on both secrets as well as other likely env-based configs that might vary
/r/django
https://redd.it/1lmusv2
Hi all, I manage a team running a number of web services both internally and externally ay my company, and one issue I always have is managing local configuration and secrets.
For example, we have develop/staging/prod instances for each web application, which allows us to validate changes and promote these changes to escalating prod-like environments. I think this pattern is probably pretty familiar to most folks but I'm happy to elaborate more.
However, one thing I have not figured out a good workflow for is managing local secrets. For example, when we are generating database migrations against prod, we need to be pointed to the prod database. What I have found works well enough is to store the secrets in a .env.local file, or .env.prod, .env.staging, .env.develop, etc. And then we just pass these around. It all sounds primitive, but it works well enough, but it feels a bit unwieldy and requires manual config switching to change envs.
However, I also don't imagine this is the best practice. So I guess my questions: how do you store and manage local secrets for dev purposes? I think this question touches on both secrets as well as other likely env-based configs that might vary
/r/django
https://redd.it/1lmusv2
Reddit
From the django community on Reddit
Explore this post and more from the django community
Showcase: I built perplexity clone with Django and React
I built a Perplexity clone with Django + React! 🔥
Knowmore is my latest open-source project featuring:
Real-time streaming AI responses
Web search integration for current info
Django async/ASGI backend
React + TypeScript frontend
Anthropic & OpenAI LLM integration
FireCrawl for web scraping
Check it out: https://github.com/ahmadrosid/Knowmore
Currently open to new opportunities as a Django/Python/React developer. If you're hiring or know someone who is, drop me a line at **hey@ahmadrosid.com** 📧
Would love your feedback on the code and architecture! 🚀
/r/django
https://redd.it/1lmrgd6
I built a Perplexity clone with Django + React! 🔥
Knowmore is my latest open-source project featuring:
Real-time streaming AI responses
Web search integration for current info
Django async/ASGI backend
React + TypeScript frontend
Anthropic & OpenAI LLM integration
FireCrawl for web scraping
Check it out: https://github.com/ahmadrosid/Knowmore
Currently open to new opportunities as a Django/Python/React developer. If you're hiring or know someone who is, drop me a line at **hey@ahmadrosid.com** 📧
Would love your feedback on the code and architecture! 🚀
/r/django
https://redd.it/1lmrgd6
GitHub
GitHub - ahmadrosid/Knowmore: Knowmore is perplexity clone build width django & react.
Knowmore is perplexity clone build width django & react. - ahmadrosid/Knowmore
Finally tried Django 5.1’s {% querystring %} tag — it’s amazing (especially with HTMX)
While working on a Django project for a client, I had to build a fairly complex UI with HTMX — filtering, sorting, pagination — all driven by query parameters.
As you probably know, updating URLs in Django templates without clobbering the rest of the querystring used to be a pain. I was halfway into writing a custom tag (again) when a colleague pointed me to Django 5.1’s new {% querystring %} template tag.
Game. Changer. 🙌
It handles adding, removing, and updating query parameters cleanly — no loops, no custom tags, just elegant syntax.
I was so happy I found it and I hope it can make someone else happy :)
From the official docs: here
I wrote a short blog post walking through the tag, with examples of real-world usage (pagination, multi-param filters, HTMX integration, etc.) if your'e interested in some more info:
👉 Django 5.1’s Game-Changing QueryString Template Tag: Finally, URL Parameters Made Easy
Hope it’s useful — and I’d love to hear how others are using it or if you’ve got tips I missed!
/r/django
https://redd.it/1ln92hm
While working on a Django project for a client, I had to build a fairly complex UI with HTMX — filtering, sorting, pagination — all driven by query parameters.
As you probably know, updating URLs in Django templates without clobbering the rest of the querystring used to be a pain. I was halfway into writing a custom tag (again) when a colleague pointed me to Django 5.1’s new {% querystring %} template tag.
Game. Changer. 🙌
It handles adding, removing, and updating query parameters cleanly — no loops, no custom tags, just elegant syntax.
I was so happy I found it and I hope it can make someone else happy :)
From the official docs: here
I wrote a short blog post walking through the tag, with examples of real-world usage (pagination, multi-param filters, HTMX integration, etc.) if your'e interested in some more info:
👉 Django 5.1’s Game-Changing QueryString Template Tag: Finally, URL Parameters Made Easy
Hope it’s useful — and I’d love to hear how others are using it or if you’ve got tips I missed!
/r/django
https://redd.it/1ln92hm
Django Project
Built-in template tags and filters | Django documentation
The web framework for perfectionists with deadlines.
Django rest job advice?
Hey guys i have been doing works with django more than a year. I am much comfortable with it that no other framework gives me courage. The best framework for me for backend currently i enjoy. So i wanna build career specifically on this cause i enjoy for hourse doing django rest stuffs.
But in my country there are only few companies that hires django developers.
I want to try remote company that hires django/fastapi developer. How to get job posts? I tried LinkedIn but failed many times bu sending cv...can anyone help me how to get a remote job? What should i add in CV?
I will pleased to have a network who are working as a django/python developer.
/r/django
https://redd.it/1ln4yuw
Hey guys i have been doing works with django more than a year. I am much comfortable with it that no other framework gives me courage. The best framework for me for backend currently i enjoy. So i wanna build career specifically on this cause i enjoy for hourse doing django rest stuffs.
But in my country there are only few companies that hires django developers.
I want to try remote company that hires django/fastapi developer. How to get job posts? I tried LinkedIn but failed many times bu sending cv...can anyone help me how to get a remote job? What should i add in CV?
I will pleased to have a network who are working as a django/python developer.
/r/django
https://redd.it/1ln4yuw
Reddit
From the django community on Reddit
Explore this post and more from the django community
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/1ln12ce
# 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/1ln12ce
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
With Python 3.14 free-threading support coming up, will this be useful for Django's future performances?
I am not very familiar with how this is handled in Django, but does the Django team have a roadmap of supporting this feature and how long down the road should we expect it to roll over?
/r/django
https://redd.it/1lnekfg
I am not very familiar with how this is handled in Django, but does the Django team have a roadmap of supporting this feature and how long down the road should we expect it to roll over?
/r/django
https://redd.it/1lnekfg
Reddit
From the django community on Reddit
Explore this post and more from the django community
Starting Over at 40: How Solo Python Freelancing Let Me Trade Burnout for a Zero-Stress, Profitable
It took me twenty years, two burn-outs, and a hard look at what I really wanted from a working week to understand how I could earn a comfortable living and stay sane. This article is the unfiltered story of my learning curve. It’s 100 percent real; I wrote every line, using AI only to polish grammar and structure. If you are wondering whether a mid-career switch to Python freelance work could fit your own life, read on: I will lay out every step, the money, the mistakes, and exactly how I organise my days now so you can decide what might translate to your situation.
Link to full post here
/r/Python
https://redd.it/1lnkxko
It took me twenty years, two burn-outs, and a hard look at what I really wanted from a working week to understand how I could earn a comfortable living and stay sane. This article is the unfiltered story of my learning curve. It’s 100 percent real; I wrote every line, using AI only to polish grammar and structure. If you are wondering whether a mid-career switch to Python freelance work could fit your own life, read on: I will lay out every step, the money, the mistakes, and exactly how I organise my days now so you can decide what might translate to your situation.
Link to full post here
/r/Python
https://redd.it/1lnkxko
Medium
Starting Over at 40: How Solo Python Freelancing Let Me Trade Burnout for a Zero-Stress, Profitable Life
It took me twenty years, two burn-outs, and a hard look at what I really wanted from a working week to understand how I could earn a…
Django DRF with django All Auth. Cross origin question.
Hey I'm trying to make Django DRF that uses django all auth with a React frontend.
The error is 403 (screenshot):
Backend - localhost:8000
Frontend - localhost:3000
Header's I'm sending along with the fetch request:
headers: {
'Accept': "application/json",
},
credentials: 'include',headers: {
'Accept': "application/json",
"X-CSRFToken": getCSRFToken() ?? '',
},
credentials: 'include',
(the function is tested and returns the token properly)
There is an example project, which I tried to replicate with no luck:
[https://codeberg.org/allauth/django-allauth/src/branch/main/examples/react-spa](https://codeberg.org/allauth/django-allauth/src/branch/main/examples/react-spa)
Request headers for 403:
POST /auth/browser/v1/auth/signup HTTP/1.1
Host: 127.0.0.1:8000
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Accept: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br, zstd
Referer: http://localhost:3000/
X-CSRFToken:
Content-Type: text/plain;charset=UTF-8
Content-Length: 59
/r/django
https://redd.it/1lnljap
Hey I'm trying to make Django DRF that uses django all auth with a React frontend.
The error is 403 (screenshot):
Backend - localhost:8000
Frontend - localhost:3000
Header's I'm sending along with the fetch request:
headers: {
'Accept': "application/json",
},
credentials: 'include',headers: {
'Accept': "application/json",
"X-CSRFToken": getCSRFToken() ?? '',
},
credentials: 'include',
(the function is tested and returns the token properly)
There is an example project, which I tried to replicate with no luck:
[https://codeberg.org/allauth/django-allauth/src/branch/main/examples/react-spa](https://codeberg.org/allauth/django-allauth/src/branch/main/examples/react-spa)
Request headers for 403:
POST /auth/browser/v1/auth/signup HTTP/1.1
Host: 127.0.0.1:8000
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Accept: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br, zstd
Referer: http://localhost:3000/
X-CSRFToken:
Content-Type: text/plain;charset=UTF-8
Content-Length: 59
/r/django
https://redd.it/1lnljap
Codeberg.org
django-allauth
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
Django 5 healthcheck
Hello, I am looking to create a healthcheck endpoint for my django app and I was hoping for it to be a little bit more thorough than just returning an HTTP 200 OK response. My idea was to do something that at least check for DB and cache connectivity before returning that successful response. Are there any recommended/ best practices for this?
I could certainly just perform a read to DB and read or write something to the cache, but was just curious to what others are doing out there since I feel that might be inefficient for an endpoint that's meant to be quick and simple.
/r/django
https://redd.it/1lnjeki
Hello, I am looking to create a healthcheck endpoint for my django app and I was hoping for it to be a little bit more thorough than just returning an HTTP 200 OK response. My idea was to do something that at least check for DB and cache connectivity before returning that successful response. Are there any recommended/ best practices for this?
I could certainly just perform a read to DB and read or write something to the cache, but was just curious to what others are doing out there since I feel that might be inefficient for an endpoint that's meant to be quick and simple.
/r/django
https://redd.it/1lnjeki
Reddit
From the django community on Reddit
Explore this post and more from the django community
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/1lntgli
# 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/1lntgli
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…
any django package for user credit usage/balance ?
hi everyone!
I'm building an AI based web application with django, celery.
I want to allow users have pay-as-you-go model. There will be credit purchasing.
is there any package for this purpose ?
Thanks
/r/django
https://redd.it/1lo3b0o
hi everyone!
I'm building an AI based web application with django, celery.
I want to allow users have pay-as-you-go model. There will be credit purchasing.
is there any package for this purpose ?
Thanks
/r/django
https://redd.it/1lo3b0o
Reddit
From the django community on Reddit
Explore this post and more from the django community
Feeling Overwhelmed as a Django Beginner, Is This Normal?
Hi guys, I recently started learning Django. I'm not completely new to backend development though, I understand the basics, since I had been using Flask for a while. However, I never worked on any real-world projects, just personal ones.
My first programming language was Python, then I moved on to Flask, and now I'm learning Django. I also know HTML and a bit of CSS. I've never really had any formal training; most of my learning has been through YouTube.
Lately, I’ve come to realize how little I actually know. Everything feels overwhelming. I keep learning every day, but there's always something new to figure out. I just started learning Django REST Framework (DRF) through a YouTube course. It was only yesterday or so that I found out about Django Ninja, another option for building REST APIs (I think it supports async too), I discovered it thanks to a Udemy course I got on using Redis with Django by Very Academy.
I've been applying for internships and junior developer roles. I've even sent emails to startups and organizations offering to work as an unpaid intern just to gain real world experience. How did you guys manage to keep going through all this?
Also, in
/r/django
https://redd.it/1lnc48l
Hi guys, I recently started learning Django. I'm not completely new to backend development though, I understand the basics, since I had been using Flask for a while. However, I never worked on any real-world projects, just personal ones.
My first programming language was Python, then I moved on to Flask, and now I'm learning Django. I also know HTML and a bit of CSS. I've never really had any formal training; most of my learning has been through YouTube.
Lately, I’ve come to realize how little I actually know. Everything feels overwhelming. I keep learning every day, but there's always something new to figure out. I just started learning Django REST Framework (DRF) through a YouTube course. It was only yesterday or so that I found out about Django Ninja, another option for building REST APIs (I think it supports async too), I discovered it thanks to a Udemy course I got on using Redis with Django by Very Academy.
I've been applying for internships and junior developer roles. I've even sent emails to startups and organizations offering to work as an unpaid intern just to gain real world experience. How did you guys manage to keep going through all this?
Also, in
/r/django
https://redd.it/1lnc48l
Reddit
From the django community on Reddit
Explore this post and more from the django community
Best Way to Split Scientific PDF Text into Paragraphs?
Hi everyone,
I'm working on processing scientific articles (mostly IEEE-style) and need to split the extracted text into paragraphs reliably.
Simple rules like \\n or \\n\\n often give poor results because:
Many PDFs have line breaks at the end of each line, even mid-paragraph.
Paragraph separation isn't consistent.
I'm looking for a better method or tool (free if possible) to segment PDF text into proper paragraphs
Any suggestions (libraries methods......) would be appreciated!
/r/Python
https://redd.it/1lo60gv
Hi everyone,
I'm working on processing scientific articles (mostly IEEE-style) and need to split the extracted text into paragraphs reliably.
Simple rules like \\n or \\n\\n often give poor results because:
Many PDFs have line breaks at the end of each line, even mid-paragraph.
Paragraph separation isn't consistent.
I'm looking for a better method or tool (free if possible) to segment PDF text into proper paragraphs
Any suggestions (libraries methods......) would be appreciated!
/r/Python
https://redd.it/1lo60gv
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How is PySide6 as a GUI development option?
I've been looking into native GUI app development, and PySide6 came up—does anyone have experience with it?
Also, is building GUI apps with Python kind of a bad idea in general?
/r/Python
https://redd.it/1lo9132
I've been looking into native GUI app development, and PySide6 came up—does anyone have experience with it?
Also, is building GUI apps with Python kind of a bad idea in general?
/r/Python
https://redd.it/1lo9132
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
An open-source alternative to Yahoo Finance's market data python APIs with higher reliability.
"Hey folks! 👋
I've been working on this Python API called defeatbeta-api that some of you might find useful. It's like yfinance but without rate limits and with some extra goodies:
• Earnings call transcripts (super helpful for sentiment analysis)
• Yahoo stock news contents
• Granular revenue data (by segment/geography)
• All the usual yahoo finance market data stuff
I built it because I kept hitting yfinance's limits and needed more complete data. It's been working well for my own trading strategies - thought others might want to try it too.
Happy to answer any questions or take feature requests!"
/r/Python
https://redd.it/1loaj1q
"Hey folks! 👋
I've been working on this Python API called defeatbeta-api that some of you might find useful. It's like yfinance but without rate limits and with some extra goodies:
• Earnings call transcripts (super helpful for sentiment analysis)
• Yahoo stock news contents
• Granular revenue data (by segment/geography)
• All the usual yahoo finance market data stuff
I built it because I kept hitting yfinance's limits and needed more complete data. It's been working well for my own trading strategies - thought others might want to try it too.
Happy to answer any questions or take feature requests!"
/r/Python
https://redd.it/1loaj1q
GitHub
GitHub - defeat-beta/defeatbeta-api: An open-source alternative to Yahoo Finance's market data APIs with higher reliability.
An open-source alternative to Yahoo Finance's market data APIs with higher reliability. - defeat-beta/defeatbeta-api
toycrypto: Some toy cryptographic modules and related tools
### toycrypto
Some toy cryptographic modules and related tools that should never, ever be used for anything other than demonstation purposes.
Python's "one
- PyPi
- Github
- Documentation
### What My Project Does
toycrypto is a collection of modules which can be used to illustrate or teach about basic cryptographic concepts.
It has few third party dependencies and no required dependencies on anything that would prevent its use in a pure Python environment.
It started out as a place for me to collect various things I had written in Jupyter notebooks or in teaching notes.
A few examples:
- The oldest (and ugliest) code in the project is the Elliptic Curve module, which I had originally created to so that I could talk about the doubleandadd algorithm (and its vulnerabilites to side channels).
- The birthday problem module because I needed something that would efficiently provide reasonable approximations for the kinds of numbers and probability I wanted to talk about.
- A more recent module is the security games,
which can be used to illustrate things like IND-CPA.
- The number theory module started out to just give me pure Python utilities that I would otherwise have used Sage
/r/Python
https://redd.it/1loighk
### toycrypto
Some toy cryptographic modules and related tools that should never, ever be used for anything other than demonstation purposes.
Python's "one
int to rule them all" makes it very attractive for illustrating cryptographic notions and computations.- PyPi
- Github
- Documentation
### What My Project Does
toycrypto is a collection of modules which can be used to illustrate or teach about basic cryptographic concepts.
It has few third party dependencies and no required dependencies on anything that would prevent its use in a pure Python environment.
It started out as a place for me to collect various things I had written in Jupyter notebooks or in teaching notes.
A few examples:
- The oldest (and ugliest) code in the project is the Elliptic Curve module, which I had originally created to so that I could talk about the doubleandadd algorithm (and its vulnerabilites to side channels).
- The birthday problem module because I needed something that would efficiently provide reasonable approximations for the kinds of numbers and probability I wanted to talk about.
- A more recent module is the security games,
which can be used to illustrate things like IND-CPA.
- The number theory module started out to just give me pure Python utilities that I would otherwise have used Sage
/r/Python
https://redd.it/1loighk
GitHub
GitHub - jpgoldberg/toy-crypto-math: A personal module for math utilities I use
A personal module for math utilities I use. Contribute to jpgoldberg/toy-crypto-math development by creating an account on GitHub.
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/1loncju
# 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/1loncju
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