{"id":16785570,"url":"https://github.com/allancapistrano/soft-iot-python-to-java","last_synced_at":"2026-05-22T05:03:11.217Z","repository":{"id":216156100,"uuid":"739513610","full_name":"AllanCapistrano/soft-iot-python-to-java","owner":"AllanCapistrano","description":"Bundle OSGI responsável por permitir a execução de scripts em Python na plataforma SOFT-IoT.","archived":false,"fork":false,"pushed_at":"2024-02-13T13:15:32.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T09:24:34.542Z","etag":null,"topics":["karaf","osgi-bundle","python","soft-iot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AllanCapistrano.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}},"created_at":"2024-01-05T18:44:17.000Z","updated_at":"2024-02-13T12:47:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"56f8a023-cfee-434f-8649-e857e52f2be3","html_url":"https://github.com/AllanCapistrano/soft-iot-python-to-java","commit_stats":null,"previous_names":["allancapistrano/soft-iot-python-to-java"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanCapistrano%2Fsoft-iot-python-to-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanCapistrano%2Fsoft-iot-python-to-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanCapistrano%2Fsoft-iot-python-to-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanCapistrano%2Fsoft-iot-python-to-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AllanCapistrano","download_url":"https://codeload.github.com/AllanCapistrano/soft-iot-python-to-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945613,"owners_count":20372897,"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":["karaf","osgi-bundle","python","soft-iot"],"created_at":"2024-10-13T08:09:44.410Z","updated_at":"2026-05-22T05:03:11.152Z","avatar_url":"https://github.com/AllanCapistrano.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SOFT-IoT-Python-to-Java\n\nO `soft-iot-python-to-java` é o *bundle* responsável responsável por permitir a execução de scripts em Python na plataforma SOFT-IoT.\n\nÉ possível executar código Python usando:\n- [Apache Commons Exec](https://commons.apache.org/proper/commons-exec/index.html);\n- [Process Builder](https://docs.oracle.com/javase/8/docs/api/java/lang/ProcessBuilder.html).\n\nVale destacar que o `Apache Commons Exec` não lida muito bem com [Pythons lists](https://docs.python.org/3/tutorial/datastructures.html), enquanto o `Process Builder` não lida muito bem com [Numpy Array](https://numpy.org/doc/stable/reference/generated/numpy.array.html).\n\nEste é um *bundle* de propósito geral, porém é necessário implementar cada uma das formas de execução para o seu caso de uso. Para isso, basta seguir os exemplos para execução do Algorimo KMeans, através do [Apache Commons Exec](https://github.com/AllanCapistrano/soft-iot-python-to-java/blob/main/src/main/java/python/to/java/models/pythonExecutions/ApacheCommonKMeans.java) ou do [Process Builder](https://github.com/AllanCapistrano/soft-iot-python-to-java/blob/main/src/main/java/python/to/java/models/pythonExecutions/ProcessBuilderKMeans.java).\n\n## Configurações\n\nAs configurações são específicas para cada execução, dessa forma, quando implementá-las, basta criar uma nova variável de configuração para indicar onde que o *script* está localizado para ser executado.\n\n| Propriedade | Descrição | Valor Padrão |\n| ----------- | --------- | ------------ |\n| kmeansScriptPath | Caminho onde o script Python do KMeans está localizado. | `/opt/karaf/etc/python_scripts/kmeans.py` |\n\n## Licença\n[GPL-3.0 License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallancapistrano%2Fsoft-iot-python-to-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallancapistrano%2Fsoft-iot-python-to-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallancapistrano%2Fsoft-iot-python-to-java/lists"}