habitmove
Takes habit in one habit-tracking application and transforms them ready to use for another.
Currently can take an export of nomie habits in json format and convert it to be importable in Loop Habit Tracker. Plans for reverse migration are on the roadmap, and ultimately this tool ideally understands more and more habit formats to prevent app lock-in.
Confirmed working for nomie version 5.6.4 and Loop Habit Tracker version 2.0.2 and 2.0.3. Presumably works for other nomie 5.x versions and other Loop 2.x versions as well, but that is untested.
Installation
Installation can be accomplished through pip:
pip install habitmove
Requirements:
habitmove requires at least Python 3.7.
It has only been tested on GNU/Linux (amd64) though it should work on other platforms.
Usage
Run as a cli utility habitmove currently takes a single argument: the nomie database .json file to import habits from.
Invoked like: habitmove nomie-export.json.
The output as a Loop Habit Tracker database will be written to output.db in the present working directory.
Can also take an existing Loop Habit database (exported from the application),
and add the nomie exported habits and checkmarks to it.
Simply put the exported Loop database in the same directory and call it output.db,
it will not (should not™️) overwrite anything.
If there are any duplicated habits however,
it will add duplications of the existing repetitions into the database.
Development
To enable easy development on the app, install poetry and let it do all dependency management for you by doing:
poetry install
poetry run habitmove <nomie-json>
To see a set up more closely resembling the final cli environment, with its libraries loaded as environmental dependencies enter the poetry shell:
poetry shell
The package can eventually also be used as a library to load nomie data to work with in Python,
or to move data into Loop Habit Tracker.
Take a look at the Parser and Transformer interfaces respectively.
To run tests for the app, simply invoke pytest through poetry run pytest or from within the poetry shell.
To run larger scale test automation, make sure you habe nox installed and run poetry run or again through the shell.
You can exclude integration tests that take longer and inspect the complete database output of the program through the parameters -m "not e2e" for both pytest and nox (which also does it automatically).
Metadata
Release files for habitmove 0.4.1
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 |
|---|---|---|---|---|
| habitmove-0.4.1.tar.gz | 9.3 kB | Without provenance | Details for habitmove-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| habitmove-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for habitmove-0.4.1-py3-none-any.whl |
Total release size: 18.9 kB
Release files / habitmove-0.4.1.tar.gz
| Download URL | habitmove-0.4.1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
995140be2791cad2e3415a5d6f20fc5e2dde01ae7cc684473326553fbcacdbb6
|
|
BLAKE2b-256 checksum How to use checksums |
67ce033f248d28cd1d93b81be5a9626085d6f1af9a1e153569597f4d70574340
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.1 Linux/5.15.12-arch1-1
|
Release files / habitmove-0.4.1-py3-none-any.whl
| Download URL | habitmove-0.4.1-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a3181fd4fce7aafcfdf2352b52447bb91a23b469bca37cdba2ce7762c3dc03f
|
|
BLAKE2b-256 checksum How to use checksums |
99dd7ddace8759ed44084b6ec69c2d1b21072eb822e4a3337eb2abe2a5502be8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.1 Linux/5.15.12-arch1-1
|
Security for habitmove 0.4.1
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.