frdate


Namefrdate JSON
Version 2.0.0 PyPI version JSON
download
home_pageNone
SummaryConverts french text to python date object
upload_time2024-07-11 14:20:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT-License
keywords dates french français conversion
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # frdate
[![](https://img.shields.io/pypi/v/frdate)](https://pypi.org/project/frdate/)
[![](https://img.shields.io/pypi/dm/frdate)](https://pypi.org/project/frdate/)
[![](https://img.shields.io/github/languages/top/ThbtSprt/frdate)](https://github.com/ThbtSprt/frdate)
[![](https://img.shields.io/librariesio/dependents/pypi/frdate)](https://github.com/ThbtSprt/frdate/network/dependents)

Date conversion (from numbers to letters or from letters to date object), in french.

**Installation :**
```bash
pip install frdate
```

**Usage :**

The main method of this package is `conv()`

It takes one mandatory argument (the input to convert) and two optional boolean args :
- to_date (default = False) : set to True if you need to convert the input into a `datetime.date()` object
- litteral (default = False) : set to True if you need to convert the input into a string object only using letters

**Supported formats :**

The input can be :
- a datetime.date object
- a datetime.datetime object
- a string representing a date, in any format,
- a list of the above elements

**Examples:**

```python
from frdate import conv

conv('14071789')
#'14 juillet 1789'

conv('17890714',to_date=True)
#datetime.date(1789, 7, 14)

conv('1789-07-14',litteral=True)
#'quatorze juillet mille sept cent quatre-vingt-neuf'

conv(['01/01/2000','2000-01-01',date(2000,1,1)])
#['1er janvier 2000','1er janvier 2000','1er janvier 2000']
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "frdate",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "dates, french, fran\u00e7ais, conversion",
    "author": null,
    "author_email": "Thibaut_S <py@spriet.online>",
    "download_url": "https://files.pythonhosted.org/packages/cf/d0/a77ec60448bb085bb281bf1ecf44c4e93acdfd91ea0115740dd8086b5ce3/frdate-2.0.0.tar.gz",
    "platform": null,
    "description": "# frdate\n[![](https://img.shields.io/pypi/v/frdate)](https://pypi.org/project/frdate/)\n[![](https://img.shields.io/pypi/dm/frdate)](https://pypi.org/project/frdate/)\n[![](https://img.shields.io/github/languages/top/ThbtSprt/frdate)](https://github.com/ThbtSprt/frdate)\n[![](https://img.shields.io/librariesio/dependents/pypi/frdate)](https://github.com/ThbtSprt/frdate/network/dependents)\n\nDate conversion (from numbers to letters or from letters to date object), in french.\n\n**Installation :**\n```bash\npip install frdate\n```\n\n**Usage :**\n\nThe main method of this package is `conv()`\n\nIt takes one mandatory argument (the input to convert) and two optional boolean args :\n- to_date (default = False) : set to True if you need to convert the input into a `datetime.date()` object\n- litteral (default = False) : set to True if you need to convert the input into a string object only using letters\n\n**Supported formats :**\n\nThe input can be :\n- a datetime.date object\n- a datetime.datetime object\n- a string representing a date, in any format,\n- a list of the above elements\n\n**Examples:**\n\n```python\nfrom frdate import conv\n\nconv('14071789')\n#'14 juillet 1789'\n\nconv('17890714',to_date=True)\n#datetime.date(1789, 7, 14)\n\nconv('1789-07-14',litteral=True)\n#'quatorze juillet mille sept cent quatre-vingt-neuf'\n\nconv(['01/01/2000','2000-01-01',date(2000,1,1)])\n#['1er janvier 2000','1er janvier 2000','1er janvier 2000']\n```\n",
    "bugtrack_url": null,
    "license": "MIT-License",
    "summary": "Converts french text to python date object",
    "version": "2.0.0",
    "project_urls": {
        "Bug Tracker": "https://gitlab.com/Thibaut_S/frdate/-/issues",
        "Homepage": "https://gitlab.com/Thibaut_S/frdate"
    },
    "split_keywords": [
        "dates",
        " french",
        " fran\u00e7ais",
        " conversion"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "578a1499561fd02424d228d418f25d6166c6e092b9912e4dc9130e08ecab8669",
                "md5": "5418bc04e49bef6b4fa84425afaf33a6",
                "sha256": "9bf8949668a80f28153dbb0004b34b3d2e45a93136f3e4cd3dacb7127c08f5e2"
            },
            "downloads": -1,
            "filename": "frdate-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5418bc04e49bef6b4fa84425afaf33a6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3890,
            "upload_time": "2024-07-11T14:20:52",
            "upload_time_iso_8601": "2024-07-11T14:20:52.396006Z",
            "url": "https://files.pythonhosted.org/packages/57/8a/1499561fd02424d228d418f25d6166c6e092b9912e4dc9130e08ecab8669/frdate-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cfd0a77ec60448bb085bb281bf1ecf44c4e93acdfd91ea0115740dd8086b5ce3",
                "md5": "121848d28fa9e7994ecdcf0dc9c11cb1",
                "sha256": "563382324dc9eb8dc5fb7e8b145a52ed8e106641ff5f478769506d3b3132b006"
            },
            "downloads": -1,
            "filename": "frdate-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "121848d28fa9e7994ecdcf0dc9c11cb1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4154,
            "upload_time": "2024-07-11T14:20:53",
            "upload_time_iso_8601": "2024-07-11T14:20:53.601694Z",
            "url": "https://files.pythonhosted.org/packages/cf/d0/a77ec60448bb085bb281bf1ecf44c4e93acdfd91ea0115740dd8086b5ce3/frdate-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-11 14:20:53",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "Thibaut_S",
    "gitlab_project": "frdate",
    "lcname": "frdate"
}
        
Elapsed time: 0.49329s