Christopher H. Todd's Python Library For Interacting With Datetime Objects in Python
The ctodd-python-lib-datetime project is responsible for interacting with date, time, timezones, and other time related shenanigans in the Python languages.
Table of Contents
Dependencies
Python Packages
Libraries
date_manipulation_helpers.py
Library for Manipulating Datetime and Date objects in Python
Functions:
def add_or_subtract_days_from_date(base_date, number_of_days, op='addition'):
"""
Purpose:
Adds or subtracts a number of days to a given date
Useful for data sources that use different date structures
Default operator is addition
Args:
base_date (str, datetime obj): Date to mutate
number_of_days (int): Number of days to add or subtract
op (str): operator to overload. 'addition' or 'subtraction'
Returns:
new_date (Date): Updated date based on function
"""
Example Scripts
Example executable Python scripts/modules for testing and interacting with the library. These show example use-cases for the libraries and can be used as templates for developing with the libraries or to use as one-off development efforts.
N/A
Notes
- Relies on f-string notation, which is limited to Python3.6. A refactor to remove these could allow for development with Python3.0.x through 3.5.x
TODO
- Unittest framework in place, but lacking tests
Metadata
Release files for ctodd-python-lib-datetime 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ctodd-python-lib-datetime-1.0.0.tar.gz | 4.6 kB | Without provenance | Details for ctodd-python-lib-datetime-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctodd_python_lib_datetime-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ctodd_python_lib_datetime-1.0.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / ctodd-python-lib-datetime-1.0.0.tar.gz
| Download URL | ctodd-python-lib-datetime-1.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
847a69f5758cd6bc86d0edd412e8f4d2314c03e002a495530f96520e8d6bb592
|
|
BLAKE2b-256 checksum How to use checksums |
6bb61f9f10c03380504f3900878f9c1945fd3aec580d02297c572ebb628c5d21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Release files / ctodd_python_lib_datetime-1.0.0-py3-none-any.whl
| Download URL | ctodd_python_lib_datetime-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6e32cb98da46301c87623af5ad3f3c601fcf208bf99e0ea82490f21a47f9848
|
|
BLAKE2b-256 checksum How to use checksums |
ea2ef5b0797f7f08012b61f14a033806816276faa7b2fdf7fc92f971cdfa3794
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Security for ctodd-python-lib-datetime 1.0.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.