Problem Understanding Django-allauth's headless social login ( Skill Issue)
I'm trying to implement
/r/django
https://redd.it/1i5ugnb
I'm trying to implement
django-allauth and learn about its headless URLs for social login and implement it django-ninja. However, when following the social login section of the documentation, I keep getting a 409 response. Can someone guide me in the right direction?/r/django
https://redd.it/1i5ugnb
Reddit
From the django community on Reddit
Explore this post and more from the django community
Where can I learn complete django from the basics ??
Hey , I am new to programming with a basic syntax knowledge of python, what should I do now to learn django. I need sort of a roadmap on the topics and the concepts.It would be great if you guys suggest me few.
/r/django
https://redd.it/1i5m139
Hey , I am new to programming with a basic syntax knowledge of python, what should I do now to learn django. I need sort of a roadmap on the topics and the concepts.It would be great if you guys suggest me few.
/r/django
https://redd.it/1i5m139
Reddit
From the django community on Reddit
Explore this post and more from the django community
Flask - Hosting - Requests
Hey, I am currently using a simple Flask app with a basic database connection to store various inputs (spread across 5 tables). The app also includes an admin login with user authentication and database queries for logging in.
The app is hosted on a VPS with 2 vCores and 2GB of RAM using Docker, Nginx, and Gunicorn.
This project originated during my studies and is now being used for the first time. Approximately 200 requests (in the worst case, simultaneously) are expected.
I would like to test how many requests the server can handle and determine whether 2 vCores and 2GB of RAM are sufficient for handling \~200 requests. I’ve noticed there are various tools for load testing, but since the VPS is hosted by a third-party provider, I would need to request permission before conducting such tests (even if the load is minimal).
Perhaps I am overthinking this, as 200 requests might not actually be a significant load at all ? If you need any additional information, feel free to ask, I didn’t want to go into every tiny detail here.
Thanks for taking the time to read this!
/r/flask
https://redd.it/1i5pcgv
Hey, I am currently using a simple Flask app with a basic database connection to store various inputs (spread across 5 tables). The app also includes an admin login with user authentication and database queries for logging in.
The app is hosted on a VPS with 2 vCores and 2GB of RAM using Docker, Nginx, and Gunicorn.
This project originated during my studies and is now being used for the first time. Approximately 200 requests (in the worst case, simultaneously) are expected.
I would like to test how many requests the server can handle and determine whether 2 vCores and 2GB of RAM are sufficient for handling \~200 requests. I’ve noticed there are various tools for load testing, but since the VPS is hosted by a third-party provider, I would need to request permission before conducting such tests (even if the load is minimal).
Perhaps I am overthinking this, as 200 requests might not actually be a significant load at all ? If you need any additional information, feel free to ask, I didn’t want to go into every tiny detail here.
Thanks for taking the time to read this!
/r/flask
https://redd.it/1i5pcgv
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
XSS in django-allauth <0.63.6 when using Facebook provider with js_sdk method
https://stsewd.dev/posts/xss-in-django-allauth-fb-provider/
/r/django
https://redd.it/1i5v8bv
https://stsewd.dev/posts/xss-in-django-allauth-fb-provider/
/r/django
https://redd.it/1i5v8bv
Santos Gallegos
XSS in django-allauth <0.63.6
Details about a cross-site scripting vulnerability that I reported to django-allauth.
django course
would you guys suggest me the best free course for learning django for someone who has worked with laravel before
/r/django
https://redd.it/1i640y9
would you guys suggest me the best free course for learning django for someone who has worked with laravel before
/r/django
https://redd.it/1i640y9
Reddit
From the django community on Reddit
Explore this post and more from the django community
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/1i656sb
# 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/1i656sb
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
IP banning followup. My site is now being continuously scraped by robots.txt violating bots.
TL;DR: I need advice on:
How to implement a badbot honeypot.
How to implement an "are you human" check on account creation.
Any idea on why this is happening all of a sudden.
---
I posted a few days ago about banning a super racist IP, and implemented the changes. Since then there has been a wild amount of webscraping being done by a ton of IPs that are not displaying a proper user agent. I have no idea whether this is connected.
It may be that "Owler (ows.eu/owler)" is responsible, as it is the only thing that displays a proper useragent, and occationally checks Robots.txt, but the sheer numbers of bots hitting the site at the same time clearly violates the robots file, and I've since disallowed Owler's user agent, but it continues to check robots.txt.
These bots are almost all coming from "Hetzner Online GmbH" while the rest are all Tor exit nodes. I'm banning these IP ranges as fast as I can, but I think I need to automate it some how.
Does anyone have a good way to gather all the offending IP's without actually collecting normal user traffic? I'm tempted to just write a honeypot to collect robots.txt violating IP's, and just
/r/flask
https://redd.it/1i5d2gs
TL;DR: I need advice on:
How to implement a badbot honeypot.
How to implement an "are you human" check on account creation.
Any idea on why this is happening all of a sudden.
---
I posted a few days ago about banning a super racist IP, and implemented the changes. Since then there has been a wild amount of webscraping being done by a ton of IPs that are not displaying a proper user agent. I have no idea whether this is connected.
It may be that "Owler (ows.eu/owler)" is responsible, as it is the only thing that displays a proper useragent, and occationally checks Robots.txt, but the sheer numbers of bots hitting the site at the same time clearly violates the robots file, and I've since disallowed Owler's user agent, but it continues to check robots.txt.
These bots are almost all coming from "Hetzner Online GmbH" while the rest are all Tor exit nodes. I'm banning these IP ranges as fast as I can, but I think I need to automate it some how.
Does anyone have a good way to gather all the offending IP's without actually collecting normal user traffic? I'm tempted to just write a honeypot to collect robots.txt violating IP's, and just
/r/flask
https://redd.it/1i5d2gs
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
is ReactJS necessary ?
I have build many projects in Django, but in old school way like simply django as backend and html,css,js as frontend, but for good scalability ( for not having any trouble like facebook ghost message) i need to learn react, but the doc is so extensive and confusing for me right now.
so please suggest me how can i cope up with this, and let say i able to learn react then how i am able to connect by django with react.
i'll be waiting for your valuable suggestions .
Thank You
/r/django
https://redd.it/1i5tgtq
I have build many projects in Django, but in old school way like simply django as backend and html,css,js as frontend, but for good scalability ( for not having any trouble like facebook ghost message) i need to learn react, but the doc is so extensive and confusing for me right now.
so please suggest me how can i cope up with this, and let say i able to learn react then how i am able to connect by django with react.
i'll be waiting for your valuable suggestions .
Thank You
/r/django
https://redd.it/1i5tgtq
Reddit
From the django community on Reddit
Explore this post and more from the django community
Magnetron is a minimalist machine learning framework built entirely from scratch.
What My Project Does
Magnetron is a minimalist machine learning framework built entirely from scratch. It’s meant to be to PyTorch what MicroPython is to CPython—compact, efficient, and easy to hack on. Despite having only 48 operators at its core, Magnetron supports cutting-edge ML features such as multithreading with dynamic scaling. It automatically detects and uses the most optimal vector runtime (SSE, AVX, AVX2, AVX512, and various ARM variants) to ensure performance across different CPU architectures, all meticulously hand-optimized. We’re actively working on adding more high-impact examples, including LLaMA 3 inference and a simple NanoGPT training loop.
GitHub: https://github.com/MarioSieg/magnetron
Target Audience
• ML Enthusiasts & Researchers who want a lightweight, hackable framework to experiment with custom operators or specialized use cases.
• Developers on constrained systems or anyone seeking minimal overhead without sacrificing modern ML capabilities.
• Performance-conscious engineers interested in exploring hand-optimized CPU vectorization that adjusts automatically to your hardware.
Comparison
• PyTorch/TensorFlow: Magnetron is significantly lighter and easier to understand under-the-hood, making it ideal for experimentation and embedded systems. We don’t (yet) have the breadth of official libraries or the extensive community, but our goal is to deliver serious performance in a minimal package.
• Micro frameworks: While some smaller ML projects exist, Magnetron stands out by
/r/Python
https://redd.it/1i63rmk
What My Project Does
Magnetron is a minimalist machine learning framework built entirely from scratch. It’s meant to be to PyTorch what MicroPython is to CPython—compact, efficient, and easy to hack on. Despite having only 48 operators at its core, Magnetron supports cutting-edge ML features such as multithreading with dynamic scaling. It automatically detects and uses the most optimal vector runtime (SSE, AVX, AVX2, AVX512, and various ARM variants) to ensure performance across different CPU architectures, all meticulously hand-optimized. We’re actively working on adding more high-impact examples, including LLaMA 3 inference and a simple NanoGPT training loop.
GitHub: https://github.com/MarioSieg/magnetron
Target Audience
• ML Enthusiasts & Researchers who want a lightweight, hackable framework to experiment with custom operators or specialized use cases.
• Developers on constrained systems or anyone seeking minimal overhead without sacrificing modern ML capabilities.
• Performance-conscious engineers interested in exploring hand-optimized CPU vectorization that adjusts automatically to your hardware.
Comparison
• PyTorch/TensorFlow: Magnetron is significantly lighter and easier to understand under-the-hood, making it ideal for experimentation and embedded systems. We don’t (yet) have the breadth of official libraries or the extensive community, but our goal is to deliver serious performance in a minimal package.
• Micro frameworks: While some smaller ML projects exist, Magnetron stands out by
/r/Python
https://redd.it/1i63rmk
GitHub
GitHub - MarioSieg/magnetron: (WIP) A small but powerful, homemade PyTorch from scratch.
(WIP) A small but powerful, homemade PyTorch from scratch. - MarioSieg/magnetron
D Understanding predictive coding networks
Hi all,
I'm trying to understand predictive coding networks like described in Rao & Ballard.
So far I understand that training the network is done through setting the input (and output if training is supervised) and first modifying the activity of the neurons to reduce prediction errors, then modifying the synaptic weights.
What I don't understand is that it seems the activity of a hidden layer "r" seems to be a function of the difference between the prediction and the input (see figure 1.b), it seems implied here that `r` is the product of the transposed weights U^(T) and the prediction error which confuse me : I understand that we want to propagate the prediction error to the next layer, but how can we minimize (I - f(Ur)) if r = U^(T) (I - f(Ur))?
I think I still haven't fully grasped the overall architecture and would really appreciate if someone could help.
/r/MachineLearning
https://redd.it/1i6h40i
Hi all,
I'm trying to understand predictive coding networks like described in Rao & Ballard.
So far I understand that training the network is done through setting the input (and output if training is supervised) and first modifying the activity of the neurons to reduce prediction errors, then modifying the synaptic weights.
What I don't understand is that it seems the activity of a hidden layer "r" seems to be a function of the difference between the prediction and the input (see figure 1.b), it seems implied here that `r` is the product of the transposed weights U^(T) and the prediction error which confuse me : I understand that we want to propagate the prediction error to the next layer, but how can we minimize (I - f(Ur)) if r = U^(T) (I - f(Ur))?
I think I still haven't fully grasped the overall architecture and would really appreciate if someone could help.
/r/MachineLearning
https://redd.it/1i6h40i
ResearchGate
(PDF) Predictive Coding in the Visual Cortex: a Functional Interpretation of Some Extra-classical Receptive-field Effects
PDF | We describe a model of visual processing in which feedback connections from a higher- to a lower-order visual cortical area carry predictions of... | Find, read and cite all the research you need on ResearchGate
My First Big Django App - Blogino (Not Completed Yet)
Hey everyone,
I’ve been working on my first big Django project called Blogino, and I wanted to share my progress so far. It’s still a work in progress, but I’m excited to get feedback from the community!
https://github.com/MLankaoui/blogino
/r/djangolearning
https://redd.it/1i4ww7o
Hey everyone,
I’ve been working on my first big Django project called Blogino, and I wanted to share my progress so far. It’s still a work in progress, but I’m excited to get feedback from the community!
https://github.com/MLankaoui/blogino
/r/djangolearning
https://redd.it/1i4ww7o
GitHub
GitHub - MLankaoui/blogino
Contribute to MLankaoui/blogino development by creating an account on GitHub.
How much would you guys charge for this? (My first paid gig)
Friend’s business is gonna hire me to automate some admin work. Wants to automate getting their invoices for current day from all ~20 of their vendors portal then download and print them. Should save 30 minutes 3 times a week and he says his personal hourly rate is $60 so if I’m saving him $4500/year in his time assuming 50 working weeks out of the year, is $1000 a fair price to charge him? He’s getting his time back for a fraction of the cost and I’m getting $100/hr assuming roughly 10 hours of work.
/r/Python
https://redd.it/1i6iubh
Friend’s business is gonna hire me to automate some admin work. Wants to automate getting their invoices for current day from all ~20 of their vendors portal then download and print them. Should save 30 minutes 3 times a week and he says his personal hourly rate is $60 so if I’m saving him $4500/year in his time assuming 50 working weeks out of the year, is $1000 a fair price to charge him? He’s getting his time back for a fraction of the cost and I’m getting $100/hr assuming roughly 10 hours of work.
/r/Python
https://redd.it/1i6iubh
Reddit
From the Python community on Reddit: How much would you guys charge for this? (My first paid gig)
Posted by xXShadowAssassin69Xx - 146 votes and 57 comments
How to Visualize your Project's Dependency Graph
https://www.gauge.sh/blog/how-to-visualize-your-python-projects-dependency-graph
I built a tool that helps you visualize your Python's dependency graph, as well as enforce state on it! Would love thoughts / comments / feedback. Source code here: https://github.com/gauge-sh/tach
/r/Python
https://redd.it/1i6n3zl
https://www.gauge.sh/blog/how-to-visualize-your-python-projects-dependency-graph
I built a tool that helps you visualize your Python's dependency graph, as well as enforce state on it! Would love thoughts / comments / feedback. Source code here: https://github.com/gauge-sh/tach
/r/Python
https://redd.it/1i6n3zl
www.gauge.sh
How to Visualize your Python Project’s Dependency Graph - Gauge - Solving the monolith/microservices dilemma
How to Visualize your Python Project’s Dependency Graph. Gauge is solving the monolith/microservices dilemma. We’re building tools to untangle codebases through incremental modularization. Our open-source toolkit supports defining and enforcing rules for…
🌈 I created a modern Python logging utility: Tamga
What My Project Does
Tamga is a Python logging package that provides colorful console output and supports multiple logging formats (file, JSON, MongoDB, etc.). It makes Python logging more visually appealing and easier to use.
Target Audience
I originally created this for my FlaskBlog project and kept reusing it in other projects. After copying the code multiple times, I decided to turn it into a package. Anyone who wants prettier and more flexible logging in their Python projects might find it useful.
Comparison
While there are many logging solutions available, Tamga offers colorful output using Tailwind CSS colors and combines multiple features like MongoDB support, email notifications, and file rotation in a simple package.
Quick example:
from tamga import Tamga
logger = Tamga()
logger.info("This is an info message")
logger.warning("This is a warning")
logger.success("This is a success message")
https://github.com/dogukanurker/tamga
/r/Python
https://redd.it/1i5uncl
What My Project Does
Tamga is a Python logging package that provides colorful console output and supports multiple logging formats (file, JSON, MongoDB, etc.). It makes Python logging more visually appealing and easier to use.
Target Audience
I originally created this for my FlaskBlog project and kept reusing it in other projects. After copying the code multiple times, I decided to turn it into a package. Anyone who wants prettier and more flexible logging in their Python projects might find it useful.
Comparison
While there are many logging solutions available, Tamga offers colorful output using Tailwind CSS colors and combines multiple features like MongoDB support, email notifications, and file rotation in a simple package.
Quick example:
from tamga import Tamga
logger = Tamga()
logger.info("This is an info message")
logger.warning("This is a warning")
logger.success("This is a success message")
https://github.com/dogukanurker/tamga
/r/Python
https://redd.it/1i5uncl
GitHub
GitHub - DogukanUrker/flaskBlog: Simple blog app.
Simple blog app. . Contribute to DogukanUrker/flaskBlog development by creating an account on GitHub.
Python Fixed-Point Converter
Hey everyone, [PyFi](https://github.com/CesarPiresSevero/pyfi) is a library that helps converting fixed-point to floating-point and vice-versa.
* What My Project Does: Converts floating and fixed-point implementations
* Target Audience: Algorithm developers
* Comparison: Simpler solution with only one class and method
It can be very hand for someone doing fixed-point algorithm implementations. Here is an example:
>PYTHON FIXED POINT CONVERTER
>Configuration:
-Type of conversion: Floating to fixed point
-Signedness: Signed
-Total bits: 32
-Fractional bits: 31
>WARNING: 1.0 can not be represented, 0.99999999977 will be used instead ( index: 0 )
>Converted values:
>-Dec (Input): 0.99999999977,-0.50000000000
>-Hex (Output): 0x7fffffff,0xc0000000
>-Bin (Output): 0b01111111111111111111111111111111,0b1100000000000000000000000000000
/r/Python
https://redd.it/1i6qeh7
Hey everyone, [PyFi](https://github.com/CesarPiresSevero/pyfi) is a library that helps converting fixed-point to floating-point and vice-versa.
* What My Project Does: Converts floating and fixed-point implementations
* Target Audience: Algorithm developers
* Comparison: Simpler solution with only one class and method
It can be very hand for someone doing fixed-point algorithm implementations. Here is an example:
>PYTHON FIXED POINT CONVERTER
>Configuration:
-Type of conversion: Floating to fixed point
-Signedness: Signed
-Total bits: 32
-Fractional bits: 31
>WARNING: 1.0 can not be represented, 0.99999999977 will be used instead ( index: 0 )
>Converted values:
>-Dec (Input): 0.99999999977,-0.50000000000
>-Hex (Output): 0x7fffffff,0xc0000000
>-Bin (Output): 0b01111111111111111111111111111111,0b1100000000000000000000000000000
/r/Python
https://redd.it/1i6qeh7
GitHub
GitHub - CesarPiresSevero/pyfi: Python Fixed Point package to convert floating point to/from fixed point
Python Fixed Point package to convert floating point to/from fixed point - CesarPiresSevero/pyfi
Docker + Django: Containerize the Right Way with Nginx, Postgresql & Gunicorn
https://youtu.be/1v3lqIITRJA
/r/django
https://redd.it/1i6tkok
https://youtu.be/1v3lqIITRJA
/r/django
https://redd.it/1i6tkok
YouTube
Docker + Django: Containerize the Right Way with Nginx, Postgresql & Gunicorn
Learn how to deploy Django with Docker the right way! Say goodbye to common mistakes like using runserver for production or broken static files. This tutorial covers:
- Setting up Gunicorn for optimal traffic handling
- Fixing Django admin and static files…
- Setting up Gunicorn for optimal traffic handling
- Fixing Django admin and static files…
Wednesday Daily Thread: Beginner questions
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/1i6xdhu
# Weekly Thread: Beginner Questions 🐍
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
## How it Works:
1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
## Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).
## Recommended Resources:
If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.
## Example Questions:
1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?
Let's help each other learn Python! 🌟
/r/Python
https://redd.it/1i6xdhu
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
I don’t understand models
Hello, I’m new to Django and am kinda struggling with understanding models and their structure. If anyone could provide information that would be appreciated.
/r/djangolearning
https://redd.it/1i4yull
Hello, I’m new to Django and am kinda struggling with understanding models and their structure. If anyone could provide information that would be appreciated.
/r/djangolearning
https://redd.it/1i4yull
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Where is the community?
I’m learning Python and Flask as I’ll need it for a job I’m starting soon. Previously I’ve been involved with the iOS development community and there’s a pretty big community on X (Twitter). Is there a similar community for Flask/Python on X? Is it here on Reddit? What’s the best way to get involved?
/r/flask
https://redd.it/1i6saf4
I’m learning Python and Flask as I’ll need it for a job I’m starting soon. Previously I’ve been involved with the iOS development community and there’s a pretty big community on X (Twitter). Is there a similar community for Flask/Python on X? Is it here on Reddit? What’s the best way to get involved?
/r/flask
https://redd.it/1i6saf4
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
PhotoshopAPI - bulk read/write PSD files without Photoshop App
Here's some more info about this project: https://github.com/EmilDohne/PhotoshopAPI
What my Project does
PhotoshopAPI is a C++20 Library with Python bindings for reading and writing of Photoshop Files (*.psd and *.psb) based on previous works from psd_sdk, pytoshop and psd-tools. As well as the official Photoshop File Format Specification, where applicable. The library is continuously tested for correctness in its core functionality. If you do find a bug please submit an issue to the github page.
The motivation to create another library despite all the other works present is that there isn't a library which has layer editing as a first class citizen while also supporting all bit-depths known to Photoshop (8-bits, 16-bits, 32-bits). This Library aims to create an abstraction between the raw binary file format and the structure that the user interfaces against to provide a more intuitive approach to the editing of Photoshop Files.
COMPARISON
Photoshop itself is unfortunately often slow to read/write files and the built-in tools for automatically/programmatically modifying files suffer this same issue. On top of this, due to the extensive history of the Photoshop File Format, Photoshop files written out by Photoshop itself are often unnecessarily bloated to add backwards compatibility or cross-software compatibility.
The PhotoshopAPI tries to address these
/r/Python
https://redd.it/1i6t9l7
Here's some more info about this project: https://github.com/EmilDohne/PhotoshopAPI
What my Project does
PhotoshopAPI is a C++20 Library with Python bindings for reading and writing of Photoshop Files (*.psd and *.psb) based on previous works from psd_sdk, pytoshop and psd-tools. As well as the official Photoshop File Format Specification, where applicable. The library is continuously tested for correctness in its core functionality. If you do find a bug please submit an issue to the github page.
The motivation to create another library despite all the other works present is that there isn't a library which has layer editing as a first class citizen while also supporting all bit-depths known to Photoshop (8-bits, 16-bits, 32-bits). This Library aims to create an abstraction between the raw binary file format and the structure that the user interfaces against to provide a more intuitive approach to the editing of Photoshop Files.
COMPARISON
Photoshop itself is unfortunately often slow to read/write files and the built-in tools for automatically/programmatically modifying files suffer this same issue. On top of this, due to the extensive history of the Photoshop File Format, Photoshop files written out by Photoshop itself are often unnecessarily bloated to add backwards compatibility or cross-software compatibility.
The PhotoshopAPI tries to address these
/r/Python
https://redd.it/1i6t9l7
GitHub
GitHub - EmilDohne/PhotoshopAPI: A modern and performant C++20 read/write parser of Photoshop Files (*.psd and *.psb) with fully…
A modern and performant C++20 read/write parser of Photoshop Files (*.psd and *.psb) with fully fledged Python bindings hosted on PyPi - EmilDohne/PhotoshopAPI