{"id":30707114,"url":"https://github.com/hallazzang/gmaily","last_synced_at":"2025-09-02T20:14:52.295Z","repository":{"id":57435057,"uuid":"119144667","full_name":"hallazzang/gmaily","owner":"hallazzang","description":"Pythonic Gmail client","archived":false,"fork":false,"pushed_at":"2022-07-25T05:29:08.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T05:08:20.034Z","etag":null,"topics":["gmail","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hallazzang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-27T07:52:32.000Z","updated_at":"2022-07-25T05:29:12.000Z","dependencies_parsed_at":"2022-09-04T15:33:48.370Z","dependency_job_id":null,"html_url":"https://github.com/hallazzang/gmaily","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hallazzang/gmaily","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallazzang%2Fgmaily","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallazzang%2Fgmaily/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallazzang%2Fgmaily/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallazzang%2Fgmaily/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hallazzang","download_url":"https://codeload.github.com/hallazzang/gmaily/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallazzang%2Fgmaily/sbom","scorecard":{"id":453556,"data":{"date":"2025-08-11","repo":{"name":"github.com/hallazzang/gmaily","commit":"49604eb9595a5ea1df502da4cab1cfb080286f79"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/13 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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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 2 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-19T08:53:06.143Z","repository_id":57435057,"created_at":"2025-08-19T08:53:06.143Z","updated_at":"2025-08-19T08:53:06.143Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273341748,"owners_count":25088419,"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-09-02T02:00:09.530Z","response_time":77,"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":["gmail","python"],"created_at":"2025-09-02T20:14:40.120Z","updated_at":"2025-09-02T20:14:52.286Z","avatar_url":"https://github.com/hallazzang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gmaily\n\nUnofficial Gmail python client with pythonic API.\n\n## Features\n\n- [x] Clean API\n- [x] No other dependencies than standard library\n- [ ] Lazy loading for content\n\n## Example\n\n```python\nimport sys\nimport getpass\nimport datetime\n\nfrom gmaily import Gmaily\n\ng = Gmaily()\n\nuser_email = input(\"Email: \")\nuser_pw = getpass.getpass()\n\nif not g.login(user_email, user_pw):\n    print(\"Cannot login\")\n    sys.exit(1)\n\nmsgs = g.inbox().after(datetime.date.today() - datetime.timedelta(weeks=2))\nfor msg in msgs.all():\n    print(\"\\n\" + (\" Mail UID: %d \" % msg.uid).center(80, \"=\") + \"\\n\")\n    print(\"Subject:\", msg.subject)\n    print(\"From:\", msg.sender)\n    print(\"Date:\", msg.date)\n    print(\"Attachments:\", msg.attachments)\n\n    print(\"-\" * 10)\n    print(msg.text)\n\ng.logout()\n```\n\n## Usage\n\n### Searching Mailbox\n\n`SearchQuery`, which is returned by some methods like `Gmaily.inbox`\nsupports method chaining and you can easily mix search criterias together:\n\n```python\ntwo_weeks_ago = datetime.date.today() - datetime.timedelta(weeks=2)\nmsgs = g.inbox().by(\"john@example.com\").before(two_weeks_ago)\n```\n\nAlternatively, you can use other mailboxes than `INBOX` in the above example\nusing `Gmaily.mailbox` method:\n\n```python\nmsgs = g.mailbox(\"URGENT\").on(datetime.date.today())\n```\n\nYou can then execute the query and fetch the results using `SearchQuery.all`:\n\n```python\nprint(msgs.all())\n```\n\nYou can find the full list of supported criterias and their description at\n[here](https://tools.ietf.org/html/rfc3501#section-6.4.4).\nNote that `ALL` criteria is not present because it's the default criteria\nand `SearchQuery.all` stands for executing the query.\nAny other names like `.fetch()`, `.do()` could be taken the place,\nbut I chose the `.all()` because famous ORMs use it too.\n\nSome other criterias are omitted too:\n\n- `NOT`\n- `OR`\n- `UID`\n\n## Installation\n\nIt requires `Python\u003e=3.5`.\n\n```\n$ pip3 install -U gmaily\n```\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhallazzang%2Fgmaily","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhallazzang%2Fgmaily","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhallazzang%2Fgmaily/lists"}