Skip to main content

Get all releases URL from a github repo.

Project description

simple_github_releases

Get all releases URL from a github repo.

Install

pip install simple_github_releases

Usage

from simple_github_releases import get_github_releases

REPO_OWNER = "gohugoio"   # Username / Organization Name
REPO_NAME = "hugo"        # Repository name
GITHUB_TOKEN = ""         # Fill for private repos / rate limits, leave empty for public

# Set top_list=None to get all releases
try:
    print("Fetching Release links...")
    url_list = get_github_releases(REPO_OWNER, REPO_NAME, GITHUB_TOKEN, show_current_found=False, show_time=True, top_list=1)
    print(f"- Total Releases found: {len(url_list)}")
    print("- Latest ten releases")
    for url in url_list[:10]:
        print("  -", url)
except Exception as e:
    print(f"Execution failed: {str(e)}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_github_releases-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_github_releases-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file simple_github_releases-0.1.0.tar.gz.

File metadata

  • Download URL: simple_github_releases-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.15 Windows/10

File hashes

Hashes for simple_github_releases-0.1.0.tar.gz
Algorithm Hash digest
SHA256 63069a638d2cd67eb230d526e7a159d87fc65336b92e51e64c17d761f7c0a02d
MD5 f8643bccecd772189e57dfae7ccd9b01
BLAKE2b-256 2d7560482ba4868797f15f620a50e06db14ffc9dc72eaba781403522d92873e2

See more details on using hashes here.

File details

Details for the file simple_github_releases-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_github_releases-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e3b1531d6b8d16f5f35e2142a0d33e5061643b0dd08ff3fd70a807e30977c1b
MD5 164b46b3ef4d134ce418e863d082f3eb
BLAKE2b-256 c8d1ceae6f1e889ca2facded7d22d7aa4e094af547dd6560ea2df53b80cbfbfc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page