Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tasks

PyPI version shields.io PyPI license PyPI pyversions PyPI status

A collection of Python helper functions for use in ETL pipelines

setup

pip install codema-dev-tasks

usage

ploomber yaml


download via http(s) or s3

tasks:
- source: codema_dev_tasks.requests.fetch_file
  name: download_YOUR_FILENAME
  params:
    url: YOUR-URL
  product: YOUR-FILEPATH
host use? note
http(s) url: https://www.WEBSITE.com -
s3 url: s3://BUCKET-NAME/OBJECT-NAME If the data is not public you must save your credentials as environmental variables in a .env file

load environmental variables

Add a .env file with your credentials to your current working directory

MY_CREDENTIALS=*****

Load the .env file within the fetch_file task

tasks:
  - source: codema_dev_tasks.requests.fetch_file
    params:
      url: YOUR-URL
      dotenv_path: "{{here}}/.env"
    product: YOUR-FILEPATH

About

A collection of Python helper functions for use in ETL pipelines

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages