Skip to main content

Package for connecting SEED data to Salesforce

Project description

SEED Salesforce Connection

The SEED Salesforce connection enables data exchange between a SEED instance and a Salesforce instance.

Getting Started

Clone this repository, then install the poetry-based dependencies.

pip install poetry
poetry install

Configuring

The Salesforce configuration file is needed for this library to function correctly.

Salesforce

Copy salesforce-config-example.json to salesforce-config-dev.json and fill in with the correct credentials. The format of the Salesforce should contain the following:

{
    "instance": "https://<url>.lightning.force.com",
    "username": "user@company.com",
    "password": "secure-password",
    "security_token": "secure-token"
    "domain": ""
}

IMPORTANT: If you are connecting to a sandbox Salesforce environment, make sure to add "domain": "test" to the salesforce-config-dev.json file or authentication will fail.

Running Tests

Make sure to add and configure the Salesforce configuration file. Note that it must be named salesforce-config-dev.json for the tests to run correctly.

Run the tests using:

poetry run pytest

GitHub Actions

The credentials are stored in a GitHub Action Secret. Add the following with correctly filled out information to a secret key named SALESFORCE_CONFIG:

Note that double quotes must be escaped.

{
    \"instance\": \"https://<environment>.lightning.force.com\",
    \"username\": \"user@somedomain.com\",
    \"password\": \"alongpassword!asdf\",
    \"security_token\": \"access1key2with3numbers\",
    \"domain\": \"test\"
}

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

seed_salesforce-0.2.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

seed_salesforce-0.2.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file seed_salesforce-0.2.0.tar.gz.

File metadata

  • Download URL: seed_salesforce-0.2.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.4 Darwin/23.6.0

File hashes

Hashes for seed_salesforce-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7559af4d95d367c94610a78832d1f95ffd54735f34b146cca3408c3ccaaeb322
MD5 b9bc2e3637b2d9f92d7d3b94c3e624d7
BLAKE2b-256 aa7a3616e3faac0693ccd0172e69113ce261db0e0e9943ce389e887cd4f3af6f

See more details on using hashes here.

File details

Details for the file seed_salesforce-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: seed_salesforce-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.4 Darwin/23.6.0

File hashes

Hashes for seed_salesforce-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63b205d1ab329264868c612d53d60007605dc86d081b24de9483815c0f8dbaba
MD5 60fa679209e5b45ed376b9e8e01b221c
BLAKE2b-256 89fa625cf2cfb6f2883c36e5cd55b6f25fe21b040033ee844295866d0dff72ee

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