$npx skillfedfor your agent

aiocoap

Python CoAP library

With conditionsPyPI Python ModulesReleased Nov 2025232.4K downloads / moMIT AND BSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — aiocoap-0.4.17-py3-none-any.whl
v0.4.17 · released 2025-11-05 · Python >=3.10

Yes, if you need to communicate with CoAP devices or build CoAP services. The library is production-stable, has no dependencies, and covers most CoAP standards. Maintenance is aging (282 days since last release), so check the issue tracker for your specific use case. Avoid if you require production-grade DTLS or client certificates, which are not yet fully supported.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or newer.
  • Full feature support (DTLS, OSCORE, link-format handling) requires additional libraries per installation instructions.
  • Low install friction with no runtime dependencies.

License · maintenance · safety

MIT AND BSD-3-Clause (permissive) — Published under MIT and BSD-3-Clause (permissive licenses). Files in vendored utilities may carry compatible OSI-approved licenses. No restrictions on commercial or proprietary use.

last release 2025-11-05 (282 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 232,386 downloads/mo, #9,070 on PyPI

Verify before relying

pip install aiocoap

import asyncio
from aiocoap import *

async def main():
    context = await Context.create_client_context()
    request = Message(code=GET, uri='coap://example.com/resource')
    response = await context.request(request).response
    print(response.payload)

asyncio.run(main())
  • Whether experimental DTLS and EDHOC support are production-ready for security-critical applications
  • Current state of missing RFC7641 (Observe) features: reordering, re-registration, active cancellation
  • Whether Group OSCORE implementation is suitable beyond experimentation without joining/persistence mechanisms
Same gist for agents: .md · .json

What it is and what it does

aiocoap is a production-grade implementation of the CoAP protocol for Python 3.10+, designed to let developers build applications that communicate with constrained, network-enabled devices typical in IoT deployments. It uses Python's native asyncio to handle concurrent operations while keeping the interface straightforward. The library supports most CoAP standards including RFC7252 (core CoAP), blockwise transfer, observe notifications, OSCORE encryption, and CoAP over TCP/WebSockets, though some features like DTLS and EDHOC remain experimental.

The package has no runtime dependencies and installs cleanly on Linux, BSD, Windows, and macOS, though Linux offers the most complete network backend. It comes with examples, tools, and comprehensive documentation. Development is tracked on Codeberg with a focus on standards compliance—unimplemented features from supported RFCs are treated as bugs. The library is suitable for both client and server implementations, with multicast support on the server side and partial support for clients.

Use it for

  • Build IoT gateway or bridge applications that translate between CoAP devices and other network protocols
  • Implement CoAP servers for resource-constrained embedded systems that need to expose sensor data or accept commands
  • Create monitoring or management tools that query multiple CoAP endpoints concurrently using asyncio
  • Develop secure CoAP applications using OSCORE encryption for authenticated, confidential device communication
  • Test and debug CoAP implementations or devices using the provided command-line tools and library functions

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to communicate with CoAP devices or build CoAP services.

The library is production-stable, has no dependencies, and covers most CoAP standards. Maintenance is aging (282 days since last release), so check the issue tracker for your specific use case. Avoid if you require production-grade DTLS or client certificates, which are not yet fully supported.

Install

aiocoap on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance status is aging (282 days since last release), but the package has been in production since 2014 and remains actively tracked.

Requires Python 3.10 or newer. Full feature support (DTLS, OSCORE, link-format handling) requires additional libraries per installation instructions.

License in practice

Published under MIT and BSD-3-Clause (permissive licenses). Files in vendored utilities may carry compatible OSI-approved licenses. No restrictions on commercial or proprietary use.

Quickstart

pip install aiocoap

import asyncio
from aiocoap import *

async def main():
    context = await Context.create_client_context()
    request = Message(code=GET, uri='coap://example.com/resource')
    response = await context.request(request).response
    print(response.payload)

asyncio.run(main())

Verify before relying

  • Whether experimental DTLS and EDHOC support are production-ready for security-critical applications
  • Current state of missing RFC7641 (Observe) features: reordering, re-registration, active cancellation
  • Whether Group OSCORE implementation is suitable beyond experimentation without joining/persistence mechanisms

Package facts

LicenseMIT AND BSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 282 days since the last release
First released
Downloads232,386 / month, #9,070 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: AsyncIOIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: InternetTopic :: SecurityTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Networking

Evidence: aiocoap-0.4.17-py3-none-any.whl

Tags

Capabilities
coap protocol pythoniot device communicationasyncio coap clientembedded device networkingconstrained application protocolcoap server implementationiot messaging library
Topics
iot-networkingasyncio-nativestandards-compliant
PyPI keywords
coapasyncioiot

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “coap protocol python”

  • aiocoapaiocoap is a Python library for writing CoAP (Constrained Application…
  • aioshellyAsynchronous Python library for controlling Shelly smart home devices…
  • aiohomekitAn asyncio-based HomeKit client library for controlling HomeKit…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also aioshelly · aiortc · awsiotsdk · azure-iot-device · aioauth · aioimaplib · ws4py · velbus-aio · aioftp · pyimouapi