{"id":34038808,"url":"https://github.com/optimdata/pyinuse","last_synced_at":"2026-03-27T04:31:37.184Z","repository":{"id":58630248,"uuid":"280426776","full_name":"optimdata/pyinuse","owner":"optimdata","description":"Official Python client for InUse","archived":false,"fork":false,"pushed_at":"2022-09-28T14:25:08.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-03-07T15:37:48.474Z","etag":null,"topics":["api-client","python"],"latest_commit_sha":null,"homepage":"https://inuse.eu","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/optimdata.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-17T13:07:17.000Z","updated_at":"2022-05-31T15:40:22.000Z","dependencies_parsed_at":"2022-09-23T12:12:05.898Z","dependency_job_id":null,"html_url":"https://github.com/optimdata/pyinuse","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/optimdata/pyinuse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimdata%2Fpyinuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimdata%2Fpyinuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimdata%2Fpyinuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimdata%2Fpyinuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optimdata","download_url":"https://codeload.github.com/optimdata/pyinuse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimdata%2Fpyinuse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31019395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-client","python"],"created_at":"2025-12-13T21:06:50.308Z","updated_at":"2026-03-27T04:31:37.162Z","avatar_url":"https://github.com/optimdata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyinuse\n\n`pyinuse` is the official Python client for [InUse](https://inuse.eu/) API.\n\nIt provides the following main API methods:\n\n- list\n- create\n- update\n- partial_update\n- retrieve\n- destroy\n\nFor main end points such as:\n\n- manufacturers\n- machine_models\n- machines\n- producers\n- sites\n- lines\n- machines\n- properties\n- multispans\n- csvs\n- posts\n- triggers\n- synoptics\n- files\n- agents\n- groups\n- favorites\n- notifications\n- alerts\n- sandboxes\n\nPlease refer to InUse API documentation (Accessible from the Studio) for more details.\n\n## API versioning\n\nThe actual API version is the **internal** API (not versioned) and is subject to changes. A versioned public API will be created in a later stage and used in this python client.\n\n## Example of usage\n\n```python\n# Library used to type a password in a secured way.\nimport getpass\n# Client library for the InUse API.\nfrom pyinuse import InUse\n# Library for logging\nimport logging\nlogging.basicConfig(format=\"%(asctime)s, %(name)s, %(levelname)s, %(message)s\", level=logging.INFO)\n\nmanufacturer_code=\"mycompany\" # replace with your manufacturer code\n\n# login\ninuse = InUse(base_url=f\"https://studio.{manufacturer_code}.productinuse.com\")\ninuse.login(input(\"Username? \"), getpass.getpass(\"Password? \"))\n\n# get my manufacturer\n# each endpoint is accessible by its name as an attribute of InUse instance\nmanufacturer = inuse.manufacturers.list()[0]\n\n# create a new machine_model\nmachine_model = inuse.machine_models.update_or_create(\n    params={\"manufacturer\": manufacturer[\"pk\"], \"code\": \"my-machine-model\"},\n    data={\n        \"manufacturer\": manufacturer[\"pk\"],\n        \"code\": \"my-machine-model\",\n        \"name\": \"my machine model\",\n    },\n)\n\n# logout once you're done\ninuse.logout()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimdata%2Fpyinuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptimdata%2Fpyinuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimdata%2Fpyinuse/lists"}