nixnet 1.0.0
NI-XNET Python API
License: MIT
Requires Python: <4.0,>=3.9
Keywords: nixnet

===========  =============================================================
Info         Communicate over CAN or LIN via NI-XNET hardware with Python.
Author       NI
===========  =============================================================

.. image:: https://img.shields.io/pypi/v/nixnet.svg
    :target: https://pypi.python.org/pypi/nixnet
    :alt: PyPI

.. image:: https://readthedocs.org/projects/nixnet/badge/?version=latest
    :target: http://nixnet.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation

.. image:: https://img.shields.io/pypi/l/nixnet.svg
    :target: https://github.com/ni/nixnet-python/blob/main/LICENSE
    :alt: License

.. image:: https://img.shields.io/pypi/pyversions/nixnet.svg
    :target: https://pypi.python.org/pypi/nixnet
    :alt: Language versions

.. image:: https://travis-ci.org/ni/nixnet-python.svg?branch=main
    :target: https://travis-ci.org/ni/nixnet-python
    :alt: Build

.. image:: https://coveralls.io/repos/github/ni/nixnet-python/badge.svg?branch=main
    :target: https://coveralls.io/github/ni/nixnet-python?branch=main
    :alt: Unit-test Coverage

.. code-block:: python

   >>> import nixnet
   >>> with nixnet.FrameInStreamSession('CAN1') as input_session:
   >>>     input_session.intf.can_term = constants.CanTerm.ON
   >>>     input_session.intf.baud_rate = 125000

   >>>     frames = input_session.frames.read(count)
   >>>     for frame in frames:
   >>>         print('Received frame:')
   >>>         print(frame)

Quick Start
===========

Running **nixnet** requires NI-XNET or NI-XNET Runtime. Visit the
`ni.com/downloads <http://www.ni.com/downloads/>`__ to download the latest version
of NI-XNET.

**nixnet** can be installed with `pip <http://pypi.python.org/pypi/pip>`__::

  $ python -m pip install nixnet~=1.0.0

Now you should be able to move onto the `Examples <https://github.com/ni/nixnet-python/tree/main/nixnet_examples>`__.

Resources
=========

* `Documentation <http://nixnet.readthedocs.io>`__.
* `Source <https://github.com/ni/nixnet-python>`__.

Product Support
---------------

The **nixnet** package and NI-XNET are supported by NI. For support, open
a request through the NI support portal at `ni.com <http://www.ni.com>`__.

Bugs / Feature Requests
-----------------------

We welcome all kinds of contributions.  If you have a bug to report or a feature
request for **nixnet**, feel free to `open an issue on Github
<https://github.com/ni/nixnet-python/issues>`__ or `contribute the change yourself
<https://github.com/ni/nixnet-python/blob/main/CONTRIBUTING.rst>`__.

Status
======

**nixnet** package is created and maintained by NI.

* The following support is included:
   * CAN and LIN protocol
   * Frames, Signals, and frame/signal conversion
   * Database APIs
   * For a complete list of supported features and functions, see the `documentation <http://nixnet.readthedocs.io>`__.
* See the `enhancement issues <https://github.com/ni/nixnet-python/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement>`__ for potential future work.
* Breaking API changes will be kept to a minimum. If a breaking change is made, it will be planned through
  `breaking-change isssues <https://github.com/ni/nixnet-python/issues?q=is%3Aissue+is%3Aopen+label%3Abreaking-change>`__
  and communicated via `semver <http://semver.org/>`__ and the `release notes <https://github.com/ni/nixnet-python/releases>`__.
* `Known issues <https://github.com/ni/nixnet-python/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`__.

**nixnet** currently supports

* Windows operating system.
* CPython 3.9+ and PyPy3.
* NI-XNET 15.5+

License
=======

**nixnet** is licensed under an MIT-style license (see
`LICENSE <https://github.com/ni/nixnet-python/blob/main/LICENSE>`__).
Other incorporated projects may be licensed under different licenses. All
licenses allow for non-commercial and commercial use.