{"id":28297858,"url":"https://github.com/level12/keg-mail","last_synced_at":"2026-05-17T08:34:02.483Z","repository":{"id":62573911,"uuid":"85974550","full_name":"level12/keg-mail","owner":"level12","description":"A simple mail library for Keg","archived":false,"fork":false,"pushed_at":"2024-06-21T15:15:15.000Z","size":3543,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-12-09T17:22:46.535Z","etag":null,"topics":["email","flask","keg","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/level12.png","metadata":{"files":{"readme":"README.rst","changelog":"changelog.rst","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":"2017-03-23T16:52:04.000Z","updated_at":"2024-06-21T15:15:18.000Z","dependencies_parsed_at":"2025-06-17T12:34:52.164Z","dependency_job_id":"8e5b4584-b07b-4ba8-bbae-ed177eccc6d4","html_url":"https://github.com/level12/keg-mail","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/level12/keg-mail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fkeg-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fkeg-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fkeg-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fkeg-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/level12","download_url":"https://codeload.github.com/level12/keg-mail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level12%2Fkeg-mail/sbom","scorecard":{"id":586103,"data":{"date":"2025-08-11","repo":{"name":"github.com/level12/keg-mail","commit":"a76cc142853e2005a8248b306d6494deab9ff3d0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 1/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T20:33:14.301Z","repository_id":62573911,"created_at":"2025-08-20T20:33:14.301Z","updated_at":"2025-08-20T20:33:14.301Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33131955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["email","flask","keg","python"],"created_at":"2025-05-23T05:14:35.675Z","updated_at":"2026-05-17T08:34:02.465Z","avatar_url":"https://github.com/level12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Keg-Mail\n#########\n\nKeg-Mail is a basic wrapper around Flask-Mail which gives some added support for\ntemplates.\n\nIt is not finished by any means and in some ways provides little additional\nbenefit over Flask-Mail.\n\n\nUsage\n=====\n\n.. code::\n\n  $ pip install keg-mail\n\n\nInitialize Keg-Mail in your application\n\n.. code::\n\n  import flask\n  import keg_mail\n  from keg.signals import app_ready\n  from keg import Keg\n\n  bp = flask.blueprint('main', __name__)\n  mail = keg_mail.KegMail()\n\n  class App(Keg):\n    use_blueprints = [bp]\n\n\nInitialize the extension with the application\n\n.. code::\n\n  @app_ready.connect\n  def init_extensions(app):\n      \"\"\"Init custom extensions used by this application\"\"\"\n\n      mail.init_app(app)\n\n\nDefine email content\n\n.. code::\n\n  import keg_mail\n\n  hello_world_content = keg_mail.EmailContent(\n    text='Hello {name}!'\n    html='\u003ch1\u003eHello {name}!\u003c/h1\u003e'\n  )\n\n\nSend the email\n\n.. code::\n\n  from app import mail\n  import app.emails as emails\n  import keg_mail\n\n  bp.route('/')\n  def index():\n      mail.send_email(\n          'you@something.com',\n          keg_mail.Email(\n            subject=\"Hello {name}!\",\n            content=emails.hello_world_content,\n          ).format(name='You\")\n      )\n\n\nTest the email\n\n.. code::\n\n  from app import mail\n\n  def test_send_mail():\n      with mail.record_messages() as outbox:\n          resp = app.test_client.get('/')\n          assert len(outbox) == 1\n          assert outbox[0].subject == \"Hello You!\"\n          assert outbox[0].body == \"Hello You!\"\n\n\nMailgun-specific options\n------------------------\n\nMailgun supports various options such as tagging, user-defined variables, etc.\nThese can be added via a ``mailgun_opts`` dictionary that can be passed to the\napp's mail engine's ``send`` method directly:\n\n.. code::\n\n    flask.current_app.mail.send(\n        msg,\n        mailgun_opts={\n            'v:user_name': 'John Doe',\n            'v:user_id': 100,\n        },\n    )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel12%2Fkeg-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevel12%2Fkeg-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel12%2Fkeg-mail/lists"}