added readme updates, and example on attribution.py
This commit is contained in:
parent
1189afd48e
commit
fe027a363e
|
@ -8,3 +8,12 @@ Attribution report is a report that compares a data dump from Salesforce, and a
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
To run, either run dist/AttributionReport.exe, or run dist.mac/AttributionReport.app
|
To run, either run dist/AttributionReport.exe, or run dist.mac/AttributionReport.app
|
||||||
|
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
You can build this for a Mac by running:
|
||||||
|
``` $ python setup.py py2app --dist-dir dist.mac ```
|
||||||
|
|
||||||
|
or you can build this for a PC by running:
|
||||||
|
``` pyinstaller main.py --name=AttributionReport -F ```
|
||||||
|
|
|
@ -217,3 +217,19 @@ class AttributionReport(object):
|
||||||
subprocess.call(["explorer", self.output_dir], shell=True)
|
subprocess.call(["explorer", self.output_dir], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.call(["open", self.output_dir])
|
subprocess.call(["open", self.output_dir])
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app = AttributionReport(months=6,footer_length=6)
|
||||||
|
print "setup App"
|
||||||
|
app.set_dataframe_deposit("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/deposit_data.csv")
|
||||||
|
print "set Deposit DF"
|
||||||
|
app.set_dataframe_sf("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/salesforce_report.xlsx")
|
||||||
|
print "Set Salesforce DF"
|
||||||
|
app.set_output_dir("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/Output/")
|
||||||
|
print "set output directory"
|
||||||
|
app.run()
|
||||||
|
print "App Run"
|
||||||
|
app.save()
|
||||||
|
print "App Save"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user