{"id":17286585,"url":"https://github.com/louis70109/github_action_python_package_example","last_synced_at":"2025-04-14T10:43:04.571Z","repository":{"id":57434570,"uuid":"336180404","full_name":"louis70109/GitHub_Action_Python_Package_Example","owner":"louis70109","description":"Python package template for GitHub Action","archived":false,"fork":false,"pushed_at":"2021-08-31T06:18:32.000Z","size":32,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T11:51:12.363Z","etag":null,"topics":["github","github-actions","pypi-package","python","python-sdk"],"latest_commit_sha":null,"homepage":"https://nijialin.com/2021/02/11/how-to-use-github-action/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/louis70109.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-05T06:06:20.000Z","updated_at":"2021-08-31T06:18:35.000Z","dependencies_parsed_at":"2022-09-04T15:31:39.009Z","dependency_job_id":null,"html_url":"https://github.com/louis70109/GitHub_Action_Python_Package_Example","commit_stats":null,"previous_names":["louis70109/github_action_python_example"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2FGitHub_Action_Python_Package_Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2FGitHub_Action_Python_Package_Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2FGitHub_Action_Python_Package_Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2FGitHub_Action_Python_Package_Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louis70109","download_url":"https://codeload.github.com/louis70109/GitHub_Action_Python_Package_Example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248867561,"owners_count":21174748,"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":["github","github-actions","pypi-package","python","python-sdk"],"created_at":"2024-10-15T09:59:38.353Z","updated_at":"2025-04-14T10:43:04.552Z","avatar_url":"https://github.com/louis70109.png","language":"Python","readme":"# [GitHub Action Python Example](https://pypi.org/project/GitHub-Action-Python-Example/)\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\r\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/louis70109/line-notify#contributing)\r\n\r\nThis is a GitHub Action example for an auto publish PyPi package and test automation.\r\n\r\n## Setup PyPi property\r\n\r\n- Go to [PyPi](https://pypi.org/) ➡️ Your project ➡️ Account Setting.\r\n\r\n![](https://nijialin.com/images/2021/action/token1.png)\r\n\r\n- Create an API token.\r\n  - Note: If you just first time create the token, need to select **all project** at Scope.\r\n\r\n![](https://nijialin.com/images/2021/action/token2.png)\r\n\r\n- You would find **username** and **password**.\r\n- Setup **PYPI_USERNAME** and **PYPI_PASSWORD** in GitHub `Setting` ➡️ `Secrets`.\r\n- Click _New repository secret_ and add two property.\r\n\r\n![](https://nijialin.com/images/2021/action/token3.png)\r\n\r\n- Modify `GitHub_Action_Python_Example/__version__.py` version number(e.g. 1.0.2).\r\n\r\n- Click and draft `Release` note.\r\n\r\n![](https://nijialin.com/images/2021/action/release1.png)\r\n\r\n- `.github/workflows/publish.yml` will help you to publish package to PyPi.\r\n\r\n![](https://nijialin.com/images/2021/action/release4.png)\r\n\r\n## Install package\r\n\r\n```\r\npip install GitHub-Action-Python-Example\r\n```\r\n\r\n```python\r\nfrom GitHub_Action_Python_Example.client import HelloWorld\r\n\r\nmessage = HelloWorld(message=\"Change the World~\")\r\nprint(message.get_message())\r\n```\r\n\r\n# License\r\n\r\n[MIT](https://github.com/louis70109/line-notify/blob/master/LICENSE) © [NiJia Lin](https://nijialin.com/about/)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis70109%2Fgithub_action_python_package_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouis70109%2Fgithub_action_python_package_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis70109%2Fgithub_action_python_package_example/lists"}