flynt
devpi
Our great sponsors
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.
flynt
- flynt – convert old Python code to use Python 3.6's "f-strings"
-
A Tale of Two Kitchens - Hypermodernizing Your Python Code Base
pyupgrade and flynt are examples of tools that modify your code base from earlier python versions into the newest python syntax, rewriting all string formats into f-strings and similar things.
-
Conversion from the f-string literals to format method in python
flynt - string formatting converter
- Flynt – convert Python old %-formatted strings to Python 3.6 f-strings
- pathlib instead of os. f-strings instead of .format. Are there other recent versions of older Python libraries we should consider?
- formatting issues
-
Python Best Practices for a New Project in 2021
That is a great write-up! One extra bit I'd recommend to this list is using https://github.com/ikamensh/flynt to convert string format into f-strings. It requires Python 3.6.
- Flynt: Convert old Python string formatting to f-strings
- A tool to automatically convert old string literal formatting to f-strings
devpi
-
Private Python Packages With devpi
There are cases where you want the flexibility of installing a python package via pip without having it available to the open public. This article will focus on using devpi to provide a self-hosted pip compatible python package server. Ubuntu will be used for the OS as it's a fairly common Linux distribution and easily available on Windows Linux Subsystem.
-
Adding Virtual Environments to Git Repo
When not providing all dependencies yourself, you might suffer from people deleting the packages you depend on (IMHO a very rare scenario). If it is really that critical (hint: usually it isn't), create a local mirror of Pypi (full or only the packages you need). Devpi, Artifactory, etc. can do that or you just dump the necessary files into Cloud storage, so you have a backup.
-
PyPI in a Box
devpi acts as a caching proxy for PyPI and takes a bit less setup than this. Plus, you can use it for storing your own packages in a separate index.
https://github.com/devpi/devpi
-
Publishing to a private Python repository with Poetry
There are several open-source solutions for provisioning your own, personal PyPI server — for example, this can be done using pypiserver or devpi. However, configuring these services takes time and effort, and it costs money to deploy them. Instead, we’ll use Packagr, a cloud-hosted python package server that allows you to provision your own private Python package repository. It also supports NPM packages and even Docker registries and is very easy to set up. You can get started by creating a free trial account on Packagr — when you’ve created your account, you’ll see this:
-
Is there away to install Packages when not online?
devpi-server will probably for the bill
-
Python Best Practices for a New Project in 2021
> One should probably run their own package server like https://github.com/pypiserver/pypiserver
Never used pypiserver but I’ve had a good experience with https://github.com/devpi/devpi
- Devpi/devpi: Python PyPi staging server and packaging, testing, release tool
What are some alternatives?
pyupgrade - A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.
pypiserver - Minimal PyPI server for uploading & downloading packages with pip/easy_install
python-imphook - Simple and clear import hooks for Python - import anything as if it were a Python module
Poetry - Python packaging and dependency management made easy
minimum-viable-wordpress - A single-file WordPress theme.
helm - The Kubernetes Package Manager
pip - The Python package installer
MLStyle.jl - Julia functional programming infrastructures and metaprogramming facilities
conda - A system-level, binary package and environment manager running on all major operating systems and platforms.
vanilla-extract - Zero-runtime Stylesheets-in-TypeScript
warehouse - The Python Package Index