Exemple #1
0
 def output(self):
     file = glob.glob(
         os.path.join(
             local_root,
             "TwitterData",
             "export_dashboard_{}*.xlsx".format(self.ticker),
         ))[0]
     return LocalTarget(file)
 def output(self):
     csv_filename = 'tmp/geographica/uk/{}'.format(self.file_name)
     return LocalTarget(path=csv_filename, format='csv')
Exemple #3
0
 def get_target(cls, scheme, path, fragment, username, password, hostname,
                port, query, **kwargs):
     full_path = (hostname or '') + path
     query.update(kwargs)
     return LocalTarget(full_path, **query)
 def output(self):
     return LocalTarget(path=self.output_path)
 def output(self):
     if is_gcs_path(self.get_job_dir()):
         return GCSFlagTarget(self.get_job_dir())
     else:
         # assume local filesystem otherwise
         return LocalTarget(self.get_job_dir())
 def output(self):
     """
     Generate Target dynamically based on `self.get_job_dir()`.
     """
     job_dir = str(self.get_job_dir())
     return GCSFlagTarget(job_dir) if is_gcs_path(job_dir) else LocalTarget(job_dir)
Exemple #7
0
 def output(self):
     return LocalTarget('tmp/RunAllTasks.txt')
Exemple #8
0
 def output(self):
     return LocalTarget(PathConfig().speakers_data)
Exemple #9
0
 def output(self):
     return LocalTarget(PathConfig().dev_clean)
Exemple #10
0
 def output(self):
     return LocalTarget(f"target_files/report_{self.date.isoformat()}.txt")
Exemple #11
0
 def output(self):
     return LocalTarget(f"resources/csv/{self.date.isoformat()}.csv")
 def output(self):
     return LocalTarget(
         path='./generated/recommendations/{}.json'.format(self.date))
 def output(self):
     return LocalTarget('tmp/runExampleTask_{}.txt'.format(self.number))
Exemple #14
0
 def output(self):
     file = os.path.join(local_root, "NASDAQ_100_cashtags.txt")
     return LocalTarget(file)