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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 132dbf1d0b3dcb5dd73b2a18588072544d47e6dce53e188659d49ac32e3e500f |
|
MD5 | cb727af65ab869e9c3c7440d83a36dd2 |
|
BLAKE2b-256 | f948cace6a18410efede7a861747b02f734189348f515e47c41527bd01e822a3 |
Close
Hashes for django_s3_csv_2_sfdc-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 455081a3c22e5d9fe68736517a0b22b86d8b4cf14fde59daf6771f1a44f2e79d |
|
MD5 | 2b4f5054afc27d335e02a4cd51c9268f |
|
BLAKE2b-256 | 9a72a4153059ccec850914954afea728f8b450b11b1a88ef3fc03557774794db |