{"id":20977085,"url":"https://github.com/marcnuth/scikit-intervals","last_synced_at":"2025-07-19T08:35:52.800Z","repository":{"id":57464419,"uuid":"116082366","full_name":"Marcnuth/scikit-intervals","owner":"Marcnuth","description":"handling intervals calculation in python","archived":false,"fork":false,"pushed_at":"2018-01-31T02:30:33.000Z","size":17,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T22:18:17.233Z","etag":null,"topics":["interval","mathmatics","scikit"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Marcnuth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-03T02:41:47.000Z","updated_at":"2024-03-27T18:36:27.000Z","dependencies_parsed_at":"2022-09-17T14:30:38.896Z","dependency_job_id":null,"html_url":"https://github.com/Marcnuth/scikit-intervals","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Marcnuth/scikit-intervals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcnuth%2Fscikit-intervals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcnuth%2Fscikit-intervals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcnuth%2Fscikit-intervals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcnuth%2Fscikit-intervals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marcnuth","download_url":"https://codeload.github.com/Marcnuth/scikit-intervals/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcnuth%2Fscikit-intervals/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265905116,"owners_count":23846696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interval","mathmatics","scikit"],"created_at":"2024-11-19T04:57:14.172Z","updated_at":"2025-07-19T08:35:52.776Z","avatar_url":"https://github.com/Marcnuth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nScikit-intervals is a library for handling intervals in python, and this library support both number interval and datetime interval.\nComparing to other library, this lib is more advanced in:\n- use numpy's infinite as the infinite boundary instead of other infinite library, which is more easy for engineer especailly for data science engineer\n- completely support converting interval to string, or converting string to interval, which will good for persistence and storage\n- support both number interval and datetime interval\n\n# Install\n\n```shell\n\npip install scikit-intervals\n\n```\n\n# Usage\n\n## Initializing an interval\n\n### Initializing from string\n\n```python\n\nfrom skintervals import DatetimeInterval, FloatInterval\n\n# interval for datetime in (2017-05-12 00:00:00, 2018-01-01 12:00:39]\ninter1 = DatetimeInterval.from_str('(2017-05-12, 2018-01-01 12:00:39]')\n\n# interval for number in (1.0, 3.0)\ninter2 = FloatInterval.from_str('(1,3)')\n\n# interval for number which is smaller than 5.4\ninter3 = FloatInterval.from_str('(5.4)')\n\n# interval for number in whole R\ninter4 = FloatInterval.from_str('(,)')\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcnuth%2Fscikit-intervals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcnuth%2Fscikit-intervals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcnuth%2Fscikit-intervals/lists"}