Pycamo: Camouflage Pattern Generator
My project : Github:Pycamo.
What My Project Does:
Pycamo can generate camouflage from a input image base on fractal noise. It's have GUI so you can use it easily. You can custommize: Size, precentage of each color, complexity of pattern.
Target Audience:
It's just a toy
Comparison:
I have seen several camouflage generators online. Camogen Github: Camogen is the one I have found to have the best results. I know my tool is not as good as Camogen but I still wanted to create my own.
/r/Python
https://redd.it/1ht68e9
My project : Github:Pycamo.
What My Project Does:
Pycamo can generate camouflage from a input image base on fractal noise. It's have GUI so you can use it easily. You can custommize: Size, precentage of each color, complexity of pattern.
Target Audience:
It's just a toy
Comparison:
I have seen several camouflage generators online. Camogen Github: Camogen is the one I have found to have the best results. I know my tool is not as good as Camogen but I still wanted to create my own.
/r/Python
https://redd.it/1ht68e9
GitHub
GitHub - Minhtrna/Pycamo: Python Camouflage Pattern Generator, GUI available
Python Camouflage Pattern Generator, GUI available - Minhtrna/Pycamo
Phitter - A Python library for Statistical Distribution Fitting
I just encountered [Phitter](https://github.com/phitterio/phitter-kernel), a Python library that makes statistical distribution fitting both powerful and intuitive. Not my project, but looks very interesting!
# What is Phitter?
Phitter is a robust Python library that helps you identify and fit the most appropriate statistical distributions to your datasets. Think of it as your Swiss Army knife for probability distribution analysis - whether you're working with continuous or discrete data, Phitter has got you covered.
# Key Features:
* Support for 80+ probability distributions (both continuous and discrete)
* Three goodness-of-fit tests (Chi-Square, Kolmogorov-Smirnov, Anderson-Darling)
* Beautiful visualizations (histograms, PDFs, ECDFs, Q-Q plots)
* Parallel processing support for large datasets
* Comprehensive documentation and modeling guides
# Show Me The Code!
Here's how simple it is to get started:
import phitter
# Basic usage
data = [your_data_here]
phi = phitter.PHITTER(data)
phi.fit()
# Get a summary of the top k distributions
print(phi.summarize(k=5))
# Plot the results
phi.plot_histogram_distributions() # Shows fitted distributions
phi.plot_ecdf() # Empirical Cumulative Distribution Function
Want more control?
/r/Python
https://redd.it/1hsqp3x
I just encountered [Phitter](https://github.com/phitterio/phitter-kernel), a Python library that makes statistical distribution fitting both powerful and intuitive. Not my project, but looks very interesting!
# What is Phitter?
Phitter is a robust Python library that helps you identify and fit the most appropriate statistical distributions to your datasets. Think of it as your Swiss Army knife for probability distribution analysis - whether you're working with continuous or discrete data, Phitter has got you covered.
# Key Features:
* Support for 80+ probability distributions (both continuous and discrete)
* Three goodness-of-fit tests (Chi-Square, Kolmogorov-Smirnov, Anderson-Darling)
* Beautiful visualizations (histograms, PDFs, ECDFs, Q-Q plots)
* Parallel processing support for large datasets
* Comprehensive documentation and modeling guides
# Show Me The Code!
Here's how simple it is to get started:
import phitter
# Basic usage
data = [your_data_here]
phi = phitter.PHITTER(data)
phi.fit()
# Get a summary of the top k distributions
print(phi.summarize(k=5))
# Plot the results
phi.plot_histogram_distributions() # Shows fitted distributions
phi.plot_ecdf() # Empirical Cumulative Distribution Function
Want more control?
/r/Python
https://redd.it/1hsqp3x
GitHub
GitHub - phitterio/phitter-kernel: Phitter is a phython library for accurately fitting statistical distributions to datasets, offering…
Phitter is a phython library for accurately fitting statistical distributions to datasets, offering intuitive usage, comprehensive visualization, and support for multiple distributions to enhance d...
How to create a dynamic formset by reading data from an uploaded file and then allow it to be modified before final submission and storage
Hi,
I have the following usecase:
1) Users can upload a csv file of their bank transactions.
2) The file is parsed and converted into transactions instances and categorized. The categories and list of transactions are shown to the user.
3) The user can then make some modifications (e.g., change categories) and finally submit the formset leading to all transactions being saved in the database.
I am currently struggling with the (3) step and not able to get a formset work which is populated from data not yet in database.
Does anyone have examples of how to solve this? I can share code snippets of course.
Are there better alternatives for this problem? May be HTMX, given that formsets have such bad reviews.
p.s. my current approach is as follows:
I handle the uploaded csv file in the POST view and extract transactions. Using these transaction instances, I populate a formset and then render it. However, when I submit the formset no data is saved.
Any help highly appreciated!
/r/django
https://redd.it/1hss4oy
Hi,
I have the following usecase:
1) Users can upload a csv file of their bank transactions.
2) The file is parsed and converted into transactions instances and categorized. The categories and list of transactions are shown to the user.
3) The user can then make some modifications (e.g., change categories) and finally submit the formset leading to all transactions being saved in the database.
I am currently struggling with the (3) step and not able to get a formset work which is populated from data not yet in database.
Does anyone have examples of how to solve this? I can share code snippets of course.
Are there better alternatives for this problem? May be HTMX, given that formsets have such bad reviews.
p.s. my current approach is as follows:
I handle the uploaded csv file in the POST view and extract transactions. Using these transaction instances, I populate a formset and then render it. However, when I submit the formset no data is saved.
Any help highly appreciated!
/r/django
https://redd.it/1hss4oy
Reddit
From the django community on Reddit
Explore this post and more from the django community
Accessing foreign key in a template.
I'll use the typical models given with Django examples and explain the problem I'm having.
I'm listing the books out in a template and need to access the author of each book. I've tried {{book.author.name}} and it doesn't work. I've also seen recommendations to use {{book.author_set.all.0}}, but that doesn't work either. Any guidance on whether or not this is possible and how to go about it is appreciated.
/r/djangolearning
https://redd.it/1ht9o67
I'll use the typical models given with Django examples and explain the problem I'm having.
class Author(models.Model): name = models.CharField()class Book(models.Model): name = models.CharField() author = models.ForeignKey(Author)I'm listing the books out in a template and need to access the author of each book. I've tried {{book.author.name}} and it doesn't work. I've also seen recommendations to use {{book.author_set.all.0}}, but that doesn't work either. Any guidance on whether or not this is possible and how to go about it is appreciated.
/r/djangolearning
https://redd.it/1ht9o67
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Motor Control Simulator in Python
I made a motor control simulator in Python, going over the theory and implementation.
Let me know what you think:
https://youtu.be/CC1rBmhWIqo
/r/Python
https://redd.it/1hted1s
I made a motor control simulator in Python, going over the theory and implementation.
Let me know what you think:
https://youtu.be/CC1rBmhWIqo
/r/Python
https://redd.it/1hted1s
YouTube
Motor Control Simulation: Theory & Implementation
In this video I go over the theory and implementation of a motor control simulation I made.
0:07: Simple circuits
1:30: Ohm's law and Faraday's law
3:55: 3 Phase equations
6:05: Solving equations
10:04: Ramped commands
11:25: PI control
12:12: Third harmonic…
0:07: Simple circuits
1:30: Ohm's law and Faraday's law
3:55: 3 Phase equations
6:05: Solving equations
10:04: Ramped commands
11:25: PI control
12:12: Third harmonic…
Dataclass Wizard: V1 Opt-in Out Now!
# What My Project Does
The Dataclass Wizard simplifies working with Python
Whether you’re working with simple or complex data structures, Dataclass Wizard eliminates boilerplate and optimizes performance, making it easier than ever to handle data.
# Target Audience
Dataclass Wizard is designed for Python developers who:
Work with `dataclasses`, `TypedDict`, or `NamedTuple`.
Need to serialize or deserialize JSON effortlessly.
Value performance and clean, readable code.
Want advanced features like aliasing, recursive type support, or handling complex types.
From API development to data pipelines, if you’re tired of manual conversions or inefficient workflows, this library is for you.
# Comparison
Compared to alternatives like Pydantic, Dataclass Wizard offers:
A lightweight and pure Python solution with minimal dependencies.
Support for
Better performance for specific tasks such as handling `NamedTuple` or recursive types.
An easy-to-extend and intuitive API.
With the upcoming V1 release, the core logic has been rewritten to provide an even more streamlined and powerful experience, addressing inefficiencies and simplifying the library’s usage.
# What's New
#
/r/Python
https://redd.it/1htey5l
# What My Project Does
The Dataclass Wizard simplifies working with Python
dataclasses by offering seamless de/serialization to/from JSON. With robust support for features like aliases, recursive types, and a magic-like user experience, this library transforms how you interact with data models in Python.Whether you’re working with simple or complex data structures, Dataclass Wizard eliminates boilerplate and optimizes performance, making it easier than ever to handle data.
# Target Audience
Dataclass Wizard is designed for Python developers who:
Work with `dataclasses`, `TypedDict`, or `NamedTuple`.
Need to serialize or deserialize JSON effortlessly.
Value performance and clean, readable code.
Want advanced features like aliasing, recursive type support, or handling complex types.
From API development to data pipelines, if you’re tired of manual conversions or inefficient workflows, this library is for you.
# Comparison
Compared to alternatives like Pydantic, Dataclass Wizard offers:
A lightweight and pure Python solution with minimal dependencies.
Support for
dataclasses out of the box, rather than relying on custom models.Better performance for specific tasks such as handling `NamedTuple` or recursive types.
An easy-to-extend and intuitive API.
With the upcoming V1 release, the core logic has been rewritten to provide an even more streamlined and powerful experience, addressing inefficiencies and simplifying the library’s usage.
# What's New
#
/r/Python
https://redd.it/1htey5l
Reddit
From the Python community on Reddit: Dataclass Wizard: V1 Opt-in Out Now!
Explore this post and more from the Python community
My first python package - MathSpell. Convert numbers to words contextually.
Hi everyone,
I wanted to share a Python package I recently (yesterday) developed called
# Target Audience:
I thought it might be useful for others working on data preprocessing tasks for applications such as text to speech.
# What my project does:
Context aware conversion of numbers into words, handling ordinals, currencies, and years without needing manual configuration.
# Comparisons
Easy to Use: You can simply pass your text to the `analyze_text` function.
Saves Time: It removes the complexity of setting up
# Usage Example
from mathspell import analyzetext
text = "I have $100 and I was born in 1990. This is the 1st time."
transformed = analyzetext(text)
print(transformed)
Output:
I have one hundred dollars and I was born in nineteen ninety. This is the first time.
# Current Limitations
English Only: Currently designed for English. Supporting other languages would require additional work.
Early Development Stage: I developed this
/r/Python
https://redd.it/1htjhrt
Hi everyone,
I wanted to share a Python package I recently (yesterday) developed called
mathspell. It was created to assist with number-to-word conversions in my main project.# Target Audience:
I thought it might be useful for others working on data preprocessing tasks for applications such as text to speech.
# What my project does:
Context aware conversion of numbers into words, handling ordinals, currencies, and years without needing manual configuration.
# Comparisons
Easy to Use: You can simply pass your text to the `analyze_text` function.
Saves Time: It removes the complexity of setting up
num2words for different contexts. It does the heavy lifting by configuring different use cases with reliable libraries (num2words, spaCy, re)# Usage Example
from mathspell import analyzetext
text = "I have $100 and I was born in 1990. This is the 1st time."
transformed = analyzetext(text)
print(transformed)
Output:
I have one hundred dollars and I was born in nineteen ninety. This is the first time.
# Current Limitations
English Only: Currently designed for English. Supporting other languages would require additional work.
Early Development Stage: I developed this
/r/Python
https://redd.it/1htjhrt
Reddit
From the Python community on Reddit: My first python package - MathSpell. Convert numbers to words contextually.
Explore this post and more from the Python community
I Made a Django Deployment Tutorial with PythonAnywhere—So Grateful It Exists!
I love PythonAnywhere. When I was learning Python, it was a total game-changer—being able to open a browser anywhere and just code was amazing. It gave me a safe space to experiment and learn without the hassle of setting things up.
What makes me appreciate it even more now is how much they give back. Their free tier is fantastic, and their paid plans are affordable. They’ve made coding so accessible, and I’m genuinely grateful for that.
Back when I was a complete Django newb, I tried deploying on it but struggled a little—Looking back I think it was probably a typo in the WSGI configuration which made me assume it was too complicated and I switched to other services.
However, more recently I came to realize how simple PythonAnywhere makes it. Features like persistent disks (even in the free tier!) make it such a practical choice, especially for beginners.
A couple of nights ago, I stayed up late to create a "code with me" style tutorial where I deploy a simple Django e-commerce project. If you’re new to deployment or just curious about PythonAnywhere, I hope this helps!
🔗 Check out the tutorial here: https://youtu.be/1nBhFUF6aQ0
Have you tried PythonAnywhere before? What’s your go-to
/r/django
https://redd.it/1hteuwv
I love PythonAnywhere. When I was learning Python, it was a total game-changer—being able to open a browser anywhere and just code was amazing. It gave me a safe space to experiment and learn without the hassle of setting things up.
What makes me appreciate it even more now is how much they give back. Their free tier is fantastic, and their paid plans are affordable. They’ve made coding so accessible, and I’m genuinely grateful for that.
Back when I was a complete Django newb, I tried deploying on it but struggled a little—Looking back I think it was probably a typo in the WSGI configuration which made me assume it was too complicated and I switched to other services.
However, more recently I came to realize how simple PythonAnywhere makes it. Features like persistent disks (even in the free tier!) make it such a practical choice, especially for beginners.
A couple of nights ago, I stayed up late to create a "code with me" style tutorial where I deploy a simple Django e-commerce project. If you’re new to deployment or just curious about PythonAnywhere, I hope this helps!
🔗 Check out the tutorial here: https://youtu.be/1nBhFUF6aQ0
Have you tried PythonAnywhere before? What’s your go-to
/r/django
https://redd.it/1hteuwv
YouTube
How to Deploy a Django Project on Python Anywhere with MySQL Database [free] | Live Coding Tutorial
Let's deploy a Django e-commerce project on PythonAnywhere together! PythonAnywhere offers an easy-to-use platform with free hosting and a built-in MySQL database, making it an excellent choice for deploying Django apps. We’ll walk through the entire deployment…
makemigrations error
Requested setting CSRF_FAILURE_VIEW, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
when i makemigrations it shows like this, can anyone help me out
/r/djangolearning
https://redd.it/1htjwlx
Requested setting CSRF_FAILURE_VIEW, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
when i makemigrations it shows like this, can anyone help me out
/r/djangolearning
https://redd.it/1htjwlx
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning 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/1hts9ju
# 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/1hts9ju
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
What do you name your initial project? I have always thought "main" but I'm thinking as I am learning that may not be correct or the best
Currently have my projects setup as
/Users/<USERNAME>/Developer/Python/django/<PROJECT_NAME>/main/
tree example below
.
├── README.md
├── WIP_README.md
├── main
│ ├── accounts
│ │ ├── __init__.py
│ │ ├── __pycache__
│ │ │ ├── __init__.cpython-312.pyc
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── forms.py
│ │ ├── migrations
│ │ │ ├── __init__.py
│ │ │ └── __pycache__
│ │ │ └── __init__.cpython-312.pyc
│ │ ├── models.py
│ │ ├── templates
│ │ │ └── accounts
│ │ │ ├── login.html
│ │ │ ├── signup.html
│ │ │ └── signup_2.html
│ │ ├── tests.py
│ │ ├── urls.py
/r/djangolearning
https://redd.it/1htj6qq
Currently have my projects setup as
/Users/<USERNAME>/Developer/Python/django/<PROJECT_NAME>/main/
tree example below
.
├── README.md
├── WIP_README.md
├── main
│ ├── accounts
│ │ ├── __init__.py
│ │ ├── __pycache__
│ │ │ ├── __init__.cpython-312.pyc
│ │ ├── admin.py
│ │ ├── apps.py
│ │ ├── forms.py
│ │ ├── migrations
│ │ │ ├── __init__.py
│ │ │ └── __pycache__
│ │ │ └── __init__.cpython-312.pyc
│ │ ├── models.py
│ │ ├── templates
│ │ │ └── accounts
│ │ │ ├── login.html
│ │ │ ├── signup.html
│ │ │ └── signup_2.html
│ │ ├── tests.py
│ │ ├── urls.py
/r/djangolearning
https://redd.it/1htj6qq
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Sorting Algorithm Visualizations! (with sound) (+ some DSA implementations)
(TLDR, Project here --> https://github.com/pythonioncoder/DSA-Visualizations)
Hey guys!
I just finished a DSA course and decided to implement some of the stuff I learned in a GitHub repo. I also made visualizations for the sorts I learned, so feel free to check it out! It's been a long-time dream of mine to make sorting algorithm visualizations like the famous ones online, but I could never get the hang of it. So, with that in mind, I hope you can appreciate the stuff I've created!
What the project is:
A GitHub repo full of DSA implementations from Linked Lists to BSTs, alongside various sorting algorithms and visualizations implemented in Python using Matplotlib, Numpy, and Pygame.
Target Audience:
Whoever wants to learn more about DSA and Sorting Algos in Python, or just wants to see some cool animations using Matplotlib.
Comparison:
Similar to Timo Bagman's 'Sound of Sorting' project that went viral on youtube a while ago, except on Python.
/r/Python
https://redd.it/1htuwqi
(TLDR, Project here --> https://github.com/pythonioncoder/DSA-Visualizations)
Hey guys!
I just finished a DSA course and decided to implement some of the stuff I learned in a GitHub repo. I also made visualizations for the sorts I learned, so feel free to check it out! It's been a long-time dream of mine to make sorting algorithm visualizations like the famous ones online, but I could never get the hang of it. So, with that in mind, I hope you can appreciate the stuff I've created!
What the project is:
A GitHub repo full of DSA implementations from Linked Lists to BSTs, alongside various sorting algorithms and visualizations implemented in Python using Matplotlib, Numpy, and Pygame.
Target Audience:
Whoever wants to learn more about DSA and Sorting Algos in Python, or just wants to see some cool animations using Matplotlib.
Comparison:
Similar to Timo Bagman's 'Sound of Sorting' project that went viral on youtube a while ago, except on Python.
/r/Python
https://redd.it/1htuwqi
GitHub
GitHub - pythonioncoder/DSA-Visualizations: DSA and Visualizations for various sorting algorithms
DSA and Visualizations for various sorting algorithms - pythonioncoder/DSA-Visualizations
Introcuding kokoro-onnx TTS
Hey everyone!
I recently worked on the kokoro-onnx package, which is a TTS (text-to-speech) system built with onnxruntime, based on the new kokoro model (https://huggingface.co/hexgrad/Kokoro-82M)
The model is really cool and includes multiple voices, including a whispering feature similar to Eleven Labs.
It works faster than real-time on macOS M1. The package supports Linux, Windows, macOS x86-64, and arm64!
You can find the package here:
https://github.com/thewh1teagle/kokoro-onnx
Also, there’s a demo at the bottom.
/r/Python
https://redd.it/1htwitw
Hey everyone!
I recently worked on the kokoro-onnx package, which is a TTS (text-to-speech) system built with onnxruntime, based on the new kokoro model (https://huggingface.co/hexgrad/Kokoro-82M)
The model is really cool and includes multiple voices, including a whispering feature similar to Eleven Labs.
It works faster than real-time on macOS M1. The package supports Linux, Windows, macOS x86-64, and arm64!
You can find the package here:
https://github.com/thewh1teagle/kokoro-onnx
Also, there’s a demo at the bottom.
/r/Python
https://redd.it/1htwitw
huggingface.co
hexgrad/Kokoro-82M · Hugging Face
We’re on a journey to advance and democratize artificial intelligence through open source and open science.
Is learning django not good?
I am a student and learning django. I have made 2-3 basics projects using django and django rest framework. But none of my friends or even my seniors are using django. They all are using the javascript frameworks like node.js or next.js. I just wanted to ask is django not used in companies?
Is it not worth it to learn django??
/r/djangolearning
https://redd.it/1hstzgf
I am a student and learning django. I have made 2-3 basics projects using django and django rest framework. But none of my friends or even my seniors are using django. They all are using the javascript frameworks like node.js or next.js. I just wanted to ask is django not used in companies?
Is it not worth it to learn django??
/r/djangolearning
https://redd.it/1hstzgf
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
I made another project template, but for a python package (python, uv, pytest and more)
Hey everyone,
last time, i shared a template to get started with a generative AI project named "generative-ai-project-template". https://github.com/AmineDjeghri/generative-ai-project-template
Now i created another template for packaging python libraries named "Python-Package-Template. You can check it out https://github.com/AmineDjeghri/python-package-template
🛠️ Key Features
Engineering tools:
• ✅ Package management: UV
• ✅ Code quality: Pre-commit hooks with Ruff & Detect-secrets
• ✅ Logging: Colorful logs with Loguru
• ✅ Unit tests: Pytest
• ✅ Dockerized: Dockerfile & docker-compose for your evaluation pipeline
• ✅ Make commands: Simplify your workflow (install, run, test)
CI/CD & Maintenance tools:
• ✅ Pipelines: GitHub Actions (.github/workflows) & GitLab CI (.gitlab-ci.yml)
• ✅ Local CI/CD pipelines: Run GitHub Actions with act and GitLab CI with gitlab-ci-local
Documentation tools:
• ✅ Documentation website: MkDocs + mkdocs-material
• ✅ GitHub Pages deployment: Easy deployment with mkdocs gh-deploy
Any feedback, issues, or PRs are welcome!
/r/Python
https://redd.it/1hu0ojq
Hey everyone,
last time, i shared a template to get started with a generative AI project named "generative-ai-project-template". https://github.com/AmineDjeghri/generative-ai-project-template
Now i created another template for packaging python libraries named "Python-Package-Template. You can check it out https://github.com/AmineDjeghri/python-package-template
🛠️ Key Features
Engineering tools:
• ✅ Package management: UV
• ✅ Code quality: Pre-commit hooks with Ruff & Detect-secrets
• ✅ Logging: Colorful logs with Loguru
• ✅ Unit tests: Pytest
• ✅ Dockerized: Dockerfile & docker-compose for your evaluation pipeline
• ✅ Make commands: Simplify your workflow (install, run, test)
CI/CD & Maintenance tools:
• ✅ Pipelines: GitHub Actions (.github/workflows) & GitLab CI (.gitlab-ci.yml)
• ✅ Local CI/CD pipelines: Run GitHub Actions with act and GitLab CI with gitlab-ci-local
Documentation tools:
• ✅ Documentation website: MkDocs + mkdocs-material
• ✅ GitHub Pages deployment: Easy deployment with mkdocs gh-deploy
Any feedback, issues, or PRs are welcome!
/r/Python
https://redd.it/1hu0ojq
GitHub
GitHub - AmineDjeghri/generative-ai-project-template: Template for a new generative ai project using uv, nicegui, fastapi, llms…
Template for a new generative ai project using uv, nicegui, fastapi, llms (cloud & local with litellm and ollama) and langfuse for llm observability - AmineDjeghri/generative-ai-project-template
ShortMoji: Emoji Shortcuts Made Easy for Your Keyboard !
# What My Project Does
ShortMoji is a lightweight, open-source program that lets you insert emojis anywhere using simple, intuitive keyboard shortcuts. Inspired by Discord's emoji system, it supports **126 unique emoji shortcuts** (and counting!) to make your conversations and workflows more expressive.
Simply type a shortcut like `:ne`, and it transforms into 🤓 instantly. ShortMoji runs in the background and is designed for speed and ease of use.
**Features include:**
* Fast emoji insertion via shortcuts.
* Low resource consumption.
* Quick program termination by pressing `Esc` twice.
* Free and fully customizable under the GNU license.
# Target Audience
ShortMoji is for anyone who loves emojis and wants a faster way to use them. Whether you're:
* A developer looking for efficiency.
* A casual user who enjoys using emojis.
* A Discord enthusiast already familiar with emoji shortcuts.
# Comparison
While there are other emoji tools available, ShortMoji sets itself apart with:
* **Customizable shortcuts:** Familiar to Discord users and adaptable for others.
* **Open-source freedom:** Unlike proprietary software, you can modify and expand ShortMoji as you like.
* **Minimal resource impact:** A lightweight utility that doesn’t slow down your system.
* **Simple UX:** No need to navigate menus or GUIs—just type and see the magic !
Unlike system-level emoji menus or bloated applications, ShortMoji is a focused solution for quick and easy emoji input.
🎉 **Try
/r/Python
https://redd.it/1hu4pgo
# What My Project Does
ShortMoji is a lightweight, open-source program that lets you insert emojis anywhere using simple, intuitive keyboard shortcuts. Inspired by Discord's emoji system, it supports **126 unique emoji shortcuts** (and counting!) to make your conversations and workflows more expressive.
Simply type a shortcut like `:ne`, and it transforms into 🤓 instantly. ShortMoji runs in the background and is designed for speed and ease of use.
**Features include:**
* Fast emoji insertion via shortcuts.
* Low resource consumption.
* Quick program termination by pressing `Esc` twice.
* Free and fully customizable under the GNU license.
# Target Audience
ShortMoji is for anyone who loves emojis and wants a faster way to use them. Whether you're:
* A developer looking for efficiency.
* A casual user who enjoys using emojis.
* A Discord enthusiast already familiar with emoji shortcuts.
# Comparison
While there are other emoji tools available, ShortMoji sets itself apart with:
* **Customizable shortcuts:** Familiar to Discord users and adaptable for others.
* **Open-source freedom:** Unlike proprietary software, you can modify and expand ShortMoji as you like.
* **Minimal resource impact:** A lightweight utility that doesn’t slow down your system.
* **Simple UX:** No need to navigate menus or GUIs—just type and see the magic !
Unlike system-level emoji menus or bloated applications, ShortMoji is a focused solution for quick and easy emoji input.
🎉 **Try
/r/Python
https://redd.it/1hu4pgo
Reddit
From the Python community on Reddit: ShortMoji: Emoji Shortcuts Made Easy for Your Keyboard !
Explore this post and more from the Python community
Which game library in Python should I choose?
Title. I have tried pygame a little bit already, but I do know that Arcade and other exist too. Should I stick with pygame for its big community or choose Arcade/Pyglet? I do want to try some game jams in the future. Chose this sub cuz I want an unbiased opinion.
/r/Python
https://redd.it/1hu35pl
Title. I have tried pygame a little bit already, but I do know that Arcade and other exist too. Should I stick with pygame for its big community or choose Arcade/Pyglet? I do want to try some game jams in the future. Chose this sub cuz I want an unbiased opinion.
/r/Python
https://redd.it/1hu35pl
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Deploy Django with PyInfra
https://www.konstruktor.ee/blog/deploy-django-with-pyinfra
/r/django
https://redd.it/1hu7m1d
https://www.konstruktor.ee/blog/deploy-django-with-pyinfra
/r/django
https://redd.it/1hu7m1d
www.konstruktor.ee
Deploy Django with PyInfra
post response
i need someone's help to handle the response
i only get this response
{
"firstname": "John",
"middlename": "",
"lastname": "Doe",
"dateofbirth": "2000-07-14",
"email": "johndoe@gmail.com"
}
with this serializer
class RegisterUserSerializer(ModelSerializer):
address = AddressSerializer(required=False)
class Meta:
model = CustomUser
fields = ("firstname", "middlename", "lastname", "dateofbirth", "email", "address")
def create(self, validateddata):
addressdata = validateddata.pop('address')
user = CustomUser.objects.create(**validateddata)
Address.objects.create(addressdata, user=user)
return user
i want the response something like this
{
"firstname": "John",
/r/django
https://redd.it/1hu84tk
i need someone's help to handle the response
i only get this response
{
"firstname": "John",
"middlename": "",
"lastname": "Doe",
"dateofbirth": "2000-07-14",
"email": "johndoe@gmail.com"
}
with this serializer
class RegisterUserSerializer(ModelSerializer):
address = AddressSerializer(required=False)
class Meta:
model = CustomUser
fields = ("firstname", "middlename", "lastname", "dateofbirth", "email", "address")
def create(self, validateddata):
addressdata = validateddata.pop('address')
user = CustomUser.objects.create(**validateddata)
Address.objects.create(addressdata, user=user)
return user
i want the response something like this
{
"firstname": "John",
/r/django
https://redd.it/1hu84tk
Reddit
From the django community on Reddit
Explore this post and more from the django community
Chainmock - Mocking library for Python and pytest
I recently released v1.0 of a mocking library that I've been developing for a while. I use it in multiple projects myself and thought others might find it useful in their projects.
Github: https://github.com/ollipa/chainmock
Documentation: https://chainmock.readthedocs.io
What the project is:
Chainmock allows mocking, spying, and creating stubs. It's fully typed and works with unittest, doctest and, pytest. The syntax works especially well with pytest fixtures. Under the hood Chainmock uses Python standard library mocks providing an alternative syntax to create mocks and assertions. It also comes with some additional features to make mocking and testing easier.
Example:
Target Audience:
Python developers who want a more ergonomic mocking API for their test suites. The syntax works especially well for developers using pytest fixtures.
Comparison:
Similar to pytest-mock library, Chainmock cleans up mocks automatically but provides a more ergonomic API and also evaluates assertions lazily.
Chainmock's API is heavily inspired by flexmock. Compared to flexmock, Chainmock has more familiar API if you have been using standard library unittest and also supports async mocking.
/r/Python
https://redd.it/1hu44o4
I recently released v1.0 of a mocking library that I've been developing for a while. I use it in multiple projects myself and thought others might find it useful in their projects.
Github: https://github.com/ollipa/chainmock
Documentation: https://chainmock.readthedocs.io
What the project is:
Chainmock allows mocking, spying, and creating stubs. It's fully typed and works with unittest, doctest and, pytest. The syntax works especially well with pytest fixtures. Under the hood Chainmock uses Python standard library mocks providing an alternative syntax to create mocks and assertions. It also comes with some additional features to make mocking and testing easier.
Example:
mocker(Teapot).mock("brew").return_value("mocked").called_twice()
mocker(Teapot).spy("add_tea").any_call_with("green").call_count_at_most(2)
Target Audience:
Python developers who want a more ergonomic mocking API for their test suites. The syntax works especially well for developers using pytest fixtures.
Comparison:
Similar to pytest-mock library, Chainmock cleans up mocks automatically but provides a more ergonomic API and also evaluates assertions lazily.
Chainmock's API is heavily inspired by flexmock. Compared to flexmock, Chainmock has more familiar API if you have been using standard library unittest and also supports async mocking.
/r/Python
https://redd.it/1hu44o4
GitHub
GitHub - ollipa/chainmock: Mocking library for Python
Mocking library for Python. Contribute to ollipa/chainmock development by creating an account on GitHub.