gformlib-cli
gformlib-cli is the official command-line interface for gformlib — manage Google Forms directly from your terminal.
Features
- Create Google Forms from a JSON config file
- Update form title, description, and add questions
- Retrieve form metadata and structure
- List form responses with optional filtering
- Delete forms (with confirmation)
- Service account & OAuth 2.0 authentication
- Beautiful Rich terminal output
- Full type annotations (PEP 561 compliant)
Installation
pip install gformlib-cli
Quickstart
Authenticate
Pass a service account key file with every command:
gformcli form create form.json --service-account sa.json
Or set the environment variable once:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa.json
gformcli form create form.json
Create a form
gformcli form create form.json --service-account sa.json
form.json:
{
"title": "Customer Survey",
"description": "Tell us how we're doing.",
"questions": [
{"title": "Your name", "type": "short_answer", "required": true},
{
"title": "Overall rating",
"type": "scale",
"low": 1,
"high": 5,
"low_label": "Poor",
"high_label": "Excellent"
}
]
}
Update a form
gformcli form update <FORM_ID> update.json --service-account sa.json
Get form info
gformcli form get <FORM_ID> --service-account sa.json
List responses
gformcli form responses <FORM_ID> --service-account sa.json
Delete a form
gformcli form delete <FORM_ID> --yes --service-account sa.json
Authentication
| Method | Flag | Notes |
|---|---|---|
| Service Account | --service-account / -s |
Recommended for server/CI |
| OAuth 2.0 | --credentials / -c |
Browser consent on first run |
| Env var | GOOGLE_APPLICATION_CREDENTIALS |
Fallback, service account |
Command reference
gformcli form create CONFIG_FILE [AUTH OPTIONS]
gformcli form update FORM_ID CONFIG_FILE [AUTH OPTIONS]
gformcli form get FORM_ID [AUTH OPTIONS]
gformcli form responses FORM_ID [--filter STR] [--page-size N] [AUTH OPTIONS]
gformcli form delete FORM_ID [--yes] [AUTH OPTIONS]
Run gformcli --help or gformcli form <command> --help for full option details.
Development
git clone https://github.com/andhit-r/gformlib-cli
cd gformlib-cli
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest
License
MIT — see LICENSE.
Metadata
Release files for gformlib-cli 0.1.1
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 |
|---|---|---|---|---|
| gformlib_cli-0.1.1.tar.gz | 11.7 kB | With provenance | Details for gformlib_cli-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gformlib_cli-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gformlib_cli-0.1.1-py3-none-any.whl |
Total release size: 22.6 kB
Release files / gformlib_cli-0.1.1.tar.gz
| Download URL | gformlib_cli-0.1.1.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ea99f269e31a576c0baa424797e3e34b5af43b8ddeb6f6375f02dd831e3f13c
|
|
BLAKE2b-256 checksum How to use checksums |
3bb86b8e86584eec8ea9f0df2086a8ca52dfcd8de255549f228ddc74a87b2cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logRelease files / gformlib_cli-0.1.1-py3-none-any.whl
| Download URL | gformlib_cli-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74c511581e5076517ee6ddea5ea1d722485a5f6fe3c908289eb3e007b4083d03
|
|
BLAKE2b-256 checksum How to use checksums |
9ceb6db6b3317321d104c96bc738ef7772b526b8321f72f8339c91b66d95e6d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logSecurity for gformlib-cli 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gformlib_cli-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logA 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.