Skip to main content

Midsummer Date

Project description

pypi Downloads Downloads versions

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

midsummer-0.1.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

midsummer-0.1.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for midsummer-0.1.3.tar.gz
Algorithm Hash digest
SHA256 783c0e0bfb0647353bdd79ede6f300ec7acb0addaf51eb15ffd045a34eab1b84
MD5 4ca8c38f40470eff8424324301e58dc8
BLAKE2b-256 83541f3889bf86564490e30901af267a1d5cab091f6daae8336f502d19064772

See more details on using hashes here.

Provenance

The following attestation bundles were made for midsummer-0.1.3.tar.gz:

Publisher: python-publish.yml on nfredrik/midsummer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for midsummer-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9abad59f281c728052666702b063180bbc89ad6a60f79cadc957102aee689bf3
MD5 24d6f1be2b179b189dd57eae974c32d6
BLAKE2b-256 807d5a972f3e94e60d4648e5154066515087b32feacf210f65a70030e7015723

See more details on using hashes here.

Provenance

The following attestation bundles were made for midsummer-0.1.3-py3-none-any.whl:

Publisher: python-publish.yml on nfredrik/midsummer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page