spclone
A lightweight CLI tool that lets you install and clone Python packages directly from GitHub — no need to manually git clone and install.
🚀 Features
- 📦 Direct Installation: Install packages directly from GitHub URLs or shorthand (
user/repo) - 🔧 Modern Build Support: Handles complex build systems (Meson, setuptools, wheel)
- 🐍 Environment Integration: Automatically uses
pipto install in your current environment - 🧼 Clean Workflow: No cluttered filesystem with temporary clone directories
- ⚡ Fast & Lightweight: Focused on Python package management
- 🌿 Branch Support: Install from specific branches or tags
📦 Installation
pip install spclone
🛠️ Usage
Package Installation (spinstall)
Install Python packages directly from GitHub:
# Install from owner/repo format
spinstall pandas-dev/pandas
spinstall microsoft/pylance
# Install from full URLs
spinstall https://github.com/psf/requests
spinstall https://github.com/django/django
# Install from specific branch
spinstall pandas-dev/pandas --branch main
spinstall scikit-learn/scikit-learn -b develop
# Verbose output for debugging
spinstall numpy/numpy --verbose
# Force build from source (for complex packages)
spinstall pandas-dev/pandas --force-build
Repository Cloning (spclone)
Clone repositories for development:
# Clone to default directory (owner-repo)
spclone pandas-dev/pandas
spclone https://github.com/psf/requests
# Clone to specific directory
spclone django/django --directory my-django-fork
spclone microsoft/vscode -d vscode-dev
# Clone specific branch
spclone pytorch/pytorch --branch nightly
spclone tensorflow/tensorflow -b r2.13
# Verbose output
spclone fastapi/fastapi --verbose
Advanced Examples
# Install bleeding-edge pandas with verbose output
spinstall pandas-dev/pandas --branch main --verbose --force-build
# Clone multiple repositories
spclone numpy/numpy -d numpy-dev
spclone scipy/scipy -d scipy-dev
spclone matplotlib/matplotlib -d matplotlib-dev
# Install from .git URLs (automatically handled)
spinstall https://github.com/psf/requests.git
🏗️ Build System Support
spclone automatically detects and handles various Python build systems:
- setuptools - Traditional
setup.pypackages - PEP 518 - Modern
pyproject.tomlpackages - Meson - Complex packages like pandas, numpy
- Cython - Packages with compiled extensions
- Wheel - Binary distributions
For complex packages (pandas, numpy, scipy), build dependencies are automatically installed:
meson-python,meson,ninjafor Meson-based packagesCythonfor packages with Cython extensionssetuptools,wheelfor standard packages
📋 Command Reference
spinstall - Install Packages
| Option | Short | Description |
|---|---|---|
--verbose |
-v |
Enable verbose output |
--branch |
-b |
Specify branch/tag to install from |
--force-build |
Force building from source | |
--version |
Show version information |
spclone - Clone Repositories
| Option | Short | Description |
|---|---|---|
--verbose |
-v |
Enable verbose output |
--branch |
-b |
Specify branch/tag to clone |
--directory |
-d |
Target directory name |
--version |
Show version information |
🔍 Input Formats
All commands accept flexible input formats:
# All of these work:
spinstall psf/requests
spinstall https://github.com/psf/requests
spinstall github.com/psf/requests
spinstall psf/requests.git
💡 Use Cases
- Development: Quickly install development versions of packages
- Testing: Test against latest upstream changes
- Contributing: Install your fork for development
- CI/CD: Install specific versions in automated workflows
- Research: Use cutting-edge features not yet released
🐛 Troubleshooting
Installation Issues
# For complex packages, try force-build mode
spinstall pandas-dev/pandas --force-build --verbose
# Check if build dependencies are installed
pip list | grep -E "(meson|ninja|cython)"
Common Solutions
- Build failures: Use
--force-buildflag - Missing dependencies: Enable
--verboseto see detailed error messages - Network issues: Check your internet connection and GitHub access
- Permission errors: Ensure you have write access to your Python environment
🏗️ Development
Setup Development Environment
# Clone the repository
git clone https://github.com/SermetPekin/spclone.git
cd spclone
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# Run tests with coverage
pytest --cov=spclone --cov-report=html
Project Structure
spclone/
├── spclone/
│ ├── __init__.py
│ ├── cli.py # Command-line interface
│ └── clone_.py # Core functionality
├── tests/ # Test suite
├── pyproject.toml # Project configuration
└── README.md
🪟 Windows Users
Build Tools Required
Some Python packages (pandas, numpy, scipy, etc.) require C++ compilation on Windows. If you get errors about vswhere.exe or "Microsoft Visual C++ 14.0 is required":
# Check if build tools are available
spinstall --check-build-tools
# Get installation instructions
spinstall --install-build-help
Quick Fix
Option 1: Install Visual Studio Build Tools (Recommended)
- Download Build Tools for Visual Studio
- Install with "C++ build tools" workload
- Include "Windows 10/11 SDK"
- Restart your terminal
Option 2: Try pre-compiled packages first
# Install from PyPI first (if available), then try development version
pip install pandas # Get stable version first
spinstall pandas-dev/pandas # Then try development version
Common Issues
- Long paths: Windows has path length limits - temp directories use short names
- File permissions: Admin privileges may be needed for some installations
- Antivirus software: May interfere with compilation - add Python folder to exclusions
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes and add tests
- Run the test suite:
pytest - Submit a pull request
📝 License
This project is licensed under the BSD-3-Clause License - see the LICENSE file for details.
🙏 Acknowledgments
- Inspired by the need for simpler Python package installation workflows
- Built on top of Python's excellent
pipandrequestslibraries - Thanks to the Python packaging community for modern build standards
📞 Support
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
- 📧 Contact: Create an issue for support questions
Metadata
Release files for spclone 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spclone-0.1.16.tar.gz | 16.4 kB | Without provenance | Details for spclone-0.1.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spclone-0.1.16-py3-none-any.whl | Python 3 | none | any | Details for spclone-0.1.16-py3-none-any.whl |
Total release size: 32.1 kB
Release files / spclone-0.1.16.tar.gz
| Download URL | spclone-0.1.16.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce2743c8ee1ff7cbef1c01e1b15a88db01d11ab745d35d268c305757e2fc58aa
|
|
BLAKE2b-256 checksum How to use checksums |
fba6c2b9462ffb57c4c300e8df5e908b2336cc07cb588d5a36b9748d19b0d399
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / spclone-0.1.16-py3-none-any.whl
| Download URL | spclone-0.1.16-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
580f2fc4b26878c62f16fff73c7a929f590bbbd151d70e8935ccc42f5c2ea544
|
|
BLAKE2b-256 checksum How to use checksums |
7f22259fc52b8b8507533a0e8812a627ceda1ecb23b2a9fa91d81c35ea589183
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Security for spclone 0.1.16
Provenance
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.
No provenance found
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.