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 s3_to_temp, 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 = s3_to_temp(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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e97b8d1b47e67c615c68d22bf94ffb01b5df9bdb4ec5e3f9c8d644174ddc0cf7 |
|
MD5 | f4fbdb01b249680908f659d46938f2c2 |
|
BLAKE2b-256 | 18f8dad09fa8a5ca3e0eae6517f4067b2534ed2b2f4f372c8add19728b392cb5 |
Close
Hashes for django_s3_csv_2_sfdc-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b63044c2a747adc154b9a0dd5ba6887f9bf8237f657c9eba5d60670e1c0bc3e |
|
MD5 | acdd96a5eb6de4629a8bd53952b6851e |
|
BLAKE2b-256 | fc72a761e89e81b830e7be8de0ee7a4cf2d782332d7b65219fdb8697ce24d9dd |