{ "info": { "author": "Chris Streeter", "author_email": "pypi@chrisstreeter.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development" ], "description": "## About\n\nAn implementation of a Django model that returns tickets, as described\nin the [Flickr blog post][flickr]. Currently, requires MySQL and Django 1.6 or\nhigher.\n\n## Installation\n\nI uploaded it to [PyPi][pypi], so you can grab it there if you'd like with\n\n```\npip install django-ticketing\n```\n\nor install it with pip using the git address:\n\n```\npip install git+git@github.com:streeter/django-ticketing.git\n```\n\nThen add `ticketing` to your `INSTALLED\\_APPS`.\n\n## Usage\n\nTo use this, you can either use the model interface, or just the shortcut\nfunction defined in `ticketing.models`. That usage looks like this:\n\n```python\n# Import the function\nfrom ticketing.models import get_ticket\n# Go get yourself a ticket\nticket = get_ticket()\n# Boom. That just happened\n```\n\nThis assumes you've had the single table that needs to be created in the DB,\nin other words, you have run `syncdb` or migrated with e.g. [South][south].\n\n### Multiple Sequences\n\n`django-ticketing` also supports multiple sequences, which allows to have\nsequences of tickets that are independent. This means you could have a sequence\nfor users, a sequence for posts and a sequence for widgets. This is configured\nthrough your Django settings configuration.\n\nSimply define a setting called `TICKETING\\_SEQUENCES` with a tuple of sequence\nnames that have to be valid table names. This defaults to the tuple `('default',)`.\nIn addition, you can define the default sequence from which new tickets are\ntaken from with the setting `TICKETING_DEFAULT_SEQUENCE`, which defaults to\n`'default'`.\n\nNote that `TICKETING_DEFAULT_SEQUENCE` has to be a sequence name that is defined\ninside of `TICKETING\\_SEQUENCES`, otherwise an exception will be raised\nduring setup.\n\nSo to have sequences for the above example, put the following lines in your\n`settings.py`:\n\n``` python\nTICKETING_DEFAULT_SEQUENCE = 'users'\nTICKETING_SEQUENCES = ('users', 'posts', 'widgets', )\n```\n\nThen, to get a ticket from a specific sequence, pass in the sequence name to\n`get_ticket()`:\n\n``` python\n# Get yourself a user ticket\nuser_ticket = get_ticket('users')\n# Get yourself another user ticket\nuser_ticket = get_ticket()\n# Get yourself a posts ticket\npost_ticket = get_ticket('posts')\n```\n\nNotice that the default sequence for `get_ticket()` is the value of the\n`TICKETING_DEFAULT_SEQUENCE` configuration variable.\n\nAlso, after you change the value of `TICKETING_SEQUENCES`, be sure to re-run\n`syncdb` to make sure the new tables are created (or whatever DB table creation\nyou have in your environment).\n\n### Other Configuration Options\n\n`TICKETING_APP_LABEL`: This is used to specify the prefix for all the DB\ntablenames. The default value is `'ticketing'`. Be sure you know what you are\ndoing when you change this.\n\n\n## Testing\n\nThere are some tests included. To run those tests, simply execute `runtests.py`:\n\n``` bash\n[streeter] $ python runtests.py\n----------------------------------------------------------------------\nRan 6 tests in 0.213s\n\nOK\n[streeter] $\n```\n\nThe test suite can run on all DB backends supported by Django. By default\nit runs using sqlite3.\nTo run on MySQL, uncomment the marked section in `runtests.py`, create a\nDB that Django can connect to and give the Django user permissions to\ncreate a new testing DB, e.g. by running the following commands:\n\n``` bash\nmysql -u root -e \"DROP DATABASE ticketing_test\";\nmysql -u root -e \"CREATE DATABASE ticketing_test\";\nmysql -u root -e \"GRANT ALL ON ticketing_test.* TO 'ticketing_test'@'localhost' IDENTIFIED BY ''\"\n```\n\nOf course, you may need to change the host of the DB and user that connects, but\nyou should get the idea.\n\n\n## License\n\nUses the [MIT][mit] license.\n\n\n[flickr]: http://code.flickr.com/blog/2010/02/08/ticket-servers-distributed-unique-primary-keys-on-the-cheap/\n[pypi]: http://pypi.python.org/pypi/django-ticketing/\n[south]: http://south.aeracode.org/\n[mit]: http://opensource.org/licenses/MIT\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/streeter/django-ticketing", "keywords": null, "license": "Copyright (c) 2013 Chris Streeter\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "django-ticketing", "package_url": "https://pypi.org/project/django-ticketing/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-ticketing/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/streeter/django-ticketing" }, "release_url": "https://pypi.org/project/django-ticketing/0.7.4/", "requires_dist": null, "requires_python": null, "summary": "Generate tickets efficiently in a database in Django", "version": "0.7.4" }, "last_serial": 1555298, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "46d69d976a087c9de3cf4d521b977b39", "sha256": "ffd3c0cdb3d9cb82418bdee9050f54a15237fb4c297596345defaa7c2c4624f8" }, "downloads": -1, "filename": "django-ticketing-0.1.0.tar.gz", "has_sig": false, "md5_digest": "46d69d976a087c9de3cf4d521b977b39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4860, "upload_time": "2011-03-14T03:21:34", "url": "https://files.pythonhosted.org/packages/ff/94/4048b421ed6f2fecd3557aeb33546575c1b862284fbab48c771ccd688e9e/django-ticketing-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "8b98922d2d3e461e419d48f1a4cc4e71", "sha256": "c09787bf5bca03281046b447f0f4347cc61b05277fc32442bd4479473e9984e7" }, "downloads": -1, "filename": "django-ticketing-0.2.0.tar.gz", "has_sig": false, "md5_digest": "8b98922d2d3e461e419d48f1a4cc4e71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6752, "upload_time": "2011-03-15T18:45:02", "url": "https://files.pythonhosted.org/packages/ff/9b/c576352a6f4b87a761e1c27fceda608c7c99bbe684954e0e4140919d0926/django-ticketing-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9fb13075bd944fe526e1a600014d6664", "sha256": "5aef5261809223227213460991df9b32f20dd19ea2f95c4f2c75c0702f697b32" }, "downloads": -1, "filename": "django-ticketing-0.2.1.tar.gz", "has_sig": false, "md5_digest": "9fb13075bd944fe526e1a600014d6664", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6804, "upload_time": "2011-03-15T19:04:55", "url": "https://files.pythonhosted.org/packages/d2/be/c3fb67eff465c51e14e003e2ef3fdaf9839d2e71d9e0652314d3beb3595b/django-ticketing-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "d7ef38f81d8dfa4d4abaffafbcca005d", "sha256": "3f070910ee6cfef3460048a728e36dc07687be271a4c32933f1f71b447c380e9" }, "downloads": -1, "filename": "django-ticketing-0.3.0.tar.gz", "has_sig": false, "md5_digest": "d7ef38f81d8dfa4d4abaffafbcca005d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6981, "upload_time": "2011-03-21T22:19:52", "url": "https://files.pythonhosted.org/packages/8f/05/5002acfbd12936df3f7e7246df4f0ed7efe83f302174a72fe6af6152cc46/django-ticketing-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "ffc3d8a98bb68e6ec6cb58bdaa3b4f20", "sha256": "4c6e27f050fb5b2dfbe890407a1c4910b996ef9ddfed1a8eb2097bf8b727b6de" }, "downloads": -1, "filename": "django-ticketing-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ffc3d8a98bb68e6ec6cb58bdaa3b4f20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7582, "upload_time": "2011-03-21T23:50:27", "url": "https://files.pythonhosted.org/packages/d4/de/1765bc99f77246b4e18a45bdcff1bb7a76a133da9b4df87bba725af56b40/django-ticketing-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "fb35c1f4db728c571488f43fedb46bf6", "sha256": "806e8fe21bcfc17bf9ea3e07166fb944874fe1f959d766c2537f071b239281fb" }, "downloads": -1, "filename": "django-ticketing-0.5.0.tar.gz", "has_sig": false, "md5_digest": "fb35c1f4db728c571488f43fedb46bf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7665, "upload_time": "2011-04-20T02:07:03", "url": "https://files.pythonhosted.org/packages/75/03/99cc749dcc9ffc2336b8934f2607e2b705593180a9f303e23ebbedac8a03/django-ticketing-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "8ed4b17b7fa706073f93517d3d6f9e41", "sha256": "e78f3c404b4fe229195aea7bb6505e8bbb0ca20757478815bd9492528cddf2dd" }, "downloads": -1, "filename": "django-ticketing-0.5.1.tar.gz", "has_sig": false, "md5_digest": "8ed4b17b7fa706073f93517d3d6f9e41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7676, "upload_time": "2011-04-28T03:34:35", "url": "https://files.pythonhosted.org/packages/a5/9f/d25c283bcd9de21d71da3e3dac1476f4b8e3c3ae2fffbc7e7b7c99a2a2b2/django-ticketing-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "e7a02c9e58c8d958bdc0e6728b6eada0", "sha256": "3532e066137e0e9f4add74fa8c8a103c2f8d18f5c91edd587abc337f580c6a90" }, "downloads": -1, "filename": "django-ticketing-0.6.0.tar.gz", "has_sig": false, "md5_digest": "e7a02c9e58c8d958bdc0e6728b6eada0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7686, "upload_time": "2011-05-03T22:42:27", "url": "https://files.pythonhosted.org/packages/45/a7/10f9ca8487562baba3841070b42d0d8cdd38e0a9fc35d3cb1a284c1246aa/django-ticketing-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "3ba776fcd84d79614a5a8a6e6240cf9d", "sha256": "92e3b865568529369f740c24c736876d8c57d3384bd35bc9b2c1a2a9df309a68" }, "downloads": -1, "filename": "django-ticketing-0.6.1.tar.gz", "has_sig": false, "md5_digest": "3ba776fcd84d79614a5a8a6e6240cf9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7659, "upload_time": "2011-05-04T21:12:14", "url": "https://files.pythonhosted.org/packages/6c/04/e3a2f8befa9c9ef22b5e44acc3abc9b4b4651a0f711425c8a39b7188e859/django-ticketing-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "2a259021234032ebcfd650c317fe9347", "sha256": "35ab30580ce9d19a5ae801fec36d140d6518c020a9f4000621744860927e9927" }, "downloads": -1, "filename": "django-ticketing-0.6.2.tar.gz", "has_sig": false, "md5_digest": "2a259021234032ebcfd650c317fe9347", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7683, "upload_time": "2011-05-13T02:11:41", "url": "https://files.pythonhosted.org/packages/ed/5c/65194fa02f938231f1338d9f9aca464d0f43d6f6a5d5b737d0374d7f7b29/django-ticketing-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "ffda69135382700ac575e643fd88e726", "sha256": "dcdbefdc9ae7309cb65733cc6aae60b7bf1b92a5baee903ce31b990affe068fa" }, "downloads": -1, "filename": "django-ticketing-0.6.3.tar.gz", "has_sig": false, "md5_digest": "ffda69135382700ac575e643fd88e726", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6966, "upload_time": "2013-01-16T17:02:36", "url": "https://files.pythonhosted.org/packages/d7/23/0d49a64fabdcfeb583307124970a64b1bd710377a1e39618d539b70d0899/django-ticketing-0.6.3.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "b4345ca4bc1c9ccd4d36b3420852f141", "sha256": "404f26131784ece38780c34cfe8968dc5d67f6b35f3a45f917f7c2a1e209c689" }, "downloads": -1, "filename": "django-ticketing-0.7.0.tar.gz", "has_sig": false, "md5_digest": "b4345ca4bc1c9ccd4d36b3420852f141", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7053, "upload_time": "2014-10-22T19:30:45", "url": "https://files.pythonhosted.org/packages/a8/e2/51d80c5921a7a829b6625a553a29926f98d4ac3323176f178b642486ab15/django-ticketing-0.7.0.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "9f804c48f5e425c2843c02fe331c9515", "sha256": "a59603c7dbbc68e19a21b0afcfd20931dc07041ab89ad592bcf47aab55086984" }, "downloads": -1, "filename": "django-ticketing-0.7.1.tar.gz", "has_sig": false, "md5_digest": "9f804c48f5e425c2843c02fe331c9515", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7244, "upload_time": "2014-10-23T17:44:09", "url": "https://files.pythonhosted.org/packages/c9/0e/f394df3569f2b09bfcc824faf785376d3e62532c4695c8339be03f0b108d/django-ticketing-0.7.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "4945ab8c9cbb2457ba6b8d4726e7579f", "sha256": "9d9d7e7bff5db793b319d58cf1cda4ea7941f4ca16e219b07dfc10c5e99b7a5f" }, "downloads": -1, "filename": "django-ticketing-0.7.2.tar.gz", "has_sig": false, "md5_digest": "4945ab8c9cbb2457ba6b8d4726e7579f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7305, "upload_time": "2014-10-23T18:19:03", "url": "https://files.pythonhosted.org/packages/ae/43/f8acc0e1517bd26e9857ed42d8110e2a9a5b71ef03791ea1f133f51ccf14/django-ticketing-0.7.2.tar.gz" } ], "0.7.3": [ { "comment_text": "", "digests": { "md5": "d718f9d3352cb6db2eaad9bbc455fca2", "sha256": "2618f1dae728966aabff8bab20c9636ffa7da6d19ab716b05bbfdbfa0664ab00" }, "downloads": -1, "filename": "django-ticketing-0.7.3.tar.gz", "has_sig": false, "md5_digest": "d718f9d3352cb6db2eaad9bbc455fca2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6761, "upload_time": "2015-01-07T19:53:22", "url": "https://files.pythonhosted.org/packages/7f/5f/de74b2a74cd5d8b0dfaf85ee0d9872d44aaf67c77727e25bc1db5ef76a92/django-ticketing-0.7.3.tar.gz" } ], "0.7.4": [ { "comment_text": "", "digests": { "md5": "65ff9bd368273d19f330cb5dc1fdab41", "sha256": "7e931d7f0f9dbb723e4920973a2db1be31515a0126ddce4bbf9974bcd90501b9" }, "downloads": -1, "filename": "django-ticketing-0.7.4.tar.gz", "has_sig": false, "md5_digest": "65ff9bd368273d19f330cb5dc1fdab41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6743, "upload_time": "2015-05-20T18:08:06", "url": "https://files.pythonhosted.org/packages/a9/95/0335d3f936391c05c5365d95be78d2d518496e037640685c2491f2551127/django-ticketing-0.7.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "65ff9bd368273d19f330cb5dc1fdab41", "sha256": "7e931d7f0f9dbb723e4920973a2db1be31515a0126ddce4bbf9974bcd90501b9" }, "downloads": -1, "filename": "django-ticketing-0.7.4.tar.gz", "has_sig": false, "md5_digest": "65ff9bd368273d19f330cb5dc1fdab41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6743, "upload_time": "2015-05-20T18:08:06", "url": "https://files.pythonhosted.org/packages/a9/95/0335d3f936391c05c5365d95be78d2d518496e037640685c2491f2551127/django-ticketing-0.7.4.tar.gz" } ] }