Release v0.1.1 (What’s new?).

Documentation Status https://github.com/MacHu-GWU/sanhe_atlassian_sdk-project/actions/workflows/main.yml/badge.svg https://codecov.io/gh/MacHu-GWU/sanhe_atlassian_sdk-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/sanhe-atlassian-sdk.svg https://img.shields.io/pypi/l/sanhe-atlassian-sdk.svg https://img.shields.io/pypi/pyversions/sanhe-atlassian-sdk.svg https://img.shields.io/badge/✍️_Release_History!--None.svg?style=social&logo=github https://img.shields.io/badge/⭐_Star_me_on_GitHub!--None.svg?style=social&logo=github
https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to sanhe_atlassian_sdk Documentation

https://sanhe-atlassian-sdk.readthedocs.io/en/latest/_static/sanhe_atlassian_sdk-logo.png

sanhe_atlassian_sdk is a lightweight foundational library for interacting with Atlassian REST APIs. It provides a unified HTTP client with both synchronous and asynchronous support, serving as the base layer for product-specific SDKs.

About

This library is designed as a low-level foundation that handles common concerns for Atlassian API interactions:

  • Unified HTTP Client: Built on httpx for modern, high-performance HTTP operations

  • Sync and Async Support: Seamlessly switch between synchronous and asynchronous request patterns based on your application needs

  • Authentication: Built-in HTTP Basic Authentication for Atlassian Cloud APIs

  • Pydantic Integration: Uses Pydantic for robust configuration validation

Product-Specific SDKs: This library serves as the foundation for higher-level SDKs that provide product-specific functionality:

  • sanhe_confluence_sdk - Confluence Cloud API operations (coming soon)

  • sanhe_jira_sdk - Jira Cloud API operations (coming soon)

Usage

from sanhe_atlassian_sdk import Atlassian

# Initialize the client
client = Atlassian(
    url="https://your-domain.atlassian.net",
    username="your-email@example.com",
    password="your-api-token",  # Use API token, not your account password
)

# Use the synchronous client
response = client.sync_client.get(
    f"{client.url}/wiki/api/v2/spaces",
)

# Or use the asynchronous client
async def fetch_spaces():
    response = await client.async_client.get(
        f"{client.url}/wiki/api/v2/spaces",
    )
    return response.json()

Note: For Atlassian Cloud, you should use an API token as the password, not your account password.

Install

sanhe_atlassian_sdk is released on PyPI, so all you need is to:

$ pip install sanhe-atlassian-sdk

To upgrade to latest version:

$ pip install --upgrade sanhe-atlassian-sdk

Table of Content

About the Author

(\ (\
( -.-)o
o_(")(")

Sanhe Hu is a seasoned software engineer with a deep passion for Python development since 2010. As an author and maintainer of 150+ open-source Python projects, with over 15 million monthly downloads, I bring a wealth of experience to the table. As a Senior Solution Architect and Subject Matter Expert in AI, Data, Amazon Web Services, Cloud Engineering, DevOps, I thrive on helping clients with platform design, enterprise architecture, and strategic roadmaps.

Talk is cheap, show me the code:

API Document