PyGitio

PyGitio is a cli wrapper for the git.io URL shortener with support for custom URLs.

Installation

Requirements

Python 3

$ pip install PyGitio

or directly from the source,

$ git clone https://github.com/hsuay/PyGitio.git && pip install -e PyGitio

Usage

$ pygitio <GithubURL> <CustomText>

<GithubURL> is the URL that will be shortened.

<CustomText> is the custom text that will be used.

For example,

$ pygitio https://github.com/hsuay ayush

This will copy the shortened URL, https://git.io/ayush to the clipboard.

Dependencies

Requests - PyPi | Repository

- PyPi | Repository Click - PyPi | Repository

- PyPi | Repository Pyperclip - PyPi | Repository

Development

$ virtualenv env $ . env/bin/activate $ pip install -e .

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Mirrors

Links