uhabits_converter
Loop Habit / uhabits converter.
Warnings
Please back up your data! By default this project does copy your data to a new db before editing it, but I make no promises it won't break on write or import.
This project is developed in my spare time, so it could be out of sync with Loop Habit / uHabits. It has been tested with version 2.0.3.
Features
- Convert boolean habits to the new numeric habit type.
Example output
Before After
Installation
# options 1 pypi
pip install uhabits-converter
# option 2 github release
pip install https://github.com/ConorSheehan1/uhabits_converter/releases/latest/download/uhabits_converter.tar.gz
# option 3 from source
# install python (>=3.8 check pyproject.toml)
# https://github.com/ConorSheehan1/uhabits_converter/blob/main/pyproject.toml#L9
git clone git@github.com:ConorSheehan1/uhabits_converter.git
cd uhabits_converter
poetry install
# if you want the uhabits_converter command available run the lines below.
# otherwise you can use: PYTHONPATH=$(pwd) poetry run task dev
poetry build
pip install .
Steps to convert habits
-
Follow the instructions for How can I export a full backup of my data?
Select the option "Export full backup" on the settings screen.
-
Copy the
.dbfile to your computer -
Run
uhabits_converterfrom a terminal- You can specify arguments up front or interactively. e.g.
uhabits_converter --inputdb=Loop_Habits_Backup_2022-02-28_220305.db --habits=Gym,Coffeethis will convert the habits Gym and Coffee from boolean to numeric habits. now you can track hours in the gym and cups of coffee, rather than just the days you went to the Gym or drank coffee.
- You can specify arguments up front or interactively. e.g.
-
copy the
output.dbfile back to your android device. -
follow the instructions for How can I restore a full backup?
First, go to the settings screen and tap "Import data". A file browser should appear. Tap the menu icon (the one with three vertical lines) and select the app where your backup is stored, such as Google Drive.
If your backup file is located in your SD card, after tapping "Import data", tap the icon with three dots on the top right corner of the screen and select "Show internal storage". Then, tap the menu icon (the one with three vertical lines) and select your SD card.
Development
See DEV.md
Metadata
Release files for uhabits-converter 0.3.0
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 | Actions |
|---|---|---|---|---|
| uhabits_converter-0.3.0.tar.gz | 7.5 kB | Without provenance | Details for uhabits_converter-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uhabits_converter-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for uhabits_converter-0.3.0-py3-none-any.whl |
Total release size: 15.2 kB
Release files / uhabits_converter-0.3.0.tar.gz
| Download URL | uhabits_converter-0.3.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9568843c52f6a9fd184cc18113787864085d8b12a948dc849379f15d99780ff0
|
|
BLAKE2b-256 checksum How to use checksums |
91ead3e41da4fea1cb2889bdbffe79b4e8df854c1960f243252aee7f1009cd02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.7 Linux/5.15.0-1020-azure
|
Release files / uhabits_converter-0.3.0-py3-none-any.whl
| Download URL | uhabits_converter-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
109f27bd975868fbeab369d0f5ff44bdec7376b322c1a608da0114517cfa4c4b
|
|
BLAKE2b-256 checksum How to use checksums |
1ebb93975bb7dc3c4bc363bc7fbbfce1baf849fed349ceacbf23fd822d5f823a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.7 Linux/5.15.0-1020-azure
|
Security for uhabits-converter 0.3.0
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.