{ "info": { "author": "CDSP", "author_email": "zephserver-scpolst@sciencespo.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: POSIX", "Programming Language :: Python :: 2.7" ], "description": "# Zephserver\n## Python service manager that can be used as a WebSocket server\n\nZephserver is a python service manager that can be used in a cluster.\nIt has been written to support a websocket server but it can be used for any other stuff needing full time services or cluster management.\n\nMore documentation on how the server works [here](http://zephserver.readthedocs.org/en/latest/)\n\n## Quickstart\n\nTo use zephserver you will need python 2.7. It should not work on python 3 and a Unix incompatible system.\n\n### Quickstart as service manager\n\n(use zephserver as a websocket server bellow)\n\n#### 1.Install zephserver from pip \n\n`pip install zephserver`\n\n#### 2.Create your folder\n\n`mkdir myserver`\n\n#### 3.Add the configuration file\n\ntake zephsettings.py file from the example folder.\n\nthe variable heart_beat_period, PORT_ZEPH and TASKS_PATH are not used\n\nempty the service list(these services are made for the websocket server)\n\n#### 4.Add the starter file\n\nCopy zephstarter_no_django.py file in your folder\n\n\n#### 5.Write your services\n\nread the zephserver/service/service_interface.py file to know the minimum interface you have to implement.\n\n#### 6.Register your service\n\nAdd your service to the SERVICE_LIST variable.\n\nRespect the syntax `my_server.my_package.my_service/MyService` syntaxe.\n\nexample for the service_interface it would be `'zephserver.service.service_interface/ServiceInterface'`\n\nnota : there is no need for the service object to have the same name as its file and there can be multiple services in a file.\n\n#### 7.Start your server\n\nTo start your server in the current shell, simply call : `python zephstarter_no_django.py`.\n\ntips: to not lock your shell user the ` &` modifier at the end of the command.\n\n#### 8.Stop your server\n\nto stop your server call `zephserver-stop /path/to/the/folder/interface.sock`\n\nIf the server died without the zephserver command (crash) you will have to remove the server.lock file.\n\n### Quickstart as websocket server\n\n#### 1.Install zephserver from pip \n\n`pip install zephserver`\n\nIf you wants to use django services (db_service and session backend with django) install django(only version 1.7 is supported)\n\n#### 2.Create your folder\n\n`mkdir myserver`\n\nif you use django myserver will simply refer to the django site folder \n\n#### 3.Add the configuration file\n\ntake zephsettings.py file from the example folder.\n\n#### 4.Add the starter file\n\nIf you use django Copy the zephstarter.py file and adpt it to your application otherwise copy zephstarter_no_django.py file in your folder\n\n#### 7.Start your server\n\nTo start your server in the current shell, simply call : `python zephstarter.py`.\n\ntips: to not lock your shell user the ` &` modifier at the end of the command.\n\n#### 8.Stop your server\n\nto stop your server call `zephserver-stop /path/to/the/folder/interface.sock`\n\nIf the server died without the zephserver command (crash) you will have to remove the server.lock file.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/CDSP/zephserver", "keywords": "websocket,zeph,server,zephserver", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "zephserver", "package_url": "https://pypi.org/project/zephserver/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zephserver/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/CDSP/zephserver" }, "release_url": "https://pypi.org/project/zephserver/0.1.27/", "requires_dist": null, "requires_python": null, "summary": "Python service manager that can be used as a websocket server", "version": "0.1.27" }, "last_serial": 1771314, "releases": { "0.1.24": [ { "comment_text": "", "digests": { "md5": "93a319645f308a7ed48a4150f5382428", "sha256": "4a48783b9cebfde8b72ad32505fbbcfdf11be8a410fab114d1639715f8f5cd6c" }, "downloads": -1, "filename": "zephserver-0.1.24.tar.gz", "has_sig": false, "md5_digest": "93a319645f308a7ed48a4150f5382428", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28611, "upload_time": "2015-10-01T15:26:19", "url": "https://files.pythonhosted.org/packages/25/77/90055661730162be9b453623a2f921b0630bbf692c2265c8c8c9e327df93/zephserver-0.1.24.tar.gz" } ], "0.1.26": [ { "comment_text": "", "digests": { "md5": "c4b603868bf33c096fa85ff5c31fed0c", "sha256": "d42182e32579a0f104f0d0d783416fd05723b51f2fbbddacc8f4525e5f339d4b" }, "downloads": -1, "filename": "zephserver-0.1.26.tar.gz", "has_sig": false, "md5_digest": "c4b603868bf33c096fa85ff5c31fed0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33498, "upload_time": "2015-10-14T13:45:10", "url": "https://files.pythonhosted.org/packages/b0/d0/aa76b7241863812717a8cd5b0fadd20583751be3bb18e817c8e5726051c7/zephserver-0.1.26.tar.gz" } ], "0.1.27": [ { "comment_text": "", "digests": { "md5": "956dc52cd4caa155c3ac71f0b1461176", "sha256": "0a1bdfc8826c416465526786c5231daa3642118333a6a238fbb356c63bb178be" }, "downloads": -1, "filename": "zephserver-0.1.27.tar.gz", "has_sig": false, "md5_digest": "956dc52cd4caa155c3ac71f0b1461176", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33817, "upload_time": "2015-10-15T14:11:30", "url": "https://files.pythonhosted.org/packages/eb/94/63e29d0ec7356084c317ab67edc2dd511118a836f1b1d15071eb001030d3/zephserver-0.1.27.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "956dc52cd4caa155c3ac71f0b1461176", "sha256": "0a1bdfc8826c416465526786c5231daa3642118333a6a238fbb356c63bb178be" }, "downloads": -1, "filename": "zephserver-0.1.27.tar.gz", "has_sig": false, "md5_digest": "956dc52cd4caa155c3ac71f0b1461176", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33817, "upload_time": "2015-10-15T14:11:30", "url": "https://files.pythonhosted.org/packages/eb/94/63e29d0ec7356084c317ab67edc2dd511118a836f1b1d15071eb001030d3/zephserver-0.1.27.tar.gz" } ] }