# Flet Persian DatePicker
**Flet Persian DatePicker: Advanced Shamsi/Jalali Date Widget (2025 Release)**
Discover a cutting-edge Persian (Shamsi) DatePicker widget designed for Flet, launched in 2025! This powerful Flet Persian DatePicker offers seamless navigation, stunning animations, and full RTL support with Persian numerals, making it ideal for modern Persian apps. Key features include:
- **Keyboard Navigation**: Effortlessly navigate with Escape (close), Enter (confirm), A/D (previous/next day), and W/S (previous/next week).
- **Flexible Themes**: Switch between light and dark modes for a tailored user experience.
- **Input Mode with Validation**: Enter dates directly with smart validation for accuracy.
- **Smart Features**: Enjoy mode switching, date memory, and a dedicated today button.
Perfect for developers seeking a robust Jalali Calendar solution or a Shamsi Date Widget for Flet projects. Explore more at [https://github.com/AliAminiCode/flet-persian-datepicker](https://github.com/AliAminiCode/flet-persian-datepicker).
## Installation
Install the package via pip:
```bash
pip install persian-datepicker
```
## Current Version
v1.5 (See [Changelog](https://github.com/AliAminiCode/flet-persian-datepicker/blob/master/CHANGELOG.md))
## Quick Start
Here’s a simple example to get you started with the Persian DatePicker:
```python
import flet as ft
from persian_datepicker import PersianDatePicker
def main(page: ft.Page):
datepicker = PersianDatePicker()
def handle_result(result):
if result:
print(f"Selected: {result['formatted_persian']}")
datepicker.set_result_callback(handle_result)
def show_datepicker(e):
datepicker.show(page)
page.add(ft.ElevatedButton("Select Date", on_click=show_datepicker))
ft.app(target=main)
```
Run this code after installing the package to see a basic datepicker with a button to open it. The selected date will be printed in Persian format.
## Advanced Usage
- Customize themes: page.theme_mode = ft.ThemeMode.DARK before showing the datepicker.
- Set default date: datepicker.set_default_date("1404/06/01").
- Validate date range: Check example_mini_project.py for advanced usage.
## Screenshots
Check out the Persian DatePicker in action with light and dark themes:
- **Light Mode:**
<img src="screenshots/light_mode_landscape.png" alt="Light Mode">
- **Dark Mode:**
<img src="screenshots/dark_mode_landscape.png" alt="Dark Mode">
## Usage
Check the `examples/` directory for sample code:
- `example_basic.py`: Basic usage.
- `example_mini_project.py`: A mini project demo.
## Features
- Persian calendar with Shamsi dates.
- Floating overlay with modal behavior.
- Comprehensive error handling and validation.
- Performance optimized with LRU cache.
## Changelog
See [CHANGELOG.md](https://github.com/AliAminiCode/flet-persian-datepicker/blob/master/CHANGELOG.md) for detailed version history.
## Reporting Issues
Found a bug? Report it [here](https://github.com/AliAminiCode/flet-persian-datepicker/issues).
## License
This project is licensed under the [MIT License](https://github.com/AliAminiCode/flet-persian-datepicker/blob/master/LICENSE).
Developed by [Ali Amini](mailto:aliamini9728@gmail.com).
## Contribute
Feel free to open issues or pull requests on [GitHub](https://github.com/AliAminiCode/flet-persian-datepicker).
Note: This repository was previously named persian-datepicker. Update your bookmarks to https://github.com/AliAminiCode/flet-persian-datepicker!
Raw data
{
"_id": null,
"home_page": null,
"name": "persian-datepicker",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "flet, persian, shamsi, datepicker, jalali, gui, persain datepicker, flet persain datepicker, persain datepicker flet",
"author": null,
"author_email": "Ali Amini <aliamini9728@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/0a/bb/ef514b3158b17d06ba51158bb859dbc6833e3e3625252dbc42d9be9bcb18/persian_datepicker-1.5.5.tar.gz",
"platform": null,
"description": "# Flet Persian DatePicker\r\n\r\n**Flet Persian DatePicker: Advanced Shamsi/Jalali Date Widget (2025 Release)** \r\nDiscover a cutting-edge Persian (Shamsi) DatePicker widget designed for Flet, launched in 2025! This powerful Flet Persian DatePicker offers seamless navigation, stunning animations, and full RTL support with Persian numerals, making it ideal for modern Persian apps. Key features include:\r\n\r\n- **Keyboard Navigation**: Effortlessly navigate with Escape (close), Enter (confirm), A/D (previous/next day), and W/S (previous/next week).\r\n- **Flexible Themes**: Switch between light and dark modes for a tailored user experience.\r\n- **Input Mode with Validation**: Enter dates directly with smart validation for accuracy.\r\n- **Smart Features**: Enjoy mode switching, date memory, and a dedicated today button.\r\n\r\nPerfect for developers seeking a robust Jalali Calendar solution or a Shamsi Date Widget for Flet projects. Explore more at [https://github.com/AliAminiCode/flet-persian-datepicker](https://github.com/AliAminiCode/flet-persian-datepicker).\r\n\r\n## Installation\r\nInstall the package via pip:\r\n```bash\r\npip install persian-datepicker\r\n```\r\n\r\n## Current Version\r\nv1.5 (See [Changelog](https://github.com/AliAminiCode/flet-persian-datepicker/blob/master/CHANGELOG.md))\r\n\r\n## Quick Start\r\nHere\u2019s a simple example to get you started with the Persian DatePicker:\r\n\r\n```python\r\nimport flet as ft\r\nfrom persian_datepicker import PersianDatePicker\r\n\r\ndef main(page: ft.Page):\r\n datepicker = PersianDatePicker()\r\n \r\n def handle_result(result):\r\n if result:\r\n print(f\"Selected: {result['formatted_persian']}\")\r\n \r\n datepicker.set_result_callback(handle_result)\r\n \r\n def show_datepicker(e):\r\n datepicker.show(page)\r\n \r\n page.add(ft.ElevatedButton(\"Select Date\", on_click=show_datepicker))\r\n\r\nft.app(target=main)\r\n```\r\nRun this code after installing the package to see a basic datepicker with a button to open it. The selected date will be printed in Persian format.\r\n\r\n## Advanced Usage\r\n\r\n- Customize themes: page.theme_mode = ft.ThemeMode.DARK before showing the datepicker.\r\n- Set default date: datepicker.set_default_date(\"1404/06/01\").\r\n- Validate date range: Check example_mini_project.py for advanced usage.\r\n\r\n## Screenshots\r\nCheck out the Persian DatePicker in action with light and dark themes:\r\n\r\n- **Light Mode:** \r\n<img src=\"screenshots/light_mode_landscape.png\" alt=\"Light Mode\">\r\n\r\n- **Dark Mode:** \r\n<img src=\"screenshots/dark_mode_landscape.png\" alt=\"Dark Mode\">\r\n\r\n## Usage\r\nCheck the `examples/` directory for sample code:\r\n- `example_basic.py`: Basic usage.\r\n- `example_mini_project.py`: A mini project demo.\r\n\r\n## Features\r\n- Persian calendar with Shamsi dates.\r\n- Floating overlay with modal behavior.\r\n- Comprehensive error handling and validation.\r\n- Performance optimized with LRU cache.\r\n\r\n## Changelog\r\nSee [CHANGELOG.md](https://github.com/AliAminiCode/flet-persian-datepicker/blob/master/CHANGELOG.md) for detailed version history.\r\n\r\n## Reporting Issues\r\nFound a bug? Report it [here](https://github.com/AliAminiCode/flet-persian-datepicker/issues).\r\n\r\n## License\r\nThis project is licensed under the [MIT License](https://github.com/AliAminiCode/flet-persian-datepicker/blob/master/LICENSE). \r\nDeveloped by [Ali Amini](mailto:aliamini9728@gmail.com).\r\n\r\n## Contribute\r\nFeel free to open issues or pull requests on [GitHub](https://github.com/AliAminiCode/flet-persian-datepicker).\r\nNote: This repository was previously named persian-datepicker. Update your bookmarks to https://github.com/AliAminiCode/flet-persian-datepicker!\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A Persian (Shamsi) DatePicker widget for Flet with animations, RTL support, and keyboard navigation.",
"version": "1.5.5",
"project_urls": {
"Bug Tracker": "https://github.com/AliAminiCode/flet-persian-datepicker/issues",
"Homepage": "https://github.com/AliAminiCode/flet-persian-datepicker"
},
"split_keywords": [
"flet",
" persian",
" shamsi",
" datepicker",
" jalali",
" gui",
" persain datepicker",
" flet persain datepicker",
" persain datepicker flet"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1d972bfd2339bd027b1a90dfdba75b4829e07f26fd953e9c3f0eceb1401d7284",
"md5": "9a9949795d0765918e02fece8315b81a",
"sha256": "8302bc8a0bcf90eb6c0e2e03e3cb6f3f4c9b4fedb9070c4dbfac49c62f94712a"
},
"downloads": -1,
"filename": "persian_datepicker-1.5.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9a9949795d0765918e02fece8315b81a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 17354,
"upload_time": "2025-08-20T03:23:44",
"upload_time_iso_8601": "2025-08-20T03:23:44.147214Z",
"url": "https://files.pythonhosted.org/packages/1d/97/2bfd2339bd027b1a90dfdba75b4829e07f26fd953e9c3f0eceb1401d7284/persian_datepicker-1.5.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0abbef514b3158b17d06ba51158bb859dbc6833e3e3625252dbc42d9be9bcb18",
"md5": "7405d97ef25892c65f2a0b4ce32274fd",
"sha256": "938be8f906c994ed3ec19c22cca6e8d830cc6ec456af6871c3842e75a16acb0b"
},
"downloads": -1,
"filename": "persian_datepicker-1.5.5.tar.gz",
"has_sig": false,
"md5_digest": "7405d97ef25892c65f2a0b4ce32274fd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 18653,
"upload_time": "2025-08-20T03:23:46",
"upload_time_iso_8601": "2025-08-20T03:23:46.192814Z",
"url": "https://files.pythonhosted.org/packages/0a/bb/ef514b3158b17d06ba51158bb859dbc6833e3e3625252dbc42d9be9bcb18/persian_datepicker-1.5.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-20 03:23:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AliAminiCode",
"github_project": "flet-persian-datepicker",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "persian-datepicker"
}