Skip to content

Common utility functions across IntelliMind projects

Notifications You must be signed in to change notification settings

IntelliMindTeam/helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helpers

Common utility functions across IntelliMind projects

Modules

icalender

  • get_prior_business_day() :: It will return prior working business day with reference to today
  • get_today() :: It will give today's date
  • adjust_today(year, month, day) :: It will return today's date adjusted with given year, month, and day

connections

  • get_mysql_connection(config)
  • get_arctic_store(config)
  • get_rethink_connection(config)

aws.s3

  • upload_to_s3(bucket_name, local_source_path, remote_target_path, is_dir=False)

    Uploading given file to s3 bucket

    Parametes :

    • local_source_path : local path of file or files in directory for input
    • remote_target_path : remote s3 bucket path of file / directory to store
    • bucekt_name : name of bucket in s3 that should exist
    • is_dir : is given local_source path is of directory ? (True / False)

Contributors

Abhishek Chander

abhishek@intellimind.io

License

Copyright(s) 2020 IntelliMind LLC

Releases

No releases published

Packages

No packages published

Languages