Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thoth-sourcemanagement-0.2.9.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

thoth_sourcemanagement-0.2.9-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

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