Registry / data / sfbulk2

sfbulk2

JSON →
library0.8.0pypypiunverified

A utility class for Salesforce Bulk API 2.0, providing features for bulk data operations such as query, insert, update, upsert, and delete. Version 0.8.0 is currently released with no recent updates; the library is in maintenance mode.

pip install sfbulk2
INSTALL
IMPORT
SIG · SFBULK2
S
sfbulk2
datapythonv0.8.0
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.8.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bulk2
from sfbulk2 import Bulk2
from sfbulk2 import Bulk2

Initialize the Bulk2 client with Salesforce credentials and run a simple query. Credentials are read from environment variables for security.

from sfbulk2 import Bulk2 import os bulk = Bulk2( username=os.environ.get('SF_USERNAME', ''), password=os.environ.get('SF_PASSWORD', ''), security_token=os.environ.get('SF_SECURITY_TOKEN', ''), client_id=os.environ.get('SF_CLIENT_ID', ''), client_secret=os.environ.get('SF_CLIENT_SECRET', ''), domain='login' # or 'test' for sandbox ) # Example: query records job_id = bulk.create_query_job('SELECT Id, Name FROM Account') results = bulk.get_query_job_results(job_id) print(results)
Debug
Known issues
gotchaThe library uses OAuth 2.0 with password grant; you must provide username, password, security token, and client credentials. Missing security token is a common issue.
fix
Ensure your Salesforce user has a security token (or use an IP-whitelisted network). Append the token to the password if needed.
affects: all
gotchaBulk API 2.0 jobs are asynchronous; methods like create_query_job only return a job ID. You must poll for completion using get_query_job_results or similar.
fix
Use the provided methods to check job status and retrieve results after the job completes.
affects: all
deprecatedThe library has not been updated since 2021 and may not support newer Salesforce Bulk API changes. It is in maintenance mode.
fix
Consider migrating to the official Salesforce SDK or other maintained libraries like simple-salesforce.
affects: 0.8.0
Upgrade
Version history
0.8.0latest on PyPI · released Sep 11, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
44
OpenAI (training)
1
Resources