1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/douglarek-pgist

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
Внести вклад в разработку кода
Синхронизировать код
Отмена
Подсказка: Поскольку Git не поддерживает пустые директории, создание директории приведёт к созданию пустого файла .keep.
Loading...
README.rst

pgist

A Python command-line wrapper with github3.py library to access GitHub Gist.

Installation

You can install with pip:

pip install pgist -U

Or with easy_install:

easy_install -U pgist

Command

To upload the contents of a.py just:

pgist a.py

Or you can accept stdin as a file like this:

pgist -

type ctrl+D to end stdin and ctrl+C to abort.

Upload multiple files:

pgist a b c

Use -p to make the gist private:

pgist a.py -p

Use -d to add a description:

pgist -d "Say something" a.py

You can update existing gists with -u:

pgist b.py c.py -u 2c93e03266634cd6e273

List your public gists:

pgist -l

And list all gists including private ones:

pgist -l -A

See pgist --help for more detail.

Login

If you want to associate your gists with your GitHub account, you need to login with pgist. It doesn't store your username and password, it just uses them to get an OAuth2 token (with the "gist" permission).

pgist --login
GitHub username(default is xxxxx): douglarek
GitHub password for douglarek:
Done ...

After you've done this, you can still upload gists anonymously with -a:

pgist a.py -a

Thanks

License

Licensed under the Apache 2.0 license. Bug-reports, and pull requests are welcome.

Комментарии ( 0 )

Вы можете оставить комментарий после Вход в систему

Введение

Обёртка для командной строки Python с библиотекой github3.py для доступа к GitHub gists. Развернуть Свернуть
Apache-2.0
Отмена

Обновления

Пока нет обновлений

Участники

все

Недавние действия

Загрузить больше
Больше нет результатов для загрузки
1
https://api.gitlife.ru/oschina-mirror/douglarek-pgist.git
git@api.gitlife.ru:oschina-mirror/douglarek-pgist.git
oschina-mirror
douglarek-pgist
douglarek-pgist
master