localpkg: Create OS Packages from pip-installed Python Software
localpkg is a tool for converting Python packages into native OS package formats (e.g., .rpm, .deb, .apk, etc.).
It automatically bundles dependencies and helps you package your Python projects, making distribution and installation on various operating systems simple and efficient.
Main features:
- Convert Python packages to native package formats.
- Simplify distribution and installation across different package systems.
- Support local package management.
install
- (pip)
pip install localpkg- or
pip install git+https://github.com/wtnb75/localpkg/
- (alpine)
wget https://wtnb75.github.io/localpkg/pkg/localpkg-0.0.1-r1.apkapk add localpkg-0.0.1-r1.apk --allow-untrusted
- (debian/ubuntu)
curl -LO https://wtnb75.github.io/localpkg/pkg/localpkg_0.0.1_all.debapt install ./localpkg_0.0.1_all.deb
- (redhat variant)
dnf localinstall https://wtnb75.github.io/localpkg/pkg/localpkg-0.0.1-1.noarch.rpm
- (archlinux)
curl -LO https://wtnb75.github.io/localpkg/pkg/localpkg-0.0.1-1-x86_64.pkg.tar.zstpacman -U ./localpkg-0.0.1-1-x86_64.pkg.tar.zst
Usage
- create tarball
- localpkg tar --name (pkgname) --version (version) -- (pip arguments)
- create .apk
- localpkg apk --name (pkgname) --version (version) --key (private-keyfile) -- (pip arguments)
- create .deb
- localpkg deb --name (pkgname) --version (version) -- (pip arguments)
- create .rpm
- localpkg rpm --name (pkgname) --version (version) -- (pip arguments)
- create pacman
- localpkg pacman --name (pkgname) --version (version) -- (pip arguments)
Metadata
Release files for localpkg 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| localpkg-0.2-py3-none-any.whl | Python 3 | none | any | Details for localpkg-0.2-py3-none-any.whl |
Release files / localpkg-0.2-py3-none-any.whl
| Download URL | localpkg-0.2-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
216713a98779bb790a088b3f902b68b8b2e3d9d2444f4d1600e3d612ca9cc9fb
|
|
BLAKE2b-256 checksum How to use checksums |
00a9d6bfec8c39b9cfe7739e42bdd519eab8756e1f58eb6264bd044381940925
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for localpkg 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.