feat: add Python pip package distribution with cross-platform binaries#6
Merged
feat: add Python pip package distribution with cross-platform binaries#6
Conversation
- Add complete Python package structure with pyproject.toml - Create Python CLI wrapper that auto-detects platform and runs appropriate binary - Include all 5 platform binaries (Linux/macOS/Windows x64/ARM64) in package - Add GitHub Actions workflow for automated PyPI publishing on releases - Configure PyPI trusted publishing for secure, tokenless deployment - Add npm script 'build:python' for local testing and development - Update README with pip installation option alongside npm and direct download - Add comprehensive documentation for PyPI publishing setup - Users can now install via: pip install capiscio - Maintains feature parity with npm package while requiring no Node.js runtime Files added: - python-package/ - Complete Python package structure - .github/workflows/publish-python.yml - CI/CD for PyPI publishing - scripts/build-python-package.js - Build script with binary integration - PYTHON_PUBLISHING.md - Setup and troubleshooting guide Files modified: - package.json - Added build:python script - README.md - Added pip installation instructions - .gitignore - Added Python package build artifacts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Python pip package distribution with cross-platform binaries
🎯 Overview
Adds a new distribution channel for Capiscio CLI through Python's pip package manager, making the tool accessible to Python users without requiring Node.js.
🚀 What's New
pip install capiscio📦 Package Details
capisciocapiscio(same as npm version)🛠️ Technical Implementation
Python Package Structure
python-package/pyproject.toml- Package configurationpython-package/capiscio/__init__.py- Package metadatapython-package/capiscio/cli.py- Platform detection & binary executionpython-package/capiscio/binaries/- All cross-platform binariescapiscio-linux-x64capiscio-darwin-x64capiscio-darwin-arm64capiscio-win-x64.execapiscio-win-arm64.exepython-package/README.mdCI/CD Integration
publish-python.ymlworkflowpackage.jsonBuild Process
New script:
npm run build:python📋 User Experience
Three Installation Options
npm install -g capiscio-clipip install capiscio✨ NEWConsistent CLI Experience
All installation methods provide the same
capisciocommand with identical functionality.🔧 Files Added
python-package/- Complete Python package structure.github/workflows/publish-python.yml- CI/CD for PyPI publishingscripts/build-python-package.js- Build script with binary integrationPYTHON_PUBLISHING.md- Setup and troubleshooting documentation📝 Files Modified
package.json- Addedbuild:pythonscriptREADME.md- Added pip installation instructions.gitignore- Added Python package build artifacts✅ Testing
capiscio --versionreturns1.1.0capiscioproject🎉 Impact
This expands Capiscio's reach to the Python ecosystem, making it accessible to data scientists, Python developers, and DevOps teams who prefer pip over npm, while maintaining the same zero-dependency binary approach that makes Capiscio fast and reliable.