{ "info": { "author": "Christian Ternus", "author_email": "ternus@cternus.net", "bugtrack_url": null, "classifiers": [], "description": "GameTeX Django\n==============\n\nA Django app for GameTeX integration. Writing a ten-day webapp? You'll want this.\n\nGetting started\n---------------\n\nYou'll need a version of GameTeX that supports JSON export (talk to Ken).\n\nTo install:\n\n* `pip install gametex-django` \n* Add `gametex` to your INSTALLED_APPS in settings.py.\n* Run `./manage.py syncdb` to create the new models.\n\nTo import your game data:\n\n* Generate `json_PRINT.json` by LaTeXing `json_PRINT.tex` in your game's Production directory.\n* Run `./manage.py load_gametex /path/to/json-PRINT.json`\n\nYou then have access to everything exported in your JSON file, all within Django.\n\nIf you pass the `--clear` argument to `./manage.py load_gametex`,\nall existing GameTeX objects will be deleted from your database.\n\nIf you pass the `--create-users` argument, *and* all your PCs have\n'username' and 'password' fields, the loader will automatically create\nusers for each of your PCs and create GameTeXUser entries to map between\nthem.\n\nDjango model mapping\n--------------------\n\nEach GameTeX entity (sheet, ability, PC, etc.) becomes a GameTeXObject\n(GTO for short). Each GTO belongs to a number of classes, such as\n'KeyCard', 'Item', or 'PC'; a 'PC' might also be a 'Char'. (There's\nno hierarchical representation in the GameTeX Django models; that's up\nto GameTeX.)\n\nThere's a shortcut method, 'bc', that allows you to filter\nGameTeXObjects by class.\n\nEach GTO has a 'name', a 'number', and a 'macro'; 'name' and 'number'\nmay be blank. You can query using any of these, and you can access\nthem in the usual way:\n\n >>> g = GTO.bc('PC')[0]\n >>> g.name\n u'Captain GameTeX'\t\n >>> g.macro\n u'cTest'\n >>> g.number\n u'22234'\n\nNote that all fields are Unicode text, even ostensibly numerical ones\nsuch as 'number'. It's up to you to convert those to int (or whatever)\nif necessary.\n\nGTOs may also have custom fields defined, depending on how your game\nlooks. For example, an item might have a 'price' field. You can\naccess these like normal:\n\n >>> g2 = GTO.bc('KeyCard')[0]\n >>> g2.name\n u'CompSci Data'\n >>> g2.hintreq\n u'Cryptography 2'\n >>> g2.name = 'CS Data'\n >>> g2.name\n u'CS Data'\n\nIn case your field has spaces in it, you can reference it with the\n'field' and 'set_field' methods of GameTeXObject:\n\n >>> g.has_field('Combat Rating')\n True\n >>> g.field('Combat Rating')\n u'2'\n >>> g.set_field('Combat Rating', '4')\n >>> g.field('Combat Rating')\n u'4'\n\nUpdating in place\n-----------------\n\nRunning `./manage.py load_gametex ...` again will update your objects in-place.\nIf a macro exists, any field changes you've made in the database will be overridden, but\nnew objects will be created and new fields populated as normal. For example, if you had\na character (pseudo-JSON):\n\n {\"macro\": \"cTest\",\n \"name\": \"Captain GameTeX\",\n \"number\": \"1\",\n \"Combat Rating\": \"2\"\n }\n\nand you updated from a JSON file that looked like this:\n\n {\"macro\": \"cTest\",\n \"name\": \"Captain Achmed von GameTeX\",\n \"number\": \"100\",\n \"income\": \"5\"\n }\n\nyou'd get:\n\n {\"macro\": \"cTest\",\n \"name\": \"Captain Achmed von GameTeX\",\n \"number\": \"100\",\n \"income\": \"5\",\n \"Combat Rating\": \"2\"\n }\n\nYou may override this behavior by passing `--preserve` to `./manage.py load_gametex`. This\nwould result in:\n\n {\"macro\": \"cTest\",\n \"name\": \"Captain GameTeX\",\n \"number\": \"1\",\n \"Combat Rating\": \"2\"\n \"income\": \"5\",\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/ternus/gametex-django", "keywords": null, "license": "Creative Commons Attribution-Noncommercial-Share Alike license", "maintainer": null, "maintainer_email": null, "name": "gametex-django", "package_url": "https://pypi.org/project/gametex-django/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gametex-django/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/ternus/gametex-django" }, "release_url": "https://pypi.org/project/gametex-django/0.3.6/", "requires_dist": null, "requires_python": null, "summary": "Django integration for GameTeX", "version": "0.3.6" }, "last_serial": 792261, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "66bab24d89034e5a16a61d526b51f005", "sha256": "e570f40feb15d8e62aacafd4d227e53d6523986bc7afed38f3eae0a7c4313065" }, "downloads": -1, "filename": "gametex-django-0.1.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "66bab24d89034e5a16a61d526b51f005", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 69965, "upload_time": "2013-01-03T17:06:32", "url": "https://files.pythonhosted.org/packages/d9/f0/781d4e27cf4be00a7790c72323df434e1caf08e0adcf162fa11d0a082c5f/gametex-django-0.1.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "146ef8d7297cdadb568ebd09b7e030db", "sha256": "c7fc36f684ecf3efe1e2ee1d06e07ca4c3edc2598310ef67ee777c675df59b3b" }, "downloads": -1, "filename": "gametex-django-0.1.tar.gz", "has_sig": false, "md5_digest": "146ef8d7297cdadb568ebd09b7e030db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3764, "upload_time": "2013-01-03T17:06:30", "url": "https://files.pythonhosted.org/packages/ac/75/089de9bc97cf4dd6f9fb5ff6aa8a1e6fcd08535f225b638a8e749a56a395/gametex-django-0.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f9ac850d375e1111e95ff61ab2b8b756", "sha256": "47c54ed36f95269a303102cade6318ca9dab13a96861300b8c83c20327052790" }, "downloads": -1, "filename": "gametex-django-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f9ac850d375e1111e95ff61ab2b8b756", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4752, "upload_time": "2013-01-03T17:09:55", "url": "https://files.pythonhosted.org/packages/e2/02/c1ce19649a4640415a2d9761e2f45d25ccfb101059885c92a8c1b3c66451/gametex-django-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "built for Darwin-12.2.1", "digests": { "md5": "f097b20b0961e2b3bce2ce9a0da6d05a", "sha256": "4e80b37d490e8b44ff5aa95e7ccfdb82535f2b4f5e51e598df823e718f4e9a67" }, "downloads": -1, "filename": "gametex-django-0.2.1.macosx-10.8-intel.tar.gz", "has_sig": false, "md5_digest": "f097b20b0961e2b3bce2ce9a0da6d05a", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 8083, "upload_time": "2013-01-03T17:16:45", "url": "https://files.pythonhosted.org/packages/37/8b/bfa303e7d406fca807fd30237ddaaed956a538009f38f7a6256fdd500440/gametex-django-0.2.1.macosx-10.8-intel.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "29cc569c1992a9b1a7850acfb766b00b", "sha256": "a822219635db8cbbc122f42f41019dc14cb9c258d89e3fa8efb0dde02c5a8006" }, "downloads": -1, "filename": "gametex-django-0.2.2.tar.gz", "has_sig": false, "md5_digest": "29cc569c1992a9b1a7850acfb766b00b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11738, "upload_time": "2013-01-03T17:57:21", "url": "https://files.pythonhosted.org/packages/0e/d2/fc4d395529febfc91e6db5ef71c1c1c6f6b1242b3c107609e1c7eb46e7d7/gametex-django-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "3eb0369548774cad8fc9a5e39e92478a", "sha256": "dd76374b020a54ff6d788b7f6cf3d6af67bee28108340a1b061bef5db0380fd0" }, "downloads": -1, "filename": "gametex-django-0.2.3.tar.gz", "has_sig": false, "md5_digest": "3eb0369548774cad8fc9a5e39e92478a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11846, "upload_time": "2013-01-03T18:00:21", "url": "https://files.pythonhosted.org/packages/0b/77/217a289166775bc9c9292ee5cb44b00d407dbf2ead7a9cc1c064b7d3645e/gametex-django-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "a48e46c4a8227b7699ca780a19330c95", "sha256": "cd688fa4648e2883f585a7f49c92b6ea8c0fd26d3c8469d23973633891e281f7" }, "downloads": -1, "filename": "gametex-django-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a48e46c4a8227b7699ca780a19330c95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12257, "upload_time": "2013-01-03T18:20:18", "url": "https://files.pythonhosted.org/packages/e0/3e/d567f0774d7c7adafd09adb33ca6700c7a64991a23fb0037f81de7a11cab/gametex-django-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "d0a742bef18c0852397c215c2b1ce467", "sha256": "04ab439b77116a8ce8bd6712e3e44595de7642c452f86fd40c008151eef68fa4" }, "downloads": -1, "filename": "gametex-django-0.3.1.tar.gz", "has_sig": false, "md5_digest": "d0a742bef18c0852397c215c2b1ce467", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12466, "upload_time": "2013-01-03T18:49:02", "url": "https://files.pythonhosted.org/packages/11/e2/cc20e99133e3d7e0a3f6ed5a7dbe8821fb6e49b51d22d2fa090df5b93294/gametex-django-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "cb88e94698c3db4ac0adeaee0029afad", "sha256": "6d0e8b79249a8da0541f1af458ab89539340c744c16c02263942eb951ffce101" }, "downloads": -1, "filename": "gametex-django-0.3.2.tar.gz", "has_sig": false, "md5_digest": "cb88e94698c3db4ac0adeaee0029afad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12466, "upload_time": "2013-01-03T19:27:38", "url": "https://files.pythonhosted.org/packages/f6/21/3e306559f028a661ca7a06df8112f08d78584374cf78d89b7e4ec958acd3/gametex-django-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "ff0e817c83423ceb354df9c9984aab04", "sha256": "c077221399dbb3dfbff8dad57f7a07edc4ab8360f9dfd835c643247670b73416" }, "downloads": -1, "filename": "gametex-django-0.3.3.tar.gz", "has_sig": false, "md5_digest": "ff0e817c83423ceb354df9c9984aab04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12472, "upload_time": "2013-01-03T20:06:43", "url": "https://files.pythonhosted.org/packages/3b/1f/34b835c8d9e1be6ebfd919cd0623daf0e64729aa40b0802559c3fae074ad/gametex-django-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "2f0da2392a8a65a6f442014e47ed4782", "sha256": "75b09949d2a3164d661e6df7598f29eeb79d063eac596d9a407520861ca5f920" }, "downloads": -1, "filename": "gametex-django-0.3.4.tar.gz", "has_sig": false, "md5_digest": "2f0da2392a8a65a6f442014e47ed4782", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13175, "upload_time": "2013-01-03T20:08:21", "url": "https://files.pythonhosted.org/packages/2c/a6/15d0a13366b9631ce4645f26d0404461264cc5a5b0ecdd6bfcc09084fa33/gametex-django-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "de49372e270bd4d7be39bca396bb70c7", "sha256": "7b73239f70a0516a37c3e21c6410ddb19f0c24e9d84d59bfc4b641eb0b7e2df5" }, "downloads": -1, "filename": "gametex-django-0.3.5.tar.gz", "has_sig": false, "md5_digest": "de49372e270bd4d7be39bca396bb70c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13187, "upload_time": "2013-01-03T20:19:54", "url": "https://files.pythonhosted.org/packages/71/af/bd4ddbd447e2dc9d040e2d69551f15db24587d790cff2872db0a5bf62b9d/gametex-django-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "22abaefdd97b7a318d4b2b7a7fbf219b", "sha256": "45f6cce71ebd3e505caa81f7ab26d4d331158511b7f77caeb0afc8c37a161c15" }, "downloads": -1, "filename": "gametex-django-0.3.6.tar.gz", "has_sig": false, "md5_digest": "22abaefdd97b7a318d4b2b7a7fbf219b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13199, "upload_time": "2013-02-06T19:12:31", "url": "https://files.pythonhosted.org/packages/21/cc/11022e44db5f5209586102d909e71cd5905f1c18273ce93e92b8fb9b9248/gametex-django-0.3.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "22abaefdd97b7a318d4b2b7a7fbf219b", "sha256": "45f6cce71ebd3e505caa81f7ab26d4d331158511b7f77caeb0afc8c37a161c15" }, "downloads": -1, "filename": "gametex-django-0.3.6.tar.gz", "has_sig": false, "md5_digest": "22abaefdd97b7a318d4b2b7a7fbf219b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13199, "upload_time": "2013-02-06T19:12:31", "url": "https://files.pythonhosted.org/packages/21/cc/11022e44db5f5209586102d909e71cd5905f1c18273ce93e92b8fb9b9248/gametex-django-0.3.6.tar.gz" } ] }