DEV Community

Alex Becker
Alex Becker

Posted on • Originally published at pydist.com

1 1

Announcing the PyDist CLI

One of the selling points of PyDist is that it works with standard Python tools—you don't have to install anything to use it. This is great for keeping containerized deployments and CI infrastructure lean and fast. But sometimes you just want to do as little configuration as possible and not have to keep track of the different Python tools and their quirks. That's why I've created the PyDist CLI, which combines the functionality of pip and twine while minimizing the amount of configuration you need to do and smoothing out their rough edges.

All you need to do to publish to and install from PyDist is install the CLI with pip install pydist-cli and provide your API key when you first run it. You can then publish packages to PyDist with pydist publish and install packages from PyDist with pydist install. You can also use it with PyPI using the --public flag.

The PyDist CLI is much more opinionated than the standard Python tooling. The install command uses PyDist by default but has an automatic fallback to PyPI, making it more reliable than pip install. The publish command handles building distributions (both binary and source), checking the README and metadata formatting, uploading, and cleaning up. This is appropriate for most packages—and avoids several pitfalls associated with twine, such picking up artifacts in the build/ directory from prior releases.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay