{"id":30610115,"url":"https://github.com/neurobionics/pyopensim","last_synced_at":"2025-08-30T04:13:58.963Z","repository":{"id":309398613,"uuid":"1030348497","full_name":"neurobionics/pyopensim","owner":"neurobionics","description":"Portable python bindings for OpenSim with comprehensive type hints.","archived":false,"fork":false,"pushed_at":"2025-08-16T20:31:26.000Z","size":392,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T08:44:40.916Z","etag":null,"topics":["biomechanical-simulations","biomechanics","opensim","python","python3","robotics","robotics-simulation","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neurobionics.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-01T13:40:14.000Z","updated_at":"2025-08-16T20:27:48.000Z","dependencies_parsed_at":"2025-08-11T18:29:09.239Z","dependency_job_id":"b219b7bc-50cd-4f78-bbc9-c0d231ee3f7b","html_url":"https://github.com/neurobionics/pyopensim","commit_stats":null,"previous_names":["neurobionics/pyopensim"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/neurobionics/pyopensim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobionics%2Fpyopensim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobionics%2Fpyopensim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobionics%2Fpyopensim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobionics%2Fpyopensim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neurobionics","download_url":"https://codeload.github.com/neurobionics/pyopensim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurobionics%2Fpyopensim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272801463,"owners_count":24995299,"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-08-30T02:00:09.474Z","response_time":77,"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":["biomechanical-simulations","biomechanics","opensim","python","python3","robotics","robotics-simulation","simulation"],"created_at":"2025-08-30T04:13:58.338Z","updated_at":"2025-08-30T04:13:58.952Z","avatar_url":"https://github.com/neurobionics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyopensim\n\nPortable Python bindings for [OpenSim](https://opensim.stanford.edu/) with comprehensive type hints.\n\n[![PyPI version](https://badge.fury.io/py/pyopensim.svg)](https://badge.fury.io/py/pyopensim)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n## Key Features\n\n- **Portable**: Self-contained Python wheels with bundled OpenSim libraries\n- **Type Hints**: Comprehensive `.pyi` stub files for excellent IDE support and type checking\n- **Cross-Platform**: Native support for Windows (work in progress), macOS, and Linux\n- **Official Bindings**: Uses OpenSim's native SWIG bindings for full API compatibility\n- **PyPI Ready**: Simple `pip install` - integrates with standard Python packaging\n\n## Installation\n\nInstall directly from PyPI:\n\n```bash\npip install pyopensim\n```\n\nNo additional setup required! All OpenSim libraries are bundled in the wheel.\n\n## Why pyopensim?\n\nWhile the OpenSim team provides excellent [conda packages](https://anaconda.org/opensim-org/opensim), pyopensim offers complementary benefits for specific use cases:\n\n- **PyPI Integration**: Available through standard `pip install` for seamless integration with PyPI-based workflows\n- **Enhanced IDE Support**: Comprehensive type hints (`.pyi` stubs) provide excellent autocomplete, type checking, and documentation in modern IDEs\n- **Wheel Distribution**: Self-contained wheels make it easy to bundle OpenSim with your applications without requiring users to manage conda environments\n- **Flexible Deployment**: Works well in environments where conda isn't preferred (Docker containers, CI/CD pipelines)\n\n## Quick Start\n\n```python\nimport pyopensim as osim\n\n# Create a simple model\nmodel = osim.Model()\nmodel.setName(\"MyModel\")\n\n# Add a body\nbody = osim.Body(\"body\", 1.0, osim.Vec3(0), osim.Inertia(1))\nmodel.addComponent(body)\n\n# Build and initialize\nstate = model.initSystem()\nprint(f\"Model has {model.getNumBodies()} bodies\")\n```\n\n## PyPI Distribution\n\npyopensim is automatically built and deployed to [PyPI](https://pypi.org/project/pyopensim/) using:\n\n- **Automated Builds**: GitHub Actions CI/CD builds wheels for all platforms\n- **cibuildwheel**: Ensures compatibility across Python versions and platforms  \n- **Bundled Libraries**: All OpenSim dependencies are included in the wheels\n- **Version Management**: Semantic versioning aligned with OpenSim releases\n- **Automated Tests**: Automated testing ensures each release works correctly\n\nThis provides an alternative distribution method that complements the official OpenSim library.\n\n## Contributing\n\nWe welcome contributions of all kinds! Whether you're fixing bugs, improving type stubs, or enhancing documentation, your help is appreciated.\n\n**[Contributing Guidelines](CONTRIBUTING.md)** - Complete guide for contributors\n\n**Key areas where you can help:**\n- **Type Stub Improvements**: Enhance IDE support and type checking\n- **Documentation**: Add examples and usage guides  \n- **Testing**: Cross-platform validation and edge cases\n- **Bug Reports**: Help us improve reliability\n\n## Relationship to OpenSim\n\npyopensim is an unofficial python package that is built on top of the official [OpenSim](https://github.com/opensim-org/opensim-core) project:\n\n- **Same API**: Identical to the official OpenSim Python bindings\n- **Same Functionality**: Full access to all OpenSim features and capabilities\n- **Regular Updates**: Tracks OpenSim releases to provide latest features\n\nTo use the official OpenSim conda package, checkout this [package](https://anaconda.org/opensim-org/opensim).\n\n## Development\n\nThis project builds OpenSim from source to create self-contained Python wheels:\n\n```bash\n# Clone the repository\ngit clone https://github.com/neurobionics/pyopensim.git\ncd pyopensim\n\n# Build OpenSim and dependencies\nmake setup\n\n# Build Python wheels\nmake build\n```\n\nThe build process includes:\n- Compiling OpenSim's C++ libraries and dependencies\n- Generating SWIG Python bindings\n- Creating comprehensive type stubs for IDE support\n- Bundling everything into portable wheels\n\n## License\n\nThis project is licensed under [Apache License 2.0](LICENSE). OpenSim is licensed under the Apache License 2.0.\nSee the [OpenSim license](https://github.com/opensim-org/opensim-core/blob/main/LICENSE.txt) for details.\n\n## Issues\n\nIf you encounter any issues or have questions regarding pyopensim, please open an issue [here](https://github.com/neurobionics/pyopensim/issues).\n\n## Community \u0026 Support\n\n- **[Report Issues](https://github.com/neurobionics/pyopensim/issues)** - Bug reports and feature requests\n- **[Discussions](https://github.com/neurobionics/pyopensim/discussions)** - Questions and community support\n- **[OpenSim Documentation](https://simtk-confluence.stanford.edu/display/OpenSim/Documentation)** - Official OpenSim resources\n- **[OpenSim Website](https://opensim.stanford.edu/)** - OpenSim project","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurobionics%2Fpyopensim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneurobionics%2Fpyopensim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurobionics%2Fpyopensim/lists"}