{"id":15009899,"url":"https://github.com/thomskaf/stringhelpers","last_synced_at":"2026-04-02T02:41:57.674Z","repository":{"id":11050887,"uuid":"13388917","full_name":"thomskaf/stringhelpers","owner":"thomskaf","description":"A set of various string helpers.","archived":false,"fork":false,"pushed_at":"2021-10-22T18:16:01.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T10:09:22.591Z","etag":null,"topics":["helpers","python","python2","python3","string-interpolation"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/stringhelpers/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomskaf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","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":"2013-10-07T16:22:39.000Z","updated_at":"2021-10-22T18:16:05.000Z","dependencies_parsed_at":"2022-08-28T17:50:48.084Z","dependency_job_id":null,"html_url":"https://github.com/thomskaf/stringhelpers","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomskaf%2Fstringhelpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomskaf%2Fstringhelpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomskaf%2Fstringhelpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomskaf%2Fstringhelpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomskaf","download_url":"https://codeload.github.com/thomskaf/stringhelpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243258502,"owners_count":20262300,"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":["helpers","python","python2","python3","string-interpolation"],"created_at":"2024-09-24T19:29:04.375Z","updated_at":"2025-12-27T17:11:34.191Z","avatar_url":"https://github.com/thomskaf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A set of various string helpers\n\n### Install instructions\nInstall via pip\n\n    $ pip install stringhelpers\n\n\n### Quick Usage\n\n    \u003e\u003e\u003e from stringhelpers import *\n\n    \u003e\u003e\u003e upcase('down here')\n    DOWN HERE\n    \u003e\u003e\u003e downcase('UP HERE')\n    up here\n    \u003e\u003e\u003e upcase_first_letter('lorem iPsum')\n    Lorem iPsum\n    \u003e\u003e\u003e reverse(u'esrever')\n    reverse\n    \u003e\u003e\u003e reverse_order('one two three')\n    three two one\n    \u003e\u003e\u003e count_items('Now or never')\n    3\n    \u003e\u003e\u003e camelize('a lizard that slithers')\n    A Lizard That Slithers\n    \u003e\u003e\u003e list_to_string(['Apple', 'Microsoft', 'Sony'])\n    Apple, Microsoft, Sony\n    \u003e\u003e\u003e truncate('A Mystery Easy to Take for Granted', length=17)\n    A Mystery Easy to...\n    \u003e\u003e\u003e random_string()\n    zJEoBf\n    \u003e\u003e\u003e random_string(password_safe=True)\n    I9ZuwP\n    \u003e\u003e\u003e dasherize('singing_in_the rain')\n    singing-in-the-rain\n    \u003e\u003e\u003e humanize('summer_08-pictures.tar.gz')\n    summer 08 pictures\n    \u003e\u003e\u003e flatten(['one', ['one', ['two', 'three']], 'three'], remove_duplicates=True)\n    ['one', 'two', 'three']\n    \u003e\u003e\u003e in_list('one', ['one', 'two'])\n    one\n    \u003e\u003e\u003e in_list('one', ['one', ['one'], 'two', 'one' ])\n    ['one', 'one', 'one']\n    \u003e\u003e\u003e ireplace('w3scHoolS', 'Apple', \"Visit W3Schools\")\n    Visit Apple\n    \u003e\u003e\u003e count(\"but\", \"But what about the BUT ?\")\n    2\n    \u003e\u003e\u003e count(\"But\", \"But what about the BUT ?\", case_sensitive=True)\n    1\n    \u003e\u003e\u003e if odd(1): True\n    True\n    \u003e\u003e\u003e if even(2): True\n    True\n    \u003e\u003e\u003e strip_slashes('/foo/and/bar//')\n    foo/and/bar\n    \u003e\u003e\u003e sort([\"Banana\", \"Orange\", \"Apple\", \"Mango\"], order=\"descending\")\n    ['Orange', 'Mango', 'Banana', 'Apple']\n    \u003e\u003e\u003e common_sub(\"Python is named after Monty Python\", \"What is Python Used For ?\")\n    ['Python', 'is', 'Python']\n    \u003e\u003e\u003e common_sub(\"Python is named after Monty Python\", \"What is Python Used For ?\", sequence=\"shortest\")\n    is\n    \u003e\u003e\u003e common_sub(\"Python is named after Monty Python\", \"What is Python Used For ?\", sequence=\"longest\")\n    Python\n    \u003e\u003e\u003e is_iterable([\"foo\", \"bar\"])\n    True\n    \u003e\u003e\u003e is_iterable(1234)\n    False\n    \u003e\u003e\u003e substr(\"asdfg\", 1, 2)\n    \"sdf\"","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomskaf%2Fstringhelpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomskaf%2Fstringhelpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomskaf%2Fstringhelpers/lists"}