Packstrap
Bootstrap new Python packages with one simple command:
packstrap create my_package
When starting a Python package a lot of boilerplate is involved. You have to make several files and directories. When you decide to distribute your package you have to write a setup.py and reference docs for even the basics. Packstrap aims to make starting a Python package simpler.
Install
pip install packstrap packstrap –help
Creating a Package
With Packstrap, creating a package is a simple as one command:
packstrap create my_package /path/to/code --author "My Name" --plugin git --plugin fabfile --plugin pytest
This will create a my_package directory in /path/to/code with a structure similar to:
/path/to/code/my_package/
.gitignore
LICENSE
MANIFEST.in
README.rst
VERSION.txt
fabfile.py
setup.py
src/
my_package/
__init__.py
tests/
conftest.py
runtests.py
Packstrap creates the base files for a python project and fills in the basics for setup.py, README.rst, etc. The git plugin creates .gitignore, the fabfile plugin creates fabfile.py, and the pytest plugin creates the src/tests directory and files.
So now all you have to do is write your module in my_package, expand on your docs in README.rst, and commit your package.
Set Defaults
packstrap create has several options to help generate your package. A lot of the options like author, author_email, and even plugins are going to be the same for all your projects. To save you some keystrokes you can use packstrap defaults:
packstrap defaults --author "My Name"
{
"author": "My Name",
"skeleton": "default"
}
You can also use packstrap defaults without options to list the current defaults.
Metadata
Release files for packstrap 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| packstrap-0.7.1.tar.gz | 5.0 kB | Without provenance | Details |
Release files / packstrap-0.7.1.tar.gz
| Download URL | packstrap-0.7.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3049c9b90936892d4064d6844776d4d6939890878bc1af87e36091d7787f2a67
|
|
BLAKE2b-256 checksum How to use checksums |
2fbe833710080e9947269ba5800cf22a36ffeff72886e741df4420d6e6b21e4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for packstrap 0.7.1
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.