Skip to main content

A lazy Jira library for lazy developers

Project description

Jira Lazy

A lazy library for lazy developers.

Example usage:

from jira_lazy import Session, issue_search

auth = "email@example.com", "<token>"
session = Session("https://your-domain.atlassian.net", auth)

for issue in issue_search(session, "project=XMPL"):
    print(issue["key"])

What's the interface?

Session(
    self,
    base_url: str,
    basic_auth: tuple[str, str],
    version: str = "2")

Returns an object that stores connection data and manages requests.

issue_search(
    session: Session,
    jql: str,
    startAt: int = 0,
    maxResults: int = 100,
    fields: list[str]|None = None,
    expand: str = "",
    properties: list[str]|None = None,
    fieldsByKeys: bool = False) -> CollectionEndpoint

Performs JQL-based issue search. Returns an iterable of issues, as dictionaries.

issue_changelog(
    session: Session,
    issue_id: str,
    startAt: int = 0,
    maxResults: int = 100) -> CollectionEndpoint

Fetches the changelog for the given issue ID. Returns an iterable of changelog entries as dictionaries.

Currently, these are the only functions implemented as part of the public interface.

Don't I have to do pagination stuff though?

No.

Does it fetch all the pages at once?

No.

You haven't added a function for an endpoint I need, how do I write my own?

Use jira_lazy.collection_endpoint.CollectionEndpoint.

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

jira_lazy-0.0.1.tar.gz (14.9 MB view details)

Uploaded Source

Built Distribution

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

jira_lazy-0.0.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file jira_lazy-0.0.1.tar.gz.

File metadata

  • Download URL: jira_lazy-0.0.1.tar.gz
  • Upload date:
  • Size: 14.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for jira_lazy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 de5bec601ccec6c1632f2a2dfcba6ec6226e0d6b3ba24a6c0e7050e09fcd247c
MD5 52bb4595f0e5c61a7ffa84c303f776df
BLAKE2b-256 6f00840e01649f7c6cf2f3f372413537980ac9b6bce546aaccabfffb28c18109

See more details on using hashes here.

File details

Details for the file jira_lazy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: jira_lazy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for jira_lazy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c34bf40bc1dcd6461b67dc6e8780a044ea5805f828e4a9746eb3c9c02cf2e6f
MD5 23e7b20e1e5156736042bf7fd21b1c99
BLAKE2b-256 19716a77858fc81b2762da8e12fc5ebd5a86b7a6cc83f9c5606eea92605bf44e

See more details on using hashes here.

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