{"id":13990525,"url":"https://github.com/uber/Python-Sample-Application","last_synced_at":"2025-07-22T12:33:01.348Z","repository":{"id":19454177,"uuid":"22698473","full_name":"uber/Python-Sample-Application","owner":"uber","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-02T10:01:43.000Z","size":46,"stargazers_count":378,"open_issues_count":12,"forks_count":654,"subscribers_count":2732,"default_branch":"master","last_synced_at":"2024-08-09T13:17:28.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/uber.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,"roadmap":null,"authors":null}},"created_at":"2014-08-06T21:19:49.000Z","updated_at":"2024-07-31T08:13:58.000Z","dependencies_parsed_at":"2024-01-18T04:51:33.971Z","dependency_job_id":"50571ea1-6785-4530-b807-a4b8385547a4","html_url":"https://github.com/uber/Python-Sample-Application","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber%2FPython-Sample-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber%2FPython-Sample-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber%2FPython-Sample-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber%2FPython-Sample-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uber","download_url":"https://codeload.github.com/uber/Python-Sample-Application/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227098836,"owners_count":17730645,"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","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-08-09T13:02:52.736Z","updated_at":"2024-11-29T10:30:52.155Z","avatar_url":"https://github.com/uber.png","language":"Python","readme":"Example Uber app for developers\n==============================\n\n[![TravisCI](https://travis-ci.org/uber/Python-Sample-Application.svg?branch=master)](https://travis-ci.org/uber/Python-Sample-Application)\n[![Coverage Status](https://coveralls.io/repos/uber/Python-Sample-Application/badge.png)](https://coveralls.io/r/uber/Python-Sample-Application)\n\nhttps://developer.uber.com/\n\nWhat Is This?\n-------------\n\nThis is a simple Python/Flask application intended to provide a working example of Uber's external API. The goal of these endpoints is to be simple, well-documented and to provide a base for developers to develop other applications off of.\n\n\nHow To Use This\n---------------\n\n1. Navigate over to https://developer.uber.com/, and sign up for an Uber developer account.\n2. Register a new Uber application and make your Redirect URI `http://localhost:7000/submit` - ensure that both the `profile` and `history` OAuth scopes are checked.\n3. Fill in the relevant information in the `config.json` file in the root folder and add your client id and secret as the environment variables `UBER_CLIENT_ID` and `UBER_CLIENT_SECRET`.\n4. Run `export UBER_CLIENT_ID=\"`*{your client id}*`\"\u0026\u0026export UBER_CLIENT_SECRET=\"`*{your client secret}*`\"`\n5. Run `pip install -r requirements.txt` to install dependencies\n6. Run `python app.py`\n7. Navigate to http://localhost:7000 in your browser\n\n\nTesting\n-------\n\n1. Install the dependencies with `make bootstrap`\n2. Run the command `make test`\n3. If you delete the fixtures, or decide to add some of your own, you’ll have to re-generate them, and the way this is done is by running the app, getting an auth_token from the main page of the app. Paste that token in place of the `test_auth_token` at the top of the `test_endpoints.py` file, then run the tests.\n\n\nDevelopment\n-----------\n\nIf you want to work on this application we’d love your pull requests and tickets on GitHub!\n\n1. If you open up a ticket, please make sure it describes the problem or feature request fully.\n2. If you send us a pull request, make sure you add a test for what you added, and make sure the full test suite runs with `make test`.\n\nDeploy to Heroku\n----------------\n\nClick the button below to set up this sample app on Heroku:\n\n[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)\n\nAfter creating your app on Heroku, you have to configure the redirect URL for your Uber OAuth app. Use a `https://`*{your-app-name}*`.herokuapp.com/submit` URL.\nYou will also want to configure the heroku environment variable FLASK_DEBUG=False in order to properly serve SSL traffic.\n\nMaking Requests\n---------------\n\nThe base for all requests is https://api.uber.com/v1/, to find a list of all available endpoints, please visit: https://developer.uber.com/v1/endpoints/\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber%2FPython-Sample-Application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuber%2FPython-Sample-Application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber%2FPython-Sample-Application/lists"}