zpy
hatch
zpy | hatch | |
---|---|---|
35 | 22 | |
78 | 5,971 | |
- | 2.3% | |
9.0 | 9.4 | |
8 days ago | 12 days ago | |
Shell | Python | |
The Unlicense | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zpy
-
This Week In Python
zpy – Zsh helpers for Python venvs, with uv or pip-tools
-
Canonical blocked installing, or uninstalling pip packages on Ubuntu 23.04, what it can be done to solve these issues?
If your interactive shell is zsh, you could give my project zpy a try, particularly the function pipz that it provides, which is a lightweight pipx clone with great completions and good speed.
-
As if there weren't enough packaging tools already: mitsuhiko/rye: an experimental alternative to poetry/pip/pipenv/venv/virtualenv/pdm/hatch/…
I can immediately see some things rye is doing differently, like keeping the venvs themselves free of pip and pip-tools. I wonder in your explorations if you've tried rtx for managing python installations, or my own zpy wrapper of pip-tools+venv (which can also replace pipx).
-
How do I build up my package's extra dependencies from groups of dependencies in a pyproject.toml?
My patterns in this regard aren't exactly mainstream, as I use flit+pip-tools+zpy (the latter being my own Zsh interface for Python dependency and environment operations), but FWIW here's how I go about nested requirements.
-
What is your workflow for managing virtual environments for personal projects?
For managing venvs and dependencies and apps, I use my own frontend to pip-tools + venv, zpy. And for running tasks which require an activated venv, I use nox.
-
One Does Not Simply 'pip install'
If anyone's interested in a pipx clone with excellent tab completion, I would appreciate any feedback on pipz, a function of my zsh plugin for python environment and dependency management: zpy
https://github.com/andydecleyre/zpy
-
pipenv or virtualenv ?
For concise and practical interactive usage of those tools, with excellent tab completion, I made the Zsh frontend zpy.
-
How to know what a package depend on when pip is installing it?
I also use my own Zsh wrapper functions with it, so for example: https://i.imgur.com/YX8bWy8.png
-
I moved away from Poetry for Python
I'm a big fan of (and small contributor to) pip-tools, but both poetry and pipenv offer management of more stuff, which understandably appeals to folks seeking a simple comprehensible workflow.
Pip-tools is also a bit lower level, offering flexibility and compatibility which I relish, but also requiring more attention from the user to set things up as they wish.
If you or anyone else enjoying pip-tools is a Zsh user and interested in trying out my higher level functions to ease interactive use of pip-tools, venvs, and also isolated app installs (like pipx), I would love some feedback on zpy: https://github.com/AndydeCleyre/zpy
I'm very happy to answer any questions about it right here or as GitHub issues.
-
Any recent updates in dependency management?
This is FAR from some big mainstream thing, but I use (and am happy to answer any questions about) my own Zsh frontend to venv+pip-tools+pip, zpy.
hatch
-
Flying Fast and Furious: AI-Powered FastAPI Deployments
Configuring Tools and Dependencies: Hatch, a package manager and environment tool, was used to simplify the setup process. Installing and configuring Hatch was straightforward, ensuring the Python environment was set up correctly. Essential dependencies like FastAPI and Uvicorn were specified in the pyproject.toml file for easy management.
-
Rye: A Hassle-Free Python Experience
Workspaces is unblocked now, it depended on a large refactor which has now been merged: https://github.com/pypa/hatch/pull/1602
In my free time, it's the only thing I'm working on!
-
Uv: Python Packaging in Rust
Exciting stuff! I view Hatch [1] as becoming the Cargo for Python because it's already close and has an existing (and growing) user base but I can definitely see depending on this for resolution and potentially not even using pip after it becomes more stable.
[1]: https://hatch.pypa.io/latest/
-
lockfiles for hatch projects
I was inspired enough by the hatch sync idea that I created a PR to add that functionality to hatch: https://github.com/pypa/hatch/pull/1094
-
Building and Releasing a Python CLI
Another concept I learned was about build backends, an import step which is used to initialize and install any dependencies of the app you're packaging. Since the tutorial went with using Hatch that is also what I went with, though it didn't provide a lot of useful details especially because it didn't show how to add any dependencies, so I took a look at the docs which were very nice and simple to follow.
-
Is there an up-to-date python package template?
Try using hatch: https://hatch.pypa.io/latest/
-
How do I install dependencies in Hatch?
I'm trying to learn Hatch, I currently use [Poetry](python-poetry.org/) to manage my dependencies, and while I'm overall happy with it, I really like the features I'm reading about with Hatch. I'm also working on learning CI pipelines & Dockerizing Python applications, and Hatch seems like a really useful tool to learn for this (and just as a general use tool).
- pipenv or virtualenv ?
-
Call for questions for Guido van Rossum from Lex Fridman
Poetry 1.2 has been a pain. Which was the dev's fault though. Switching to something new while deprecating a related feature is just plain bad. I've been looking into modern alternatives like PDM and Hatch, but haven't used them (yet).
-
So how do you actually deploy code/scripts?
For example, when it comes to Python, one option is to use the same packaging system that a huge number of open-source libraries and tools are published with. You can use setuptools or Hatch to build a "packaged" version of your code, and publish it to either the public PyPi repository or an internal one that you set up. Then your users can use pip to install your package, automatically fetch its dependencies, and keep it up to date, just like any other Python module.
What are some alternatives?
rye - a Hassle-Free Python Experience
Poetry - Python packaging and dependency management made easy
tox-pin-deps - Run tox environments with strictly pinned dependencies (and no project or code changes).
setuptools - Official project repository for the Setuptools build system
wheezy.template - A lightweight template library.
pip-tools - A set of tools to keep your pinned Python dependencies fresh.
agkozak-zsh-prompt - A fast, asynchronous Zsh prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
poetry-dynamic-versioning - Plugin for Poetry to enable dynamic versioning based on VCS tags
taskipy - the complementary task runner for python
reloadium - Hot Reloading and Profiling for Python
zplug - :hibiscus: A next-generation plugin manager for zsh
uv - An extremely fast Python package and project manager, written in Rust.