# Textual: DatePicker
A DatePicker widget for [textual](https://github.com/Textualize/textual). It can be used standalone or with a DateSelect opening the dialog.
DateSelect with DatePicker example:
![DateSelect with DatePicker](https://user-images.githubusercontent.com/922559/209947716-3ee53f74-4d98-4d9c-a261-afb84955d519.png)
## Usage
```python
from textual_datepicker import DateSelect
DateSelect(
placeholder="please select",
format="YYYY-MM-DD",
picker_mount="#main_container"
)
```
Define an initial value:
```python
import pendulum
from textual_datepicker import DateSelect
DateSelect(
placeholder="please select",
format="YYYY-MM-DD",
date=pendulum.parse("2023-02-14"),
picker_mount="#main_container"
)
```
## Installation
```bash
pip install textual-datepicker
```
Requires textual 0.6.0 or later.
## Limitations
This textual widget is in early stage and has some limitations:
* It can only open below, not above: Make sure to reserve space below for the dialog.
* It needs a specific mount point (`picker_mount`) where the dialog
shall appear. This is needed because the container widget with the select
itself could be too small. Maybe in future versions this will no longer be
needed.
Raw data
{
"_id": null,
"home_page": "https://github.com/mitosch/textual-datepicker",
"name": "textual-datepicker",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "textual,textual datepicker,textual dateselect",
"author": "Mischa Schindowski",
"author_email": "mschindowski@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/90/b5/649755b45602e62937cbfc98e3ceaee1ab7eec2e0a7a25ed3422927f966b/textual_datepicker-0.2.4.tar.gz",
"platform": null,
"description": "# Textual: DatePicker\n\nA DatePicker widget for [textual](https://github.com/Textualize/textual). It can be used standalone or with a DateSelect opening the dialog.\n\nDateSelect with DatePicker example:\n\n![DateSelect with DatePicker](https://user-images.githubusercontent.com/922559/209947716-3ee53f74-4d98-4d9c-a261-afb84955d519.png)\n\n\n## Usage\n\n```python\nfrom textual_datepicker import DateSelect\n\nDateSelect(\n placeholder=\"please select\",\n format=\"YYYY-MM-DD\",\n picker_mount=\"#main_container\"\n)\n```\n\nDefine an initial value:\n\n```python\nimport pendulum\nfrom textual_datepicker import DateSelect\n\nDateSelect(\n placeholder=\"please select\",\n format=\"YYYY-MM-DD\",\n date=pendulum.parse(\"2023-02-14\"),\n picker_mount=\"#main_container\"\n)\n```\n\n## Installation\n\n```bash\npip install textual-datepicker\n```\n\nRequires textual 0.6.0 or later.\n\n## Limitations\n\nThis textual widget is in early stage and has some limitations:\n\n* It can only open below, not above: Make sure to reserve space below for the dialog.\n* It needs a specific mount point (`picker_mount`) where the dialog\n shall appear. This is needed because the container widget with the select\n itself could be too small. Maybe in future versions this will no longer be\n needed.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A datepicker widget for Textual.",
"version": "0.2.4",
"split_keywords": [
"textual",
"textual datepicker",
"textual dateselect"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c2d0fcc9631d70f19451484267ce710d6f77d05c59ab9c18e8400d1045d03a55",
"md5": "450e8dbbe1212fa1eb13b3a82190fd8e",
"sha256": "70a059fecc6bab6ba39d9302b29f9725bb28278a3ec2ec0f80a3adb4bab82ba5"
},
"downloads": -1,
"filename": "textual_datepicker-0.2.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "450e8dbbe1212fa1eb13b3a82190fd8e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 8500,
"upload_time": "2023-04-25T09:50:11",
"upload_time_iso_8601": "2023-04-25T09:50:11.204679Z",
"url": "https://files.pythonhosted.org/packages/c2/d0/fcc9631d70f19451484267ce710d6f77d05c59ab9c18e8400d1045d03a55/textual_datepicker-0.2.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "90b5649755b45602e62937cbfc98e3ceaee1ab7eec2e0a7a25ed3422927f966b",
"md5": "e6a5a6301af230f16cb15fd8d7d783cf",
"sha256": "0384f1ada49daf652a7b0e6d123bbdb0b6a8b96ebfea0c9f02685466cefa5f47"
},
"downloads": -1,
"filename": "textual_datepicker-0.2.4.tar.gz",
"has_sig": false,
"md5_digest": "e6a5a6301af230f16cb15fd8d7d783cf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 6897,
"upload_time": "2023-04-25T09:50:15",
"upload_time_iso_8601": "2023-04-25T09:50:15.328662Z",
"url": "https://files.pythonhosted.org/packages/90/b5/649755b45602e62937cbfc98e3ceaee1ab7eec2e0a7a25ed3422927f966b/textual_datepicker-0.2.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-25 09:50:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "mitosch",
"github_project": "textual-datepicker",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "textual-datepicker"
}