Skip to content
fastship 0.1.15

fastship 0.1.15

Pypi • November 29, 2026

fastship gives you the same workflow feel as the nbdev nbdev-bump-version , release-pypi , and release-gh commands — but for plain (non-notebook) Python projects.

ship-bump uses the same version bumping and synchronization for every Python project. In an nbdev project (one with [tool.nbdev] in pyproject.toml ) whose version comes from __init__.py , it then exports the notebooks; ship-pypi , ship-changelog , and ship-gh delegate to their nbdev equivalents. Projects with a static [project].version use fastship's Python flow.

Create a new project:

This creates a complete project with pyproject.toml , __version__ , LICENSE, README, .github/workflows/docs.yml , and everything wired for fastship. Author metadata comes from Git's user.name and user.email .

Bump a semver part ( X.Y.Z , counted from the left: 0=major, 1=minor, 2=patch). The default increments patch (or .postN when present). For Rust projects (a Cargo.toml to pyproject.toml ) it bumps the version in Cargo.toml without rebuilding; otherwise it rewrites a static [project].version when present, or __version__ in your package __init__.py :

With a post-release version, the default command increments the post component:

Supplying --part explicitly bumps that release component and removes the post component.

Build + upload to PyPI:

Upload to a named repository in ~/.pypirc (e.g. testpypi ):

Build and upload a wheel without creating an sdist, either directly or as part of a plain Python release:

For a permanently wheel-only project:

ship-docs and ship-preview

Build or live-preview a pure-Markdown Quarto documentation site (HTML, .html.md , and llms.txt , zero Jupyter) from README.md , public .py modules, optional docs/*.md guides, and pkg/skill.py :

Public .py modules become API pages under docs/api/ in source definition order (filtered by __all__ , skipping skill.py , guidance.py , _*.py , and modules covered under docs/ ). Place # - order: 1 or # - title: My Title after a module docstring to control page order and title, and use top-level string literals for Markdown section headings and notes. Backticked symbols in README.md , docs/ , and docstrings are automatically linkified across the current repo (relative links) and installed nbdev entry-point packages. Add optional guides as .md or .qmd files under docs/ . Use {{ }} or {{ }} shortcodes to embed API docs, or omit the module prefix when YAML frontmatter sets module: pkg.mod . In [tool.nbdev] projects, ship-docs and ship-preview delegate to nbdev-docs and nbdev-preview .

Add .github/workflows/docs.yml (calling AnswerDotAI/workflows/fastship-docs@master ), remove legacy Jekyll files if present, set [project.urls].Documentation and [project.entry-points.nbdev] ( pkg = "pkg._modidx:d" ), enable GitHub Pages Actions ( build_type="workflow" ), and set the repository homepage to the Pages URL:

Run this after creating the GitHub repository and making its first push. The repository is inferred from the local origin remote, and authentication uses the same token lookup as ship-gh .

Generate repo-root llms.txt from pkg/skill.py via pyskills.llms :

When .github/workflows/docs.yml is present, llms.txt links directly to the published .html.md pages under docs/ and docs/api/ , and pkg/_modidx.py is updated with the public symbol index ( d = ... ) for cross-repo linkification. Projects with [tool.nbdev] are skipped because nbdev-export manages nbs/llms.txt . Hand-written llms.txt files without a generator marker are never overwritten.

PyO3 / maturin projects

Fastship can also handle the repeated local tooling for PyO3 projects that use maturin and need Rust CLI binaries bundled into wheel scripts.

Create a new PyO3 project:

The project is a Cargo workspace. Other Rust crates can depend on its root package, a pure Rust crate, without building PyO3. maturin builds the Python extension from the py member through [tool.maturin].manifest-path . The py member is never published. Both crates the version in [workspace.package] .

Use Cargo.toml as the version source:

A Cargo workspace root with version.workspace = true , or a virtual workspace without a root package, is read and bumped through [workspace.package] . A root package with a literal version uses [package].version , leaving any shared workspace version unchanged. [tool.fastship].version-files lists synchronized copies of the version, such as an npm package.json beside a wasm crate, and ship-bump rewrites them with the same exactly-once check as Python projects.

ship-rs-init must be run from an existing maturin project with Cargo.toml . It sets [project].dynamic = ["version"] , removes [project].version , and exposes __version__ from CARGO_PKG_VERSION when it finds the PyO3 module in the crate that [tool.maturin].manifest-path names.

ship-rs-build uses python -m build --wheel with the backend in [build-system] . Its default Cargo profile is release ; use --profile dist or --profile dev to select another. Projects using fastws.build_backend stage their native binaries automatically. Direct maturin builds bypass that backend and still need explicit staging.

Generated CI runs the Rust and Python tests in parallel with wheel builds using AnswerDotAI/workflows/maturin-build@master across an OS matrix ( manylinux: '2_31' with --zig and shared R2 sccache on Linux). On v* tags, after tests and distribution builds succeed, it publishes the crate to crates.io, then the wheels and sdist to GitHub Releases and PyPI. Publish the first crates.io release by hand with cargo publish and a token, then add the repo's ci.yml as a trusted publisher in the crate's crates.io settings. Any CLI tools are Python console scripts declared in [project.scripts] ; there are no native Rust binaries to build.

Generated projects use fastws.build_backend and list only pyproject.toml and the two Cargo.toml files in tool.uv.cache-keys . uv rebuilds the extension only when packaging changes, while cargo develop rebuilds after Rust source changes. The release profile—shared by cargo develop , cargo test --release , and CI tests—uses package-specific incremental compilation with no LTO and 16 codegen units so local edits stay fast while dependencies remain sccacheable. CI builds distributed wheels with the dist profile: thin LTO, 16 codegen units, no incremental compilation, and stripping.

Create Python CFFI bindings over a bundled Zig shared library:

The generated workflow builds one Python-ABI-independent wheel for Linux x86_64, Linux ARM64, macOS Intel, and macOS Apple Silicon. Tagged builds create the GitHub release and publish to PyPI with trusted publishing.

Python + npm and npm-only projects

Configure an existing Python+npm or npm-only repository for tag-triggered OIDC releases via GitHub Actions:

For Python+npm projects, ship-npm-init sets release = "tag" , appends "package.json" to [tool.fastship].version-files , syncs package.json 's version to the Python version, and generates .github/workflows/ci.yml (using Node lts/* and Python 3.13 , running npm run build when scripts.build is defined) to publish to npm, PyPI, and GitHub Releases. Pass --force to overwrite an existing workflow. For the first npm release, publish manually ( npm publish ), then configure Trusted Publishing on npm (and PyPI) for ci.yml .

Create a PR from uncommitted or unpushed work, merge it immediately, and clean up:

Creates a new branch from your current work

Commits any uncommitted changes (using the title as commit message)

Pushes to origin and creates a PR

Adds the specified label (default: enhancement )

Deletes the remote branch and resets local to updated main

You must be on the default branch (usually main ) with no unpulled changes.

Generate or update CHANGELOG.md from closed GitHub issues since your last release:

This is useful when you want to edit the changelog separately (e.g., in an editor or Claude Code) before releasing. If you already have a CHANGELOG.md , it must include near the top so fastship knows where to insert the release notes.

This is an interactive helper:

Creates/updates CHANGELOG.md from closed GitHub issues since your last GitHub release

Opens your $EDITOR (defaults to nano ) so you can edit the changelog

Prompts you to confirm

Runs git commit -am release , git push

Creates a GitHub release

If you've reviewed a changelog created by ship-changelog , release it without regenerating or reopening it:

The confirmation prompt remains. Add --yes only when confirmation has already happened elsewhere.

ship-gh looks for a token in this order:

a ./token file in your repo root

The token must have permission to create releases (typically repo scope for classic PATs, or appropriate fine-grained permissions).

Full release workflow:

ship-release selects the project type automatically:

Plain Python projects build and check the distribution before creating the GitHub release, upload it to PyPI, then bump.

A project with a static [project].version and no package to build is released on GitHub only. There is no build, PyPI upload or changelog. GitHub writes the release notes, and the bump updates pyproject.toml . A uv workspace root is refused, since it is not a project.

Maturin and fastship Zig projects push one annotated version tag for their trusted-publishing workflow, then bump - no changelog step, no prompts, no token needed.

When pkg/skill.py exists, ship-release refreshes llms.txt (and llms-*.txt companions) before building, releasing, or tagging: nbs/llms.txt for nbdev repos (committed as "update llms" ), and repo-root llms.txt for non-nbdev repos (committed as "update llms [skip ci]" on tag releases).

npm projects (a package.json with no pyproject.toml anywhere nearer) refuse a dirty tree, push one annotated version tag for their trusted-publishing workflow, then bump package.json . Maturin and Zig releases refuse a dirty tree the same way.

Every flow ends with a bump commit whose message contains [skip ci] , so pushing it starts no push -triggered GitHub Actions workflows, such as CI or docs deployment.

For another project whose artifacts must be built and published by CI, select the same tag-driven flow explicitly:

ship-release then pushes v , increments the version, and leaves publication to the repository's workflow.

If a native build duplicates the package version, list those synchronized copies:

Each file must contain the old version exactly once; fastship validates every file before changing any of them. Tag-driven releases also validate these copies before pushing the release tag.

The final Released message is printed only after the full local publishing workflow succeeds. Tag-driven native releases print Release started because CI owns publication.

To generate and review the changelog separately, then run the rest of the workflow without another editor or prompt:

Changelog generation is idempotent: regenerating replaces the pending section for the current version rather than duplicating it. Regeneration also discards manual edits to that pending section, so do not regenerate after the final review.

ship-pypi does not bump your version for you — keep it explicit and boring.

ship-gh requires that your project has a git origin remote pointing at GitHub (or use --repo OWNER/REPO ).

To add fastship to an existing project:

1) Put your version in __init__.py

In your package's main __init__.py :

2) Configure pyproject.toml

Keep __version__ = "x.y.z" as a simple literal (don't compute it). ship-bump will rewrite this line near the top of the file to keep builds happy.

3) Optional: specify branch

Fastship infers your package name from [project].name (changing - to _ ). To override the release branch:

Release files for fastship 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .

Source distribution (sdist)

Built distribution (wheel)

Total release size: 109.9 kB

Release files / fastship-0.1.15.tar.gz

Release files / fastship-0.1.15-py3-none-any.whl

Security for fastship 0.1.15

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.

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.

Release history Release notifications | RSS feed

Nov 29, 2026 2 release files No provenance

Nov 28, 2026 2 release files No provenance

Nov 27, 2026 2 release files No provenance

Nov 23, 2026 2 release files No provenance

Nov 19, 2026 2 release files No provenance

Oct 25, 2026 2 release files No provenance

Oct 6, 2026 2 release files No provenance

Oct 5, 2026 2 release files No provenance

Oct 1, 2026 2 release files No provenance

Sep 21, 2026 2 release files No provenance

Sep 9, 2026 2 release files No provenance

Sep 2, 2026 2 release files No provenance

Aug 29, 2026 2 release files No provenance

Jul 27, 2026 2 release files No provenance

Jul 24, 2026 2 release files No provenance

Jul 8, 2026 2 release files No provenance

Jun 21, 2026 2 release files No provenance

Jun 21, 2026 2 release files No provenance

Jun 21, 2026 2 release files No provenance

Jun 20, 2026 2 release files No provenance

Jun 20, 2026 2 release files No provenance

Jun 20, 2026 2 release files No provenance

Mar 20, 2026 2 release files No provenance

Mar 17, 2026 2 release files No provenance

Mar 17, 2026 2 release files No provenance

Jan 27, 2026 2 release files No provenance

Jan 27, 2026 2 release files No provenance

Jan 27, 2026 2 release files No provenance

Jan 27, 2026 2 release files No provenance

Jan 27, 2026 2 release files No provenance

Jan 27, 2026 2 release files No provenance

Extracted Entities