Softreck Shared Integrations
Common integration components for the Softreck ecosystem.
Overview
This package provides shared interfaces and implementations for:
- Ticket management systems (Jira, GitHub, GitLab)
- Project management backends
- Issue tracking platforms
Installation
pip install softreck-shared
Usage
Base Interfaces
from softreck_shared.integrations import PMBackend, TicketRef, TicketStatus
# Implement a custom backend
class MyBackend(PMBackend):
def create_ticket(self, title: str, body: str, **kwargs) -> TicketRef:
# Implementation
pass
def update_ticket(self, ticket_id: str, **kwargs) -> None:
# Implementation
pass
Generic Backend
from softreck_shared.integrations import GenericBackend
# Use with any REST API
backend = GenericBackend(
base_url="https://api.example.com",
api_key="your-api-key"
)
# Create a ticket
ticket = backend.create_ticket(
title="Bug fix",
body="Fix the login issue",
labels=["bug", "urgent"],
priority="high"
)
Platform-Specific Backends
Install with optional dependencies:
# For Jira
pip install softreck-shared[jira]
# For GitHub
pip install softreck-shared[github]
# For GitLab
pip install softreck-shared[gitlab]
# Or all at once
pip install softreck-shared[all]
from softreck_shared.integrations import JiraBackend, GitHubBackend, GitLabBackend
# Jira
jira = JiraBackend(
server="https://company.atlassian.net",
username="user@example.com",
api_key="your-api-key"
)
# GitHub
github = GitHubBackend(
token="github-token",
repo="owner/repo"
)
# GitLab
gitlab = GitLabBackend(
url="https://gitlab.com",
token="gitlab-token"
)
Architecture
The shared integrations follow a protocol-based design:
PMBackend- Protocol defining the interfaceTicketRef- Reference to a created/updated ticketTicketStatus- Status information for a ticketGenericBackend- HTTP-based implementation for REST APIs
Contributing
When adding new platform integrations:
- Implement the
PMBackendprotocol - Add platform-specific optional dependencies
- Include comprehensive error handling
- Add type hints for all public methods
- Write tests for the implementation
License
Apache License 2.0
Metadata
Release files for softreck-shared 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| softreck_shared-0.1.2.tar.gz | 7.4 kB | Without provenance | Details for softreck_shared-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| softreck_shared-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for softreck_shared-0.1.2-py3-none-any.whl |
Total release size: 14.8 kB
Security for softreck-shared 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.