{"id":18783981,"url":"https://github.com/sparkpost/appengine-flexible-python-sample","last_synced_at":"2025-10-29T17:07:09.772Z","repository":{"id":138516240,"uuid":"88040973","full_name":"SparkPost/appengine-flexible-python-sample","owner":"SparkPost","description":"Sample app using Python, Flask and SparkPost in the Google App Engine flexible environment","archived":false,"fork":false,"pushed_at":"2018-03-27T19:50:04.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-31T07:45:09.101Z","etag":null,"topics":["google-appengine","python","sparkpost"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SparkPost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-12T10:44:47.000Z","updated_at":"2018-05-03T15:36:56.000Z","dependencies_parsed_at":"2023-07-14T04:30:18.303Z","dependency_job_id":null,"html_url":"https://github.com/SparkPost/appengine-flexible-python-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SparkPost/appengine-flexible-python-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fappengine-flexible-python-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fappengine-flexible-python-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fappengine-flexible-python-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fappengine-flexible-python-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SparkPost","download_url":"https://codeload.github.com/SparkPost/appengine-flexible-python-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fappengine-flexible-python-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281660502,"owners_count":26539739,"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-10-29T02:00:06.901Z","response_time":59,"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":["google-appengine","python","sparkpost"],"created_at":"2024-11-07T20:41:29.747Z","updated_at":"2025-10-29T17:07:09.734Z","avatar_url":"https://github.com/SparkPost.png","language":"Python","readme":"\u003ca href=\"https://www.sparkpost.com\"\u003e\u003cimg src=\"https://www.sparkpost.com/sites/default/files/attachments/SparkPost_Logo_2-Color_Gray-Orange_RGB.svg\" width=\"200px\"/\u003e\u003c/a\u003e\n\n[Sign up](https://app.sparkpost.com/join?src=Dev-Website\u0026sfdcid=70160000000pqBb) for a SparkPost account and visit our [Developer Hub](https://developers.sparkpost.com) for even more content.\n\nThis sample app demonstrates how to send email with Python and [python-sparkpost](https://github.com/SparkPost/python-sparkpost) on the Google App Engine flexible environment.\n\n### Prerequisites\n\n - a [Google Cloud Platform](https://cloud.google.com/) account\n - the [Google Cloud SDK](https://cloud.google.com/sdk/) installed and configured\n\n### Setup\n\n1. Sign up for a SparkPost account [here](https://app.sparkpost.com/join).\n\n1. Create an API key with *Transmissions: read/write* privilege [here](https://app.sparkpost.com/account/credentials).\n\n1. Add your API key to `app.yaml`.\n\n1. Optional: prepare an isolated Python virtual environment:\n    ```sh\n    virtualenv env\n    source env/bin/activate\n    ```\n\n1. Install the app's dependencies:\n    ```sh\n    pip install -r requirements \n    ```\n\n### Running Locally\n\n1. Start the app:\n    ```sh\n    SPARKPOST_API_KEY=your-api-key python main.py\n    ```\n\n1. Visit the app in your browser: [http://localhost:8080/](http://localhost:8080/)\n\n### Deploying To Google App Engine \n\n1. Deploy the app and dependencies to your Google Cloud project:\n    ```sh\n    gcloud app deploy\n    ```\n\n1. Visit the app in your browser: \n    ```sh\n    gcloud app browse\n    ```\n\n### Running The Tests\n\n```sh\npip install pytest responses flaky\npytest main_test.py\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkpost%2Fappengine-flexible-python-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparkpost%2Fappengine-flexible-python-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkpost%2Fappengine-flexible-python-sample/lists"}