Blame doc/api.rst

Packit 6f3914
..
Packit 6f3914
  Copyright (C) 2014-2018 Red Hat, Inc.
Packit 6f3914
Packit 6f3914
  This copyrighted material is made available to anyone wishing to use,
Packit 6f3914
  modify, copy, or redistribute it subject to the terms and conditions of
Packit 6f3914
  the GNU General Public License v.2, or (at your option) any later version.
Packit 6f3914
  This program is distributed in the hope that it will be useful, but WITHOUT
Packit 6f3914
  ANY WARRANTY expressed or implied, including the implied warranties of
Packit 6f3914
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
Packit 6f3914
  Public License for more details.  You should have received a copy of the
Packit 6f3914
  GNU General Public License along with this program; if not, write to the
Packit 6f3914
  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Packit 6f3914
  02110-1301, USA.  Any Red Hat trademarks that are incorporated in the
Packit 6f3914
  source code or documentation are not subject to the GNU General Public
Packit 6f3914
  License and may only be used or replicated with the express permission of
Packit 6f3914
  Red Hat, Inc.
Packit 6f3914
Packit 6f3914
###################
Packit 6f3914
 DNF API Reference
Packit 6f3914
###################
Packit 6f3914
Packit 6f3914
.. contents::
Packit 6f3914
Packit 6f3914
==============
Packit 6f3914
 Introduction
Packit 6f3914
==============
Packit 6f3914
Packit 6f3914
The provided Python API to DNF is supposed to mainly allow writing the following two categories of programs:
Packit 6f3914
Packit 6f3914
1. :doc:`plugins <api_plugins>` to DNF which extend functionality of the system's DNF installation.
Packit 6f3914
2. extension applications that embed DNF (by importing its Python modules) to perform specific package management tasks.
Packit 6f3914
Packit 6f3914
Please refer to the :doc:`use_cases` where you can find examples of API usage.
Packit 6f3914
Packit 6f3914
.. NOTE::
Packit 6f3914
Packit 6f3914
  The API consists of exactly those elements described in this document, items not documented here can change release to release. Opening a `bugzilla`_ if certain needed functionality is not exposed is the right thing to do.
Packit 6f3914
Packit 6f3914
============
Packit 6f3914
 Versioning
Packit 6f3914
============
Packit 6f3914
Packit 6f3914
DNF follows the Semantic Versioning as defined at http://semver.org/.
Packit 6f3914
Packit 6f3914
This basically means that if your piece of software depends on e.g. DNF 1.1, the requirement can be specified as ``1.1 <= dnf < 2``. In other words, you can be sure that your software will be API-compatible with any later release of DNF until the next major version is issued. The same applies for the CLI compatibility.
Packit 6f3914
Packit 6f3914
.. _deprecating-label:
Packit 6f3914
Packit 6f3914
Incompatible API changes are subject to our deprecation policy. Deprecated API items (classes, methods, etc.) are designated as such in the :doc:`release_notes`. The first release where support for such items can be dropped entirely must have, relative to the deprecating release, a higher major version number. DNF will log a warning when a deprecated item is used.
Packit 6f3914
Packit 6f3914
===========
Packit 6f3914
 Contents
Packit 6f3914
===========
Packit 6f3914
Packit 6f3914
API Documentation Contents
Packit 6f3914
Packit 6f3914
.. toctree::
Packit 6f3914
  :maxdepth: 2
Packit 6f3914
Packit 6f3914
  api_common
Packit 6f3914
  api_base
Packit 6f3914
  api_exceptions
Packit 6f3914
  api_conf
Packit 6f3914
  api_repos
Packit 6f3914
  api_sack
Packit 6f3914
  api_queries
Packit 6f3914
  api_selector
Packit 6f3914
  api_package
Packit 6f3914
  api_transaction
Packit 6f3914
  api_comps
Packit 6f3914
  api_plugins
Packit 6f3914
  api_callback
Packit 6f3914
  api_rpm
Packit 6f3914
  api_cli
Packit 6f3914
  api_module
Packit 6f3914
Packit 6f3914
Indices:
Packit 6f3914
Packit 6f3914
* :ref:`genindex`