Django admin not displaying registered LogEntry model
Hello, I've been attempting to display the Django built-in model LogEntry in the Django admin page, but it hasn't been successful. I'm using Django version
Here's what I've checked so far:
- Confirmed that django.contrib.admin is included in INSTALLEDAPPS
- Ensured the model is registered correctly within the appropriate app
- Even tried registering the model in a completely new (empty) app, which I added to INSTALLEDAPPS, but it still did not appear.
Do you have any suggestions on why this specific model isn't appearing? What else should I consider checking?
/r/django
https://redd.it/1gamxsl
Hello, I've been attempting to display the Django built-in model LogEntry in the Django admin page, but it hasn't been successful. I'm using Django version
4.2.9. While my custom models are displaying correctly, the LogEntry model remains absent from the admin panel.Here's what I've checked so far:
- Confirmed that django.contrib.admin is included in INSTALLEDAPPS
- Ensured the model is registered correctly within the appropriate app
- Even tried registering the model in a completely new (empty) app, which I added to INSTALLEDAPPS, but it still did not appear.
Do you have any suggestions on why this specific model isn't appearing? What else should I consider checking?
/r/django
https://redd.it/1gamxsl
Reddit
From the django community on Reddit
Explore this post and more from the django community
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
# Weekly Thread: Professional Use, Jobs, and Education 🏢
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
---
## How it Works:
1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.
---
## Guidelines:
- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.
---
## Example Topics:
1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?
---
Let's help each other grow in our careers and education. Happy discussing! 🌟
/r/Python
https://redd.it/1gap9r6
# Weekly Thread: Professional Use, Jobs, and Education 🏢
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
---
## How it Works:
1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.
---
## Guidelines:
- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.
---
## Example Topics:
1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?
---
Let's help each other grow in our careers and education. Happy discussing! 🌟
/r/Python
https://redd.it/1gap9r6
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Project World's first autonomous AI-discovered 0-day vulnerabilities
I'm sure a lot of people have found 0-day vulnerabilities by pasting code snippets into ChatGPT. The problem has always been scanning an entire project for 0-days. Some papers have shown it's possible by feeding their agents known vulnerable code, but as far as I know, none of those papers ever got any CVEs or found real 0-days. Vulnhuntr was released this weekend with more than a dozen 0-days discovered in open source projects of 10k+ GitHub stars:
https://github.com/protectai/vulnhuntr
/r/MachineLearning
https://redd.it/1ga8wxn
I'm sure a lot of people have found 0-day vulnerabilities by pasting code snippets into ChatGPT. The problem has always been scanning an entire project for 0-days. Some papers have shown it's possible by feeding their agents known vulnerable code, but as far as I know, none of those papers ever got any CVEs or found real 0-days. Vulnhuntr was released this weekend with more than a dozen 0-days discovered in open source projects of 10k+ GitHub stars:
https://github.com/protectai/vulnhuntr
/r/MachineLearning
https://redd.it/1ga8wxn
GitHub
GitHub - protectai/vulnhuntr: Zero shot vulnerability discovery using LLMs
Zero shot vulnerability discovery using LLMs. Contribute to protectai/vulnhuntr development by creating an account on GitHub.
Monoranger: A poetry plugin for managing monorepos
🔗 Link - [https://github.com/ag14774/poetry-monoranger-plugin](https://github.com/ag14774/poetry-monoranger-plugin)
# What my project does
I recently needed to set up a monorepo and I wanted to have similar structure as in Cargo workspaces from Rust.
Essentially I wanted to have a single lockfile shared between all components/projects in the library and have a single venv with all dependencies installed as this makes development so much easier. I use Poetry so I decided to create a plugin for this usecase.
This plugin:
* Enables multiple projects in a monorepo using Poetry to use a shared poetry lockfile
* Enables multiple projects in a monorepo using Poetry to use a shared virtual environment
* Allows projects to use path dependencies and pin their versions during 'poetry build'
# Target Audience
Any Python developer that wants to create a simple monorepo using Poetry and does not want to resort to complex build tools such as Nx. I will be keeping this plugin up to date and make sure that updates and fixes are pushed in a timely manner
# Comparison
The existing tools fall in two categories:
a) Compicated build tools that have their focus on other programming languages but also support Python. An example of this is Nx. It's a nice tool but it has too many features
/r/Python
https://redd.it/1gak200
🔗 Link - [https://github.com/ag14774/poetry-monoranger-plugin](https://github.com/ag14774/poetry-monoranger-plugin)
# What my project does
I recently needed to set up a monorepo and I wanted to have similar structure as in Cargo workspaces from Rust.
Essentially I wanted to have a single lockfile shared between all components/projects in the library and have a single venv with all dependencies installed as this makes development so much easier. I use Poetry so I decided to create a plugin for this usecase.
This plugin:
* Enables multiple projects in a monorepo using Poetry to use a shared poetry lockfile
* Enables multiple projects in a monorepo using Poetry to use a shared virtual environment
* Allows projects to use path dependencies and pin their versions during 'poetry build'
# Target Audience
Any Python developer that wants to create a simple monorepo using Poetry and does not want to resort to complex build tools such as Nx. I will be keeping this plugin up to date and make sure that updates and fixes are pushed in a timely manner
# Comparison
The existing tools fall in two categories:
a) Compicated build tools that have their focus on other programming languages but also support Python. An example of this is Nx. It's a nice tool but it has too many features
/r/Python
https://redd.it/1gak200
GitHub
GitHub - ag14774/poetry-monoranger-plugin: A Poetry plugin to support monorepo setups for Python, enabling shared lockfiles and…
A Poetry plugin to support monorepo setups for Python, enabling shared lockfiles and directory dependency pinning. - ag14774/poetry-monoranger-plugin
Help with Creating a Seat Model Linked to Backend in Bus Booking App
Hi all,
I’m working on a Django project for a bus booking system. I’ve already created the Agency and Bus models, but I’m stuck on how to implement the seat structure. Here’s what I’m aiming for:
• I want to create a Seat model that is linked to a Bus, which in turn is associated with an Agency.
• On the frontend, I want to display the seats as they appear in an actual bus (for example, in a 2x2 seating arrangement or other layouts).
• The seats need to be generated dynamically based on the bus assigned.
Could someone guide me on the best way to structure the Seat model and how to display the seats in the view? Any help on connecting these models and ensuring the seats are linked correctly to each bus would be appreciated!
Thanks in advance!
/r/djangolearning
https://redd.it/1gak7t8
Hi all,
I’m working on a Django project for a bus booking system. I’ve already created the Agency and Bus models, but I’m stuck on how to implement the seat structure. Here’s what I’m aiming for:
• I want to create a Seat model that is linked to a Bus, which in turn is associated with an Agency.
• On the frontend, I want to display the seats as they appear in an actual bus (for example, in a 2x2 seating arrangement or other layouts).
• The seats need to be generated dynamically based on the bus assigned.
Could someone guide me on the best way to structure the Seat model and how to display the seats in the view? Any help on connecting these models and ensuring the seats are linked correctly to each bus would be appreciated!
Thanks in advance!
/r/djangolearning
https://redd.it/1gak7t8
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Anyone here going to PyCon Australia next month?
I'll be going for the first time and I'm keen to meet up with fellow Aussie Pythonistas! Anyone interested?
There's a lot of interesting talks planned - are there any in particular you're keen for?
/r/Python
https://redd.it/1gav220
I'll be going for the first time and I'm keen to meet up with fellow Aussie Pythonistas! Anyone interested?
There's a lot of interesting talks planned - are there any in particular you're keen for?
/r/Python
https://redd.it/1gav220
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Hatch or uv for a new project?
I'm starting a new project, and I can't decide if hatch is needed anymore.
Hatch can install packages using uv for speed, so I used both before.
But uv allows monorepo, while hatch doesn't support it yet.
What are the differences between the two tools ? What would you choose for a new project?
/r/Python
https://redd.it/1gaz3tm
I'm starting a new project, and I can't decide if hatch is needed anymore.
Hatch can install packages using uv for speed, so I used both before.
But uv allows monorepo, while hatch doesn't support it yet.
What are the differences between the two tools ? What would you choose for a new project?
/r/Python
https://redd.it/1gaz3tm
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
cstructpy- Python package designed for binary serialization and deserialization of structured data
This app is open source and is made using Python: https://github.com/Maxim-Mushizky/cstructpy
Also can pip install it via pypi https://pypi.org/project/cstructpy/
# What My Project Does
Provides a simple interface for packing and unpacking binary data based on field definitions using Python's
# Target Audience
Mostly effective for distributed systems, where there are c like structs passed as binary and need to be verified in different parts of the code.
# Comparison
There are no current comparisons, since this project attempt to mimic the object creation and validation as present in Pydantic
# Contribution
If you require any new features or have a use for this package you are more than welcome to join as a celebrator
Enjoy!
/r/Python
https://redd.it/1gb0o3f
This app is open source and is made using Python: https://github.com/Maxim-Mushizky/cstructpy
Also can pip install it via pypi https://pypi.org/project/cstructpy/
# What My Project Does
Provides a simple interface for packing and unpacking binary data based on field definitions using Python's
struct module. The motivation for this package is to have a data validation using type annotations, similar to pydantic but for binary data. Therefore this package is best when used alongside pydantic.BaseModel or dataclasses.dataclass since it allows a similar class structure and object creation# Target Audience
Mostly effective for distributed systems, where there are c like structs passed as binary and need to be verified in different parts of the code.
# Comparison
There are no current comparisons, since this project attempt to mimic the object creation and validation as present in Pydantic
# Contribution
If you require any new features or have a use for this package you are more than welcome to join as a celebrator
Enjoy!
/r/Python
https://redd.it/1gb0o3f
GitHub
GitHub - Maxim-Mushizky/cstructpy: A package that allows to create data models classes for c like structs that eases sending and…
A package that allows to create data models classes for c like structs that eases sending and reading binary messages - Maxim-Mushizky/cstructpy
REST API Testing - Where to run functional tests?
Hello,
At work, I'm developing a REST API with flask, and I'm wondering where I should run my functional tests.
My current CI/CD pipeline on github actions runs the unit tests (mocking / patching ) for small blocks of code, and also runs the integration tests using a docker compose (spins up database instance, and some other services on the same machine, then runs tests)
Both those tests above run locally, and run during push and merges to github.
I also have functional testing for the REST API, using pytest with request library. Once the docker image is running in a test environment on AWS (EC2), I want to be able to make calls and check if the API is working properly
My question is where should these be run from and what do most professional organizations do? Should they run:
\- Locally? (i.e. my local computer send the request to the live test server on AWS)
\- On the Github action CI/CD pipeline? if so can i configure these to run after the docker image is running?
\- On the EC2 instance itself (maybe in another container)
\- Somewhere else?
Thanks for any advice!
/r/flask
https://redd.it/1gbeeig
Hello,
At work, I'm developing a REST API with flask, and I'm wondering where I should run my functional tests.
My current CI/CD pipeline on github actions runs the unit tests (mocking / patching ) for small blocks of code, and also runs the integration tests using a docker compose (spins up database instance, and some other services on the same machine, then runs tests)
Both those tests above run locally, and run during push and merges to github.
I also have functional testing for the REST API, using pytest with request library. Once the docker image is running in a test environment on AWS (EC2), I want to be able to make calls and check if the API is working properly
My question is where should these be run from and what do most professional organizations do? Should they run:
\- Locally? (i.e. my local computer send the request to the live test server on AWS)
\- On the Github action CI/CD pipeline? if so can i configure these to run after the docker image is running?
\- On the EC2 instance itself (maybe in another container)
\- Somewhere else?
Thanks for any advice!
/r/flask
https://redd.it/1gbeeig
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
jinja template rendering incorrect
Anyone know why jinja template statements would get borked while being rendered?
I have a couple of if statements in my config ie:
\## template: jinja
{% if distro == 'rocky' or distro == 'centos' or distro == 'ol' or distro == 'almalinux' or distro == 'fedora' or distro == 'redhat' %}
Is rendered as:
{0 if distro == 'rocky' or distro == 'centos' or distro == 'ol' or distro == 'almalinux' or distro == 'fedora' or distro == 'redhat' 0}
I do not know what process renders the jinja code, it was working then one day I started noticing all {% show up as {0 and making it where jinja can't process the variables.
Thanks
/r/Python
https://redd.it/1gbge2q
Anyone know why jinja template statements would get borked while being rendered?
I have a couple of if statements in my config ie:
\## template: jinja
{% if distro == 'rocky' or distro == 'centos' or distro == 'ol' or distro == 'almalinux' or distro == 'fedora' or distro == 'redhat' %}
Is rendered as:
{0 if distro == 'rocky' or distro == 'centos' or distro == 'ol' or distro == 'almalinux' or distro == 'fedora' or distro == 'redhat' 0}
I do not know what process renders the jinja code, it was working then one day I started noticing all {% show up as {0 and making it where jinja can't process the variables.
Thanks
/r/Python
https://redd.it/1gbge2q
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Personal portfolio
Finally fixed my mobile menu! Really excited about how this is coming along... In the resources section I have a ecomm template but let me know if anyone want this portfolio template in that section so I can add it. More feedback welcome!
thanks in advanced Reddit people!
https://silverboi.me
/r/flask
https://redd.it/1gb664l
Finally fixed my mobile menu! Really excited about how this is coming along... In the resources section I have a ecomm template but let me know if anyone want this portfolio template in that section so I can add it. More feedback welcome!
thanks in advanced Reddit people!
https://silverboi.me
/r/flask
https://redd.it/1gb664l
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
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/1gbh5k3
# 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/1gbh5k3
Redditinc
Reddit Rules
Reddit Rules - Reddit
How do Session IDs work?
New to Flask. What I know is there are 2 ways to implement sessions: client-side and server-side. The former uses the default flask session (
I read both flask and Flask-Session docs, I still can't wrap my head around how sessions really work. The default session will turn your session data dict into cookie, then salt it, add signature, encode in base64. The Flask-Session's session still uses cookie, but it only contains the session identifier.
Session identifier is for identifying users, duh. But I have some questions:
1. Since Flask-Session is just extension of the deault session, do both of them implement the same approach to assigning session ID?
2. Where can I find the session IDs of the users?
3. Is it going to reset after closing the tab? browser?
4. When I do session.clear(), is everything cleared, including the session ID?
Again, sorry for asking these dumb questions. Any help would be appreciated. Thanks!
/r/flask
https://redd.it/1gb6kzq
New to Flask. What I know is there are 2 ways to implement sessions: client-side and server-side. The former uses the default flask session (
from flask import session) while the later uses a library called Flask-Session (need to add from flask_session import Session) .I read both flask and Flask-Session docs, I still can't wrap my head around how sessions really work. The default session will turn your session data dict into cookie, then salt it, add signature, encode in base64. The Flask-Session's session still uses cookie, but it only contains the session identifier.
Session identifier is for identifying users, duh. But I have some questions:
1. Since Flask-Session is just extension of the deault session, do both of them implement the same approach to assigning session ID?
2. Where can I find the session IDs of the users?
3. Is it going to reset after closing the tab? browser?
4. When I do session.clear(), is everything cleared, including the session ID?
Again, sorry for asking these dumb questions. Any help would be appreciated. Thanks!
/r/flask
https://redd.it/1gb6kzq
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Ethics concerns and Google D
Apologies if this isn't the right place for this facet of ML, but it didn't seem against the rules.
I recently participated in an Alphabet human data research study used to evaluate AI agents and models.
Without going further into the details, the structure of the study felt very ethically questionable. The agreement said if there were any concerns, to contact HuBREC, human behavioural research ethics committee.
However, their email provided in the agreement hubrec@google.com does not exist and I have no point of contact at all short of looking up past academic talks and cold emailing people.
I am having a lot of difficulty searching for next steps as there is no other contact information I can use except for that email. I do know that Google has fired AI ethics researchers in recent memory, and that this topic never seems to be taken seriously. It seems like a bad look for an on-going study to point you to a committee that doesn't seem to exist.
/r/MachineLearning
https://redd.it/1gbblsc
Apologies if this isn't the right place for this facet of ML, but it didn't seem against the rules.
I recently participated in an Alphabet human data research study used to evaluate AI agents and models.
Without going further into the details, the structure of the study felt very ethically questionable. The agreement said if there were any concerns, to contact HuBREC, human behavioural research ethics committee.
However, their email provided in the agreement hubrec@google.com does not exist and I have no point of contact at all short of looking up past academic talks and cold emailing people.
I am having a lot of difficulty searching for next steps as there is no other contact information I can use except for that email. I do know that Google has fired AI ethics researchers in recent memory, and that this topic never seems to be taken seriously. It seems like a bad look for an on-going study to point you to a committee that doesn't seem to exist.
/r/MachineLearning
https://redd.it/1gbblsc
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
need help for django with aws s3 bucket
i have a website with backend django (digital ocean ) (dockerize the app )hosted in the backend and vite react project in s3 bucket i keep getting this error , I'm sure settings,py file is correct, i tried all of
CORSALLOWEDORIGINS =
'http://myappsfrontends.s3-website-us-east-1.amazonaws.com',
ALLOWEDHOSTS = ['*']
CORSORIGINALLOWALL = True
and setup the cors middleware in the right order
i spent week searching all of stackoverflow and reddit for solutions and nothing works, so this is the last solution
(i'm using aws just to learn some cloud to increase my skills )
cors policy in aws
[
{
"AllowedHeaders": [
"*"
\],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE"
\],
"AllowedOrigins": [
"http://myappsfrontends.s3-website-us-east-1.amazonaws.com"
\],
"ExposeHeaders": [
"Content-Range",
"Content-Length",
"ETag"
\],
"MaxAgeSeconds": 3000
}
\]
https://preview.redd.it/hfa5s7c3mrwd1.png?width=1887&format=png&auto=webp&s=739741d0e97e6c6ed2123e09e04616f5d5c1d517
/r/djangolearning
https://redd.it/1gbcw7e
i have a website with backend django (digital ocean ) (dockerize the app )hosted in the backend and vite react project in s3 bucket i keep getting this error , I'm sure settings,py file is correct, i tried all of
CORSALLOWEDORIGINS =
'http://myappsfrontends.s3-website-us-east-1.amazonaws.com',
ALLOWEDHOSTS = ['*']
CORSORIGINALLOWALL = True
and setup the cors middleware in the right order
i spent week searching all of stackoverflow and reddit for solutions and nothing works, so this is the last solution
(i'm using aws just to learn some cloud to increase my skills )
cors policy in aws
[
{
"AllowedHeaders": [
"*"
\],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE"
\],
"AllowedOrigins": [
"http://myappsfrontends.s3-website-us-east-1.amazonaws.com"
\],
"ExposeHeaders": [
"Content-Range",
"Content-Length",
"ETag"
\],
"MaxAgeSeconds": 3000
}
\]
https://preview.redd.it/hfa5s7c3mrwd1.png?width=1887&format=png&auto=webp&s=739741d0e97e6c6ed2123e09e04616f5d5c1d517
/r/djangolearning
https://redd.it/1gbcw7e
Manim : package for maths animation
I recently explored Manim, an open-sourced python package for generating animated videos for explaining maths. It includes animations for shapes, equations, codes, graphs, etc. The repo is trending on GitHub as well. The demo also looks very impressive. Check it out here : https://youtu.be/QciJxVjF4M4?si=Bk_gU4Tj5f6gPpiq
/r/Python
https://redd.it/1gbldgk
I recently explored Manim, an open-sourced python package for generating animated videos for explaining maths. It includes animations for shapes, equations, codes, graphs, etc. The repo is trending on GitHub as well. The demo also looks very impressive. Check it out here : https://youtu.be/QciJxVjF4M4?si=Bk_gU4Tj5f6gPpiq
/r/Python
https://redd.it/1gbldgk
YouTube
Manim : Python package for maths animation videos
Manim is a python package for creating maths animated videos for educational purposes. Check manim demo in this video #ai #generativeai #coding #python #animation #maths
PyGenTree: A Simple Yet Powerful Python Package for Generating ASCII Directory Trees
# What My Project Does
PyGenTree is a Python package that generates ASCII tree representations of directory structures. It's a simple command-line tool that allows you to visualize the structure of your project or any directory on your system. With PyGenTree, you can easily document your project's structure, quickly understand unfamiliar codebases, or generate directory trees for README files.
# Target Audience
PyGenTree is designed for developers, programmers, and anyone who works with directory structures on a regular basis. It's a useful tool for:
* Developers who want to document their project's structure
* Programmers who need to quickly understand unfamiliar codebases
* DevOps teams who want to visualize directory structures for deployment or debugging purposes
* Anyone who wants to generate directory trees for README files or documentation purposes
# Comparison
There are existing tools that generate directory trees, such as `tree` on Linux and `dir` on Windows. There are online ASCII Tree Generators where you have to manually add files and directories. There are some python packages similar to this, but I tried to combine all the useful features from these alternatives and create this one. PyGenTree differs from these alternatives in several ways:
* **Cross-platform compatibility**: PyGenTree works on Windows, macOS, and Linux, making it a great
/r/Python
https://redd.it/1gbnnbu
# What My Project Does
PyGenTree is a Python package that generates ASCII tree representations of directory structures. It's a simple command-line tool that allows you to visualize the structure of your project or any directory on your system. With PyGenTree, you can easily document your project's structure, quickly understand unfamiliar codebases, or generate directory trees for README files.
# Target Audience
PyGenTree is designed for developers, programmers, and anyone who works with directory structures on a regular basis. It's a useful tool for:
* Developers who want to document their project's structure
* Programmers who need to quickly understand unfamiliar codebases
* DevOps teams who want to visualize directory structures for deployment or debugging purposes
* Anyone who wants to generate directory trees for README files or documentation purposes
# Comparison
There are existing tools that generate directory trees, such as `tree` on Linux and `dir` on Windows. There are online ASCII Tree Generators where you have to manually add files and directories. There are some python packages similar to this, but I tried to combine all the useful features from these alternatives and create this one. PyGenTree differs from these alternatives in several ways:
* **Cross-platform compatibility**: PyGenTree works on Windows, macOS, and Linux, making it a great
/r/Python
https://redd.it/1gbnnbu
Reddit
From the Python community on Reddit: PyGenTree: A Simple Yet Powerful Python Package for Generating ASCII Directory Trees
Explore this post and more from the Python community
Help Needed: Scaling My RAG-Based LLM Browser Extension
Hi everyone,
I've developed a browser extension using a Retrieval-Augmented Generation (RAG) model that works great with PDF files stored locally on my machine, with server running on flask. Now, I’m looking to scale this solution for broader use and could really use some advice from experts here as I’m new to deployment.
Here are my key questions:
1. Secured Authorization System: What’s the best approach to create a secure authorization system that adheres to modern security standards?
2. Secure Data Storage: I plan to let users upload their data (primarily PDFs for now). This data needs to be encrypted and protected against security threats. What’s the recommended way to store this data securely while keeping these threats in mind?
3. Affordable LLM Service: (Not a priority but still relevant) Right now, I’m using the gemini-1.5-flash API with my own key. I’m looking for suggestions on any free or low-cost LLM services I can use at scale.
Any insights, advice, or pointers would be greatly appreciated! Thanks in advance!
/r/flask
https://redd.it/1gav6h7
Hi everyone,
I've developed a browser extension using a Retrieval-Augmented Generation (RAG) model that works great with PDF files stored locally on my machine, with server running on flask. Now, I’m looking to scale this solution for broader use and could really use some advice from experts here as I’m new to deployment.
Here are my key questions:
1. Secured Authorization System: What’s the best approach to create a secure authorization system that adheres to modern security standards?
2. Secure Data Storage: I plan to let users upload their data (primarily PDFs for now). This data needs to be encrypted and protected against security threats. What’s the recommended way to store this data securely while keeping these threats in mind?
3. Affordable LLM Service: (Not a priority but still relevant) Right now, I’m using the gemini-1.5-flash API with my own key. I’m looking for suggestions on any free or low-cost LLM services I can use at scale.
Any insights, advice, or pointers would be greatly appreciated! Thanks in advance!
/r/flask
https://redd.it/1gav6h7
This is now valid syntax in Python 3.13!
There are a [few changes that didn't get much attention](https://www.bitecode.dev/p/python-313-what-didnt-make-the-headlines) in the last releases, and one of them is that comprehensions and lambdas can now be used in annotations (the place where you put type hints).
As the article mentions, this came from a bug tickets that requested this to work:
class name_2[*name_5, name_3: int]:
(name_3 := name_4)
class name_4[name_5: name_5]((name_4 for name_5 in name_0 if name_3), name_2 if name_3 else name_0):
pass
Here we have a walrus, unpacking, type vars and a comprehension all in one. I tried it in 3.13 (you gotta create a few variables), and yes, it is now valid syntax.
I don't think I have any use for it (except the typevar, it's pretty sweet), but I pity the person that will have to read that one day in a real code base :)
/r/Python
https://redd.it/1gbu1g0
There are a [few changes that didn't get much attention](https://www.bitecode.dev/p/python-313-what-didnt-make-the-headlines) in the last releases, and one of them is that comprehensions and lambdas can now be used in annotations (the place where you put type hints).
As the article mentions, this came from a bug tickets that requested this to work:
class name_2[*name_5, name_3: int]:
(name_3 := name_4)
class name_4[name_5: name_5]((name_4 for name_5 in name_0 if name_3), name_2 if name_3 else name_0):
pass
Here we have a walrus, unpacking, type vars and a comprehension all in one. I tried it in 3.13 (you gotta create a few variables), and yes, it is now valid syntax.
I don't think I have any use for it (except the typevar, it's pretty sweet), but I pity the person that will have to read that one day in a real code base :)
/r/Python
https://redd.it/1gbu1g0
www.bitecode.dev
Python 3.13, what didn't make the headlines
Some sell you clicks, I save you some