Neste modulo são disponibilizadas funções de calendários.
Project description
DateWeek
DateWeek is a Python package for working with w-sat weeks.
Usage
from dateweek import DateWeek
from datetime import datetime
# Creating a DateWeek object for the current week
current_week = DateWeek.current_week()
# Creating a DateWeek object for a specific week
week = DateWeek(2020, 1)
# Creating a DateWeek object from a datetime
week = DateWeek.from_datetime(datetime(2020, 1, 1))
# Creating a DateWeek object from a string
week = DateWeek.from_str("2020-01-01")
# Getting the first day and last day of the week
first_day, last_day = week.first_day, week.last_day
# Finding the previous week
previous_week = current_week - 1
# Finding the next week
next_week = current_week + 1
Development
Conda
conda env create -f environment.yml
conda activate dateweek
pip install -e .
pip install -e .[dev]
pip install -e .[unittest]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dateweek-0.1.1.tar.gz
(8.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dateweek-0.1.1.tar.gz.
File metadata
- Download URL: dateweek-0.1.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0472e45497b821c6cebacb5930dfca146862de98e8465883a43d81054300ac0e
|
|
| MD5 |
6bfd5a4f95f52538630f1bc26f07b715
|
|
| BLAKE2b-256 |
c6d7bd24b9a29da64888631ee4d8bf9fc5ad2522afb28564ceb53cfe6e04e621
|
File details
Details for the file dateweek-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dateweek-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
199a2635160a8b0e56aca5dbf40db8182e95d876e6213e5d9f2b4cad024cb06a
|
|
| MD5 |
304b2355a01e236b490bf8964bc0ba82
|
|
| BLAKE2b-256 |
2db53a291590236bc0213105a981c868bcc3b44e2df3d083c1b8379db90cef88
|