To print the calendar design on the terminal
Project description
py_calendars
This package show the calendar view on the terminal when you give the year and month also give the satring position of month and year
After install the package import the module
from py_calendars import calendars
calendar(2005,'jan')
In terminal you get the out put
January 2005
sun mon tus wed thr fri sat
01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
About package
In this package thir are three main part
- Finding the given year starting position
- Finding the given month starting position
- use the two resuelt to create the calendar printing design
if you want the year starting position import the year_start ( ) function
from py_calendars import year_start
print('ans= ', year_start(2005))
output
ans= 7
That means the 2005 January start with 7 position saturday
January 2005
sun mon tus wed thr fri sat
01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
if you want the starting month position use month_start ( ) function
from py_calendars import month_start
print('ans= ' month_start(2005,'nov'))
output
ans= 3
that mean the 2005 November start with 3 position Tuesday
November 2005
sun mon tus wed thr fri sat
01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
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
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 py_calendars-0.0.1.tar.gz.
File metadata
- Download URL: py_calendars-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f8eff03e3597637275ad6b3e5d3e1697e1c78e3036f6864f5fd103bde3350ef
|
|
| MD5 |
4d90a573679789ed50e34887aa05cbe9
|
|
| BLAKE2b-256 |
4818bd6834eca5637b5ad1ae93b2bcd3baebc1e0807cb65284d507eee027a0f3
|
File details
Details for the file py_calendars-0.0.1-py3-none-any.whl.
File metadata
- Download URL: py_calendars-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e66cd1e33d8c2b12d5d9da74bf561101740ac1dea9886f49fd95bff886f4faa6
|
|
| MD5 |
95117026e24a202c27fa699d09b94ac8
|
|
| BLAKE2b-256 |
d16def2b0f9b8e944a6a79cb8f26d0ac0a1b769bd0c16b6e97a698e1df3e055e
|