Skip to main content

#### Xiang Wang @ 2017-05-24 13:40:52

# Documentation

## Installation ` pip install week `

## Usage ` >>> import datetime >>> from week import Week >>> Week.thisweek() == Week.create_from_date(datetime.date.today()) True >>> week = Week.thisweek() >>> week.startdate datetime.date(2017, 5, 22) >>> next_week = week.get_next_week() >>> next_week.enddate datetime.date(2017, 6, 4) >>> another_week = week + 1 >>> another_week == next_week True >>> print(Week.create_from_date(datetime.date(2017,1,1))) 2016year 52week >>> print(Week.create_from_date(datetime.date(2017,1,10))) 2017year 2week `

Metadata

Release files for week 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for week 0.0.7
File Size Uploaded
week-0.0.7.tar.gz 4.2 kB Details

Release files / week-0.0.7.tar.gz

Download URL week-0.0.7.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1bce07786190d6f288ec67bcf6dc839bae874c7a03daf1d67f2406517a49a786
BLAKE2b-256 checksum
How to use checksums
3af1566c292673417f3770787cefc389bab0b354d6ca243d76e1e04f8c8644ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page