hypermodern-python
hatch
hypermodern-python | hatch | |
---|---|---|
4 | 22 | |
615 | 6,106 | |
- | 1.6% | |
0.0 | 9.3 | |
almost 2 years ago | 7 days ago | |
Python | Python | |
MIT License | 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.
hypermodern-python
-
This Week In Python
hypermodern-python – Companion repository for the Hypermodern Python article series
- Hypermodern Python
-
How to create a Python package in 2022
Did you have a look at https://github.com/cjolowicz/hypermodern-python?
-
Data Science best practices
Not exactly DS related, but I've found the hypermodern python guide very helpful: https://github.com/cjolowicz/hypermodern-python
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?
python-template - Python project and library template for clean, reliable, open-source projects.
Poetry - Python packaging and dependency management made easy
pocketpy - Portable Python 3.x Interpreter in Modern C
setuptools - Official project repository for the Setuptools build system
lug - Run Python functions locally or in the cloud. Built for computational science.
pip-tools - A set of tools to keep your pinned Python dependencies fresh.
ndnt - Inspect indents of your files.
poetry-dynamic-versioning - Plugin for Poetry to enable dynamic versioning based on VCS tags
ml-using-r-h2o
uv - An extremely fast Python package and project manager, written in Rust.
flatliner-src - Convert python3 programs into one line of python code!
reloadium - Hot Reloading and Profiling for Python