Skip to main content

Python client library for Polarion REST API

Project description

Polarion REST API Python Client

Python client library for Polarion REST API, providing easy access to all Polarion endpoints.

Features

  • Full coverage of Polarion REST API endpoints
  • Type hints for better IDE support
  • Comprehensive error handling
  • Easy authentication management using bearer token
  • Well-documented API

Installation

pip install polarion-rest-api

For development:

pip install polarion-rest-api[dev]

Quick Start

from polarion_rest_api import PolarionRestApi

# Initialize the API client using a bearer token
api = PolarionRestApi(
    base_url="https://your-polarion-instance.com/polarion/rest/v1",
    token="your_bearer_token"
)

# Get a project
response = api.projects.get_project(project_id="myproject")
print(response.json())

# Get test records
response = api.test_records.get_test_records(
    project_id="myproject",
    test_run_id="test-run-1"
)
print(response.json())

Available Modules

The library provides access to the following Polarion API modules:

  • collections: Collections operations
  • document_attachments: Document Attachments operations
  • document_comments: Document Comments operations
  • document_parts: Document Parts operations
  • documents: Documents operations
  • enumerations: Enumerations operations
  • externally_linked_work_items: Externally Linked Work Items operations
  • feature_selections: Feature Selections operations
  • icons: Icons operations
  • jobs: Jobs operations
  • linked_oslc_resources: Linked OSLC Resources operations
  • linked_work_items: Linked Work Items operations
  • page_attachments: Page Attachments operations
  • pages: Pages operations
  • plans: Plans operations
  • project_templates: Project Templates operations
  • projects: Projects operations
  • revisions: Revisions operations
  • roles: Roles operations
  • test_record_attachments: Test Record Attachments operations
  • test_records: Test Records operations
  • test_run_attachments: Test Run Attachments operations
  • test_run_comments: Test Run Comments operations
  • test_runs: Test Runs operations
  • test_step_result_attachments: Test Step Result Attachments operations
  • test_step_results: Test Step Results operations
  • test_steps: Test Steps operations
  • user_groups: User Groups operations
  • users: Users operations
  • work_item_approvals: Work Item Approvals operations
  • work_item_attachments: Work Item Attachments operations
  • work_item_comments: Work Item Comments operations
  • work_item_work_records: Work Item Work Records operations
  • work_items: Work Items operations

Requirements

  • Python >= 3.7
  • requests >= 2.25.0

Development

Setup Development Environment

git clone https://github.com/yourusername/polarion-rest-api.git
cd polarion-rest-api
pip install -e .[dev]

Run Tests

pytest tests/

License

MIT License

Contributing

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

Support

For issues and questions, please use the GitHub issue tracker.

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

polarion_rest_api-1.0.0.tar.gz (34.7 kB view details)

Uploaded Source

Built Distribution

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

polarion_rest_api-1.0.0-py3-none-any.whl (76.7 kB view details)

Uploaded Python 3

File details

Details for the file polarion_rest_api-1.0.0.tar.gz.

File metadata

  • Download URL: polarion_rest_api-1.0.0.tar.gz
  • Upload date:
  • Size: 34.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.19

File hashes

Hashes for polarion_rest_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d4ca497c3b6546a420dfdae7a61344e8d06fa43f72a6454ac36a74d9ad86ab5d
MD5 12e0000d67c0f691f030d7ee4c623e8f
BLAKE2b-256 3a444d3497b9a1d28c88f552821243fdb3f6b73eebbf6f1f7868f4c8c31259d2

See more details on using hashes here.

File details

Details for the file polarion_rest_api-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for polarion_rest_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c8631986c65fd1b6c2f4cda888cc4b23112583b40bf4eb930624d49d96cdcd
MD5 4896890717a756e87fac7b24787ecc7e
BLAKE2b-256 7ea293fcc61e2d9b4bb1e7cfdd6e30ea948bf48eb656514b4715c6e2a2b142b2

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