Skip to main content

Python Package to Calculate time spent for any list of dict-like objects with date/time data

Project description

timespent (licensed under Apache 2.0)

Python package for calculating time spent in any list of dict with date/time fields.

Key Features:

  • WorkSession: class for representing a span of time. Can be saved in pandas DataFrame.
  • map_dicts_to_work_sessions: maps list of dict to WorkSession objects for duration calculation.
  • calculate_timespent: calculates total time spent in a list of WorkSession objects.
  • calculate_timespent_as_hours: calculates total time spent in a list of WorkSession objects in hours (float).
  • unique_days_worked: returns list of unique days worked.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

timespent-1.0.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timespent-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file timespent-1.0.0.tar.gz.

File metadata

  • Download URL: timespent-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for timespent-1.0.0.tar.gz
Algorithm Hash digest
SHA256 668dce891fb2bcf42c630f541738b7305dec7023a464fb4e529e6231b13d722e
MD5 2e675d1057b07a7843788262708dcd15
BLAKE2b-256 ccbc011a9ab945ed56141689c08f0e255c1a674d89a8d8215387c2651ed2faa1

See more details on using hashes here.

File details

Details for the file timespent-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: timespent-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for timespent-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0cac578f8f5d12a16da860733990b9549d15241b054951c15f6d76cccb69e8
MD5 a2efd9377e33992545cb6a2b45cc7050
BLAKE2b-256 cedf511652fd542e36904dbbd73d8796df459f608421cf7651403624ab7e9350

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page