Submit data rows to Google Forms via POST requests
Project description
Google Form Poster
Submit data rows to a Google Form via POST requests.
Installation
pip install google-form-poster
Usage — as a library
from post_to_google_form import post_data
url = "https://docs.google.com/forms/d/e/.../viewform"
# Data keys match entry IDs directly
data = [{"entry.12345": "Alice", "entry.67890": "alice@example.com"}]
results = post_data(url, data)
# Or use key_mappings to translate your keys
key_mappings = {"name": "entry.12345", "email": "entry.67890"}
data = [{"name": "Alice", "email": "alice@example.com"}]
results = post_data(url, data, key_mappings)
# results = [
# {"index": 0, "status_code": 200, "payload": {"entry.12345": "Alice", ...}},
# ]
forms.gle short links are automatically resolved:
post_data("https://forms.gle/abc123", data)
Usage — CLI
post-to-google-form --file data.json --url https://forms.gle/abc123
# With key mappings:
post-to-google-form --file data.json --url https://forms.gle/abc123 \
--key-mappings mappings.json
All flags fall back to environment variables (FILE_PATH, GOOGLE_FORM_URL, KEY_MAPPINGS), loaded from .env if present.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file google_form_poster-0.1.1.tar.gz.
File metadata
- Download URL: google_form_poster-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dd8ee324dafcc7bcf01c592f1d6238eba8647f821522fe3e6ba4eed0c0cd96f
|
|
| MD5 |
bcfd6b427ee984d330cbc7729ba3cdd2
|
|
| BLAKE2b-256 |
79f40278575792204ea35d8bcfb2a1bf1377e04912f4ec425c76df893b33cefa
|
File details
Details for the file google_form_poster-0.1.1-py3-none-any.whl.
File metadata
- Download URL: google_form_poster-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
616df89042ee439f484c03f52b492b02be2447bc7f7f101a3c6aa102d415b5e8
|
|
| MD5 |
e8d058062710d70e37b37a0b3cba13f1
|
|
| BLAKE2b-256 |
b4a215103a7a2e4ff9e265efc4b9e68db4c4d6f21f6f83da365f4c2b1e971fde
|