comment goes here.
Project description
annual
Synopsis
The Python package annual provides date calculations with human-readable expressions.
Prerequisites
Before you begin, ensure you have met the following requirements:
- You have installed Python 3.11 or later. annual is compatible with Python 3.11+.
- You have a basic understanding of Python programming.
- (Optional) For development: You have
git
installed for version control.
Installation
annual can be installed using pip. To install annual, follow these steps:
- Open your terminal (Command Prompt on Windows).
- Run the following command:
pip install annual
Usage
The simplest way of using this package is invoking the rule parser directly. The following example shows how to compute the second monday in October for the year 2024.
>>> from annual.ruleparser import rule_parser
>>> rule_parser(2024).parse('2nd monday of october')
datetime.date(2024, 10, 14)
For a full overview of the syntax supported by the rule parser consult the Syntax Guide.
Additional Documentation
For more detailed information about DateCalc, please refer to our comprehensive documentation:
-
User Guide: For in-depth explanations of annual's features and how to use them effectively, visit our User Guide.
-
API Reference: For detailed information about annual's classes, methods, and functions, check out our API Reference.
-
Tutorials: To get started quickly with practical examples, see our Tutorials.
-
FAQ: For answers to commonly asked questions, visit our FAQ page.
-
Contributing: If you're interested in contributing to annual, please read our Contribution Guidelines.
Our documentation is hosted on Read the Docs and is kept up-to-date with each release. You can find the full documentation at:
If you can't find the information you're looking for, please open an issue on our GitHub repository. We're always looking to improve our documentation and appreciate your feedback!
License
This package is released under the terms of the MIT License.
Related Libraries
dateutil
: extensions to the standard Python datetime moduleDelorean
: library for manipulating datetimes with ease and claritydateparser
: date parsing library designed to parse dates from HTML pagesworkalendar
: worldwide holidays and working days helper and toolkitconvertdate
: converts between Gregorian dates and other calendar systems
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
File details
Details for the file annual-0.1.3.tar.gz
.
File metadata
- Download URL: annual-0.1.3.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1af2d63e40ebb3c466c4699657955c57754d297e7c92302054a1f59b6e8177 |
|
MD5 | 73b697e09fbfca6d831d29f8a39ddabe |
|
BLAKE2b-256 | 74abb142ec6e0a3481dd8cf67d7ab5e2f1556c03de640bdea22c50d8a37aa9ae |
File details
Details for the file annual-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: annual-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c892d5a96300428dc10f37d0f115910e29ae4b7f1dd9928f9c80af8cc14e732 |
|
MD5 | cd4e6ba46f0f674bfcf4c8a4983bc754 |
|
BLAKE2b-256 | dee92e9330aa2ed3fa8c617a120556832a0be6303976a330e22d92921a42b0e0 |