Git Forge API Client..
Project description
GIT FORGE API CLIENTS
W.I.P. API clients for GitHub & GitLab.
Run commands or query api on all projects or groups of an authenticated GitLab or GitHub user.
So far only GitLab & GitHub are supported and the commands - sync (clone a
repository, or pull from it if already cloned) or status (show the local status of
the repository).
Coming soon - A wider array of forges, commands and configuration...
INSTALLATION
pip install gitforge
CONFIGURATION
Copy gitforge.example.ini to $HOME/.gitforge.ini and edit to your tastes. It should
be fairly self explantatory...
AUTHENTICATION
Generate a GitHub Personal Access Token here.
Generate a GitLab Personal Access Token here.
OPTIONS
GITHUB
usage: github [-h] [-C PATH] [-r REPO [REPO ...]] [-d DESTINATION]
[-t TOKEN] [-P SSH/HTTP] [-i] [-c GIT COMMAND] [-v]
Clone or pull repos
optional arguments:
-h, --help show this help message and exit
-C PATH, --config PATH
path to azure configuration file
-r REPO [REPO ...], --repos REPO [REPO ...]
github repo names
-d DESTINATION, --destination DESTINATION
destination path
-t TOKEN, --token TOKEN
github personal access token
-P SSH/HTTP, --protocol SSH/HTTP
protocol to use - ssh or http
-i, --interactive choose repos interactively
-c GIT COMMAND, --command GIT COMMAND
git command to run
-v increase verbosity
GITLAB
usage: gitlab [-h] [-C PATH] [-p PROJECT [PROJECT ...] | -g GROUP
[GROUP ...]] [-d DESTINATION] [-t TOKEN] [-P SSH/HTTP] [-i]
[-r GIT COMMAND] [-v]
Clone or pull repos
optional arguments:
-h, --help show this help message and exit
-C PATH, --config PATH
path to azure configuration file
-p PROJECT [PROJECT ...], --projects PROJECT [PROJECT ...]
gitlab project names
-g GROUP [GROUP ...], --groups GROUP [GROUP ...]
gitlab group names
-d DESTINATION, --destination DESTINATION
destination path
-t TOKEN, --token TOKEN
gitlab personal access token
-P SSH/HTTP, --protocol SSH/HTTP
protocol to use - ssh or http
-i, --interactive choose projects interactively
-r GIT COMMAND, --run GIT COMMAND
git command to run
-v increase verbosity
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitforge-0.0.1.tar.gz.
File metadata
- Download URL: gitforge-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3e431c08321872ecba28b998f16c763d2648e0e4acaf6f816b41fa2e29cf12f
|
|
| MD5 |
e11c7e1a4628becfeead72dfd9aee41e
|
|
| BLAKE2b-256 |
ef4f22a418dcfaac21496fc2026a3e2b57ec7af16ee678548172440f7db8e7c8
|
File details
Details for the file gitforge-0.0.1-py3.7.egg.
File metadata
- Download URL: gitforge-0.0.1-py3.7.egg
- Upload date:
- Size: 8.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feae61fd02ef8da7f6cc3ac242fdcebb65834b64c09f0c98c3575c49d0f04b54
|
|
| MD5 |
de77c2c16ec5f2bad58a10c213211d2d
|
|
| BLAKE2b-256 |
4c54c9481b9cfe5e6e8629b41adb7e4e0134e74d03bbd2fe93cf728d92915563
|