segmentedstring


Namesegmentedstring JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummarySimple python class that acts like string, but it also provides a way to work with it in segments.
upload_time2024-12-12 08:50:50
maintainerNone
docs_urlNone
authorMartin Dočekal
requires_python>=3.10
licenseNone
keywords string segments
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # segmentedstring
Simple python class that acts like string, but it also provides a way to work with it in segments.


The eq, lt, and gt methods are the same as the ones for ordinary strings.
Therefore, there is no consideration of the segments.

Example usage:
```python
>>> s = SegmentedString(("abc", "def", "ghi"), labels=("first", "second", "third"))
>>> s
'abcdefghi'
>>> s.segments
('abc', 'def', 'ghi')
>>> s.labels
('first', 'second', 'third')
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "segmentedstring",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "string, segments",
    "author": "Martin Do\u010dekal",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/70/0a/972dfa1404f3bb3247970be65633abcf2638da34f6d89eba2b0ae166cdcc/segmentedstring-1.0.1.tar.gz",
    "platform": null,
    "description": "# segmentedstring\nSimple python class that acts like string, but it also provides a way to work with it in segments.\n\n\nThe eq, lt, and gt methods are the same as the ones for ordinary strings.\nTherefore, there is no consideration of the segments.\n\nExample usage:\n```python\n>>> s = SegmentedString((\"abc\", \"def\", \"ghi\"), labels=(\"first\", \"second\", \"third\"))\n>>> s\n'abcdefghi'\n>>> s.segments\n('abc', 'def', 'ghi')\n>>> s.labels\n('first', 'second', 'third')\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Simple python class that acts like string, but it also provides a way to work with it in segments.",
    "version": "1.0.1",
    "project_urls": {
        "Repository": "https://github.com/mdocekal/segmentedstring"
    },
    "split_keywords": [
        "string",
        " segments"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "700a972dfa1404f3bb3247970be65633abcf2638da34f6d89eba2b0ae166cdcc",
                "md5": "22aa27f18b4432d606d66a341e8eb983",
                "sha256": "e2455d02adcab426bf502073809f17572d8d5effd7cd3e75cd9858da9b5d74c4"
            },
            "downloads": -1,
            "filename": "segmentedstring-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "22aa27f18b4432d606d66a341e8eb983",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 4232,
            "upload_time": "2024-12-12T08:50:50",
            "upload_time_iso_8601": "2024-12-12T08:50:50.128450Z",
            "url": "https://files.pythonhosted.org/packages/70/0a/972dfa1404f3bb3247970be65633abcf2638da34f6d89eba2b0ae166cdcc/segmentedstring-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-12 08:50:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mdocekal",
    "github_project": "segmentedstring",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "segmentedstring"
}
        
Elapsed time: 1.00977s