{"id":17205514,"url":"https://github.com/frozen/scalafn","last_synced_at":"2025-08-09T04:07:35.516Z","repository":{"id":19228924,"uuid":"22463439","full_name":"Frozen/scalafn","owner":"Frozen","description":null,"archived":false,"fork":false,"pushed_at":"2015-03-17T10:37:19.000Z","size":292,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T09:41:37.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frozen.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-31T09:15:55.000Z","updated_at":"2015-03-17T10:37:20.000Z","dependencies_parsed_at":"2022-08-01T03:18:42.711Z","dependency_job_id":null,"html_url":"https://github.com/Frozen/scalafn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frozen%2Fscalafn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frozen%2Fscalafn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frozen%2Fscalafn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frozen%2Fscalafn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frozen","download_url":"https://codeload.github.com/Frozen/scalafn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245442313,"owners_count":20615992,"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":[],"created_at":"2024-10-15T02:25:34.070Z","updated_at":"2025-03-25T10:25:21.287Z","avatar_url":"https://github.com/Frozen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"****************************************\nScalafn: scala-like lists usage\n****************************************\n\n\n============\nInstallation\n============\n\npip install git+git://github.com/Frozen/scalafn.git@master\n\n\n=====\nUsage\n=====\n\n.. code-block:: python\n\n    from scalafn import List\n\n    str1 = \"\"\"blablabla@yandex.ru R=dnslookup \"\"\" \\\n           \"\"\"T=remote_smtp H=mx.yandex.ru [127.0.0.1] \"\"\" \\\n           \"\"\"X=TLS1.0:RSA_AES_256_CBC_SHA1:32\"\"\"\n    str2 = \"\"\"\u003c\u003e R=1XSUTD-0008L9-Vn U=Debian-exim \"\"\" \\\n           \"\"\"P=local S=5035 T=\"Mail delivery failed: \"\"\" \\\n           \"\"\"returning message to sender\" for noreply@example.com\"\"\"\n    import re\n\n    rs1 = List(*re.split(\" (?=\\w=)\", str1)).\\\n        filter(lambda x: x.count(\"=\")).\\\n        toMap(lambda x: x.split(\"=\", 1))\n\n    assert rs1 == dict(\n        R='dnslookup',\n        T='remote_smtp',\n        H='mx.yandex.ru [127.0.0.1]',\n        X='TLS1.0:RSA_AES_256_CBC_SHA1:32'\n    )\n\n    rs2 = List(*re.split(\" (?=\\w=)\", str2)).\\\n        filter(lambda x: x.count(\"=\")).\\\n        toMap(lambda x: x.split(\"=\", 1))\n\n    assert rs2 == dict(\n        R='1XSUTD-0008L9-Vn',\n        U='Debian-exim',\n        P='local',\n        S='5035',\n        T='\"Mail delivery failed: returning message to sender\" for noreply@example.com'\n    )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrozen%2Fscalafn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrozen%2Fscalafn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrozen%2Fscalafn/lists"}