This package helps thoth app's interact with git forges like Github, Gitlab.
Project description
This library provides abstraction that allow’s thoth to interact with various source management systems. We use OGR underneath to interact with git forges.
Install
Use pipenv - This project is released on PyPI, so the latest release can be installed via pip or Pipenv as shown below:
pipenv install thoth-sourcemanagement
How to use -
from thoth.sourcemanagement.sourcemanagement import SourceManagement
from thoth.sourcemanagement.enums import ServiceType
# Service type you want to use
service_type = ServiceType.GITHUB
sm = SourceManagement(service_type, 'https://www.github.com', `private_token', 'username/repo_name')
You could then call all the functions offered by the Source Management class.
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
File details
Details for the file thoth-sourcemanagement-0.2.9.tar.gz
.
File metadata
- Download URL: thoth-sourcemanagement-0.2.9.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/36.5.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | becfc2aa7ac0b53af1e31a7628bbec442369af7368b9095ca715cf3c6b26e002 |
|
MD5 | 6c7eeb40f3c3256b3bfc09a78e07a896 |
|
BLAKE2b-256 | e6794befcf78be9f124e935ee768e910cf0feec60779266d285e5a3bed8d0826 |
File details
Details for the file thoth_sourcemanagement-0.2.9-py3-none-any.whl
.
File metadata
- Download URL: thoth_sourcemanagement-0.2.9-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/36.5.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3319187905c6744801f00b4e2f8d406ccfae6f373f36c6a4aa5525b05b5959a5 |
|
MD5 | c9856f838f2693c82cedd1fd8145f906 |
|
BLAKE2b-256 | d9c128de48601adc01fdca02f66d78ba1efd11e12ba6f1c6d53786f2b79520ef |