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.1.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.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for timespent-1.0.1.tar.gz
Algorithm Hash digest
SHA256 38d43562a52434f3784b6f809b8b3b76b3231990b7496940cc5eb4901fb7eeea
MD5 58166506c8ac2bb2bb34933d5bcfa1fa
BLAKE2b-256 8d09ec97feb5bcaa4aa05980255230ad46835bbf3731365d1b8f4c6c8b114277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: timespent-1.0.1-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.9.6

File hashes

Hashes for timespent-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d396e5d194c0b7449c6861cccadd977807db5a4d06acff178e61064f54141a3e
MD5 41e66f0a2fcc8794af03cd45a4e58430
BLAKE2b-256 86360ef5e6022f9bbd0a16d34646993b764fb132f7caec85084e1a8190bb7f78

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