A script to get songs from a playlist with matching total length
#What my project does
Basically, you input:
- A public youtube playlist
- Target duration
You get:
- Song groups with a matching total length
#Target Audience
So I think this is one of the most specific 'problems'..
I've been making a slow return to jogging, and one of the changes to keep things fresh was to jog until the playlist ended. (Rather than meters, or a route)
I am incrementing the length of the playlist by 15 seconds between each run, and each time finding a group of songs with a matching length can be tiring, which is why I thought of this π
So I guess this is for people who want a shuffled playlist, with a specific duration, for some reason.
This is 'py-playlist-subset', try it out π
https://github.com/Tomi-1997/py-playlist-subset
/r/Python
https://redd.it/1nl4bxv
#What my project does
Basically, you input:
- A public youtube playlist
- Target duration
You get:
- Song groups with a matching total length
#Target Audience
So I think this is one of the most specific 'problems'..
I've been making a slow return to jogging, and one of the changes to keep things fresh was to jog until the playlist ended. (Rather than meters, or a route)
I am incrementing the length of the playlist by 15 seconds between each run, and each time finding a group of songs with a matching length can be tiring, which is why I thought of this π
So I guess this is for people who want a shuffled playlist, with a specific duration, for some reason.
This is 'py-playlist-subset', try it out π
https://github.com/Tomi-1997/py-playlist-subset
/r/Python
https://redd.it/1nl4bxv
GitHub
GitHub - Tomi-1997/py-playlist-subset: Generate a list of songs with requsted length, from a youtube playlist.
Generate a list of songs with requsted length, from a youtube playlist. - Tomi-1997/py-playlist-subset
Python + Django + HID DigitalPersona 4500: Biometric Registration & MySQL Integration
https://youtu.be/fB23Sdu5n2c
/r/django
https://redd.it/1nl9zlq
https://youtu.be/fB23Sdu5n2c
/r/django
https://redd.it/1nl9zlq
YouTube
Python Django Biometric Registration with HID DigitalPersona 4500 | Save Fingerprints to MySQL DB
In this video, I demonstrate Biometric Registration in a Python Django Application using the HID DigitalPersona 4500 Fingerprint Scanner. You will see How to Capture Person Details, perform Fingerprint Enrollment and then Save both the Personal Data and Biometricβ¦
Doubt regarding a resource
I wanted ask you guys how is this django tutorial???: https://www.youtube.com/playlist?list=PL4cUxeGkcC9iqfAag3a\_BKEX1N43uJutw , this is a tutorial by net ninja
I know people here suggest the official docs over everything else, but i wanna get done with the basics of django and straight away start with building projects
If you guys have any other resource suggestion i am all ears
/r/djangolearning
https://redd.it/1nkw4tp
I wanted ask you guys how is this django tutorial???: https://www.youtube.com/playlist?list=PL4cUxeGkcC9iqfAag3a\_BKEX1N43uJutw , this is a tutorial by net ninja
I know people here suggest the official docs over everything else, but i wanna get done with the basics of django and straight away start with building projects
If you guys have any other resource suggestion i am all ears
/r/djangolearning
https://redd.it/1nkw4tp
I just released reaktiv v0.19.2 with LinkedSignals! Let me explain what Signals even are
I've been working on this reactive state management library for Python, and I'm excited to share that I just added LinkedSignals in v0.19.2. But first, let me explain what this whole "Signals" thing is about.
# I built Signals = Excel for your Python code
You know that frustrating bug where you update some data but forget to refresh the UI? Or where you change one piece of state and suddenly everything is inconsistent? I got tired of those bugs, so I built something that eliminates them completely.
Signals work just like Excel - change one cell, and all dependent formulas automatically recalculate:
from reaktiv import Signal, Computed, Effect
# Your data (like Excel cells)
name = Signal("Alice")
age = Signal(25)
# Automatic formulas (like Excel =A1&" is "&B1&" years old")
greeting = Computed(lambda: f"{name()} is {age()} years old")
# Auto-display (like Excel charts that update automatically)
display = Effect(lambda: print(greeting()))
# Prints: "Alice is 25 years old"
/r/Python
https://redd.it/1nl9f0h
I've been working on this reactive state management library for Python, and I'm excited to share that I just added LinkedSignals in v0.19.2. But first, let me explain what this whole "Signals" thing is about.
# I built Signals = Excel for your Python code
You know that frustrating bug where you update some data but forget to refresh the UI? Or where you change one piece of state and suddenly everything is inconsistent? I got tired of those bugs, so I built something that eliminates them completely.
Signals work just like Excel - change one cell, and all dependent formulas automatically recalculate:
from reaktiv import Signal, Computed, Effect
# Your data (like Excel cells)
name = Signal("Alice")
age = Signal(25)
# Automatic formulas (like Excel =A1&" is "&B1&" years old")
greeting = Computed(lambda: f"{name()} is {age()} years old")
# Auto-display (like Excel charts that update automatically)
display = Effect(lambda: print(greeting()))
# Prints: "Alice is 25 years old"
/r/Python
https://redd.it/1nl9f0h
Reddit
From the Python community on Reddit: I just released reaktiv v0.19.2 with LinkedSignals! Let me explain what Signals even are
Explore this post and more from the Python community
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
# Weekly Thread: Resource Request and Sharing π
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! π
/r/Python
https://redd.it/1nljibj
# Weekly Thread: Resource Request and Sharing π
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! π
/r/Python
https://redd.it/1nljibj
Amazon
Fluent Python: Clear, Concise, and Effective Programming
Fluent Python: Clear, Concise, and Effective Programming [Ramalho, Luciano] on Amazon.com. *FREE* shipping on qualifying offers. Fluent Python: Clear, Concise, and Effective Programming
π DRF Auth Kit - Complete DRF Authentication with Type Safety & OpenAPI
After months of development and fixing issues from the initial release, I'm excited to reintroduce DRF Auth Kit - a modern Django REST Framework authentication toolkit that addresses the pain points of existing packages.
What makes it different:
π₯ Full Type Safety - Complete type hints with mypy/pyright support
π Perfect OpenAPI Schema - Auto-generated docs that work flawlessly with any client generator
πͺ JWT Cookies - Secure HTTP-only cookies with automatic token management
π Easy MFA Setup - Email & app-based MFA with backup codes, proper OpenAPI schemas included
π Simple Social Auth - Django Allauth integration with minimal setup (like headless mode but easier)
π 57 Languages - Built-in i18n support
Why we built this:
Inspired by
- No more broken OpenAPI schemas
- Complete type safety throughout
- Zero manual schema fixes needed
- Easy customization without breaking functionality
Perfect for:
- Teams wanting bulletproof API documentation
- Projects requiring type-safe authentication
- Anyone tired of manually fixing auth schemas
- Developers who value clean, well-documented code
β GitHub: https://github.com/forthecraft/drf-auth-kit
π Docs: https://drf-auth-kit.readthedocs.io/
Would love feedback from the community!
/r/django
https://redd.it/1nl9qy9
After months of development and fixing issues from the initial release, I'm excited to reintroduce DRF Auth Kit - a modern Django REST Framework authentication toolkit that addresses the pain points of existing packages.
What makes it different:
π₯ Full Type Safety - Complete type hints with mypy/pyright support
π Perfect OpenAPI Schema - Auto-generated docs that work flawlessly with any client generator
πͺ JWT Cookies - Secure HTTP-only cookies with automatic token management
π Easy MFA Setup - Email & app-based MFA with backup codes, proper OpenAPI schemas included
π Simple Social Auth - Django Allauth integration with minimal setup (like headless mode but easier)
π 57 Languages - Built-in i18n support
Why we built this:
Inspired by
dj-rest-auth and django-trench, but enhanced to solve their limitations:- No more broken OpenAPI schemas
- Complete type safety throughout
- Zero manual schema fixes needed
- Easy customization without breaking functionality
Perfect for:
- Teams wanting bulletproof API documentation
- Projects requiring type-safe authentication
- Anyone tired of manually fixing auth schemas
- Developers who value clean, well-documented code
pip install drf-auth-kit[all] # Includes MFA + social auth
β GitHub: https://github.com/forthecraft/drf-auth-kit
π Docs: https://drf-auth-kit.readthedocs.io/
Would love feedback from the community!
/r/django
https://redd.it/1nl9qy9
GitHub
GitHub - forthecraft/drf-auth-kit: Modern Django REST Framework authentication toolkit with JWT cookies, social login, and 2FAβ¦
Modern Django REST Framework authentication toolkit with JWT cookies, social login, and 2FA support - forthecraft/drf-auth-kit
Why isn't the copy() method part of the Sequence and MutableSequence ABCs?
The
Note that I am not asking how to work with that design choice. Instead I am trying to understand it.
/r/Python
https://redd.it/1nllur9
The
Sequence ABC from collections.abc does not include an abstract method copy(). What are the reasons for that design choice?Note that I am not asking how to work with that design choice. Instead I am trying to understand it.
/r/Python
https://redd.it/1nllur9
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Looking to get hire in the django as a freelancer
i am having a experience of 2+ years as Django, next and react. i am looking for part time, contract or freelancing jobs. worked on more than 4 or 5 project intermediate level. Looking forward to get connected.
/r/django
https://redd.it/1nlgouk
i am having a experience of 2+ years as Django, next and react. i am looking for part time, contract or freelancing jobs. worked on more than 4 or 5 project intermediate level. Looking forward to get connected.
/r/django
https://redd.it/1nlgouk
Reddit
From the django community on Reddit
Explore this post and more from the django community
Scintilla, Qt and alternative text editor widgets
Hello fellow python enjoyers,
I'm currently considering moving away from PyQt6 to go on PySide6 due to license issues. However, it would imply moving away from QScintilla as a text editor too, since there is no bindings for Scintilla on PySide side.
I don't want to go back to "default" QPlainTextEdit since my needs are close to the ones of a Source Code editor (especially indentation guides).
Do any of you know an alternative? I'm leaning towards Monaco via QTMonaco, but there might be better options or easier to adapt (I still need to find out resources regarding Monaco).
/r/Python
https://redd.it/1nltf58
Hello fellow python enjoyers,
I'm currently considering moving away from PyQt6 to go on PySide6 due to license issues. However, it would imply moving away from QScintilla as a text editor too, since there is no bindings for Scintilla on PySide side.
I don't want to go back to "default" QPlainTextEdit since my needs are close to the ones of a Source Code editor (especially indentation guides).
Do any of you know an alternative? I'm leaning towards Monaco via QTMonaco, but there might be better options or easier to adapt (I still need to find out resources regarding Monaco).
/r/Python
https://redd.it/1nltf58
GitHub
GitHub - bec-project/qtmonaco: Monaco editor with pyside6 bindings
Monaco editor with pyside6 bindings. Contribute to bec-project/qtmonaco development by creating an account on GitHub.
Flask + ReactJs + MySQL + Crawler
Is it possible to create a web app for web crawling such as Broken Acces Control vulnerability using said language? I was planning to use
Backend : Flask
Frontend : ReactJS
Database : MySQL
Crawler : Playwright
Also, does that mean using reactjs as frontend will be different as using PHP, HTML and Bootstrap??
/r/flask
https://redd.it/1nlve3z
Is it possible to create a web app for web crawling such as Broken Acces Control vulnerability using said language? I was planning to use
Backend : Flask
Frontend : ReactJS
Database : MySQL
Crawler : Playwright
Also, does that mean using reactjs as frontend will be different as using PHP, HTML and Bootstrap??
/r/flask
https://redd.it/1nlve3z
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Fake OS - Worth making?
So, a while ago i discovered this repo on github: https://github.com/crcollins/pyOS
In summary, its a program trying to simulate an OS by having a kernel, programs (terminal commands), a filesystem etc.
Ive been impressed of the dedication for something that isnt useful in your everyday life. Though ive seen the small group of repositories making similar projects fascinating, and thought about making my own, but ive yet to come up a reason for it.
So here i am, wanting to ask:
Is something like this worth making, following the structure of a real computer, containing a kernel, drivers, the OS layer, BIOS etc?
What would be ways to make it useful / more interesting?
All feedback is appreciated, thanks in advance :O
/r/Python
https://redd.it/1nlwpe8
So, a while ago i discovered this repo on github: https://github.com/crcollins/pyOS
In summary, its a program trying to simulate an OS by having a kernel, programs (terminal commands), a filesystem etc.
Ive been impressed of the dedication for something that isnt useful in your everyday life. Though ive seen the small group of repositories making similar projects fascinating, and thought about making my own, but ive yet to come up a reason for it.
So here i am, wanting to ask:
Is something like this worth making, following the structure of a real computer, containing a kernel, drivers, the OS layer, BIOS etc?
What would be ways to make it useful / more interesting?
All feedback is appreciated, thanks in advance :O
/r/Python
https://redd.it/1nlwpe8
GitHub
GitHub - crcollins/pyOS: A simple pure Python OS.
A simple pure Python OS. Contribute to crcollins/pyOS development by creating an account on GitHub.
Which Django Youtube channel do you recommend?
Hi Django lovers.
I want to learn Django exactly, to do this i can go with Django offical documents but i know a few awesome Django channel that i want to watch all video because there are many things with Django.
Problem is, there are so many videos.
https://www.youtube.com/@CodeWithStein 363 videos 180 hours
https://www.youtube.com/@bugbytes3923 423 videos 128 hours
https://www.youtube.com/@CloudWithDjango 222 videos 68 hours
What do you think, where should i start with?
Thanks
/r/django
https://redd.it/1nluode
Hi Django lovers.
I want to learn Django exactly, to do this i can go with Django offical documents but i know a few awesome Django channel that i want to watch all video because there are many things with Django.
Problem is, there are so many videos.
https://www.youtube.com/@CodeWithStein 363 videos 180 hours
https://www.youtube.com/@bugbytes3923 423 videos 128 hours
https://www.youtube.com/@CloudWithDjango 222 videos 68 hours
What do you think, where should i start with?
Thanks
/r/django
https://redd.it/1nluode
YouTube
Code With Stein
I create tutorial videos to teach you everything you need to know about coding. Django, Python, Vue, Htmx and much much more!
Template for django-ninja?
I've been wanting to try Django ninja for some AI app that I'm trying tk build, because of its async support. However, I could not find an extensive template that shows all the batteries included for Django ninja. Can anybody recommend such template?
/r/django
https://redd.it/1nlwoo4
I've been wanting to try Django ninja for some AI app that I'm trying tk build, because of its async support. However, I could not find an extensive template that shows all the batteries included for Django ninja. Can anybody recommend such template?
/r/django
https://redd.it/1nlwoo4
Reddit
From the django community on Reddit
Explore this post and more from the django community
Tines API Wrapper
Links
PyPI: https://pypi.org/project/Tapi/
GitHub: https://github.com/1Doomdie1/Tapi
Pepy.tech: stats
So what is Tines?
In short, Tines is a no-code automation platform designed for security and IT teams. It allows users to build, orchestrate, and automate workflows such as incident response, threat detection, and IT operations without needing to write code. By connecting to APIs and tools, Tines helps streamline repetitive tasks, reduce response times, and improve operational efficiency. Althought it is marketed as a "no-code" solution, that doesn't mean it doesn't have the ability to run code. Quite the opposite, it provides you with a dedicated action which allows you to write and execute your own python code.
What My Project Does
I created Tapi as a Python wrapper for the Tines API. Rather than dealing with raw HTTP requests or parsing JSON by hand, Tapi provides structured classes like
Examples
Pulling information about your tenant would look somehting like this:
from json import dumps
from tapi import TenantAPI
def main():
DOMAIN = "my-cool-domain-1234"
/r/Python
https://redd.it/1nlze8r
Links
PyPI: https://pypi.org/project/Tapi/
GitHub: https://github.com/1Doomdie1/Tapi
Pepy.tech: stats
So what is Tines?
In short, Tines is a no-code automation platform designed for security and IT teams. It allows users to build, orchestrate, and automate workflows such as incident response, threat detection, and IT operations without needing to write code. By connecting to APIs and tools, Tines helps streamline repetitive tasks, reduce response times, and improve operational efficiency. Althought it is marketed as a "no-code" solution, that doesn't mean it doesn't have the ability to run code. Quite the opposite, it provides you with a dedicated action which allows you to write and execute your own python code.
What My Project Does
I created Tapi as a Python wrapper for the Tines API. Rather than dealing with raw HTTP requests or parsing JSON by hand, Tapi provides structured classes like
WorkflowsAPI, ActionsAPI, CredentialsAPI, and others. These give you a clean way to interact with your Tines tenant and its endpoints.Examples
Pulling information about your tenant would look somehting like this:
from json import dumps
from tapi import TenantAPI
def main():
DOMAIN = "my-cool-domain-1234"
/r/Python
https://redd.it/1nlze8r
How to force my Flask app to always use English?
import os
from app.route import (
basic_input_route,
graph_investment_route,
graph_salary_growth_route,
pension_summary_route,
)
from flask import Flask, g, request
from flask_babel import Babel
from setup_secret import setup_secret
from extensions import db, csrf
def create_app(test_config=None):
app = Flask(__name__)
setup_secret()
secret_key = os.environ.get("SECRET_KEY")
if not secret_key:
raise RuntimeError(
"SECRET_KEY not found! Run setup_secret() or create a proper .env file."
)
app.config["SECRET_KEY"] = secret_key
app.config["SQLALCHEMY_DATABASE_URI"]
/r/flask
https://redd.it/1nmal6o
import os
from app.route import (
basic_input_route,
graph_investment_route,
graph_salary_growth_route,
pension_summary_route,
)
from flask import Flask, g, request
from flask_babel import Babel
from setup_secret import setup_secret
from extensions import db, csrf
def create_app(test_config=None):
app = Flask(__name__)
setup_secret()
secret_key = os.environ.get("SECRET_KEY")
if not secret_key:
raise RuntimeError(
"SECRET_KEY not found! Run setup_secret() or create a proper .env file."
)
app.config["SECRET_KEY"] = secret_key
app.config["SQLALCHEMY_DATABASE_URI"]
/r/flask
https://redd.it/1nmal6o
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Improving the performance of Python/Django project with the help of Go?
In my work I use Django and I love it because I've been able to deliver some projects very quickly thanks to it providing an easy structure to follow and compose, but I've been learning Go recently and I've loved how efficient it can be, I was thinking of trying to rewrite some jobs I have in celery to Go to see if there's any improvement in performance, since we use VPS and before scaling I would like to see if Go can help us support more work with the current resources.
I would like to know if you have had experience integrating Go into Python or Django projects especially, and what you have discovered and how you have done it.
/r/django
https://redd.it/1nm8ij0
In my work I use Django and I love it because I've been able to deliver some projects very quickly thanks to it providing an easy structure to follow and compose, but I've been learning Go recently and I've loved how efficient it can be, I was thinking of trying to rewrite some jobs I have in celery to Go to see if there's any improvement in performance, since we use VPS and before scaling I would like to see if Go can help us support more work with the current resources.
I would like to know if you have had experience integrating Go into Python or Django projects especially, and what you have discovered and how you have done it.
/r/django
https://redd.it/1nm8ij0
Reddit
From the django community on Reddit
Explore this post and more from the django community
Sunday Daily Thread: What's everyone working on this week?
# Weekly Thread: What's Everyone Working On This Week? π οΈ
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! π
/r/Python
https://redd.it/1nmdhrp
# 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/1nmdhrp
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
super lightweight stateful flow
What My Project Does
A lightweight AI-Ready Python framework for building asynchronous data processing pipelines with stateful nodes.
Target Audience
Those who wants to build AI application backends or lightweight data process backends. The project is not massivly tested in production.
Comparison
Compared to hamilton, airflow, pydag, etc., OoFlow is super lightweight and has very easy to use APIs, no restrictions on code positions, and its nodes/tasks are stateful, enabling cross-messages business logic.
\----------------------------------------------
when i was building new applications(some were AI related), i found the programming paradigm changed, because the first token/byte of each phase deeply affect user experiences.
i had to make every step processing data asynchronous, stateful, parallel.
"""
Flow topology diagram:
A
β
βΌ
B
β± β²
βΌ βΌ
C D
β² β±
βΌ
E
"""
/r/Python
https://redd.it/1nmgr3q
What My Project Does
A lightweight AI-Ready Python framework for building asynchronous data processing pipelines with stateful nodes.
Target Audience
Those who wants to build AI application backends or lightweight data process backends. The project is not massivly tested in production.
Comparison
Compared to hamilton, airflow, pydag, etc., OoFlow is super lightweight and has very easy to use APIs, no restrictions on code positions, and its nodes/tasks are stateful, enabling cross-messages business logic.
\----------------------------------------------
when i was building new applications(some were AI related), i found the programming paradigm changed, because the first token/byte of each phase deeply affect user experiences.
i had to make every step processing data asynchronous, stateful, parallel.
"""
Flow topology diagram:
A
β
βΌ
B
β± β²
βΌ βΌ
C D
β² β±
βΌ
E
"""
/r/Python
https://redd.it/1nmgr3q
Reddit
From the Python community on Reddit: super lightweight stateful flow
Explore this post and more from the Python community
pyya - integrate YAML configurations with your code easily
Updated to v0.1.9. Added a CLI tool to generate stubs for YAML configuration, now attribute style configuration has nice completion suggestions assuming you have setup mypy/python LSP.
Install:
pip install pyya
Page:
https://github.com/shadowy-pycoder/pyya
Features:
1) Automatically merge default and production configuration files
2) Convert keys in configuration files to snake_case
3) YAML validation with Pydantic models
4) Generate stub files for your dynamic configuration with pyya CLI tool.
5) Simple API
/r/Python
https://redd.it/1nmo8hl
Updated to v0.1.9. Added a CLI tool to generate stubs for YAML configuration, now attribute style configuration has nice completion suggestions assuming you have setup mypy/python LSP.
Install:
pip install pyya
Page:
https://github.com/shadowy-pycoder/pyya
Features:
1) Automatically merge default and production configuration files
2) Convert keys in configuration files to snake_case
3) YAML validation with Pydantic models
4) Generate stub files for your dynamic configuration with pyya CLI tool.
5) Simple API
/r/Python
https://redd.it/1nmo8hl
GitHub
GitHub - shadowy-pycoder/pyya: Convert YAML configuration files to Python objects
Convert YAML configuration files to Python objects - shadowy-pycoder/pyya
duvc-ctl Windows library for UVC camera control and Property control
I made this for controlling USB cameras on Windows without needing any extra SDKs or serial controls for PTZ. Itβs called duvc-ctl. Supports C++, Python(other languages support coming soon), and a CLI for adjusting pan/tilt/zoom(ptz), focus, exposure, and other camera properties.
https://github.com/allanhanan/duvc-ctl
What my project does:
Control camera properties such as Brightness, Exposure, Pan, Tilt, Zoom, and other camera properties available in DirectShow
It exposes the DirectShow api to access these properties easily in C++ and binds it to python
Linux already has v4l2-ctl which is waay better but windows was lacking
Would be interested to hear if others find this useful or have ideas for where it could fit into workflows.
I personally found this useful where I didn't want to mess with visca or other serial protocols and just wanted to control it from python with just the usb connected
I might add linux support but I'm open to hear any opinions on this for now
/r/Python
https://redd.it/1nmio5b
I made this for controlling USB cameras on Windows without needing any extra SDKs or serial controls for PTZ. Itβs called duvc-ctl. Supports C++, Python(other languages support coming soon), and a CLI for adjusting pan/tilt/zoom(ptz), focus, exposure, and other camera properties.
https://github.com/allanhanan/duvc-ctl
What my project does:
Control camera properties such as Brightness, Exposure, Pan, Tilt, Zoom, and other camera properties available in DirectShow
It exposes the DirectShow api to access these properties easily in C++ and binds it to python
Linux already has v4l2-ctl which is waay better but windows was lacking
Would be interested to hear if others find this useful or have ideas for where it could fit into workflows.
I personally found this useful where I didn't want to mess with visca or other serial protocols and just wanted to control it from python with just the usb connected
I might add linux support but I'm open to hear any opinions on this for now
/r/Python
https://redd.it/1nmio5b
GitHub
GitHub - allanhanan/duvc-ctl: Windows DirectShow UVC camera control library with C++, Python and CLI tools. duvc-ctl lets you β¦
Windows DirectShow UVC camera control library with C++, Python and CLI tools. duvc-ctl lets you programmatically control USB cameras on Windows. Set pan, tilt, zoom, focus, exposure, and other UVC ...