Skip to main content

Python client library for JIRA API

Project description

py-jira

A Python client library for JIRA API that provides easy-to-use interfaces for interacting with Atlassian JIRA instances.

Installation

Install from GitHub

⚠️ Important: Replace codegen-sh/py-jira with your actual GitHub username and repository name in the commands below.

You can install this package directly from GitHub using pip or uv:

# Using pip
pip install git+https://github.com/codegen-sh/py-jira.git

# Using uv
uv add git+https://github.com/codegen-sh/py-jira.git

Install specific version or branch

# Install specific tag/version
pip install git+https://github.com/codegen-sh/py-jira.git@v0.1.0

# Install from specific branch
pip install git+https://github.com/codegen-sh/py-jira.git@main

Install with optional dependencies

# Install with development dependencies
pip install "git+https://github.com/codegen-sh/py-jira.git[dev]"

Usage

from jira_client import ApiClient, Configuration
from jira_client.api.issues_api import IssuesApi

# Configure the client
config = Configuration()
config.host = "https://code-gen.atlassian.net"
# Add authentication configuration as needed

# Initialize the client
api_client = ApiClient(configuration=config)
issues_api = IssuesApi(api_client)

# Use the API
# issues = issues_api.search_for_issues_using_jql(jql="project = TEST")

Package Structure

This package includes:

  • Complete JIRA REST API client generated from OpenAPI specifications
  • Type hints support (py.typed file included)
  • All JIRA API endpoints and models
  • Configurable authentication and connection settings

Dependencies

The package has minimal runtime dependencies:

  • urllib3>=1.25.3 - HTTP client
  • pydantic>=2.0.0 - Data validation
  • python-dateutil>=2.8.0 - Date parsing utilities

Development

To set up the development environment:

# Clone the repository
git clone https://github.com/codegen-sh/py-jira.git
cd py-jira

# Install with development dependencies
uv sync --dev

# Run tests
pytest

# Run linting
ruff check .

# Run type checking
mypy .

# Build the package
uv build

Configuration for Publishing

If you want to use this package in your projects, make sure to:

  1. Update the GitHub URLs in pyproject.toml:

    • Replace codegen-sh with your actual GitHub username
    • Update the repository name if different
  2. Update author information in pyproject.toml:

    • Replace the placeholder name and email with your details
  3. Create a proper README with usage examples specific to your implementation

  4. Tag releases for version management:

    git tag v0.1.0
    git push origin v0.1.0
    

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

py_jira_client-0.1.0.tar.gz (644.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_jira_client-0.1.0-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file py_jira_client-0.1.0.tar.gz.

File metadata

  • Download URL: py_jira_client-0.1.0.tar.gz
  • Upload date:
  • Size: 644.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for py_jira_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93bc3de1224562d4c1b01761d4ef29f09045c0959d4de1f949dba5d4196c548d
MD5 34e1212e9d1095437e0774ed6c42c8b6
BLAKE2b-256 1b2de84f3d70d3fe0a7deb7e9a64850e3a1443446b962117ee304d7132993f97

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_jira_client-0.1.0.tar.gz:

Publisher: release.yml on codegen-sh/py-jira

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_jira_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_jira_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for py_jira_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4103bc9d5b148625f9eb036b52d7953fa60944fcff5f45d263f3da1c555fd087
MD5 6197a2c5bebfac14af002a8a7a089e2f
BLAKE2b-256 c93d95577e10715458176ce417de41a94e0788e2d6c6cda26659ba28d78a67d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_jira_client-0.1.0-py3-none-any.whl:

Publisher: release.yml on codegen-sh/py-jira

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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