A set of helper functions for CSV to Salesforce procedures, with reporting in AWS S3, based in a Django project
Project description
Overview
A set of helper functions for CSV to Salesforce procedures, with reporting in AWS S3, based in a Django project. The use case is fairly specific, but the helpers should be modular so they can be cherry-picked.
Example
from django_s3_csv_2_sfdc.csv_helpers import create_error_report
from django_s3_csv_2_sfdc.s3_helpers import download_file, respond_to_s3_event, upload_file
from django_s3_csv_2_sfdc.sfdc_helpers import extract_errors_from_results
# handler for listening to s3 events
def handler(event, context):
respond_to_s3_event(event, download_and_process)
def download_and_process(s3_object_key, bucket_name):
download_path = download_file(s3_object_key, bucket_name)
# This function contains your own biz logic; does not come from this library
results = serialize_and_push_to_sfdc(download_path)
error_groups = parse_bulk_upsert_results(results)
report_path, errors_count = create_error_report(error_groups)
upload_file(report_path, bucket_name)
Just take what'cha need!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-s3-csv-2-sfdc-0.2.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d857bd4148e671ec907ec62acccfdf16535e4342eb7744d09c68a3d7c32713 |
|
MD5 | 4afc12aab8c2546d241b31fbefdd83c5 |
|
BLAKE2b-256 | 6aa59e1479a08519dcb7f5c2d3433fb15878bf5ecbfe1de1060a0ef753e62d25 |
Close
Hashes for django_s3_csv_2_sfdc-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e96e33636670e59bb3241b2edc1516db66d040e58e8c8e4aab305ad03fa4af9e |
|
MD5 | 820b0e312f858e023b0315a0f73bb2a6 |
|
BLAKE2b-256 | 1ff5fb8220d29c831c584a7a3122d7dbebea6449322d903aa9e95c57b0bf47c6 |