Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
I made an open source, self hostable, AI meeting Copilot

Hey Everyone 👋

I recently built **Amurex**, a self-hosted AI meeting copilot that actually works:

**What My Project Does**

Amurex is a self-hosted AI meeting copilot that:

* Records meetings seamlessly (no bot interruptions).
* Delivers accurate transcripts instantly.
* Drafts follow-up emails automatically.
* Keeps a memory of past meetings for easy context.
* Provides **real-time engagement suggestions** during boring meetings (unique feature!).

It’s open source, self-hosted, and ensures full data privacy with no subscriptions or vendor lock-in. And of course, it uses [Robyn](https://github.com/sparckles/Robyn) as the backend ;)

**Target Audience**

Perfect for professionals, privacy-conscious users, and open-source enthusiasts who want smarter meeting tools.

**Comparison**

|**Feature**|**Amurex**|**Others**|
|:-|:-|:-|
|Real-Time Suggestions|Yes|No|
|Seamless Recording|Yes|Bot interruptions|
|Self-Hosted Privacy|Full control|Third-party servers|

**GitHub**: [https://github.com/thepersonalaicompany/amurex](https://github.com/thepersonalaicompany/amurex)
**Website**: [https://www.amurex.ai/](https://www.amurex.ai/)

Would love to know what you all think of it. 😊

/r/Python
https://redd.it/1hh89i3
How to Set Up a Django Frontend: A Complete Tutorial

Today, I shared a guide on setting up the Django frontend, diving into file structure, static files, and how to integrate them seamlessly.

* **Blog Link :** [How to Set Up a Django Frontend: A Complete Tutorial](https://django-learning.hashnode.dev/how-to-set-up-a-django-frontend-a-complete-tutorial)

This blog builds on the previous one, where we explored Django Admin and Models, including tips on creating classes and using foreign keys effectively.

* **Previous Blog Link** : [How to Use Django Admin and Models: A Beginner’s Guide](https://django-learning.hashnode.dev/how-to-use-django-admin-and-models-a-beginners-guide)
* **First Blog Link :** [Getting Started with Django: Basic Setup and Overview](https://django-learning.hashnode.dev/django-setup-and-basic-overview)

Give it a read and let me know your thoughts in the comments! 💬 Your feedback helps me make these guides even better! 😊

/r/django
https://redd.it/1hhop30
Modern JS in Django

I would like to know how you all handle modern js in your django projects, stuff like installing third-party package, usage of bundlers or no build approach. I wanna improve my DX, so I interested on how other django dev do

/r/django
https://redd.it/1hhqdd6
JH container shows regular CPU spikes even when no clients are connected: normal behavior?

I'm running the JupyterHub single-user image and noticing spikes in CPU usage ever ~30s or so

Is this normal for JH? Looking at the output of top in the container shows the python3 process is being called periodically. Any thoughts on how I can troubleshoot this assuming it's not normal behavior? Thanks.

/r/IPython
https://redd.it/1hhvom8
unable to access config from celery task

I am currently working on an app where i need to have scheduled tasks that perform som api calls to external service and store results in a db.

I use Celery to achieve this using this guide https://flask.palletsprojects.com/en/stable/patterns/celery/
, i am able to schedule my tasks but the config containing all the api endpoint details and stuff is empty.

here is my testing code if i instead pass currentapp.config in helloworld() the only config variable set is "rootpath"

### in app/tasks
from celery import shared
task
from flask import currentapp
from app import app, config

@sharedtask(ignoreresult=False)
def hello
world():
print(config.dict)




### in app/Config.py
CELERY = dict(
brokerurl="redis://",
result
backed="redis://",
taskignoreresult=True,


/r/flask
https://redd.it/1hhptwm
🌟 NanoDjango Enthusiasts, Assemble! 🚀

Hi everyone! 👋

I'm working on a small project using [NanoDjango](https://github.com/kracekumar/nanodjango), a lightweight Django-like framework, to build a **Provident Fund Tracker App**. I've got the app mostly set up, but I’m running into some challenges and would love some guidance from anyone who has experience with NanoDjango or Django in general.

# What I’ve Done So Far:

1. **Models:** I’ve defined `Company`, `Employee`, and `PFPayment` models for storing company and employee data.
2. **Data Fetching:** I implemented a custom management command to fetch data from an Excel file and an XML file and populate the database.
3. **Web Views:** I’ve created views for:
* A homepage listing all companies.
* A detailed view for each company, showing its employees.
* A detailed view for each employee, showing their payment history.
4. **Templates:** HTML templates are located in the `templates` folder and are working fine with the `render` function.

**Update: I can easily populate using admin panel but want to do with custom command which will take data from excel file.**

# The Problem:

I’m struggling with:

1. Running my custom management command to populate the database. What’s the correct command to use with NanoDjango ?.

I will share the repo if anyone intested in helping

/r/django
https://redd.it/1hhotil
D chat-gpt jailbreak to extract system prompt

### Instructions

https://github.com/AgarwalPragy/chatgpt-jailbreak

### Original author
https://www.reddit.com/r/LocalLLaMA/comments/1hhyvjc/iextractedmicrosoftcopilotssystem/

### Extracted System prompt

You are ChatGPT, a large language model trained by OpenAI.
You are chatting with the user via the ChatGPT Android app. This means most of the time your lines should be a sentence or two, unless the user's request requires reasoning or long-form outputs. Never use emojis, unless explicitly asked to.
Knowledge cutoff: 2023-10
Current date: 2024-12-20

Image input capabilities: Enabled
Personality: v2

# Tools

## bio

The bio tool is disabled. Do not send any messages to it.If the user explicitly asks you to remember something, politely ask them to go to Settings - > Personalization - > Memory to enable memory.

## dalle

// Whenever a description of an image is given, create a prompt that dalle can use to generate the image and abide to the following policy:


/r/MachineLearning
https://redd.it/1hi429q
Friday Daily Thread: r/Python Meta and Free-Talk Fridays

# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️

Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!

## How it Works:

1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.

## Guidelines:

All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.

## Example Topics:

1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.

Let's keep the conversation going. Happy discussing! 🌟

/r/Python
https://redd.it/1hi6vlj
Pytask Queue - Simple Job/Task Management

# What My Project Does
This is my first ever public python package, it is a job/task management queuing system using sqlite.

Using a worker, jobs are picked up off the queue, manipulated/edited, then reinserted.

It is meant to replace messaging services like RabbitMQ or Kafka, for smaller, lightweight apps. Could also be good for a benchmark tool, to run several processes and use the sqlite database to build reports on how long n number of processes took to run.

# Target Audience
Devs looking to not have to use a heavier messaging service, and not having to write your own database queries with sqlite to replace that.

# Comparison
I don't know of any packages that do queuing/messaging like this, so not sure.

Feel free to give it a try and leave it a star if you like it, also feel free to submit a PR if you are having issues.

https://github.com/jaypyles/pytask

/r/Python
https://redd.it/1hi52fe
Master the Fundamentals of Python - Free Course - Videos, text, projects, exercises and solutions

Master the Fundamentals of Python is a comprehensive course that I was recently selling for $99 but have now released for free.

[View the playlist here.](https://www.youtube.com/playlist?list=PLVyhfExBT1XC-5ls9DezJIqioVYhf-09t)

[Download the material here.](https://drive.google.com/drive/folders/1PcVbvPENdbMG1Bdax90kOl0GuT1EX9HZ?usp=drive_link)

The course comes with:

* 300 page PDF
* 20 modules
* Videos
* Projects
* Hundreds of exercises with solutions

This is a college-level course that requires over 50 hours of effort to complete.

Modules

1. Operators
2. What is Python
3. Objects and Types
4. Strings
5. Lists
6. Ranges and Constructors
7. Conditional Statements
8. Writing Entire Programs
9. Looping
10. List Comprehensions
11. Built-in Functions
12. User-defined Functions
13. Tic-Tac-Toe
14. Tuples, Sets, Dictionaries
15. Python Modules
16. User-defined Python Modules
17. Errors and Exceptions
18. Files
19. Classes
20. Texas Hold'em Poker

/r/Python
https://redd.it/1hhvja2
how to authenticate google oauth0 with flask

hello gurus i am new bie to flask and vue js how i make my login persistent and i have approach of sending data from frontend request body to backendband backend pull data from db and how to tell front end that i am authenticated and how sgould i persistently login

/r/flask
https://redd.it/1hi8vu3
Python in Finance/Controlling

Hi everyone! I've been working in the controlling department of my company for about 3 months. Generally, apart from SAP, I'm terrified by the amount of Excel, the amount of files that I prepare for analyses for other departments. Of course, every excel has queries from SQL... I'm thinking about switching to Python, but I'm afraid that people won't understand it. I used to work on production analyses, I did a lot of "live" Power BI reports and in Python for my calculations. My goal is to replace Excel with Python.

/r/Python
https://redd.it/1hi0jhp
D I don't see a point in rebuttals anymore.

This is a mixture of some contemplation and some rant but per the title, I just don't see a point in it. I recently got back results from a conference where I had two positive reviews and one negative. Then wrote a really nice rebuttal that addressed a fundamental misunderstanding of the reviewer (who, later, did increase their points so I guess the rebuttal was on mark?). But turns out, the meta-reviewer latched on to the negative review, didn't even read the rebuttal that addressed said review and rejected the paper.

What was even the point of me rebutting if concerned parties are _not even going to read them_? At this point, I am tempted to treat the rebuttal phase as an exercise in futility. Maybe I should withdraw papers in the first phase come any problems instead of trying to go through the agony of an ultimately meaningless labor.

/r/MachineLearning
https://redd.it/1hi9jt2
Display logs generated by class in flask page in real time

I want to display python logs generated when a class is getting executed by taking input from page.i want to display the logs generated as the class is executing in real time in flask page.but the class is getting executed only then the next page with logs is displayed.
Any idea how can I display logs in flask page as the class is executing ..

/r/flask
https://redd.it/1hid1vj
Look for some suggestions

/r/django
https://redd.it/1hihdnp
Can someone explain what sessions are, and why am I facing so much of a problem with my API permissions?

The problem I am facing is that I am not able to access my newly built APIs that require the [IsAuthenticated\] permissions to fetch the data in my Svelte frontend, whereas I am able to perform all the [IsAuthenticated\] API functions on the django restframework UI while testing my APIs. For example, whenever I login using my DRF UI, this is the output I get:
User: Turf Nation

Turf ID: 1, Date: 2024-12-18

[20/Dec/2024 16:46:42] "GET /enterprise/slot-status/?turf_id=1&date=2024-12-18 HTTP/1.1" 200 16716

and now whenever I do the same process using the Svelte frontend, I get this:

User: AnonymousUser

Turf ID: 1, Date: 2024-12-19

[20/Dec/2024 16:47:34] "GET /enterprise/slot-status/?turf_id=1&date=2024-12-19 HTTP/1.1" 200 4460

As you can see the user is being recognised using the DRF UI while not for the frontend. I asked chatGPT about this, and it said this is all related to sessions and cookies, and ISTG, I have never really used those before. The frontend logic is not wrong either because I can access the GET POST functions when they are [AllowAny\].

Can anyone help with this?

/r/django
https://redd.it/1hiicrb
Looking for a Django Collaborator(s). Why not building something together??

Hi all!

This is my first time posting here, so if this kind of request isn’t the norm, please be kind.

I’m a second-year CS student (female) learning Django on my own alongside a course I’ve already finished. I’m currently working on a project with deadline approaching (27th December, yikes!). The project has real-world potential, and if it’s good enough, I’ll get to present it to an employee or even secure school funding to develop it further.

I’d love to work on this project together with someone who’s interested in Django. If it turns into something bigger, we can both benefit from it— adding it to our portfolios and showcasing it as a real-world project.

If you’re interested in collaborating and also if u want to connect as coding buddies (Learning alone sometimes gets so lonely) dm me!

/r/djangolearning
https://redd.it/1hhyye3