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
  • 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
api = PolarionRestApi(
    base_url="https://your-polarion-instance.com/polarion/rest/v1",
    username="your_username",
    password="your_password"
)

# 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-0.1.0.tar.gz (36.3 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-0.1.0-py3-none-any.whl (76.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polarion_rest_api-0.1.0.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for polarion_rest_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41cab62906d860014f80be3a8c6411ab2af4927ba6f658127efc8c4c2f1b9682
MD5 d23b4a183eb44435d8123ff392ae930f
BLAKE2b-256 ed1dd0901eed90748cc7d92060a3fc44ca0cf992bef2453713783d126179e259

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polarion_rest_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a50721af04a91a1408afe8fda50996aa9526847abc393b98080f04bb0320a0d2
MD5 bb35d9f9008c06c8df81a1eb740156c2
BLAKE2b-256 124fffa3ba32ac97f2781aa7a512bedc1ac05d25bcdc488be56f58e5141eef25

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