Registry / devops / xar
library20.12.2pypypi✓ verified 84d ago

XAR is a toolchain for packaging Python applications into self-contained executables (XAR files). It creates a single-file, executable archive that bundles all dependencies and runs with the system Python. The current version is 20.12.2, released in December 2020. The project appears to be in maintenance mode with infrequent releases.

pip install xar
INSTALL
IMPORT
SIG · XAR
X
xar
devopspythonv20.12.2
Install
1.9s avg
Import
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v20.12.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.9s · import 0.000s · 19MB
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

XarFile
import xar
from xar import XarFile

Creates a XAR file from a Python script and a directory.

from xar import XarFile # Create a XAR archive from a Python script with XarFile('hello.xar', 'w') as xf: xf.add('hello.py') xf.add_directory('mylib') # To run: python xar hello.xar
xar --version
Debug
Known issues
gotchaXAR files require Python 3.5+ on Linux or macOS. They do not work on Windows.
fix
Ensure deployment targets are Linux or macOS with Python 3.5+.
affects: all
gotchaThe XAR format does not support cross-platform execution. Archives built on Linux will not run on macOS or vice versa.
fix
Build XAR files on the target platform.
affects: all
deprecatedThe 'xar' command-line tool is deprecated. Use the Python API instead.
fix
Use the Python API from xar import XarFile instead of the xar CLI.
affects: 20.0+
Upgrade
Version history
20.12.2latest on PyPI · released Dec 2, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
1
Resources
xar — pip install xar · libregistry