{"id":24578,"library":"sfbulk2","title":"sfbulk2","description":"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.","status":"maintenance","version":"0.8.0","language":"python","source_language":"en","source_url":"https://github.com/mohan-chinnappan-n/sfbulk2","tags":["salesforce","bulk-api","data-cloud","etl"],"install":[{"cmd":"pip install sfbulk2","lang":"bash","label":"Latest release"}],"dependencies":[],"imports":[{"wrong":"from sfbulk2 import Bulk2","symbol":"Bulk2","correct":"from sfbulk2 import Bulk2"}],"quickstart":{"code":"from sfbulk2 import Bulk2\nimport os\n\nbulk = Bulk2(\n    username=os.environ.get('SF_USERNAME', ''),\n    password=os.environ.get('SF_PASSWORD', ''),\n    security_token=os.environ.get('SF_SECURITY_TOKEN', ''),\n    client_id=os.environ.get('SF_CLIENT_ID', ''),\n    client_secret=os.environ.get('SF_CLIENT_SECRET', ''),\n    domain='login'  # or 'test' for sandbox\n)\n\n# Example: query records\njob_id = bulk.create_query_job('SELECT Id, Name FROM Account')\nresults = bulk.get_query_job_results(job_id)\nprint(results)","lang":"python","description":"Initialize the Bulk2 client with Salesforce credentials and run a simple query. Credentials are read from environment variables for security."},"warnings":[{"fix":"Ensure your Salesforce user has a security token (or use an IP-whitelisted network). Append the token to the password if needed.","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the provided methods to check job status and retrieve results after the job completes.","message":"Bulk 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider migrating to the official Salesforce SDK or other maintained libraries like simple-salesforce.","message":"The library has not been updated since 2021 and may not support newer Salesforce Bulk API changes. It is in maintenance mode.","severity":"deprecated","affected_versions":"0.8.0"}],"env_vars":null,"search_vec":"'0.8.0':25 '2.0':9 'api':8,42 'bulk':7,13,41 'bulk-api':40 'class':4 'cloud':45 'current':27 'data':14,44 'data-cloud':43 'delet':23 'etl':46 'featur':11 'insert':19 'librari':34 'mainten':37 'mode':38 'oper':15 'provid':10 'queri':18 'recent':31 'releas':28 'salesforc':6,39 'sfbulk2':1 'updat':20,32 'upsert':21 'util':3 'version':24","created_at":"2026-05-01T08:13:49.742612+00:00","updated_at":"2026-05-01T08:13:49.742612+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmp6d7zkhf6/venv/lib/python3.12/site-packages/sfbulk2.py\", line 1, in <module>\n    import requests\nModuleNotFoundError: No module named 'requests'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.8.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/mohan-chinnappan-n/sfbulk2","docs":null,"changelog":null,"pypi":"https://pypi.org/project/sfbulk2/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data","http-networking","crm-productivity"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}