{"id":18978228,"url":"https://github.com/autodesk/pyccc","last_synced_at":"2025-04-19T17:36:04.732Z","repository":{"id":62579205,"uuid":"63356771","full_name":"Autodesk/pyccc","owner":"Autodesk","description":"Asynchronous job and file i/o management for containers","archived":false,"fork":false,"pushed_at":"2022-12-09T19:34:14.000Z","size":363,"stargazers_count":15,"open_issues_count":4,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T10:51:22.746Z","etag":null,"topics":["asynchronous","containers","docker","jobs","python"],"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/Autodesk.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":"2016-07-14T17:37:30.000Z","updated_at":"2023-11-13T14:09:03.000Z","dependencies_parsed_at":"2023-01-25T17:31:29.500Z","dependency_job_id":null,"html_url":"https://github.com/Autodesk/pyccc","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk%2Fpyccc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk%2Fpyccc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk%2Fpyccc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk%2Fpyccc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Autodesk","download_url":"https://codeload.github.com/Autodesk/pyccc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248863336,"owners_count":21173981,"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":["asynchronous","containers","docker","jobs","python"],"created_at":"2024-11-08T15:32:40.805Z","updated_at":"2025-04-16T11:31:44.515Z","avatar_url":"https://github.com/Autodesk.png","language":"Python","readme":"# PYCCC\nA lightweight, high-level python library for running asynchronous commands in docker containers and handling their input and output files.\n\n\n\n[![PyPI version](https://badge.fury.io/py/pyccc.svg)](https://badge.fury.io/py/pyccc) [ ![Codeship Status for Autodesk/py-cloud-compute-cannon](https://app.codeship.com/projects/cfce5d40-17f0-0135-533b-7a1debe13560/status?branch=master)](https://app.codeship.com/projects/218766)\n\n#### What does the \"CCC\" stand for?\n\nNothing currently! It originally stood for [Cloud Compute Cannon](https://github.com/Autodesk/cloud-compute-cannon), which this project originally contained bindings for.\n\n\n## Installation\n\nNormal installation:\n`pyccc` works with Python 2.7 and 3.5+. In normal operation, it also requires a local version of [docker](https://www.docker.com/get-docker) running.\n\n```shell\npip install pyccc\n```\n\nDev install:\n```shell\ngit clone https://github.com/autodesk/py-cloud-compute-cannon\npip install -e py-cloud-compute-cannon\n```\n\n## Examples\n\nRun an executable in a docker container:\n```python\n\u003e\u003e\u003e engine = pyccc.engines.Docker()\n\u003e\u003e\u003e job = engine.launch(image='alpine',\n                        command='echo hello world')\n\u003e\u003e\u003e job.wait()\n\u003e\u003e\u003e job.stdout\n'hello world\\n'\n\u003e\u003e\u003e job.exitcode\n0\n```\n\n\nCall a python function *inside* a docker container and return the result:\n```python\n\u003e\u003e\u003e engine = pyccc.engines.Docker()\n\u003e\u003e\u003e def add_one_to_it(x):\n...    return x+1\n\u003e\u003e\u003e job = engine.launch(command=pyccc.PythonCall(add_one_to_it, 5),\n...                     image='python:3.6-alpine')\n\u003e\u003e\u003e job.wait()\n\u003e\u003e\u003e job.result\n6\n```\n\n## Documentation\n\nCurrently, whatever documentation exists, exists only in docstrings.\n\nFor Job options, see `pyccc.Job.__doc__`.\n\n## Contributing\n`pyccc` is developed and maintained by the [Molecular Design Toolkit](https://github.com/autodesk/molecular-design-toolkit) project. Please see that project's [CONTRIBUTING document](https://github.com/autodesk/molecular-design-toolkit/CONTRIBUTING.md) for details.\n\n\n## License\n\nCopyright 2016-2018 Autodesk Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk%2Fpyccc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautodesk%2Fpyccc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk%2Fpyccc/lists"}