{"id":28458775,"url":"https://github.com/openmined/threepio","last_synced_at":"2025-10-08T17:17:29.295Z","repository":{"id":39730839,"uuid":"232368812","full_name":"OpenMined/Threepio","owner":"OpenMined","description":"A multi-language library for translating commands between PyTorch, TensorFlow, and TensorFlow.js","archived":false,"fork":false,"pushed_at":"2022-11-21T22:58:12.000Z","size":2012,"stargazers_count":56,"open_issues_count":27,"forks_count":15,"subscribers_count":15,"default_branch":"dev","last_synced_at":"2025-06-07T00:39:51.706Z","etag":null,"topics":["hacktoberfest","pytorch","tensorflow","tensorflowjs"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenMined.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-01-07T16:37:33.000Z","updated_at":"2024-01-04T16:41:07.000Z","dependencies_parsed_at":"2023-01-21T03:01:44.612Z","dependency_job_id":null,"html_url":"https://github.com/OpenMined/Threepio","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/OpenMined/Threepio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FThreepio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FThreepio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FThreepio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FThreepio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenMined","download_url":"https://codeload.github.com/OpenMined/Threepio/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FThreepio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263111397,"owners_count":23415444,"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":["hacktoberfest","pytorch","tensorflow","tensorflowjs"],"created_at":"2025-06-07T00:39:46.485Z","updated_at":"2025-10-08T17:17:24.259Z","avatar_url":"https://github.com/OpenMined.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Threepio logo](/threepio.png)\n\n![Coverage](https://img.shields.io/codecov/c/github/OpenMined/threepio)\n![License](https://img.shields.io/github/license/OpenMined/threepio)\n![OpenCollective](https://img.shields.io/opencollective/all/openmined)\n\n# Threepio\n\nThreepio makes it _dead simple_ to translate commands between machine learning frameworks such as **PyTorch, Tensorflow.js, and Tensorflow Python**.\nIt acts as a core component in [PySyft](https://github.com/OpenMined/PySyft) and [syft.js](https://github.com/OpenMined/syft.js).\nSome of the life changing features this library provides are:\n\n - :robot: Automatic bi-directional translation between same named commands `add`, `abs`, etc.\n - :brain: Smart argument mapping between automaticaly translated commands\n - :repeat: Word level translation between libraries\n - :wrench: Custom command translation\n - :herb: One to many command translation\n - :zap: Translation of tensor methods _(in progress)_\n - :mag: Support for fuzzy match in automatic command translation _(in progress)_\n - :card_index_dividers: Support for framework versioning in automatic translation _(in progress)_\n - :mage_man: Support for automatic argument type casting (tensorflow tensor -\u003e pytorch tensor) _(in progress)_\n\nThreepio is made up of two main components:\n- :spider: [Documentation Crawler](/docs-crawler) - This generates the majority of our automatic translations for Threepio\n- :snake: [Python translation library](/pythreepio) - This is the python library for using threepio\n\n~And has clients in both Python and Javascript!~\nAnd has a client available in Python!\n\n## Installation\n\nDepending on your language, installation will differ.\n\n### Python\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install threepio.\n\n```bash\npip install 3p0\n```\n\n#### Usage\n\nPlease check out our [usage document](/pythreepio/README.md) for further guidelines.\n\n### Javascript\n** Threepio.js has been deprecated. For existing javascript code, please refer to commit [0a538a3f](https://github.com/OpenMined/Threepio/commit/0a538a3f1ed70b39be541766211f6b84e2136fc3) **\n\n#### Usage\n\nPlease check out our [usage document](/js/README.md) for further guidelines.\n\n## Support\n\nFor support in using this library, please join the **#lib_threepio** Slack channel. If you'd like to follow along with any code changes to the library, please join the **#code_threepio** Slack channel. [Click here to join our Slack community!](https://slack.openmined.org)\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## Contributors\n\nThanks to these awesome people:\n\n\u003cbr\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/Nolski\"\u003e\n        \u003cimg src=\"https://avatars2.githubusercontent.com/u/2600677?s=460\u0026u=811946f54689f01b8393b654d272e16f3f3edcb7\u0026v=4\" width=\"170px;\" alt=\"Mike Nolan avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003eMike Nolan\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eOM FL Workers Team / Author\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/AmrMKayid\"\u003e\n        \u003cimg src=\"https://avatars2.githubusercontent.com/u/18689888?s=460\u0026u=a06bdf9b6b680199616f20d818d4995bf1fe34fa\u0026v=4\"  width=\"170px;\" alt=\"Amr Kayid avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003eAmr Kayid\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eContributor\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/vvmnnnkv\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/12518480?s=460\u0026u=6fb6c713741b863c49a0ba0b78dd3ced2d1629ce\u0026v=4\"  width=\"170px;\" alt=\"Vova Manannikov avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003eVova Manannikov\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eOM FL Workers Team\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/cereallarceny\"\u003e\n        \u003cimg src=\"https://avatars2.githubusercontent.com/u/1297930?s=460\u0026u=e7b99423492a3b853d610381bc1f4c430988947a\u0026v=4\"  width=\"170px;\" alt=\"Patrick Cason avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003ePatrick Cason\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eOM FL Workers Team Lead\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/ateniolatobi\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/28807442?s=460\u0026u=c55b6dc59f3b075081d039e47867e02c1127ced3\u0026v=4\" width=\"170px;\" alt=\"Tvictor avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003eTvictor\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eOM FL Workers Team\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/ramesht007\"\u003e\n        \u003cimg src=\"https://avatars2.githubusercontent.com/u/36106177?s=460\u0026u=09a9cee652a005ef6f4aed14844c659b56dfcdc7\u0026v=4\" width=\"170px;\" alt=\"Raemsht Shukla avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003eRamesht Shukla\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eOM FL Workers Team\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/juharris\"\u003e\n        \u003cimg src=\"https://avatars2.githubusercontent.com/u/1594505?s=460\u0026u=ad2e7ce918028dce4c0f6c33275357e9c7c4819d\u0026v=4\"  width=\"170px;\" alt=\"Justin D. Harris avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003eJustin D. Harris\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eContributor\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/pedroespindula\"\u003e\n        \u003cimg src=\"https://avatars2.githubusercontent.com/u/38431219?s=460\u0026u=003868dcbbbad26cf23f8eb14d06501354b946c7\u0026v=4\"  width=\"170px;\" alt=\"Pedro Espíndula avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003ePedro Espíndula\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eContributor\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e    \n  \u003c/tr\u003e\n  \u003ctr\u003e\n  \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/anirbansaha782\"\u003e\n        \u003cimg src=\"https://avatars1.githubusercontent.com/u/55926653?s=460\u0026v=4\"  width=\"170px;\" alt=\"Anirban Aaha avatar\"\u003e\n        \u003cbr /\u003e\u003csub\u003e\u003cb\u003eAnirban Aaha\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\n        \u003csub\u003eContributor\u003c/sub\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \n  \n\u003c/table\u003e\n\u003cbr\u003e\n\n## License\n[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmined%2Fthreepio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenmined%2Fthreepio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmined%2Fthreepio/lists"}