Skip to main content

Salesforce text formatter for Big query and config files

Salesforce Text Formatter - Pypi

pip install Text-Formatter-sf


import salesforce_text_formatter as sf


SQL formatter

All you have to do is instantiate the SQLFormatter class with the sql_object argument.

sf.format.SqlFormatter(sql_object)

Please pass a dictionary in and you can use the pseudo code below as an example.

sql_object = {  
    'fields': ['List of fields : list'],  
    'object': "Object name here : str",  
    'object_abreviation': "object abreviation goes here (e.g. opp) : str"
    }

Example

sql_object = {
    'fields': ['lease_termination_one_off__c', 'lease_termination_due_rent__c', 'reverse_to_original_contiditons__c', 'cost_of_reversal__c', 'stock_transfer_cost__c', 'shrinkage_cost__c', 'personnel_costs__c', 'other_costs__c', 'additional_comments__c', 'equipment_relocated__c', 'equipment_stored__c', 'equipment_related_costs__c', 'closure_date__c', 'handover_date__c', 'closure_reason__c', 'reopening_date__c', 'is_temporarily_closing__c'],
    'object': "AgentWork",
    'object_abreviation': "a"
}

Yaml config formatter

All you have to do is instantiate the ConfigFormatter class with the yaml_object argument.

sf.format.ConfigFormatter(yaml_object)

Please pass a dictionary in and you can use the pseudo code below as an example.

yaml_object = {
    'object_name' : "Object name here : str",
    'table_description' : "Table Description goes here : str",
    'filter_by_country_and_entity' : "True or False : Boolean",
    'field_list' : ['List of fields : list']
}

Example

yaml_object = {
    'object_name' : "AgentWork",
    'table_description' : "Salesforce VRM AgentWork",
    'filter_by_country_and_entity' : False,
    'field_list' : ['lease_termination_one_off__c', 'lease_termination_due_rent__c', 'equipment_relocated__c', 'equipment_stored__c', 'equipment_related_costs__c', 'closure_date__c', 'handover_date__c', 'closure_reason__c', 'reopening_date__c', 'is_temporarily_closing__c']
}

Release files for Text-Formatter-sf 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Text-Formatter-sf 1.0.3
File Size Uploaded
Text-Formatter-sf-1.0.3.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Text-Formatter-sf 1.0.3
File Interpreter ABI Platform
Text_Formatter_sf-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / Text-Formatter-sf-1.0.3.tar.gz

Download URL Text-Formatter-sf-1.0.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7fedc00ac0cd05b93b0b569cdfbf754ff5c1e26ce7df93fd9dfd4008dcd8477c
BLAKE2b-256 checksum
How to use checksums
83478606d88fd91003e1a9ef4657307aa6ff28636260bbe00618ac558169f12c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release files / Text_Formatter_sf-1.0.3-py3-none-any.whl

Download URL Text_Formatter_sf-1.0.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46b07bde3f10c4c91c3771c845c92ef2c4d90b968e3b1b2b430b2435a8cdd7ec
BLAKE2b-256 checksum
How to use checksums
fddb578cb60876b7ea71c6072844d877984d44e23086bf59cc915331d8f86f11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page