Midsummer Date
Project description
Midsummer Date Calculator
This Python module calculates the date of Midsummer's Day for a given year. Midsummer's Day typically falls on a Friday between June 20th and June 26th.
Usage
To use this module, simply import the midsummer_date function and pass the year for which you want to find the Midsummer's Day:
from midsummer import midsummer_date
year = 2024
print(midsummer_date(year))
Functionality
The midsummer_date function calculates the date of Midsummer’s Day for the specified year. If the calculated date does not fall on a Friday, a ValueError is raised.
Exceptions
MidsummerException: Raised if the input year is not an integer or if the date falls outside the expected range. ValueError: Raised if the calculated Midsummer’s Day does not fall on a Friday, as per tradition.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Project details
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 midsummer-0.1.3.tar.gz.
File metadata
- Download URL: midsummer-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
783c0e0bfb0647353bdd79ede6f300ec7acb0addaf51eb15ffd045a34eab1b84
|
|
| MD5 |
4ca8c38f40470eff8424324301e58dc8
|
|
| BLAKE2b-256 |
83541f3889bf86564490e30901af267a1d5cab091f6daae8336f502d19064772
|
Provenance
The following attestation bundles were made for midsummer-0.1.3.tar.gz:
Publisher:
python-publish.yml on nfredrik/midsummer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
midsummer-0.1.3.tar.gz -
Subject digest:
783c0e0bfb0647353bdd79ede6f300ec7acb0addaf51eb15ffd045a34eab1b84 - Sigstore transparency entry: 172628868
- Sigstore integration time:
-
Permalink:
nfredrik/midsummer@9c54c85b02d08f667c29688a521b74508f50e77f -
Branch / Tag:
refs/tags/1.04 - Owner: https://github.com/nfredrik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9c54c85b02d08f667c29688a521b74508f50e77f -
Trigger Event:
release
-
Statement type:
File details
Details for the file midsummer-0.1.3-py3-none-any.whl.
File metadata
- Download URL: midsummer-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9abad59f281c728052666702b063180bbc89ad6a60f79cadc957102aee689bf3
|
|
| MD5 |
24d6f1be2b179b189dd57eae974c32d6
|
|
| BLAKE2b-256 |
807d5a972f3e94e60d4648e5154066515087b32feacf210f65a70030e7015723
|
Provenance
The following attestation bundles were made for midsummer-0.1.3-py3-none-any.whl:
Publisher:
python-publish.yml on nfredrik/midsummer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
midsummer-0.1.3-py3-none-any.whl -
Subject digest:
9abad59f281c728052666702b063180bbc89ad6a60f79cadc957102aee689bf3 - Sigstore transparency entry: 172628872
- Sigstore integration time:
-
Permalink:
nfredrik/midsummer@9c54c85b02d08f667c29688a521b74508f50e77f -
Branch / Tag:
refs/tags/1.04 - Owner: https://github.com/nfredrik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9c54c85b02d08f667c29688a521b74508f50e77f -
Trigger Event:
release
-
Statement type: