Skip to main content

beipack

beipack is a collection of utilities to assist with packaging and launching Python programs in unusual ways.

The motivating force behind this project is the desire to execute a complex multi-module Python program — specifically, Cockpit — on a computer where it's not installed. beipack is being developed as a freestanding project in hopes that it might be helpful to others.

Some key goals:

  • ability to package large multi-file or multi-module Python programs into a single standard Python file (beipack)
  • ability to send and execute this file via the stdin of the Python interpreter in another environment, via ssh, flatpak-spawn, or other container tools
  • scripts compatible with the Python REPL, which allows injecting them to python -i, without sending EOF, allowing stdin to be used by the script, after it has been sent
  • self-replicating ability: the target script should have access to its own source code, so that it can send itself on to further invocations
  • no requirement for any ability to write to disk (and no temporary files) but an optional ability to cache the sent program in ~/.cache/ to avoid the need to send large files over slow connections on future invocations
  • support for compressing Python programs to reduce the amount of data to be sent over slow connections

The intent is to develop the above features in a way that's as modular as possible, to allow mix-and-match of the required functionalities.

Release files for beipack 0

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

Source distribution (sdist)

Source distribution for beipack 0
File Size Uploaded
beipack-0.tar.gz 29.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beipack 0
File Interpreter ABI Platform
beipack-0-py3-none-any.whl Python 3 none any Details

Total release size: 34.3 kB

Release files / beipack-0.tar.gz

Download URL beipack-0.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f5442676576cf6439c9743a13b69fa9c6de1471b685b13e7ebb3d20a08f297e3
BLAKE2b-256 checksum
How to use checksums
a6e87cef883c6387cb70c9dc9c379ab03f09b69ac8156e50d5c2444789d9085b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / beipack-0-py3-none-any.whl

Download URL beipack-0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fa011eef6383b5f061edb513822ed5155ecdcf80694f700c6b0464692476fd5
BLAKE2b-256 checksum
How to use checksums
ad4dbecc48a7dbbe1c29b353e1038dd86b1c99d5f1ba0c2c32b6eba2e7fe66cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page