Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

HTTP Server for CircuitPython.

  • Supports socketpool or socket as a source of sockets; can be used in CPython.

  • HTTP 1.1.

  • Serves files from a designated root.

  • Routing for serving computed responses from handlers.

  • Gives access to request headers, query parameters, form data, body and client’s address (the one from which the request came).

  • Supports chunked transfer encoding.

  • Supports URL parameters and wildcard URLs.

  • Supports HTTP Basic and Bearer Authentication on both server and route per level.

  • Supports Websockets and Server-Sent Events.

  • Limited support for HTTPS (only on selected microcontrollers with enough memory e.g. ESP32-S3).

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-httpserver

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-httpserver

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-httpserver

Installing to a Connected CircuitPython Device with Circup

Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:

pip3 install circup

With circup installed and your CircuitPython device connected use the following command to install:

circup install adafruit_httpserver

Or the following command to update an existing version:

circup update

Security

The HTTP server implementation in this package is not robust and should only be deployed on trusted networks. For instance, there are trivial denial of service attacks against adafruit_httpserver. Pull requests that improve the server’s security and robustness are of course welcome.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Metadata

Release files for adafruit-circuitpython-httpserver 4.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-httpserver 4.8.3
File Size Uploaded Provenance Actions
adafruit_circuitpython_httpserver-4.8.3.tar.gz 64.7 kB Without provenance Details for adafruit_circuitpython_httpserver-4.8.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-httpserver 4.8.3
File Interpreter ABI Platform Actions
adafruit_circuitpython_httpserver-4.8.3-py3-none-any.whl Python 3 none any Details for adafruit_circuitpython_httpserver-4.8.3-py3-none-any.whl

Total release size: 99.0 kB

Release files / adafruit_circuitpython_httpserver-4.8.3.tar.gz

Download URL adafruit_circuitpython_httpserver-4.8.3.tar.gz
Size 64.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eeeceb16e197f8f2241a88cbb847d6997e54adcb4aad7a6724864c91c740a05a
BLAKE2b-256 checksum
How to use checksums
2dc2df0d49305202c442e5ecb26f3615d36cfaa8f076720a83f8265bced5d345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / adafruit_circuitpython_httpserver-4.8.3-py3-none-any.whl

Download URL adafruit_circuitpython_httpserver-4.8.3-py3-none-any.whl
Size 34.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cc9163882f7d7d808dc3cd8aee966bbbf209fd73142eaff6b77c2125af7958f
BLAKE2b-256 checksum
How to use checksums
357aa2419c24bd99a961ad0ae00716681f01e87b5ca220f32fe27641dc800c07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for adafruit-circuitpython-httpserver 4.8.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.8.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page