aiocoap


Nameaiocoap JSON
Version 0.4.7 PyPI version JSON
download
home_pagehttps://christian.amsuess.com/tools/aiocoap/
SummaryPython CoAP library
upload_time2023-04-02 19:18:23
maintainer
docs_urlNone
authorChristian Amsüss and the aiocoap contributors
requires_python>=3.7
licenseMIT
keywords coap asyncio iot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            aiocoap -- The Python CoAP library
==================================

The aiocoap package is an implementation of CoAP, the `Constrained Application
Protocol`_.

It is written in Python 3 using its `native asyncio`_ methods to facilitate
concurrent operations while maintaining an easy to use interface.

.. _`Constrained Application Protocol`: http://coap.technology/
.. _`native asyncio`: https://docs.python.org/3/library/asyncio

Usage
-----

For how to use the aiocoap library, have a look at the guidedtour_, or at
the examples_ and tools_ provided.

A full reference is available in the  `API documentation`_.

All examples can be run directly from a source code copy. If you prefer to
install it, the usual Python mechanisms apply (see installation_).

.. _`API documentation`: http://aiocoap.readthedocs.io/en/latest/api.html

Features / Standards
--------------------

This library supports the following standards in full or partially:

* RFC7252_ (CoAP): Supported for clients and servers. Multicast is supported on
  the server side, and partially for clients. DTLS is supported but experimental,
  and lacking some security properties. No caching is done inside the library.
* RFC7641_ (Observe): Basic support for clients and servers. Reordering,
  re-registration, and active cancellation are missing.
* RFC7959_ (Blockwise): Supported both for atomic and random access.
* RFC8323_ (TCP, WebSockets): Supports CoAP over TCP, TLS, and WebSockets (both
  over HTTP and HTTPS). The TLS parts are server-certificate only;
  preshared, raw public keys and client certificates are not supported yet.
* RFC7967_ (No-Response): Supported.
* RFC8132_ (PATCH/FETCH): Types and codes known, FETCH observation supported.
* RFC9176_: A standalone resource directory
  server is provided along with a library function to register at one. They
  lack support for groups and security considerations, and are generally rather
  simplistic.
* RFC8613_ (OSCORE): Full support client-side; protected servers can be
  implemented based on it but are not automatic yet.
* draft-ietf-core-oscore-groupcomm-17_ (Group OSCORE): Supported for both group
  and pairwise mode in groups that are fully known. (The lack of an implemented
  joining or persistence mechanism makes this impractical for anything but
  experimentation.)

If something described by one of the standards but not implemented, it is
considered a bug; please file at the `github issue tracker`_. (If it's not on
the list or in the excluded items, file a wishlist item at the same location).

.. _RFC7252: https://tools.ietf.org/html/rfc7252
.. _RFC7641: https://tools.ietf.org/html/rfc7641
.. _RFC7959: https://tools.ietf.org/html/rfc7959
.. _RFC7967: https://tools.ietf.org/html/rfc7967
.. _RFC8132: https://tools.ietf.org/html/rfc8132
.. _RFC8323: https://tools.ietf.org/html/rfc8323
.. _RFC8613: https://tools.ietf.org/html/rfc8613
.. _RFC9176: https://tools.ietf.org/html/rfc9176
.. _draft-ietf-core-oscore-groupcomm-17: https://tools.ietf.org/html/draft-ietf-core-oscore-groupcomm-17

Dependencies
------------

Basic aiocoap works out of the box on Python_ 3.7 or newer (also works on
PyPy3_). For full support (DTLS, OSCORE and link-format handling) follow the
installation_ instructions as these require additional libraries.

aiocoap provides different network backends for different platforms. The most
featureful backend is available for Linux, but most operations work on BSDs,
Windows and macOS as well. See the FAQ_ for more details.

If your library depends on aiocoap, it should pick the required extras (as per
installation_) and declare a dependency like ``aiocoap[linkheader,oscore] >= 0.4b2``.

.. _Python: https://www.python.org/
.. _PyPy3: http://pypy.org/
.. _FAQ: http://aiocoap.readthedocs.io/en/latest/faq.html

Development
-----------

aiocoap tries to stay close to PEP8_ recommendations and general best practice,
and should thus be easy to contribute to.

Bugs (ranging from "design goal" and "wishlist" to typos) are currently tracked
in the `github issue tracker`_. Pull requests are welcome there; if you start
working on larger changes, please coordinate on the issue tracker.

Documentation is built using sphinx_ with ``./setup.py build_sphinx``; hacks
used there are described in ``./doc/README.doc``.

Unit tests are implemented in the ``./tests/`` directory and easiest run using
tox_ (though still available through ``./setup.py test`` for the time being);
complete test coverage is aimed for, but not yet complete (and might never be,
as the error handling for pathological network partners is hard to trigger with
a library designed not to misbehave). The tests are regularly run at the `CI
suite at gitlab`_, from where `coverage reports`_ are available.

.. _PEP8: http://legacy.python.org/dev/peps/pep-0008/
.. _sphinx: http://sphinx-doc.org/
.. _`github issue tracker`: https://github.com/chrysn/aiocoap/issues
.. _`CI suite at gitlab`: https://gitlab.com/aiocoap/aiocoap/commits/master
.. _`coverage reports`: https://aiocoap.gitlab.io/aiocoap/
.. _tox: https://tox.readthedocs.io/

Relevant URLs
-------------

* https://github.com/chrysn/aiocoap

  This is where the latest source code can be found, and bugs can be reported.
  Generally, this serves as the project web site.

* http://aiocoap.readthedocs.org/

  Online documentation built from the sources.

* http://coap.technology/

  Further general information on CoAP, the standard documents involved, and
  other implementations and tools available.

Licensing
---------

aiocoap is published under the MIT License, and follows the best practice of `reuse.software`_.
Files in ``aiocoap/util/vendored/`` may have different (but compatible and OSI approved) licenses.

When using aiocoap for a publication, please cite it according to the output of
``./setup.py cite [--bibtex]``.

Copyright Christian Amsüss and the aiocoap contributors.

aiocoap was originally based on txThings_ by Maciej Wasilak.
The full list of aiocoap contributors can be obtained from the version control history.

.. Any filtering by a mailmap would apply, but no need to state that unless we do get a mailmap.

.. _guidedtour: http://aiocoap.readthedocs.io/en/latest/guidedtour.html
.. _examples: http://aiocoap.readthedocs.io/en/latest/examples.html
.. _tools: http://aiocoap.readthedocs.io/en/latest/tools.html
.. _installation: http://aiocoap.readthedocs.io/en/latest/installation.html
.. _`aiocoap module`: http://aiocoap.readthedocs.io/en/latest/module/aiocoap.html
.. _reuse.software: https://reuse.software/
.. _txThings: https://github.com/siskin/txThings

            

Raw data

            {
    "_id": null,
    "home_page": "https://christian.amsuess.com/tools/aiocoap/",
    "name": "aiocoap",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "coap,asyncio,iot",
    "author": "Christian Ams\u00fcss and the aiocoap contributors",
    "author_email": "chrysn@fsfe.org",
    "download_url": "https://files.pythonhosted.org/packages/de/14/843232b56c0f09b2ceddae3da37598d9109c4b1d9383b1ab72232018e9e8/aiocoap-0.4.7.tar.gz",
    "platform": null,
    "description": "aiocoap -- The Python CoAP library\n==================================\n\nThe aiocoap package is an implementation of CoAP, the `Constrained Application\nProtocol`_.\n\nIt is written in Python 3 using its `native asyncio`_ methods to facilitate\nconcurrent operations while maintaining an easy to use interface.\n\n.. _`Constrained Application Protocol`: http://coap.technology/\n.. _`native asyncio`: https://docs.python.org/3/library/asyncio\n\nUsage\n-----\n\nFor how to use the aiocoap library, have a look at the guidedtour_, or at\nthe examples_ and tools_ provided.\n\nA full reference is available in the  `API documentation`_.\n\nAll examples can be run directly from a source code copy. If you prefer to\ninstall it, the usual Python mechanisms apply (see installation_).\n\n.. _`API documentation`: http://aiocoap.readthedocs.io/en/latest/api.html\n\nFeatures / Standards\n--------------------\n\nThis library supports the following standards in full or partially:\n\n* RFC7252_ (CoAP): Supported for clients and servers. Multicast is supported on\n  the server side, and partially for clients. DTLS is supported but experimental,\n  and lacking some security properties. No caching is done inside the library.\n* RFC7641_ (Observe): Basic support for clients and servers. Reordering,\n  re-registration, and active cancellation are missing.\n* RFC7959_ (Blockwise): Supported both for atomic and random access.\n* RFC8323_ (TCP, WebSockets): Supports CoAP over TCP, TLS, and WebSockets (both\n  over HTTP and HTTPS). The TLS parts are server-certificate only;\n  preshared, raw public keys and client certificates are not supported yet.\n* RFC7967_ (No-Response): Supported.\n* RFC8132_ (PATCH/FETCH): Types and codes known, FETCH observation supported.\n* RFC9176_: A standalone resource directory\n  server is provided along with a library function to register at one. They\n  lack support for groups and security considerations, and are generally rather\n  simplistic.\n* RFC8613_ (OSCORE): Full support client-side; protected servers can be\n  implemented based on it but are not automatic yet.\n* draft-ietf-core-oscore-groupcomm-17_ (Group OSCORE): Supported for both group\n  and pairwise mode in groups that are fully known. (The lack of an implemented\n  joining or persistence mechanism makes this impractical for anything but\n  experimentation.)\n\nIf something described by one of the standards but not implemented, it is\nconsidered a bug; please file at the `github issue tracker`_. (If it's not on\nthe list or in the excluded items, file a wishlist item at the same location).\n\n.. _RFC7252: https://tools.ietf.org/html/rfc7252\n.. _RFC7641: https://tools.ietf.org/html/rfc7641\n.. _RFC7959: https://tools.ietf.org/html/rfc7959\n.. _RFC7967: https://tools.ietf.org/html/rfc7967\n.. _RFC8132: https://tools.ietf.org/html/rfc8132\n.. _RFC8323: https://tools.ietf.org/html/rfc8323\n.. _RFC8613: https://tools.ietf.org/html/rfc8613\n.. _RFC9176: https://tools.ietf.org/html/rfc9176\n.. _draft-ietf-core-oscore-groupcomm-17: https://tools.ietf.org/html/draft-ietf-core-oscore-groupcomm-17\n\nDependencies\n------------\n\nBasic aiocoap works out of the box on Python_ 3.7 or newer (also works on\nPyPy3_). For full support (DTLS, OSCORE and link-format handling) follow the\ninstallation_ instructions as these require additional libraries.\n\naiocoap provides different network backends for different platforms. The most\nfeatureful backend is available for Linux, but most operations work on BSDs,\nWindows and macOS as well. See the FAQ_ for more details.\n\nIf your library depends on aiocoap, it should pick the required extras (as per\ninstallation_) and declare a dependency like ``aiocoap[linkheader,oscore] >= 0.4b2``.\n\n.. _Python: https://www.python.org/\n.. _PyPy3: http://pypy.org/\n.. _FAQ: http://aiocoap.readthedocs.io/en/latest/faq.html\n\nDevelopment\n-----------\n\naiocoap tries to stay close to PEP8_ recommendations and general best practice,\nand should thus be easy to contribute to.\n\nBugs (ranging from \"design goal\" and \"wishlist\" to typos) are currently tracked\nin the `github issue tracker`_. Pull requests are welcome there; if you start\nworking on larger changes, please coordinate on the issue tracker.\n\nDocumentation is built using sphinx_ with ``./setup.py build_sphinx``; hacks\nused there are described in ``./doc/README.doc``.\n\nUnit tests are implemented in the ``./tests/`` directory and easiest run using\ntox_ (though still available through ``./setup.py test`` for the time being);\ncomplete test coverage is aimed for, but not yet complete (and might never be,\nas the error handling for pathological network partners is hard to trigger with\na library designed not to misbehave). The tests are regularly run at the `CI\nsuite at gitlab`_, from where `coverage reports`_ are available.\n\n.. _PEP8: http://legacy.python.org/dev/peps/pep-0008/\n.. _sphinx: http://sphinx-doc.org/\n.. _`github issue tracker`: https://github.com/chrysn/aiocoap/issues\n.. _`CI suite at gitlab`: https://gitlab.com/aiocoap/aiocoap/commits/master\n.. _`coverage reports`: https://aiocoap.gitlab.io/aiocoap/\n.. _tox: https://tox.readthedocs.io/\n\nRelevant URLs\n-------------\n\n* https://github.com/chrysn/aiocoap\n\n  This is where the latest source code can be found, and bugs can be reported.\n  Generally, this serves as the project web site.\n\n* http://aiocoap.readthedocs.org/\n\n  Online documentation built from the sources.\n\n* http://coap.technology/\n\n  Further general information on CoAP, the standard documents involved, and\n  other implementations and tools available.\n\nLicensing\n---------\n\naiocoap is published under the MIT License, and follows the best practice of `reuse.software`_.\nFiles in ``aiocoap/util/vendored/`` may have different (but compatible and OSI approved) licenses.\n\nWhen using aiocoap for a publication, please cite it according to the output of\n``./setup.py cite [--bibtex]``.\n\nCopyright Christian Ams\u00fcss and the aiocoap contributors.\n\naiocoap was originally based on txThings_ by Maciej Wasilak.\nThe full list of aiocoap contributors can be obtained from the version control history.\n\n.. Any filtering by a mailmap would apply, but no need to state that unless we do get a mailmap.\n\n.. _guidedtour: http://aiocoap.readthedocs.io/en/latest/guidedtour.html\n.. _examples: http://aiocoap.readthedocs.io/en/latest/examples.html\n.. _tools: http://aiocoap.readthedocs.io/en/latest/tools.html\n.. _installation: http://aiocoap.readthedocs.io/en/latest/installation.html\n.. _`aiocoap module`: http://aiocoap.readthedocs.io/en/latest/module/aiocoap.html\n.. _reuse.software: https://reuse.software/\n.. _txThings: https://github.com/siskin/txThings\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python CoAP library",
    "version": "0.4.7",
    "split_keywords": [
        "coap",
        "asyncio",
        "iot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3da2f8d9341e727eddf46654f262be4bd33af044f0866c8905ade7938b76a2a6",
                "md5": "047bf8efb162f776ab1c5653af041304",
                "sha256": "11fc3a72405a8d35914de0dd5f58c3b3193d249e5c0fcbb895d4225354b44e56"
            },
            "downloads": -1,
            "filename": "aiocoap-0.4.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "047bf8efb162f776ab1c5653af041304",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 208388,
            "upload_time": "2023-04-02T19:18:19",
            "upload_time_iso_8601": "2023-04-02T19:18:19.682070Z",
            "url": "https://files.pythonhosted.org/packages/3d/a2/f8d9341e727eddf46654f262be4bd33af044f0866c8905ade7938b76a2a6/aiocoap-0.4.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de14843232b56c0f09b2ceddae3da37598d9109c4b1d9383b1ab72232018e9e8",
                "md5": "baebbc38bc8db31472c438521f7121e3",
                "sha256": "90f3bcaffd454f5421d3ad55ddbe3fe10a686d4b9f3c4445d427b130493a96a4"
            },
            "downloads": -1,
            "filename": "aiocoap-0.4.7.tar.gz",
            "has_sig": false,
            "md5_digest": "baebbc38bc8db31472c438521f7121e3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 265972,
            "upload_time": "2023-04-02T19:18:23",
            "upload_time_iso_8601": "2023-04-02T19:18:23.199464Z",
            "url": "https://files.pythonhosted.org/packages/de/14/843232b56c0f09b2ceddae3da37598d9109c4b1d9383b1ab72232018e9e8/aiocoap-0.4.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-02 19:18:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "aiocoap"
}
        
Elapsed time: 0.05249s