{ "info": { "author": "Michal Dabski", "author_email": "contact@michaldabski.com", "bugtrack_url": null, "classifiers": [], "description": "# GTA SA-MP client \n\n## RCON and query client library for Python\n\nA modern Python library for querying and managing SA-MP servers.\n \nSupported Python version 2.7, 3.4, 3.5 and 3.6\n\n### Installation\n```bash\npip install samp-client\n```\n\n### Usage\nThe library can be easily interfaced using a single `SampClient` class:\n\n```python\nfrom samp_client.client import SampClient\n\nwith SampClient(address='localhost', port=7777) as client:\n print client.get_server_info()\n```\n\nThe library also allows you to run RCON commands as well as queries:\n```python\nfrom samp_client.client import SampClient\n\nwith SampClient(address='localhost', port=7777, rcon_password='password') as client:\n client.rcon_cmdlist()\n```\n\nQuery and RCON responses are parsed into native Python structures:\n```python\nfrom samp_client.client import SampClient\n\nwith SampClient(address='localhost', port=7777, rcon_password='password') as client:\n info = client.get_server_info()\n print info\n # ServerInfo(password=True, players=9, max_players=100, hostname='Convoy Trucking', gamemode='Convoy Trucking 3.1.1', language='English')\n print info.gamemode\n # 'Convoy Trucking 3.1.1'\n print client.rcon_get_hostname()\n # ServerVar(name='hostname', value='Convoy Trucking', read_only=False)\n print client.rcon_players()[0].ping\n # 26\n```\n\n\n### Examples\nFolder `example/` contains usage example of the library\n\n### Running tests\nTo run tests:\n```bash\npython -m unittest discover -v\n```", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mick88/samp-client", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "samp-client", "package_url": "https://pypi.org/project/samp-client/", "platform": "", "project_url": "https://pypi.org/project/samp-client/", "project_urls": { "Homepage": "https://github.com/mick88/samp-client" }, "release_url": "https://pypi.org/project/samp-client/2.0.3/", "requires_dist": null, "requires_python": "", "summary": "SA-MP API client for python supporting both query and RCON APIs", "version": "2.0.3" }, "last_serial": 2999830, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "6fc5fbed7098236907fe4c96e5de1281", "sha256": "bd10333e4b45d91500b82564d24bc12990ea8671339131efba6233200927cad2" }, "downloads": -1, "filename": "samp-client-1.0.zip", "has_sig": false, "md5_digest": "6fc5fbed7098236907fe4c96e5de1281", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6405, "upload_time": "2017-06-11T22:07:21", "url": "https://files.pythonhosted.org/packages/0a/c2/179a3612be4c2bb1d460d3b019f774e9c82fbc2e65b4fb2e45003850e8c5/samp-client-1.0.zip" } ], "1.0.dev12": [ { "comment_text": "", "digests": { "md5": "cd0059e3f7e81c9207728d0cea5ec218", "sha256": "123e195bf829ab1626353e8e62f5c351936837ed5b3fac87362cd0ca1b303673" }, "downloads": -1, "filename": "samp-client-1.0.dev12.zip", "has_sig": false, "md5_digest": "cd0059e3f7e81c9207728d0cea5ec218", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7708, "upload_time": "2017-06-12T19:38:47", "url": "https://files.pythonhosted.org/packages/7c/ef/0676e7f6d56b0d3c6c9737b91e1f17aae0f67e8e39facc8c8ac3e50357e3/samp-client-1.0.dev12.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "a12fd1767e8b6400fe4eaff98f887480", "sha256": "4c71f6ae606f92662789684e4c4b7076f40c456b27f9a8b2b0351b7ccbf2cad2" }, "downloads": -1, "filename": "samp-client-1.1.zip", "has_sig": false, "md5_digest": "a12fd1767e8b6400fe4eaff98f887480", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7607, "upload_time": "2017-06-12T19:41:36", "url": "https://files.pythonhosted.org/packages/d2/57/c680fa0c93f8039d8917085f9e38debaf6b8e438d4939f5615e4e8cc5eb4/samp-client-1.1.zip" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "df00e45a4cb20b71b4ae56adb9527c9f", "sha256": "39f3445752e6fe632136cb29d04ebdbc8f7655d4d39ccec2c1ab67b57e4ca80c" }, "downloads": -1, "filename": "samp-client-2.0.zip", "has_sig": false, "md5_digest": "df00e45a4cb20b71b4ae56adb9527c9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7685, "upload_time": "2017-07-02T20:35:11", "url": "https://files.pythonhosted.org/packages/37/70/8a3ef0c8e9550b399d85438063cae0f9552cdac9855d92d48de5d8b57362/samp-client-2.0.zip" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "cbacbd98503e27bc096d27519bf844cc", "sha256": "6feb0ea70782d0ceea7bd643af132d817a3bb1d47dfd59a913110318c2f13596" }, "downloads": -1, "filename": "samp-client-2.0.1.zip", "has_sig": false, "md5_digest": "cbacbd98503e27bc096d27519bf844cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7562, "upload_time": "2017-07-04T19:31:55", "url": "https://files.pythonhosted.org/packages/8f/36/92563dfabea2c1f92afef92676f9b60a3296c578d843b07671da23b79547/samp-client-2.0.1.zip" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "7838e50dea88dffa6d2c0d66e6c48db9", "sha256": "71409add535480da11bb8d55b8e99b5df9c2af3467b2964c4eb5d2f7d8e9284f" }, "downloads": -1, "filename": "samp-client-2.0.2.zip", "has_sig": false, "md5_digest": "7838e50dea88dffa6d2c0d66e6c48db9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7586, "upload_time": "2017-07-04T19:44:58", "url": "https://files.pythonhosted.org/packages/2a/a1/4927254b0d638f4c7f64b3aa9847eb1aa5119538092e0a2c1b814d7eb358/samp-client-2.0.2.zip" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "bb3fb95988ca1baf2256ed35fc2f5198", "sha256": "47dd562cfd5cf6416d67a905a761cfa6d0011ed544aba92db90e0acfbac86e2c" }, "downloads": -1, "filename": "samp-client-2.0.3.zip", "has_sig": false, "md5_digest": "bb3fb95988ca1baf2256ed35fc2f5198", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7581, "upload_time": "2017-07-04T19:59:57", "url": "https://files.pythonhosted.org/packages/96/1e/6c3b788651a5c7a47cb17f7056a8fd1d31806f67eb680b9213f6caf1c122/samp-client-2.0.3.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bb3fb95988ca1baf2256ed35fc2f5198", "sha256": "47dd562cfd5cf6416d67a905a761cfa6d0011ed544aba92db90e0acfbac86e2c" }, "downloads": -1, "filename": "samp-client-2.0.3.zip", "has_sig": false, "md5_digest": "bb3fb95988ca1baf2256ed35fc2f5198", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7581, "upload_time": "2017-07-04T19:59:57", "url": "https://files.pythonhosted.org/packages/96/1e/6c3b788651a5c7a47cb17f7056a8fd1d31806f67eb680b9213f6caf1c122/samp-client-2.0.3.zip" } ] }