
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
form-submit
Advanced tools
A Python package to display an HTML form in Colab, capture submissions, and send data via email.
form_submit: HTML Form Submission for Google Colab A Python package designed to simplify displaying HTML forms in Google Colab notebooks, capturing user submissions, and securely sending the collected data (including file attachments) via email.
Features Easy HTML Form Display: Render interactive forms directly within your Colab cells. Secure Email Submission: Send form data, including attached files, to a specified email address using an app password. Attachment Handling: Supports decoding and attaching base64 encoded files from the form. Installation Install the package directly from PyPI:
%pip install form_submit Usage
from form_submit import display_feedback_form
display_feedback_form() 2. Handling Form Submissions To capture and process form submissions, you need to set up a JavaScript listener that sends the form data back to Python. The handle_form_submission function in this package is designed to receive this data and send an email.
Here's an example of how you might set up the JavaScript in a Colab notebook (this assumes you've displayed the form and want to handle its submission):
from google.colab import output from form_submit import handle_form_submission
def _handle_js_form_data(data): email = data.get('enter_your_email', 'N/A') full_name = data.get('enter_your_full_name', 'N/A') phone_number = data.get('enter_your', 'N/A') # Note: original form input name was 'enter_your' feedback = data.get('give_your_feedback_about_the_library', 'N/A') troubleshoots_choice = data.get('any_trobleshoots_in_the_library', 'N/A')
file_input = data.get('upload_your_poblem_in_a_file_pdf_content', None)
file_data = None
if file_input and isinstance(file_input, dict):
file_data = {
'filename': file_input.get('filename'),
'content': file_input.get('content'), # Base64 encoded content
'mimetype': file_input.get('mimetype')
}
handle_form_submission(
email=email,
full_name=full_name,
phone_number=phone_number,
feedback=feedback,
troubleshoots_choice=troubleshoots_choice,
file_data=file_data
)
output.register_callback('handle_colab_form', _handle_js_form_data)
js_code = """
FAQs
A Python package to display an HTML form in Colab, capture submissions, and send data via email.
We found that form-submit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.