{"id":20374805,"url":"https://github.com/gisce/py-gisce-client","last_synced_at":"2025-04-12T07:13:36.160Z","repository":{"id":65215697,"uuid":"587364753","full_name":"gisce/py-gisce-client","owner":"gisce","description":"Python Client to GISCE ERP","archived":false,"fork":false,"pushed_at":"2025-03-19T13:15:11.000Z","size":50,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-12T07:13:09.675Z","etag":null,"topics":["erp","gisce","hacktoberfest","msgpack","python","rest-client","xml-rpc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gisce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-01-10T15:26:24.000Z","updated_at":"2025-03-19T13:15:14.000Z","dependencies_parsed_at":"2024-11-15T05:16:28.373Z","dependency_job_id":null,"html_url":"https://github.com/gisce/py-gisce-client","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":0.4285714285714286,"last_synced_commit":"b9a9ce997da76238472f6d33abb1b0ab9a87b30a"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fpy-gisce-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fpy-gisce-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fpy-gisce-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fpy-gisce-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gisce","download_url":"https://codeload.github.com/gisce/py-gisce-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530570,"owners_count":21119600,"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":["erp","gisce","hacktoberfest","msgpack","python","rest-client","xml-rpc"],"created_at":"2024-11-15T01:27:05.721Z","updated_at":"2025-04-12T07:13:36.114Z","avatar_url":"https://github.com/gisce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-gisce-client\n\npy-gisce-client is a Python client to access the [GISCE ERP](https://github.com/gisce/erp)\n\n## Using REST API interface\n\n```python\nfrom gisce import RestApiClient as Client\nurl = 'http://localhost:5000'\nuser = 'admin'\npassword = 'admin'\nc = Client(url, user=user, password=password)\nusers_obj = c.model('res.users')\n```\n\n## Using MsgPack API interface\n```python\nfrom gisce import MsgPackClient as Client\nurl = 'http://localhost:8068'\nuser = 'admin'\npassword = 'admin'\ndatabase = 'test'\nc = Client(url, database=database, user=user, password=password)\nusers_obj = c.model('res.users')\n```\n\n## Using XML-RPC API interface\n```python\nfrom gisce import XmlRpcClient as Client\nurl = 'http://localhost:8069'\nuser = 'admin'\npassword = 'admin'\ndatabase = 'test'\nc = Client(url, database=database, user=user, password=password)\nusers_obj = c.model('res.users')\n```\n\n### Webservice transactions with XML-RPC\n\n```python\nfrom gisce import XmlRpcClientWst as Client\nfrom gisce import XmlRpcClient as Client\nurl = 'http://localhost:8069'\nuser = 'admin'\npassword = 'admin'\ndatabase = 'test'\nc = Client(url, database=database, user=user, password=password)\nc.begin() # Start a new server transaction\nusers_obj = c.model('res.users')\nusers_obj.write([1], {'name': 'Fooo'})\nc.commit() # or c.rollback()\nc.close()\n```\n\nA `with_statement` is supported too\n\n```python\nwith Client(url, database=database, user=user, password=password) as c:\n    # All of this requests will use the same transaction\n    users_obj = c.model('res.users')\n    users_obj.write([1], {'name': 'Fooo'})\n\n# on exit transaction will be rollbacked / commited if errors / no errors,\n# and closed\n```\n\n## Using a single method\n```python\nfrom gisce import connect\nurl = 'http+xmlrpc://localhost:8069'\nc = connect(url,'test', user='admin', password='agmin')\nusers_obj = c.model('res.users')\n```\n\nWhere allowed protocols are:\n - http[s]+restpai\n - http[s]+msgpack\n - http[s]+xmlrpc\n - http[s]+xmlrpc-wst (XML-RPC with server transactions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fpy-gisce-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgisce%2Fpy-gisce-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fpy-gisce-client/lists"}