Skip to main content

A simple script that opens a Github page from the command line.

Project description

Open Github

A simple script that opens a Github page from the command line.

Installation

pip install open-github

After installing you can make the package available in your path and bind it to any shortcut you want.

alias og='/Users/${USER}/Library/Python/3.7/lib/python/site-packages/open_github_pkg/__init__.py'

https://pypi.org/project/open-github/

Usage

Navigate to any directory with a github repository and run the alias you have assigned to the script.

Example:

og

This will open your browser with the appropiate Github repository homepage.

As well, running with the flag -v will simply print the url to the console.

og -v

Deploying

In order to deploy package the following tools are needed, pip, sdist & twine.

Bump version

In the setup.py bump version of package.

Generate distribution archive

python3 setup.py sdist bdist_wheel

This command should output a lot of text and once completed should generate two files in the dist directory.

Upload the distrubution package

python3 -m twine upload dist/*

If you need to use the development environment simply use:

python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Reference:

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

open-github-2.0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

open_github-2.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file open-github-2.0.0.tar.gz.

File metadata

  • Download URL: open-github-2.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.2

File hashes

Hashes for open-github-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7fa91bacc12282af53d581a0606cc290604012274cfc5c6e3dbf6d22b815c0c1
MD5 951f7459398f8fbf6467d76199ade3c9
BLAKE2b-256 fe21adf6b4e5055963efd4b6b3f7506ef2b9606460c07cf9e9831f921a0c96df

See more details on using hashes here.

File details

Details for the file open_github-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: open_github-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.2

File hashes

Hashes for open_github-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 326e86004be030be8d54b70d214501fbfd2b04e447286d7a7fe1ab2f851d211a
MD5 61b6fc01f0b8ee51720d5269c848eadc
BLAKE2b-256 ec0bd8f6dd349ba6dc9e80da4f47383442dabee057a792f94db1993de827a43d

See more details on using hashes here.

Supported by

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