{ "info": { "author": "Dominic Monn", "author_email": "monn.dominic@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Application Frameworks" ], "description": "Django-Directmessages\n=====================\n\n.. image:: https://travis-ci.org/dmonn/django-directmessages.svg?branch=master\n :target: https://travis-ci.org/dmonn/django-directmessages\n\nDjango-Directmessages is a low-level and easy-to-use Django App to manage simple directmessages.\nIn contrast to other Django Apps for messaging, Django-Directmessages doesn't use any type of pre-built templates and is concentrated on the programmatic usage.\n\nDjango-Directmessage is thought to be used with APIs or small apps, but can be used for any type of messaging. It featues:\n\n* Sending of private 1-to-1 messages between users.\n* Listing unread messages for a given user.\n* Read a given message \n* Get all conversation partners/contacted users for a given user\n* Read a whole conversation between two users.\n\nRequirements\n============\n\n*Django >= 1.5* is supported\n\nInstallation\n============\n\n1. ``pip install django-directmessages``\n2. add ``\"directmessages\"`` to ``INSTALLED_APPS`` and run ``python manage.py migrate``.\n\nUsage\n=====\n\nImport the Message Management API on top of your ``views.py`` ::\n\n\tfrom directmessages.apps import Inbox\n\n* Send message: ``Inbox.send_message(from_user, to_user, message)``\n* List all unread messages: ``Inbox.get_unread_messages(user)``\n* Read a message (and mark as read): ``Inbox.read_message(message)``\n* Print a message as : : ``Inbox.read_message_formatted(message)``\n* Print a list of all conversation partners for a user: ``Inbox.get_conversations(users)``\n* Get a conversation between two users: ``Inbox.get_conversation(user1, user2, _limit_, _reversed_, _mark_read_)``\n\t- Limit (Int: optional): Instead of getting the whole conversation, get the first 50 (depends on reversed)\n\t- Reversed (Bool: optional): Usually the 'limit'-param gives back the first x messages, if you put Reversed to True, limit will give back the x latest messages.\n\t- Mark_Read (Bool: optional): Mark all messages in conversation as read\n\nSignals\n=======\n\nYou can use the following signals to extend the app for your needs\n\n* message_sent:\n\tGets called as soon as a message is sent.\n\tProvides the Message object, the sender and the recipient as params.\n\n* message_read:\n\tGets called as soon as a message is read:\n\tProvides the Message object, the sender and the recipient as params.\n\nContributing\n============\n\nBug reports, patches and fixes are always welcome!\n\n\nTo Do\n=====\n\n* Add some security functions (e.g checking if user is allowed to read a message)\n* Add some custom exceptions (e.g. when no message was found)", "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/dmonn/django-directmessages/", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-directmessages", "package_url": "https://pypi.org/project/django-directmessages/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-directmessages/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dmonn/django-directmessages/" }, "release_url": "https://pypi.org/project/django-directmessages/0.9.7/", "requires_dist": null, "requires_python": null, "summary": "Django-Directmessages is a low-level and easy-to-use Django App to manage simple directmessages.", "version": "0.9.7" }, "last_serial": 2346185, "releases": { "0.9.1": [ { "comment_text": "", "digests": { "md5": "519d2c4b9c6c289eb8808985e6659a30", "sha256": "bbf7cc057effe76b5f2142eebe7389c5fc9899389615a14e3a6ee76bf457c3a6" }, "downloads": -1, "filename": "django_directmessages-0.9.1-py2-none-any.whl", "has_sig": false, "md5_digest": "519d2c4b9c6c289eb8808985e6659a30", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9928, "upload_time": "2016-07-24T19:08:51", "url": "https://files.pythonhosted.org/packages/d9/76/75bb33b6e1fcd76a730a9aa5561086a3bcf715cd1b38ba37499f1d06c5de/django_directmessages-0.9.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95889195d17c3875b1ce90e94678d880", "sha256": "17eca7ff17287bbd34bab49aa4e507b1d86e6be54775a68beac182fa3372c384" }, "downloads": -1, "filename": "django-directmessages-0.9.1.tar.gz", "has_sig": false, "md5_digest": "95889195d17c3875b1ce90e94678d880", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6516, "upload_time": "2016-07-24T19:08:49", "url": "https://files.pythonhosted.org/packages/ad/66/88f8333201ad34702690a0678dceeb6bfdfdb05ec5db8fcda238a4265eeb/django-directmessages-0.9.1.tar.gz" } ], "0.9.2": [], "0.9.3": [ { "comment_text": "", "digests": { "md5": "471eda6713d348bd05cc40407ec516b8", "sha256": "b3cb119b3324fbaffd44569ca3b66381b01ed1782f57194dacd8de744e7210e8" }, "downloads": -1, "filename": "django-directmessages-0.9.3.tar.gz", "has_sig": false, "md5_digest": "471eda6713d348bd05cc40407ec516b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6660, "upload_time": "2016-07-26T07:02:59", "url": "https://files.pythonhosted.org/packages/5b/ea/99d2b34ba01ed46b7be849191522db15fee84957fe35bfeebe7a88c8270a/django-directmessages-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "587a827998ff58e5c27b91282eb3309c", "sha256": "22e45e1381c8fa56854b145b9c8679769afaae1625b9c9fbd3aa3c0a0a054531" }, "downloads": -1, "filename": "django-directmessages-0.9.4.tar.gz", "has_sig": false, "md5_digest": "587a827998ff58e5c27b91282eb3309c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6650, "upload_time": "2016-08-18T20:15:14", "url": "https://files.pythonhosted.org/packages/db/03/e9fd76a8ed87a2eb40775e7b13306437dc684ae131cc8e4521ef2c9563b9/django-directmessages-0.9.4.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "51cc486cf8cbf975c4d23a1f66606c1c", "sha256": "8f6fe3a69acebae6ea69c0fe13fb552d9c83aa5a0321c96a4217d42bd0e7d846" }, "downloads": -1, "filename": "django-directmessages-0.9.6.tar.gz", "has_sig": false, "md5_digest": "51cc486cf8cbf975c4d23a1f66606c1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6682, "upload_time": "2016-09-16T12:54:07", "url": "https://files.pythonhosted.org/packages/c7/51/d4e3e4e500a979102f55b98cd09d6e4afb3f2e11bd880d07db22663a585c/django-directmessages-0.9.6.tar.gz" } ], "0.9.7": [ { "comment_text": "", "digests": { "md5": "f67d2b7c0688e1587c5e49fbcc1ba514", "sha256": "2fd0ec37f83e57fd9869df1240f3b2e81a50442fe3423c2f59f4b8f5789e689a" }, "downloads": -1, "filename": "django-directmessages-0.9.7.tar.gz", "has_sig": false, "md5_digest": "f67d2b7c0688e1587c5e49fbcc1ba514", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6682, "upload_time": "2016-09-16T13:01:37", "url": "https://files.pythonhosted.org/packages/c0/53/4a00fa4d706c5200ac0d37fc2dda7332200584c63ba679d5a063469de076/django-directmessages-0.9.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f67d2b7c0688e1587c5e49fbcc1ba514", "sha256": "2fd0ec37f83e57fd9869df1240f3b2e81a50442fe3423c2f59f4b8f5789e689a" }, "downloads": -1, "filename": "django-directmessages-0.9.7.tar.gz", "has_sig": false, "md5_digest": "f67d2b7c0688e1587c5e49fbcc1ba514", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6682, "upload_time": "2016-09-16T13:01:37", "url": "https://files.pythonhosted.org/packages/c0/53/4a00fa4d706c5200ac0d37fc2dda7332200584c63ba679d5a063469de076/django-directmessages-0.9.7.tar.gz" } ] }