Skip to main content

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')

Or if you want to use the application to interact as a Github Application -

# Service type you want to use
service_type = ServiceType.GITHUB
sm = SourceManagement(service_type=service_type, service_url='https://www.github.com', token=None, slug="username/repo_name", installation=True)
The environment variables that need to be set are -
  • GITHUB_PRIVATE_KEY_PATH - The path where the private key is located.

  • GITHUB_APP_ID - The Application ID of the Github app.

You could then call all the functions offered by the Source Management class.

Release files for thoth-sourcemanagement 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thoth-sourcemanagement 0.4.3
File Size Uploaded
thoth-sourcemanagement-0.4.3.tar.gz 36.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thoth-sourcemanagement 0.4.3
File Interpreter ABI Platform
thoth_sourcemanagement-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 58.6 kB

Release files / thoth-sourcemanagement-0.4.3.tar.gz

Download URL thoth-sourcemanagement-0.4.3.tar.gz
Size 36.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ba4ace37c336e0e6ac409df53d8ff47f79e82c9cfb4afe66b46a8154dec829fd
BLAKE2b-256 checksum
How to use checksums
7e71ea74db2106e8192df2f149ca85261ec02ae3a698fa8fdeea321d01b44010
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

Release files / thoth_sourcemanagement-0.4.3-py3-none-any.whl

Download URL thoth_sourcemanagement-0.4.3-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1847070c8321988b8494abe660a2d5baf2818230b8e5162ea220e1c5d57f0bbb
BLAKE2b-256 checksum
How to use checksums
07f56f4435e1a26e9569581572c5c9f18f8d9a24ae3adb68862461bed0126c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page