
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
shut
Advanced tools
Automates the heavy lifting of release and distribution management for pure Python packages.
Shut is an opinionated tool to simplify publishing pure Python packages.
What can Shut do for you?
setup.py, MANIFEST.in, LICENSE.txt)Shut requires Python 3.7+ and can be installed from PyPI:
$ pip install shut
Initialize a new Python package:
$ shut pkg new --name my.package .
write .gitignore
write README.md
write package.yml
write src/my/package/__init__.py
write src/my/__init__.py
Generate setuptools files:
$ shut pkg update
write setup.py
write MANIFEST.in
Create a changelog entry and commit:
$ shut changelog --add feature --for cli -cm 'Added some useful options.'
Sanity-check the package configuration:
shut pkg checks
✔️ classifiers
⚠️ license: not specified
✔️ namespace files
✔️ package-author
⚠️ package-url: missing
✔️ package-version
✔️ readme
✔️ up to date
ran 8 checks for package my.package in 0.003s
Commit the current status:
$ git add . && git commit -m 'bootstrapped package'
Release a new version:
$ shut pkg bump --tag --push
figuring bump mode from changelog
1 feature → minor
bumping 3 version reference(s)
package.yml: 0.0.0 → 0.1.0
setup.py: 0.0.0 → 0.1.0
src/my/package/__init__.py: 0.0.0 → 0.1.0
release staged changelog
.changelog/_unreleased.yml → .changelog/0.1.0.yml
updating files
write setup.py
write MANIFEST.in
tagging 0.1.0
[master ec1e9b3] (my.package) bump version to 0.1.0
4 files changed, 4 insertions(+), 4 deletions(-)
rename .changelog/{_unreleased.yml => 0.1.0.yml} (78%)
Enumerating objects: 24, done.
Counting objects: 100% (24/24), done.
Delta compression using up to 8 threads
Compressing objects: 100% (17/17), done.
Writing objects: 100% (24/24), 3.87 KiB | 566.00 KiB/s, done.
Total 24 (delta 4), reused 0 (delta 0)
To https://github.com/me/my-package
* [new branch] master -> master
* [new tag] 0.1.0 -> 0.1.0
Publish the release to PyPI:
$ shut pkg publish warehouse:pypi
building setuptools:sdist
:: build/my.package-0.1.0.tar.gz
building setuptools:wheel
:: build/my.package-0.1.0-py3-none-any.whl
publishing warehouse:pypi
:: build/my.package-0.1.0.tar.gz
:: build/my.package-0.1.0-py3-none-any.whl
Shut also makes it easy to publish from within CI jobs. For more information on this, check out the Publishing Guide.
Copyright © 2021 Niklas Rosenstein
FAQs
Automates the heavy lifting of release and distribution management for pure Python packages.
We found that shut demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.