A Python library for Salesforce API and CLI integration
Project description
SF Gear (sfgear)
A Python library for Salesforce CLI integration. SF Gear provides convenient wrappers around Salesforce CLI commands to simplify Salesforce development workflows.
Features
- CLI Module: Wrapper around Salesforce CLI commands for data operations and org management
- Cross-platform: Works on Windows, macOS, and Linux
- Zero dependencies: Uses only Python standard library
Installation
pip install sf-gear
Quick Start
from sfgear.cli import data, org
# Query data using SOQL
result = data.query("org-alias", "SELECT Id, Name FROM Account LIMIT 10")
# Get a specific record
record = data.get_record("org-alias", "Account", record_id="001000000000000")
# Get org information
org_info = org.display("org-alias")
Requirements
- Python 3.10+
- Salesforce CLI
Installing Salesforce CLI
macOS/Linux:
npm install -g @salesforce/cli
Windows:
npm install -g @salesforce/cli
Alternative (all platforms): Download from https://developer.salesforce.com/tools/sfcli
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 sf_gear-0.1.0.tar.gz.
File metadata
- Download URL: sf_gear-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
221f22954e4d9c70ad184bf8088b9168d7a7ec9d031cf62d26a58e44be867990
|
|
| MD5 |
3fe68467d97ec6dd4fa5ed0418e12e90
|
|
| BLAKE2b-256 |
cda1f9c36f5936574dca5deb4cf2e2eee7a1ce3e922d5fe990a7fa89eee7b4fd
|
File details
Details for the file sf_gear-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sf_gear-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92da67c9ce754563f2a26de877be486271ec05ecc341b7379d3b39104e69c667
|
|
| MD5 |
c360cab06b6e5b01686f958ab3a6a3a5
|
|
| BLAKE2b-256 |
5ca1adb731799225f4a863700ca492c961cc840495d01e0b01bafb63f9b2f131
|