Redmine api python примеры

Python-Redmine¶

Python-Redmine is a library for communicating with a Redmine project management application. Redmine exposes some data via REST API for which Python-Redmine provides a simple but powerful Pythonic API inspired by a well-known Django ORM:

>>> from redminelib import Redmine >>> redmine = Redmine(‘http://demo.redmine.org’, username=‘foo’, password=‘bar’) >>> project = redmine.project.get(‘vacation’) >>> project.id 30404 >>> project.identifier ‘vacation’ >>> project.created_on datetime.datetime(2013, 12, 31, 13, 27, 47) >>> project.issues >>> project.issues[0] >>> dir(project.issues[0]) [‘assigned_to’, ‘author’, ‘created_on’, ‘description’, ‘done_ratio’, ‘due_date’, ‘estimated_hours’, ‘id’, ‘priority’, ‘project’, ‘relations’, ‘start_date’, ‘status’, ‘subject’, ‘time_entries’, ‘tracker’, ‘updated_on’] >>> project.issues[0].subject ‘Vacation’ >>> project.issues[0].time_entries

Features¶

  • Supports 100% of Redmine API
  • Supports external Redmine plugins API
  • Supports Python 3.7 — 3.11 and PyPy3
  • Supports different request engines
  • Extendable via custom resources and custom request engines
  • Extensively documented
  • Provides ORM-style Pythonic API
  • And many more…

Contacts and Support¶

Support for Standard Edition is provided via GitHub only, while support for Pro Edition is provided both via GitHub and support @ python-redmine . com. Be sure to write from email that was specified during the purchase procedure.

Python-Redmine Standard Edition is licensed under Apache 2.0 license. Python-Redmine Pro Edition is licensed under the Python-Redmine Pro Edition 1.0 license. Check the License for details.

Table of contents¶

  • Editions
    • Standard Edition
    • Pro Edition
    • Dependencies
    • Standard Edition
      • PyPI
      • GitHub
      • Redmine
      • Parameters
        • Location
        • Version
        • Authentication
        • Impersonation
        • DateTime Formats
        • Timezone
        • Exception Control
        • Connection Options
        • Request Engines
        • Custom Resources
        • Operations
          • create
          • read
          • update
          • delete
          • Introspection
          • Export
          • Refresh
          • Url
          • Limit/Offset
          • Export
          • Methods
          • Attributes
          • Redmine
            • Issue
            • Project
            • Project Membership
            • User
            • Time Entry
            • News
            • Issue Relation
            • Version
            • Wiki Page
            • Query
            • File
            • Attachment
            • Issue Status
            • Tracker
            • Enumeration
            • Issue Category
            • Role
            • Group
            • Custom Field
            • Contact
            • Contact Tag
            • Note
            • Deal
            • Deal Status
            • Deal Category
            • CRM Query
            • Ticket
            • Checklist
            • Invoice
            • Invoice Payment
            • Expense
            • Product
            • Product Category
            • Order
            • Order Status
Оцените статью