Skip to main content

temporal-lib

A library for working with datetime and other temporal concepts.

Explanation

Originally, I created a "Temporal" companion App for the Frappe Framework. Over time, more of my non-ERPNext Python projects required or benefitted from the same helper functions and classes.

So I'm splitting the project:

  • All generic, reusable Python code will be stored in this package, and synchronized to PyPi.org.
  • The remaining Frappe-specific code will remain on GitHub, and begin to reference this package as a requirement.

Installation

pip3 install temporal-lib

Usage

The library's namespace is temporal_lib. For example:

""" your_code.py """
from datetime import datetime
import temporal_lib

today_date = datetime.now().date()
today_iso_string = temporal_lib.date_to_iso_string(today)
print(today_iso_string)

Standards

  • All date strings are expected to be ISO-8601 extended. Example: 2023-11-29

Links

  • To the temporal-lib package on PyPi here.
  • A helpful Wikipedia article about ISO-8601.
  • To my Rust-based file-8601 project here!
  • (Deprecated) My original Python file-8601 project here

Further Reading

Attributions

Hourglass image on GitLab repository by The Oxygen Team, KDE; - KDE github;, LGPL, https://commons.wikimedia.org/w/index.php?curid=18609110

Download files

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

Source Distribution

temporal_lib-0.1.2.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

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

temporal_lib-0.1.2-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file temporal_lib-0.1.2.tar.gz.

File metadata

  • Download URL: temporal_lib-0.1.2.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for temporal_lib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 42acb8c1b1bc222b59d22d4d385ba87387ff38f882b4219d140d763dc5a467bc
MD5 7abbd5f12d975738de0bc5e49fff38cf
BLAKE2b-256 76158393bb9c00363ee17c09219cd7b133ba2ef7e2a834bcaae4d378d85263cb

See more details on using hashes here.

File details

Details for the file temporal_lib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: temporal_lib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for temporal_lib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ccb21fc67f5a20bfe5befb7b038fa237fe7541a4214f07d211aeda4db04fe57
MD5 40f8ad8269da9f814d59b59c219228ff
BLAKE2b-256 e945b732b125bba8c427382d9f98b2ded275a8cf5174857082b836018e7c63e2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

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