{"id":20916728,"url":"https://github.com/waqqas/sample-functions-python-jokes","last_synced_at":"2026-02-06T05:02:17.969Z","repository":{"id":187869175,"uuid":"655744573","full_name":"waqqas/sample-functions-python-jokes","owner":"waqqas","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-19T14:15:32.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T12:06:58.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waqqas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-19T14:05:48.000Z","updated_at":"2023-06-19T14:06:17.000Z","dependencies_parsed_at":"2023-08-12T13:59:10.660Z","dependency_job_id":"dc280f50-74ca-4410-84a1-1fa7340d242a","html_url":"https://github.com/waqqas/sample-functions-python-jokes","commit_stats":null,"previous_names":["waqqas/sample-functions-python-jokes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waqqas/sample-functions-python-jokes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqqas%2Fsample-functions-python-jokes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqqas%2Fsample-functions-python-jokes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqqas%2Fsample-functions-python-jokes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqqas%2Fsample-functions-python-jokes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waqqas","download_url":"https://codeload.github.com/waqqas/sample-functions-python-jokes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waqqas%2Fsample-functions-python-jokes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29151560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-18T16:25:46.389Z","updated_at":"2026-02-06T05:02:17.952Z","avatar_url":"https://github.com/waqqas.png","language":"Dockerfile","readme":"# Sample Function: Python Joke API\n\n## Introduction\n\nThis repository contains a sample joke API function written in Python. You can deploy it on DigitalOcean's App Platform as a Serverless Function component.\nDocumentation is available at https://docs.digitalocean.com/products/functions.\n\n### Requirements\n\n* You need a DigitalOcean account. If you don't already have one, you can sign up at [https://cloud.digitalocean.com/registrations/new](https://cloud.digitalocean.com/registrations/new).\n* To deploy from the command line, you will need the [DigitalOcean `doctl` CLI](https://github.com/digitalocean/doctl/releases).\n\n## Deploying the Function\n\n```\n# clone this repo\ngit clone git@github.com:digitalocean/sample-functions-python-jokes.git\n```\n\n```\n# deploy the project, using \"remote-build\" so that the build and runtime environments match\n\u003e doctl serverless deploy sample-functions-python-jokes --remote-build\nDeploying 'sample-functions-python-jokes'\n  to namespace 'fn-...'\n  on host 'https://faas-...'\nSubmitted action 'joke' for remote building and deployment in runtime python:default\nProcessing of 'joke' is still running remotely ...\n...\nDeployed functions ('doctl sbx fn get \u003cfuncName\u003e --url' for URL):\n  - joke\n```\n\n```\n# execute the function\n\u003e doctl serverless functions invoke joke\n{\n  \"body\": {\n    \"response_type\": \"in_channel\",\n    \"text\": \"Waiter: He's choking! Is anyone a doctor? Programmer: I'm a Vim user.\"\n  }\n}\n```\n\nNote the CLI command can be abbreviated as `doctl sls fn invoke joke`.\n\n\n### Learn More\n\nYou can learn more about Functions and App Platform integration in [the official App Platform Documentation](https://www.digitalocean.com/docs/app-platform/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaqqas%2Fsample-functions-python-jokes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaqqas%2Fsample-functions-python-jokes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaqqas%2Fsample-functions-python-jokes/lists"}