{"id":28470996,"url":"https://github.com/datnguye/diqu-email","last_synced_at":"2026-03-16T17:36:30.511Z","repository":{"id":209273607,"uuid":"723610496","full_name":"datnguye/diqu-email","owner":"datnguye","description":"diqu Adapter: Email","archived":false,"fork":false,"pushed_at":"2025-06-19T03:29:28.000Z","size":349,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T04:06:34.512Z","etag":null,"topics":["diqu","dynamic-template","sendgrid"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datnguye.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-26T08:01:10.000Z","updated_at":"2025-06-19T03:29:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"e86f5af0-89c0-4a02-9c0b-eacb2e605a1a","html_url":"https://github.com/datnguye/diqu-email","commit_stats":null,"previous_names":["datnguye/diqu-email"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/datnguye/diqu-email","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datnguye%2Fdiqu-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datnguye%2Fdiqu-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datnguye%2Fdiqu-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datnguye%2Fdiqu-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datnguye","download_url":"https://codeload.github.com/datnguye/diqu-email/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datnguye%2Fdiqu-email/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268488758,"owners_count":24258328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diqu","dynamic-template","sendgrid"],"created_at":"2025-06-07T10:07:26.014Z","updated_at":"2026-03-16T17:36:30.484Z","avatar_url":"https://github.com/datnguye.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diqu-email\n\nAlert module using Email method (Sendgrid)\n\n## How to use\n\n### Installation\n\n```bash\npip install diqu\npip install diqu-email --upgrade\n```\n\n### Send email\n\nBefore you can send email with Sendgrid, go create your template first:\n\n- Go to Email API / Dynamic Templates: Create a Dyanmic Template\n- Design your template e.g.\n\n    ![sample template](/example/image.png)\n- Save it and get the Template ID e.g. `d-c70732f1cb304d39823d52cd5cee8312`\n- Go to Settings / API Keys: Get an API key e.g. SG.xxx.xxx\n\nNow, you're ready to send alert:\n\n```bash\nexport SENDGRID_API_KEY=YOURVALUE e.g. SG.xxx.xxx\nexport SENDGRID_MAILING_LIST=YOURVALUE e.g. dat@domain.com,dat2@domain.com\nexport SENDGRID_TEMPLATE_ID=YOURVALUE e.g. d-c70732f1cb304d39823d52cd5cee8312\n\n# powershell\n$env:SENDGRID_API_KEY=\"YOURVALUE\"\n$env:SENDGRID_MAILING_LIST=\"dat@domain.com,dat2@domain.com\"\n$env:SENDGRID_TEMPLATE_ID=\"d-c70732f1cb304d39823d52cd5cee8312\"\n\ndiqu alert --to sendgrid\n```\n\nFor a quick testing purpose, we can use the CSV package to run the [example](./example/) as following command:\n\n```bash\ndiqu alert --to sendgrid --package csv --profile-name example --profiles-dir ./example\n```\n\nHere is the sample result:\n\n![Alt text](/example/email.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatnguye%2Fdiqu-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatnguye%2Fdiqu-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatnguye%2Fdiqu-email/lists"}