{"id":32178472,"url":"https://github.com/opensourceeconomics/pybaum","last_synced_at":"2025-10-21T20:56:17.232Z","repository":{"id":37857135,"uuid":"451562296","full_name":"OpenSourceEconomics/pybaum","owner":"OpenSourceEconomics","description":"Tools to work with pytrees.","archived":false,"fork":false,"pushed_at":"2025-10-20T20:39:36.000Z","size":36,"stargazers_count":18,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T20:56:10.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pybaum.readthedocs.io","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/OpenSourceEconomics.png","metadata":{"files":{"readme":"README.rst","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-24T17:23:11.000Z","updated_at":"2025-05-11T13:03:21.000Z","dependencies_parsed_at":"2023-12-25T20:31:49.655Z","dependency_job_id":"f2c82d12-04ff-4e22-bafb-14db49050135","html_url":"https://github.com/OpenSourceEconomics/pybaum","commit_stats":{"total_commits":15,"total_committers":4,"mean_commits":3.75,"dds":0.5333333333333333,"last_synced_commit":"e4dd27593e7ea7dd4f4d5d6c7169b68131f7d5b3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/OpenSourceEconomics/pybaum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceEconomics%2Fpybaum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceEconomics%2Fpybaum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceEconomics%2Fpybaum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceEconomics%2Fpybaum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenSourceEconomics","download_url":"https://codeload.github.com/OpenSourceEconomics/pybaum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceEconomics%2Fpybaum/sbom","scorecard":{"id":105555,"data":{"date":"2025-08-11","repo":{"name":"github.com/OpenSourceEconomics/pybaum","commit":"e4dd27593e7ea7dd4f4d5d6c7169b68131f7d5b3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":5,"reason":"Found 7/13 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-to-pypi.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/publish-to-pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-to-pypi.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/publish-to-pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-to-pypi.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/OpenSourceEconomics/pybaum/publish-to-pypi.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/publish-to-pypi.yml:19","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Warn: no topLevel permission defined: .github/workflows/publish-to-pypi.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish-to-pypi.yml:6"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T11:02:29.891Z","repository_id":37857135,"created_at":"2025-08-15T11:02:29.891Z","updated_at":"2025-08-15T11:02:29.891Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280333500,"owners_count":26312845,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-21T20:56:15.935Z","updated_at":"2025-10-21T20:56:17.227Z","avatar_url":"https://github.com/OpenSourceEconomics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pybaum\n======\n\n.. start-badges\n\n.. image:: https://img.shields.io/pypi/v/pybaum?color=blue\n    :alt: PyPI\n    :target: https://pypi.org/project/pybaum\n\n.. image:: https://img.shields.io/pypi/pyversions/pybaum\n    :alt: PyPI - Python Version\n    :target: https://pypi.org/project/pybaum\n\n.. image:: https://img.shields.io/conda/vn/conda-forge/pybaum.svg\n    :target: https://anaconda.org/conda-forge/pybaum\n\n.. image:: https://img.shields.io/conda/pn/conda-forge/pybaum.svg\n    :target: https://anaconda.org/conda-forge/pybaum\n\n.. image:: https://img.shields.io/pypi/l/pybaum\n    :alt: PyPI - License\n    :target: https://pypi.org/project/pybaum\n\n.. image:: https://readthedocs.org/projects/pybaum/badge/?version=latest\n    :target: https://pybaum.readthedocs.io/en/latest\n\n.. image:: https://img.shields.io/github/actions/workflow/status/OpenSourceEconomics/pybaum/main.yml?branch=main\n   :target: https://github.com/OpenSourceEconomics/pybaum/actions?query=branch%3Amain\n\n.. image:: https://codecov.io/gh/OpenSourceEconomics/pybaum/branch/main/graph/badge.svg\n    :target: https://codecov.io/gh/OpenSourceEconomics/pybaum\n\n.. image:: https://results.pre-commit.ci/badge/github/OpenSourceEconomics/pybaum/main.svg\n    :target: https://results.pre-commit.ci/latest/github/OpenSourceEconomics/pybaum/main\n    :alt: pre-commit.ci status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n\n.. end-badges\n\nInstallation\n------------\n\npybaum is available on `PyPI \u003chttps://pypi.org/project/pybaum\u003e`_ and `Anaconda.org\n\u003chttps://anaconda.org/conda-forge/pybaum\u003e`_. Install it with\n\n.. code-block:: console\n\n    $ pip install pybaum\n\n    # or\n\n    $ conda install -c conda-forge pybaum\n\n\nAbout\n-----\n\npybaum provides tools to work with pytrees which is a concept borrowed from `JAX\n\u003chttps://jax.readthedocs.io/en/latest/\u003e`_.\n\nWhat is a pytree?\n\nIn pybaum, we use the term pytree to refer to a tree-like structure built out of\ncontainer-like Python objects. Classes are considered container-like if they are in the\npytree registry, which by default includes lists, tuples, and dicts. That is:\n\n1. Any object whose type is not in the pytree container registry is considered a leaf\n   pytree.\n\n2. Any object whose type is in the pytree container registry, and which contains\n   pytrees, is considered a pytree.\n\nFor each entry in the pytree container registry, a container-like type is registered\nwith a pair of functions that specify how to convert an instance of the container type\nto a (children, metadata) pair and how to convert such a pair back to an instance of the\ncontainer type. Using these functions, pybaum can canonicalize any tree of registered\ncontainer objects into tuples.\n\nExample pytrees:\n\n.. code-block:: python\n\n    [1, \"a\", object()]  # 3 leaves\n\n    (1, (2, 3), ())  # 3 leaves\n\n    [1, {\"k1\": 2, \"k2\": (3, 4)}, 5]  # 5 leaves\n\npybaum can be extended to consider other container types as pytrees.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensourceeconomics%2Fpybaum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensourceeconomics%2Fpybaum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensourceeconomics%2Fpybaum/lists"}