The GREATEST, most TREMENDOUS Python package that makes importing great again!
TARIFF is a fantastic tool that lets you impose import tariffs on Python packages. We're going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!
Has someone been able to successfully connect to an IBM Informix DB with a Python app? I have the following environment:
DEV:
Windows 11
Python 3.13.3 64-bit
VS Code
DB:
IBM Informix 12.10 hosted in Azure
I'm able to connect to it usind DBeaver (JDBC)
I have tried the following libraries to try to establish the connection:
ibm_db:
Traceback (most recent call last):
File "c:\Users\peterg\source\python\dbApp\ibm_db_test.py", line 1, in <module>
import ibm_db as db
ImportError: DLL load failed while importing ibm_db: The specified module could not be found._
pyodbc:
I have an ODBC DSN connection established
Traceback (most recent call last):
File "c:\Users\peterg\source\python\dbApp\pyodbc_test.py", line 3, in <module>
conn = db.connect("Dsn='DSN_NAME'")
pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')
The general use case is that I'm making a setting and I store all my notes in an Obsidian project. It used to be when I shared notes it was a giant pain trying to send people files so I decided to set up a website. I was using a tool called ObsidianHTML but it doesn't get updated very often and I've had to do some questionable downgrades on my build server to keep using it. It's also way more advanced than what I have use for and I get lost in the aging documentation
So now I'm building a replacement command line tool! My build server picks up on changes made to the settings repo, pulls them in and my PSM code, converts the vault to an html website, and deploys from there. Bonus points is that since my tool is so dedicated purpose the build times have been cut so I can deploy faster than ever
The April 2025 release of the Python and Jupyter extensions for Visual Studio Code is now available. This update introduces enhancements to the Copilot experience in Notebooks, improved support for editable installs, faster and more reliable diagnostics, and the addition of custom Node.js arguments ...
Was going through a Python tutorial, but it seems kinda dated. Wanted to know if people regularly use docstrings in the workforce. Or are they somewhat irrelevant because you can convey most of that info via comments and context? Do jobs make you use them?
Hello if anyone knows of a way to get python-markdown to behave in the way I'd like, or of an alternative way to do it, I'd love some help! My use case is I'm converting .md files made with Obsidian into html files. Obsidian has tags that are a pound sign followed by the tag (so like "#TagName"). When the tag is the first item on a line the pound sign is confused for a heading, even though there is no space after it.
Is there a way that I can avoid this so it only reads it as a heading if there is a space between the pound and the next word? I'm even considering some kind of find/replace logic so I can swap it out with like a link to a page that lists all the pages with that tag or something that gets run before the markdown to html conversion.
Edit:
The solution I'm going for is a regex find/replace. Currently the string pattern looks like "#[^\s#][^\s" + string.punctuation + "#]*" which can find tags but ignores headers. Since the ultimate goal is to have the tags link to a tag p
Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.
I have a rather large Python script that I use as basically a replacement for autohotkey. It uses pynput for keyboard and mouse control - and at least on Windows, it works exactly how I expect.
I recently started dual-booting with Linux and have been trying to get the script to work here as well. It does work but with mixed results - in particular, I found that pynput has bizarrely wrong output for special characters, in a way that's both consistent and inconsistent.
The simplest possible case I found that reproduces the error is this script:
python
import time
from pynput import keyboard
# Sleep statement is just to give time to move the mouse cursor to a text input field
time.sleep(2)
my_kb = keyboard.Controller()
text = 'π' # Eggplant emoji
my_kb.type(text)
time.sleep(1)
text = 'π₯ππ€π₯' # blackboard bold test
my_kb.type(text)
time.sleep(1)
text = 'πππ¬π' # bold test
my_kb.type(text)
When I run that script right now, it produces the output "ππ₯π₯π€π₯πππ¬
Iβve been working on improving the startup time of Posting recently. Posting is a TUI application built with Textual, and written in Python, for managing and sending HTTP requests.
This post is an overview of some of the techniques (and hacks) I used and the gains made, including:
Using python -X im...
A user-friendly, menu-driven Python Program for yt-dlp - GitHub - AstroLightz/yt-dlp-adv2: A user-friendly, menu-driven Python Program for yt-dlp
Link Actions
I made this Python menu-driven CLI script for yt-dlp. It guides you through a series of menus to download content from a YouTube URL.
If anyone is interested, feedback would be greatly appreciated as only I have tested this so far, and I want to make sure it works for other people's systems.
If you encounter any issues or bugs, let me know so I can fix them!
Edit: I should mention: This is not a pipx package. That was never the intention developing this initially. I might make it a package in the future, but for now, it is just a project directory.