Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All console-runnable samples should use better main pattern. #80

Closed
theacodes opened this issue Sep 14, 2015 · 0 comments
Closed

All console-runnable samples should use better main pattern. #80

theacodes opened this issue Sep 14, 2015 · 0 comments
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@theacodes
Copy link
Contributor

Instead of:

def main(argv):
    args = parser.parse_args(argv[1:])

if __name__ == '__main__':
    main(sys.argv)

It should be

def descriptive_function_name(arg1, arg2, arg3):
    ...

if __name__ == '__main__':
    args = parser.parse_args()
    descriptive_function_name(args.arg1, args.arg2, args.arg3)
@theacodes theacodes changed the title Storage samples should use better main pattern. All console-runnable samples should use better main pattern. Sep 14, 2015
@theacodes theacodes self-assigned this Sep 14, 2015
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 7, 2020
m-strzelczyk pushed a commit that referenced this issue Nov 18, 2022
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-auth-httplib2](https://togithub.com/GoogleCloudPlatform/google-auth-library-python-httplib2) | `==0.0.4` -> `==0.1.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-auth-httplib2/0.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-auth-httplib2/0.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-auth-httplib2/0.1.0/compatibility-slim/0.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-auth-httplib2/0.1.0/confidence-slim/0.0.4)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>GoogleCloudPlatform/google-auth-library-python-httplib2</summary>

### [`v0.1.0`](https://togithub.com/GoogleCloudPlatform/google-auth-library-python-httplib2/blob/master/CHANGELOG.md#&#8203;010-httpswwwgithubcomgoogleapisgoogle-auth-library-python-httplib2comparev003v010-2021-03-01)

[Compare Source](https://togithub.com/GoogleCloudPlatform/google-auth-library-python-httplib2/compare/v0.0.4...v0.1.0)

##### Features

-   add close method ([#&#8203;14](https://www.github.com/googleapis/google-auth-library-python-httplib2/issues/14)) ([feda187](https://www.github.com/googleapis/google-auth-library-python-httplib2/commit/feda187133beeb656fdd7f30ed124ed1e428a74a))
-   expose a few httplib2 properties and a method ([#&#8203;9](https://www.github.com/googleapis/google-auth-library-python-httplib2/issues/9)) ([e3aa44e](https://www.github.com/googleapis/google-auth-library-python-httplib2/commit/e3aa44e01e2987989671467c7a022ea33829eb2f))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-language).
cojenco pushed a commit that referenced this issue Apr 12, 2023
….0 (#80)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-media-translation](https://togithub.com/googleapis/python-media-translation) | `==0.4.0` -> `==0.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/compatibility-slim/0.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/confidence-slim/0.4.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-media-translation</summary>

### [`v0.5.0`](https://togithub.com/googleapis/python-media-translation/blob/master/CHANGELOG.md#&#8203;050-httpswwwgithubcomgoogleapispython-media-translationcomparev040v050-2021-07-01)

[Compare Source](https://togithub.com/googleapis/python-media-translation/compare/v0.4.0...v0.5.0)

##### Features

-   add always_use_jwt_access ([#&#8203;75](https://www.github.com/googleapis/python-media-translation/issues/75)) ([1540d4a](https://www.github.com/googleapis/python-media-translation/commit/1540d4adf751930379e7b71567b61a1b3e7c42ae))

##### Bug Fixes

-   disable always_use_jwt_access ([#&#8203;79](https://www.github.com/googleapis/python-media-translation/issues/79)) ([3fb3edd](https://www.github.com/googleapis/python-media-translation/commit/3fb3edd4020616efad83de1c109a8bfa944ca87f))

##### Documentation

-   omit mention of Python 2.7 in 'CONTRIBUTING.rst' ([#&#8203;1127](https://www.github.com/googleapis/python-media-translation/issues/1127)) ([#&#8203;69](https://www.github.com/googleapis/python-media-translation/issues/69)) ([d77ac0d](https://www.github.com/googleapis/python-media-translation/commit/d77ac0d6af1b278c8285c537a3a28fdf6491ceea)), closes [#&#8203;1126](https://www.github.com/googleapis/python-media-translation/issues/1126)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-media-translation).
dandhlee pushed a commit that referenced this issue Apr 13, 2023
….0 (#80)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-media-translation](https://togithub.com/googleapis/python-media-translation) | `==0.4.0` -> `==0.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/compatibility-slim/0.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/confidence-slim/0.4.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-media-translation</summary>

### [`v0.5.0`](https://togithub.com/googleapis/python-media-translation/blob/master/CHANGELOG.md#&#8203;050-httpswwwgithubcomgoogleapispython-media-translationcomparev040v050-2021-07-01)

[Compare Source](https://togithub.com/googleapis/python-media-translation/compare/v0.4.0...v0.5.0)

##### Features

-   add always_use_jwt_access ([#&#8203;75](https://www.github.com/googleapis/python-media-translation/issues/75)) ([1540d4a](https://www.github.com/googleapis/python-media-translation/commit/1540d4adf751930379e7b71567b61a1b3e7c42ae))

##### Bug Fixes

-   disable always_use_jwt_access ([#&#8203;79](https://www.github.com/googleapis/python-media-translation/issues/79)) ([3fb3edd](https://www.github.com/googleapis/python-media-translation/commit/3fb3edd4020616efad83de1c109a8bfa944ca87f))

##### Documentation

-   omit mention of Python 2.7 in 'CONTRIBUTING.rst' ([#&#8203;1127](https://www.github.com/googleapis/python-media-translation/issues/1127)) ([#&#8203;69](https://www.github.com/googleapis/python-media-translation/issues/69)) ([d77ac0d](https://www.github.com/googleapis/python-media-translation/commit/d77ac0d6af1b278c8285c537a3a28fdf6491ceea)), closes [#&#8203;1126](https://www.github.com/googleapis/python-media-translation/issues/1126)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-media-translation).
Avani-Thakker-Crest pushed a commit to Avani-Thakker-Crest/python-docs-samples that referenced this issue Apr 14, 2023
….0 (GoogleCloudPlatform#80)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-media-translation](https://togithub.com/googleapis/python-media-translation) | `==0.4.0` -> `==0.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/compatibility-slim/0.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/confidence-slim/0.4.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-media-translation</summary>

### [`v0.5.0`](https://togithub.com/googleapis/python-media-translation/blob/master/CHANGELOG.md#&#8203;050-httpswwwgithubcomgoogleapispython-media-translationcomparev040v050-2021-07-01)

[Compare Source](https://togithub.com/googleapis/python-media-translation/compare/v0.4.0...v0.5.0)

##### Features

-   add always_use_jwt_access ([#&GoogleCloudPlatform#8203;75](https://www.github.com/googleapis/python-media-translation/issues/75)) ([1540d4a](https://www.github.com/googleapis/python-media-translation/commit/1540d4adf751930379e7b71567b61a1b3e7c42ae))

##### Bug Fixes

-   disable always_use_jwt_access ([#&GoogleCloudPlatform#8203;79](https://www.github.com/googleapis/python-media-translation/issues/79)) ([3fb3edd](https://www.github.com/googleapis/python-media-translation/commit/3fb3edd4020616efad83de1c109a8bfa944ca87f))

##### Documentation

-   omit mention of Python 2.7 in 'CONTRIBUTING.rst' ([#&GoogleCloudPlatform#8203;1127](https://www.github.com/googleapis/python-media-translation/issues/1127)) ([#&GoogleCloudPlatform#8203;69](https://www.github.com/googleapis/python-media-translation/issues/69)) ([d77ac0d](https://www.github.com/googleapis/python-media-translation/commit/d77ac0d6af1b278c8285c537a3a28fdf6491ceea)), closes [#&GoogleCloudPlatform#8203;1126](https://www.github.com/googleapis/python-media-translation/issues/1126)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-media-translation).
Avani-Thakker-Crest pushed a commit to Avani-Thakker-Crest/python-docs-samples that referenced this issue Apr 14, 2023
….0 (GoogleCloudPlatform#80)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-media-translation](https://togithub.com/googleapis/python-media-translation) | `==0.4.0` -> `==0.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/compatibility-slim/0.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-media-translation/0.5.0/confidence-slim/0.4.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-media-translation</summary>

### [`v0.5.0`](https://togithub.com/googleapis/python-media-translation/blob/master/CHANGELOG.md#&#8203;050-httpswwwgithubcomgoogleapispython-media-translationcomparev040v050-2021-07-01)

[Compare Source](https://togithub.com/googleapis/python-media-translation/compare/v0.4.0...v0.5.0)

##### Features

-   add always_use_jwt_access ([#&GoogleCloudPlatform#8203;75](https://www.github.com/googleapis/python-media-translation/issues/75)) ([1540d4a](https://www.github.com/googleapis/python-media-translation/commit/1540d4adf751930379e7b71567b61a1b3e7c42ae))

##### Bug Fixes

-   disable always_use_jwt_access ([#&GoogleCloudPlatform#8203;79](https://www.github.com/googleapis/python-media-translation/issues/79)) ([3fb3edd](https://www.github.com/googleapis/python-media-translation/commit/3fb3edd4020616efad83de1c109a8bfa944ca87f))

##### Documentation

-   omit mention of Python 2.7 in 'CONTRIBUTING.rst' ([#&GoogleCloudPlatform#8203;1127](https://www.github.com/googleapis/python-media-translation/issues/1127)) ([#&GoogleCloudPlatform#8203;69](https://www.github.com/googleapis/python-media-translation/issues/69)) ([d77ac0d](https://www.github.com/googleapis/python-media-translation/commit/d77ac0d6af1b278c8285c537a3a28fdf6491ceea)), closes [#&GoogleCloudPlatform#8203;1126](https://www.github.com/googleapis/python-media-translation/issues/1126)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-media-translation).
dizcology pushed a commit that referenced this issue Jun 16, 2023
See samples/ directory for maintained and tested samples
dizcology pushed a commit that referenced this issue Jul 10, 2023
See samples/ directory for maintained and tested samples
leahecole pushed a commit that referenced this issue Jul 11, 2023
See samples/ directory for maintained and tested samples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants