Metadata-Version: 2.1
Name: thoth-sourcemanagement
Version: 0.3.0
Summary: This package helps thoth app's interact with git forges like Github, Gitlab.
Home-page: https://github.com/thoth-station/source-management
Author: Sai Sankar Gochhayat
Author-email: saisankargochhayat@gmail.com
License: GPLv3+
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Requires-Dist: ogr
Requires-Dist: requests
Requires-Dist: delegator.py

Thoth's Source Management
=========================

This library provides abstraction that allow's
`thoth <https://thoth-station.ninja/>`__ 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 <https://pypi.org/project/thoth-sourcemanagement>`__, so the
latest release can be installed via pip or
`Pipenv <https://pipenv.readthedocs.io>`__ as shown below:

``pipenv install thoth-sourcemanagement``

How to use -
------------

.. code:: python

    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.


