deciphon-intervals


Namedeciphon-intervals JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryIt helps to model the Python and R intervals seamlessly.
upload_time2024-02-19 16:29:51
maintainer
docs_urlNone
authorDanilo Horta
requires_python>=3.9,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # deciphon-intervals

It helps to model the two primary interval definitions in the programming
realm: 0-start, half-open interval (aka Python interval), and 1-start,
fully-closed interval (aka R interval).

## Example

```python
from deciphon_intervals import PyInterval, RInterval, Interval


x = [1, 2, 4, 8]
print(x[PyInterval(start=1, stop=3).slice])
print(x[RInterval(start=2, stop=3).slice])
# [2, 4]
# [2, 4]

interval: Interval = RInterval(start=2, stop=3)

print(interval.py)
print(interval.r)
# PyInterval(start=1, stop=3)
# RInterval(start=2, stop=3)
```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "deciphon-intervals",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Danilo Horta",
    "author_email": "danilo.horta@pm.me",
    "download_url": "https://files.pythonhosted.org/packages/e5/5b/b586116ea7da35f9d4847415950840e9896b40785370574ea5c2eb5b1573/deciphon_intervals-0.1.1.tar.gz",
    "platform": null,
    "description": "# deciphon-intervals\n\nIt helps to model the two primary interval definitions in the programming\nrealm: 0-start, half-open interval (aka Python interval), and 1-start,\nfully-closed interval (aka R interval).\n\n## Example\n\n```python\nfrom deciphon_intervals import PyInterval, RInterval, Interval\n\n\nx = [1, 2, 4, 8]\nprint(x[PyInterval(start=1, stop=3).slice])\nprint(x[RInterval(start=2, stop=3).slice])\n# [2, 4]\n# [2, 4]\n\ninterval: Interval = RInterval(start=2, stop=3)\n\nprint(interval.py)\nprint(interval.r)\n# PyInterval(start=1, stop=3)\n# RInterval(start=2, stop=3)\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "It helps to model the Python and R intervals seamlessly.",
    "version": "0.1.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a17973db8d10d671599f7ab1944c8fc0cee395e8aa97c63c97c1e252a9f13c2d",
                "md5": "b7f7aff6b7f2354501e68d5599e3055a",
                "sha256": "b21404d2d32cae137b62d89f3b8169515eaaa74c9012136dfe9a855e3a27490d"
            },
            "downloads": -1,
            "filename": "deciphon_intervals-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b7f7aff6b7f2354501e68d5599e3055a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 2961,
            "upload_time": "2024-02-19T16:29:49",
            "upload_time_iso_8601": "2024-02-19T16:29:49.652297Z",
            "url": "https://files.pythonhosted.org/packages/a1/79/73db8d10d671599f7ab1944c8fc0cee395e8aa97c63c97c1e252a9f13c2d/deciphon_intervals-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e55bb586116ea7da35f9d4847415950840e9896b40785370574ea5c2eb5b1573",
                "md5": "18b3247f9812011993055ac6aea70e56",
                "sha256": "00b6485685cda756651416af8b9bcd2c417dbdf814382ea70a21d0ed44c1d558"
            },
            "downloads": -1,
            "filename": "deciphon_intervals-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "18b3247f9812011993055ac6aea70e56",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 2300,
            "upload_time": "2024-02-19T16:29:51",
            "upload_time_iso_8601": "2024-02-19T16:29:51.067462Z",
            "url": "https://files.pythonhosted.org/packages/e5/5b/b586116ea7da35f9d4847415950840e9896b40785370574ea5c2eb5b1573/deciphon_intervals-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-19 16:29:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "deciphon-intervals"
}
        
Elapsed time: 0.18047s