Skip to main content

⏱️ ⏰ 🕰️ Fastimer

PyPi pylint black License: MIT

It is a simple CLI timer to track fasts, designed specifically to help you monitor your fasting intervals.

😮 Why did you make this?

Yeah, there are plenty of apps like this one, you are right. I wrote this one simply out of annoyance when the Zero app for Android once again refused to show me a fast I did. I was tapping on the calendar inside the application, but it was doing nothing.

I have no idea what was wrong with it. Anyway, the task is not that hard, so I just wrote my own timer ¯\_(ツ)_/¯

🙃 How to install it?

I have nothing to surprise you here:

pip install fastimer

🙂 How to use it?

It is a console application. So you can run this:

fastimer --help

The script will show you the available commands.

By default, Fastimer expects to see your data in the user's home directory (%USERPROFILE%\Fastimer on Windows, for example). Of course, you can store it anywhere else using a directory junction or --path option.

To be short, you want a fasting timer to do four things.

1. To start a new fast

The first thing is creating a new fast. Usage:

fastimer start 20

Twenty above is the number of hours you are going to spend fasting. You can omit this option (the default is 16).

2. To see how fasting is going

Once you have started a fast, it is convenient to use fastimer show last command. It shows elapsed time, remaining time, and something that looks like a progress bar to visualize your spilled blood, sweat, and tears :)

Here is an example:

ACTIVE FAST

From: Tue, 11:25
Goal: Wed, 07:25 (20 hours)

Fasting zones:

1. Anabolic:    from Tue, 11:25
2. Catabolic:   from Tue, 15:25 <-- you are here
3. Fat burning: from Wed, 03:25
4. Ketosis:     from Wed, 11:25
5. Anabolic:    from Fri, 11:25

######################------------------ 56.5%

Elapsed time:   11h 17m
Remaining:      08h 43m

Please note that the fastimer show last command is the default one. So you can simply type fastimer show or fastimer: both of them have the same meaning.

In addition, you can use fastimer show prev command to show a fast before the last one.

3. To stop or cancel the fast you've started

When the fast is active, the fastimer stop command allows you to stop your fast when you decide to do so. It means that the fast is over and you wish to store the fast in the app's history.

Usage:

fastimer stop

Another option is to cancel the fast. It means you wish to delete the information about this fast by for some weird reason.

Usage:

fastimer cancel

4. To see how well you're doing

fastimer info

This command shows you statistical data and earned achievements.

For instance:

FASTING STATISTICS

Completed Fasts:         33 out of 34
Total Fasting Time:      437h 26m
Average Fast Length:     13h 15m
Longest Fast Length:     18h 12m
Longest Fasting Streak:  20 days
Current Fasting Streak:  3 days

Achievements:
- COPPER WALKER (level 2 badge out of 9). Twenty five fasts completed!
- COPPER MAN OF HABIT (level 2 badge out of 9). Ten completed fasts in a row!

🤔 Questions

Where can I see or edit my fasts?

The script stores all fasts in fasts.yaml file in the working directory. It has the YAML format, which is quite human-readable, so you can just open it in your lovely text editor.

For instance, the completed fast in the journal looks like this:

- length: 16
  started: 2022-07-20 19:59:14
  stopped: 2022-07-21 12:00:33

The first parameter is the length of the fast, the second is the start date, and the third is the completion date.

For an ongoing fast, the third parameter is omitted.

Metadata

Release files for fastimer 1.3.1

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

Source distribution (sdist)

Source distribution for fastimer 1.3.1
File Size Uploaded Provenance Actions
fastimer-1.3.1.tar.gz 7.9 kB Without provenance Details for fastimer-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastimer 1.3.1
File Interpreter ABI Platform Actions
fastimer-1.3.1-py3-none-any.whl Python 3 none any Details for fastimer-1.3.1-py3-none-any.whl

Total release size: 16.8 kB

Release files / fastimer-1.3.1.tar.gz

Download URL fastimer-1.3.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bfde1afa6906e68fb08c60339631aa8abe263dd9daed0bbf050ade450b85e2b0
BLAKE2b-256 checksum
How to use checksums
2e72b0eb870ce447ec757a8c40a28d34da5aded33eaa3ef2c4f0b5d8ef00969e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / fastimer-1.3.1-py3-none-any.whl

Download URL fastimer-1.3.1-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c306fde0b7ba19301cba23095e83fe0ac0751339d516fc6dedb46a8d8164e7a
BLAKE2b-256 checksum
How to use checksums
d6e8686c037f390528f155f75259394bbb3b3bd1600aef8ebe110d32adb54fb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for fastimer 1.3.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.

Release history Release notifications | RSS feed

This release

1.3.1 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