{"id":28411468,"url":"https://github.com/pb-/pyclo","last_synced_at":"2026-04-25T08:34:46.816Z","repository":{"id":50180454,"uuid":"213063575","full_name":"pb-/pyclo","owner":"pb-","description":"Immutable manipulation of Python data structures, Clojure style","archived":false,"fork":false,"pushed_at":"2022-12-08T10:55:25.000Z","size":37,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T13:20:05.736Z","etag":null,"topics":["clojure","immutability","immutable","python"],"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/pb-.png","metadata":{"files":{"readme":"README.md","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":"2019-10-05T20:02:01.000Z","updated_at":"2020-09-10T01:31:07.000Z","dependencies_parsed_at":"2023-01-25T03:00:12.049Z","dependency_job_id":null,"html_url":"https://github.com/pb-/pyclo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pb-/pyclo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-%2Fpyclo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-%2Fpyclo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-%2Fpyclo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-%2Fpyclo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pb-","download_url":"https://codeload.github.com/pb-/pyclo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-%2Fpyclo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261575633,"owners_count":23179554,"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":["clojure","immutability","immutable","python"],"created_at":"2025-06-02T16:17:30.579Z","updated_at":"2026-04-25T08:34:46.784Z","avatar_url":"https://github.com/pb-.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyclo\n\nPyclo is a collection of functions for Python named after the Clojure standard library to perform the equivalent operation of the respective Clojure function.\n\nInstall with\n```\npip install pyclo\n```\n\n\n## Rationale\n\nWhile immutability is neither idiomatic nor common in Python, it is still beneficial to implement the concept through engineering discipline. However, soon one will find oneself writing the same constructs over and over again, and even though these expressions are fairly succinct, it is much nicer to refer to them by name. The goal of this library is to provide a collection of functions that promote immutable manipulation of standard Python data structures as a concept without strictly enforcing it.\n\nThey say that there are only two hard problems in software engineering, one of them being naming. Clojure is chosen as a source of inspiration for these functions because the author of this library considers Clojure's naming the gold standard.\n\n\n## Reference\n\n```\nfrom pyclo import *\n```\n\n - `dissoc(dict, *keys)` - return a shallow copy of `dict` without specified `keys`.\n - `select_keys(dict, *keys)` - return a shallow copy of `dict` only containing `keys`.\n - `get_in(dict, keys, default=None)` - look up a sequence of keys in a nested dict.\n\n\n## Guarantees\n\nPyclo's functions never modify their arguments. However, they don't create deep copies, either. This is a practical performance trade off and puts the library user in charge of mutation hygiene.\n\n\n## Development\n\n```\nmake test\nmake lint\nmake upload  # upload to Pypi\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb-%2Fpyclo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpb-%2Fpyclo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb-%2Fpyclo/lists"}