Provides core classes and methods for interacting with the Salesforce REST, Bulk, and Metadata APIs. Reuse when building Python integrations with Salesforce.
# Source: https://github.com/simple-salesforce/simple-salesforce | License: Apache-2.0 | Copyright 2012 New Organizing Institute Education Fund
# Provided via justclaw.it.com; keep this notice with the code.
"""Core classes and exceptions for Simple-Salesforce"""
from datetime import datetime
# has to be defined prior to login import
DEFAULT_API_VERSION = '59.0'
import base64
import json
import logging
import re
from typing import Any, Callable, Dict, IO, Iterator, List, Mapping, \
MutableMapping, \
Optional, Tuple, Union, cast
from collections import OrderedDict
from functools import partial
from pathlib import Path
from urllib.parse import urljoin, urlparse, quote_plus
import requests
from .bulk import SFBulkHandler
from .bulk2 import SFBulk2Handler
from .exceptions import Sale
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key