Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sf_gear-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sf_gear-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for sf_gear-0.1.0.tar.gz
Algorithm Hash digest
SHA256 221f22954e4d9c70ad184bf8088b9168d7a7ec9d031cf62d26a58e44be867990
MD5 3fe68467d97ec6dd4fa5ed0418e12e90
BLAKE2b-256 cda1f9c36f5936574dca5deb4cf2e2eee7a1ce3e922d5fe990a7fa89eee7b4fd

See more details on using hashes here.

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

Hashes for sf_gear-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92da67c9ce754563f2a26de877be486271ec05ecc341b7379d3b39104e69c667
MD5 c360cab06b6e5b01686f958ab3a6a3a5
BLAKE2b-256 5ca1adb731799225f4a863700ca492c961cc840495d01e0b01bafb63f9b2f131

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page