{"library":"python-redmine","title":"Python Redmine Library","description":"Python-Redmine is a comprehensive library for programmatic interaction with the Redmine project management application. It allows users to manage issues, projects, users, and other Redmine resources through a Pythonic interface. The current version is 2.5.0, with new releases typically coming a few times a year, often including support for RedmineUP's Pro Edition plugins.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install python-redmine"],"cli":null},"imports":["from redminelib import Redmine","from redminelib.exceptions import RedmineError"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom redminelib import Redmine\nfrom redminelib.exceptions import ResourceNotFoundError\n\n# Replace with your Redmine URL and API Key\nREDMINE_URL = os.environ.get('REDMINE_URL', 'http://localhost:3000')\nREDMINE_API_KEY = os.environ.get('REDMINE_API_KEY', 'YOUR_API_KEY_HERE')\n\ntry:\n    redmine = Redmine(REDMINE_URL, key=REDMINE_API_KEY)\n    \n    # Get current user\n    me = redmine.user.get('current')\n    print(f\"Connected to Redmine as: {me.firstname} {me.lastname} ({me.login})\")\n\n    # Get a list of projects\n    projects = redmine.project.all(limit=5)\n    print(\"\\nFirst 5 Projects:\")\n    for project in projects:\n        print(f\" - {project.name} (ID: {project.id})\")\n        \n    # Try to get a specific issue\n    try:\n        issue = redmine.issue.get(1)\n        print(f\"\\nIssue #1: {issue.subject} (Status: {issue.status.name})\")\n    except ResourceNotFoundError:\n        print(\"\\nIssue #1 not found.\")\n\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")","lang":"python","description":"This quickstart connects to a Redmine instance using an API key, fetches information about the current user, lists the first five projects, and attempts to retrieve a specific issue by ID. Ensure you have your Redmine URL and API key configured.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}