Install packages through clipboard.
Project description
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 copy requests==2.32.3
# Optional: download with dependencies
clipin copy 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 copy /path/to/your/project
# Direct wheel mode: copy an existing .whl file
clipin copy /path/to/dist/your_pkg-1.0.0-py3-none-any.whl
# 2) 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
# 3) 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.5
clipin install:- New option
--extract/--no-extractto extract package module.pyfiles into--dirand keep them.
- New option
v0.0.4
- Bugfix for
v0.0.3.
v0.0.3
- Removed
__version__, useimportlib.metadata.version(__name__)instead.
v0.0.2
- Local build mode: can download from local folder now.
clipin install:- New option
--force/--no-forceto reinstall the package if exists.
- New option
v0.0.1
- New subcommand
clipin pasteto restore wheels from clipboard only (without installation). clipin install:- renamed option
--temp-dirto--dirfor convenience. - new option
--clean/--no-cleanto determine whether temp files should be removed after installation.
- renamed option
v0.0.0
- Initial release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clipinstall-0.0.5.tar.gz
(9.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clipinstall-0.0.5.tar.gz.
File metadata
- Download URL: clipinstall-0.0.5.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dce86d5d93899e2293d48e3921b2285d5b3f6f1e4d2e9408afe8e4efcc2e7a8
|
|
| MD5 |
61a235a4fa908867dcaaf4cd5dbd0922
|
|
| BLAKE2b-256 |
96a3e382a4623cf9a545aba0846cadffac7929307b869a8d33a560ec62aa0062
|
File details
Details for the file clipinstall-0.0.5-py3-none-any.whl.
File metadata
- Download URL: clipinstall-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6724ec0a75648be3e36114b273beb7f13ccddf7ed91e49308304718f202d94d0
|
|
| MD5 |
01361f247b3c035a14861a929bf92a8e
|
|
| BLAKE2b-256 |
4c86b5fb1a66d703a0a295564335ad4dc2e45f6d2881851967ba6d0aa9f380e6
|