Skip to content

A collection of Python helper functions for use in ETL pipelines

License

Notifications You must be signed in to change notification settings

codema-dev/tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:https://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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages