Skip to main content

clipinstall

Install packages on an offline machine through clipboard.

Installation

$ pip install clipinstall

Requirements

click

Usage

# 1) Download the package and copy it to clipboard on an online machine
clipin download requests==2.32.3

# Optional: download with dependencies
clipin download requests==2.32.3 --deps

# Local build mode: if PACKAGE_SPEC is a folder, run install.py in it and copy
# the newest wheel under dist/
clipin download /path/to/your/project

# Direct wheel mode: copy an existing .whl file
clipin download /path/to/dist/your_pkg-1.0.0-py3-none-any.whl

# 2) (New) Copy a normal file/folder without package installation
clipin copy /path/to/file_or_folder

# Restore copied files/folders from clipboard on an offline machine
clipin paste --dir temp

# 3) Restore wheels from clipboard and install them on the target machine
clipin install

# Optional: specify the temp dir to store .whl files, the temp dir will be removed after 
# successful installation
clipin install --dir temp

# Optional: don't remove the temp files after installation
clipin install --no-clean

# Optional: extract module .py files from the installed package wheel into --dir
# (these files are kept and not removed)
clipin install --extract

# 4) Restore wheels from clipboard only (without installation)
clipin paste

# Optional: specify the dir to store .whl files
clipin paste --dir temp

See Also

Github repository

PyPI project

License

This project falls under the BSD 3-Clause License.

History

v0.0.6

  • Renamed package-fetch command to clipin download PACKAGE_SPEC.
  • clipin download:
    • Supports direct wheel input from local .whl paths.
  • New command clipin copy PATH to copy a normal local file/folder through clipboard.
  • clipin paste now supports both package wheel payloads and generic file/folder payloads.
  • clipin install rejects generic file/folder payloads and asks to use clipin paste.

v0.0.5

  • clipin install:
    • New option --extract/--no-extract to extract package module .py files into --dir and keep them.

v0.0.4

  • Bugfix for v0.0.3.

v0.0.3

  • Removed __version__, use importlib.metadata.version(__name__) instead.

v0.0.2

  • Local build mode: can download from local folder now.
  • clipin install:
    • New option --force/--no-force to reinstall the package if exists.

v0.0.1

  • New subcommand clipin paste to restore wheels from clipboard only (without installation).
  • clipin install:
    • renamed option --temp-dir to --dir for convenience.
    • new option --clean/--no-clean to determine whether temp files should be removed after installation.

v0.0.0

  • Initial release.

Metadata

Release files for clipinstall 0.0.6

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

Source distribution (sdist)

Source distribution for clipinstall 0.0.6
File Size Uploaded
clipinstall-0.0.6.tar.gz 10.4 kB Details

Built distribution (wheel)

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

Total release size: 20.1 kB

Release files / clipinstall-0.0.6.tar.gz

Download URL clipinstall-0.0.6.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
745678ab8661ba49dd6da1c65dce7f2b19307ea6893f1ffc6468121e7ad67088
BLAKE2b-256 checksum
How to use checksums
4541f492f364f396f61b52b3cf0b682b88e31ad3f16df416aabf127877e076cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / clipinstall-0.0.6-py3-none-any.whl

Download URL clipinstall-0.0.6-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
031156f5d7faaa48df7dcd3b068c00056c0bafbcc1b746f15f2919d0bd58ab07
BLAKE2b-256 checksum
How to use checksums
28baaf373d30ca0320e94495b5ae208dccee616497240ba08ccb33c844e106e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

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