download-gmail-pdf
Download PDF attachments from one or more Gmail accounts via IMAP.
Source code: https://github.com/erikvw/download-gmail-pdfs
Setup
Reads account credentials from a JSON file. Set the path via the GMAIL_ACCOUNTS_FILE env var or the –accounts-file argument.
Accounts file format (e.g. .gmail_accounts.json):
[
{"email": "account1@gmail.com", "password": "xxxx xxxx xxxx xxxx"},
{"email": "account2@gmail.com", "password": "yyyy yyyy yyyy yyyy"}
]
Usage
export GMAIL_ACCOUNTS_FILE=/path/to/accounts.json
Run for all email accounts in the JSON
uv run --dev download-gmail-pdfs \
--output-dir /path/to/pdf_downloads \
--accounts-file ~/.clinicedc/my_edc/.gmail_accounts.json
Run for one email account in the JSON
uv run --dev download-gmail-pdfs \
--email account1@gmail.com \
--output-dir /path/to/pdf_downloads \
--accounts-file ~/.clinicedc/my_edc/.gmail_accounts.json
Features
Tracks downloads in a manifest file (safe to re-run / resume).
Reconnects automatically on transient network errors (up to 3 retries).
After running this, see the management command import_labs in clinicedc.
Metadata
Release files for download-gmail-pdfs 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| download_gmail_pdfs-0.3.0.tar.gz | 19.0 kB | Without provenance | Details for download_gmail_pdfs-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| download_gmail_pdfs-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for download_gmail_pdfs-0.3.0-py3-none-any.whl |
Total release size: 40.4 kB
Release files / download_gmail_pdfs-0.3.0.tar.gz
| Download URL | download_gmail_pdfs-0.3.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c01a272873866ee85826da0c595b790f2ab2f5c6ef0877d2f151864e9f1dcf90
|
|
BLAKE2b-256 checksum How to use checksums |
bd249b9832974417c8f6be7b1d613c34475fa762c1a33789e69fc5c363921189
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / download_gmail_pdfs-0.3.0-py3-none-any.whl
| Download URL | download_gmail_pdfs-0.3.0-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df7e3cd1d130bee30a753ac8b9be76967db2080c1b3fdcdebe7ce74b11ebb611
|
|
BLAKE2b-256 checksum How to use checksums |
fcf0895e4e1be61c4e855c0446337d1c016f82dc428d63afd34dbb8dec23383a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for download-gmail-pdfs 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.