fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#pipx

0 posts0 participants0 posts today

Testing out #novelWriter app for #writing projects.

Bad news so far:
- Can't install via #chocolatey...

Good news so far:
- ...But I CAN just install it via #pipx and not waste disk space on yet another bloody random #Python runtime
- Seems to store all of its stuff as individual files in a folder hierarchy, like #Scrivener. Which is rad. Makes things #git friendly.
- Dark mode. OH YES.
- Actually, I think the whole markup style formatting is a thing that a lot of apps didn't do right and totally should be doing

I will definitely explore this more as an alternative and maybe even a replacement for Scrivener. Not that there's much wrong with Scrivener, it's just cool to see that the #opensource apps have been catching up while I wasn't looking.

@forse

Can you try installing it with `pipx` instead?

pipx will create a Python virtualenv just for that program, and install all of its dependencies into that virtual environment. It can then run independently of any system-level versions of those same packages that are installed *for the distro-shipped Python tools*.

The version pipx installs can be upgraded (or left alone) completely independently of OS updates.

Modern Good Practices for Python Development

An outline of best practices for development, including using tools like , or Development Containers for managing Python versions. It also recommends using pyproject.toml for project configuration, virtual environments for package management, and tools like Black, , and for code formatting, linting, and testing.

stuartellis.name/articles/pyth

Zajęło mi to prawie 3 godziny, ale #PipX 1.6.0 wylądował w #Gentoo, z nową wersją podrobionych danych testowych, które zajmują tylko 70 KiB (autorzy używają ~160 MiB paczek, dla każdej implementacji z osobna).

Co istotniejsze, tym razem nie stworzyłem tego na kolanie, ale napisałem porządny skrypt z instrukcjami, którego będzie można użyć przy kolejnych wersjach.

github.com/projg2/pipx-repack-

GitHubGitHub - projg2/pipx-repack-wheels: Repack pipx test wheels to minimize their sizeRepack pipx test wheels to minimize their size. Contribute to projg2/pipx-repack-wheels development by creating an account on GitHub.

It took me almost 3 hours but #PipX 1.6.0 is now in #Gentoo, with an updated test shim that makes it possible to test using fake wheels and is only 70 KiB (vs. upstream that uses ~160 MiB for every single implementation).

What's more important, this time it isn't a handmade proof-of-concept anymore but a proper script with instructions that can be used to easily deal with future releases.

github.com/projg2/pipx-repack-

GitHubGitHub - projg2/pipx-repack-wheels: Repack pipx test wheels to minimize their sizeRepack pipx test wheels to minimize their size. Contribute to projg2/pipx-repack-wheels development by creating an account on GitHub.

Neueste Episode: Python Libraries auf PyPI 🚀

Erfahre, wie du eine Library auf PyPI veröffentlichst und wie mein Tool QRClipboard funktioniert. Installiere es mit PIPX und verwandle Texte aus der Zwischenablage in QR-Codes. 🎉

Hinweis: Überprüfe immer den Code von PyPI-Libraries auf Sicherheit. 🛡️

🔗 podcasters.spotify.com/pod/sho

Spotify for PodcastersPython Libraries auf PyPI by CodeFlowIn dieser Episode zeige ich, wie man eine Library auf PyPI zur Verfügung stellt. Dabei gehe ich auf die Nutzung von PIP und PIPX ein und erkläre deren Funktionsweisen und Unterschiede. Ich stelle auch mein eigenes Projekt vor: QRClipboard. Dieses Python-Script nimmt einen Text aus der Zwischenablage und wandelt ihn in einen QR-Code um, den man dann direkt anzeigen lassen kann. Das Tool lässt sich einfach über PIPX installieren und über den Command-Line-Befehl qrclip ausführen. Wichtiger Hinweis: Es gibt potenzielle Sicherheitsrisiken bei der Installation von Libraries von PyPI. Nicht alle Libraries werden überprüft, daher sollte man stets vorsichtig sein und den Code der Library vor der Installation prüfen. Ein kurzer Blick auf den Quellcode kann bereits helfen, mögliche Sicherheitsprobleme zu erkennen. Beispielsweise kann das QRClipboard-Projekt mit wenigen Codezeilen modifiziert werden, um sensible Daten zu senden. Im Detail besprochen: Library auf PyPI veröffentlichen Unterschiede zwischen PIP und PIPX Einführung in das QRClipboard Projekt Installation und Nutzung von QRClipboard Sicherheitsaspekte bei der Nutzung von PyPI Weitere Ressourcen: QRClipboard auf PyPI QRClipboard auf GitHub Viel Spaß bei der heutigen Episode! Kontaktiere mich! Mastodon: Folge mir auf @codeflow@podcasts.social. Matrix: Diskutiere mit und tausche dich aus. Besuche meinen Matrix Space hier. E-Mail: Fragen oder Anregungen? Schreibe mir direkt an podcast@noweck.info. Ich freue mich auf deine Gedanken und Ideen!
#Python#PyPI#PIP

Man, the longer I have :nixos: and :manjaro: running in parallel, the more annoyed I am by the :archlinux: way, e.g.:

· Python update ⇒ all python-based packages must be rebuilt. -installed packages also need reinstallation.
· separation between distro repos and AUR is anoying. 'yay -Syu' (or whatever) never really works in one go (be it some stupid sudo prompt later)
· so many AUR packages don't build reliably or at all.
...

Continued thread

Maybe I was too tired to think properly yesterday. A simple install of the latest #python version (without setting it as the default version) and installing it with #pipx and explicitly setting the python version seemed to work great.

#python #rust #uv #pipx #pipxu

- github.com/bulletmark/pipxu

#pipxu Install and Run Python Applications in Isolated Environments using UV

#pipxu is a re-implementation of most of the functionality of the popular #pipx tool but is much faster because it uses #uv to create and install application virtual environments instead of venv and pip as used by #pipx

GitHubGitHub - bulletmark/pipxu: Install and Run Python Applications in Isolated Environments using UVInstall and Run Python Applications in Isolated Environments using UV - bulletmark/pipxu
Replied to Tim

@Tiim

For Ubuntu, the deadsnakes repo can be used to install a bunch of other versions, or the pyenv tool can do it. There are other ways too.

Then, get used to using virtual environments for development (so you're not installing your project's dependencies globally, and you can't get conflicts).

For installing 3rd-party tools not in your OS, i.e. you're not hacking them, just using them, use `#pipx install --python python3.11 <pypi-name>`. pipx is in the system repos.

2/2