Skip to main content

Ptyme Track

versions

The obnoxiously hard to spell time tracking based on file modifications and signed time reporting. The P is silent like in Pterodactyl

Usage

Installation

pip install ptyme-track

Server / client

For the server, generate a secret first with ptyme-track --ensure-secret

Simply run the server with ptyme_track --server

For the client, use ptyme_track --client

Running locally

Run ptyme-track --ensure-secret to generate a secret and update the .gitignore file.

Simply run ptyme_track --standalone in the background.

Setting directories to watch

By default, the current working directory is used and hidden directories are ignored. To manually set paths, use the PTYME_WATCHED_DIRS environment variable.

Cementing work

To cement your time record, use ptyme_track --cement <name>. It is recommended name is your github name. Note this is a filename so it needs to be filename safe (and unique from others). This will create a file .ptyme_track/<name>

Getting a time summary

To get a time summary enter the path to the file. For example, ptyme_track --time-blocks .ptyme_track/JamesHutchison will give you a summary of the time blocks for JamesHutchison.

...
{"start": "2023-05-30 19:00:34", "end": "2023-05-30 19:10:34", "duration": "0:10:00"}
{"start": "2023-05-31 04:02:31", "end": "2023-05-31 04:20:31", "duration": "0:18:00"}
{"start": "2023-05-31 04:20:31", "end": "2023-05-31 04:32:32", "duration": "0:12:01"}
{"start": "2023-05-31 04:30:32", "end": "2023-05-31 04:40:32", "duration": "0:10:00"}
{"start": "2023-05-31 04:56:33", "end": "2023-05-31 05:08:33", "duration": "0:12:00"}
{"start": "2023-05-31 05:03:51", "end": "2023-05-31 05:17:50", "duration": "0:13:59"}
Total duration:  11:47:22

Adding to the CI

Add this workflow:

name: Get logged time
on:
  pull_request:
    paths:
      - '.ptyme_track/*'

jobs:
  track-time:
    uses: JamesHutchison/ptyme-track/.github/workflows/time_tracking.yaml@main
    permissions:
      pull-requests: write
    with:
      base-branch: origin/${{ github.event.pull_request.base.ref }}
      pr-number: ${{ github.event.pull_request.number }}

Metadata

Release files for ptyme-track 0.3.0

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

Source distribution (sdist)

Source distribution for ptyme-track 0.3.0
File Size Uploaded Provenance Actions
ptyme_track-0.3.0.tar.gz 10.8 kB Without provenance Details for ptyme_track-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ptyme-track 0.3.0
File Interpreter ABI Platform Actions
ptyme_track-0.3.0-py3-none-any.whl Python 3 none any Details for ptyme_track-0.3.0-py3-none-any.whl

Total release size: 24.9 kB

Release files / ptyme_track-0.3.0.tar.gz

Download URL ptyme_track-0.3.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ce93443f68a436a0d589aa9e4026e4a24a7077afdc63de41674ee1062f6817b
BLAKE2b-256 checksum
How to use checksums
1d6b479ca99e64c4dad62ca08b4cddad9d8e0ceee0a3dd166a38d54b5dbd2aa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / ptyme_track-0.3.0-py3-none-any.whl

Download URL ptyme_track-0.3.0-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6c3d17ac975d77bc9c3778d55a6f1c59feb7663ae2e754a361a828c7a83a49a
BLAKE2b-256 checksum
How to use checksums
15733a70e3139b9105894a00cd32a17f49f2c021237f0d6b178f15da3f3e9de2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Security for ptyme-track 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.

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