django-fitbit-healthkit
⚠️ DEPRECATED — Fitbit Web API is being shut down
Google is retiring the Fitbit Web API in September 2026. After that date this package will no longer function and will be archived.
What that means for users of this package:
- Through the Fitbit Web API sunset (~September 2026), this project will receive security updates only — no new features.
- After the API is shut down, the GitHub repository will be archived and the PyPI release will be left in place but marked deprecated.
- If you are starting a new integration, do not adopt this package — pick a data source that will still exist after September 2026.
If you depend on Fitbit data going forward, plan a migration off the Fitbit Web API now.
django-fitbit-healthkit is a Django Fitbit App with HealthKit-friendly API. The goal is to provide a wrapper over fitbit authentication, token management, and web APIs that is similar to other high-level healthkit wrappers like react-native-healthkit. The HealthKit API from Apple is here for reference.
A sample app is included in the sample directory to showcase how to use the fitbit app.
Detailed documentation is in the "docs" directory.
Quick start
- Add "fitbit" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...,
"django_fitbit_healthkit",
]
- Include the fitbit URLconf in your project urls.py like this:
path("fitbit/", include("django_fitbit_healthkit.urls")),
-
Run
python manage.py migrateto create the models. -
Visit the
/fitbit/loginURL to sign in with Fitbit.
Running the sample app
Make sure to set environment variables for
FITBIT_CLIENT_ID=xxx
FITBIT_CLIENT_SECRET=xxx
which will be picked up by sample/settings.py.
In your fitbit app settings, add http://localhost:8000/fitbit/success to the allowed callback URLs.
Set up dev environment. There is nothing complicated here, so vanilla venv on any platform is probably sufficient (no nix/devbox, dev container type setup is necessary).
python3 -m venv venv
source venv/bin/activate
pip3 install Django
Apply DB migrations with python3 manage.py migrate.
You can run the app quite simply:
python3 manage.py runserver
This will allow you to register an account, sign in with fitbit, and view some of your data.
Release workflow
Develop on a branch. When it's ready, merge to main.
If this is not a release (no bumped version in setup.cfg),
then TestPyPI may fail
with a duplicate sdist upload (it has before).
If it's a new version, then the setup.cfg
should have been bumped on the branch.
When it's merged,
we expect TestPyPI to succeed.
Then the tag can be pushed to GH,
which will trigger real PyPI release.
Metadata
Release files for django-fitbit-healthkit 0.6.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_fitbit_healthkit-0.6.4.tar.gz | 11.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_fitbit_healthkit-0.6.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.6 kB
Release files / django_fitbit_healthkit-0.6.4.tar.gz
| Download URL | django_fitbit_healthkit-0.6.4.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d04d91bb97e5a0a87ce9edc1569cd94f73a8d6c9bd9d39a5ec3bb1bef61e48c
|
|
BLAKE2b-256 checksum How to use checksums |
e2cd11f8c04faf30557c892f9057d31087cfb7826527d434988a1d3f2c320d41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logRelease files / django_fitbit_healthkit-0.6.4-py3-none-any.whl
| Download URL | django_fitbit_healthkit-0.6.4-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cc571e50895ee523eab0350b31743f9b5fadbae6648a0ccb6ca302bed3032c5
|
|
BLAKE2b-256 checksum How to use checksums |
1e2a7f6e430998dff252918f6f7affcca6887db9a38659c1ebd5de3d51277b74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logSecurity for django-fitbit-healthkit 0.6.4
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for django_fitbit_healthkit-0.6.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logA 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.