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.1.tar.gz (34.9 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.1-py3-none-any.whl (76.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polarion_rest_api-0.1.1.tar.gz
  • Upload date:
  • Size: 34.9 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.1.tar.gz
Algorithm Hash digest
SHA256 dbe34360f50ba56fea12a70cd4756b654a1e5da89288f1ff66d039754b648e26
MD5 0944a432c6df749ea2132877da4ac2d7
BLAKE2b-256 6682abed5bb35fd154d37ba8213f41abdc017a5adc4414b7edcd541a66084f9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polarion_rest_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c72c972a9613e1705ea68d6c63753492f81d16efb92f4647c48e1bf6a7fa6503
MD5 01ea4807c422512120c39d747036bd88
BLAKE2b-256 508eb5e56d20547be6e64d63e51ec2264d218f9f57ebc847998ab4a40d7f6ddd

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