{ "info": { "author": "Kristian Berg", "author_email": "eve.vittoros@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Games/Entertainment" ], "description": "# armada-sde\n\n[![Build Status](https://travis-ci.org/kriberg/armada-sde.svg?branch=master)](https://travis-ci.org/kriberg/armada-sde)\n[![Coverage Status](https://coveralls.io/repos/github/kriberg/armada-sde/badge.svg?branch=master)](https://coveralls.io/github/kriberg/armada-sde?branch=master)\n\narmada-sde is a pluggable app for Django which provides models and tools for using Fuzzysteve's PostgreSQL dumps. Its\ndesign allows you to automate upgrades of the SDE data and generate new models for any tables contained therein. \n\n## Usage\n\nGrab the latest version of armada-sde directly from PyPI:\n\n```commandline\npip install armada-sde\n```\n\nAdd it to Django's `settings.py`:\n\n```python\nINSTALLED_APPS = [\n # ...\n 'armada_sde',\n]\n```\n\nDownload Fuzzysteve's [latest schema dump](https://www.fuzzwork.co.uk/dump/postgres-schema-latest.dmp.bz2) for postgres and unpack:\n\n```commandline\nwget https://www.fuzzwork.co.uk/dump/postgres-schema-latest.dmp.bz2\nbunzip2 postgres-schema-latest.dmp.bz2\n```\n\nImport the dump\n\n```commandline\npython manage.py pg_import_sde -f postgres-schema-latest.dmp\n```\n\nIf you want to handle the importing yourself, run `pg_import_sde` with `-s` and no `-f`. This will rename the tables, \nso to better fit with Django best practices.\n\nAfter import, the tables needs to be moved from the evesde schema to the public schema:\n\n```commandline\npython manage.py pg_move_sde\n```\n\nYou should now be able to import models and use them:\n\n```python\nfrom django.db import models\nfrom armada_sde.models import InvType\n\n# Trit for the trit god\ntrit = InvType.objects.get(name='Tritanium')\n\n# Use it in your models\n\nclass ShoppingListItem(models.Model):\n quantity = models.IntegerField(default=1)\n item = models.ForeignKey(InvType, on_delete=models.DO_NOTHING)\n```\n\n## Advanced usage\n\n### Generate models\narmada_sde comes with a stock set of models which is generated automatically through a customized version of Django's\ninspectdb command. You can generate your own set of models and do your own alterations, if you like. First, import the\ndump as previously described, so it is present in the evesde schema. Then you can generate a models file:\n\n```commandline\npython manage.py pg_generate_models -o project/myapp/models.py\n```\nAfter generation, move the tables into the public schema and generate primary keys, with the `pg_move_sde` command. \nYou can now do any alterations you like. If you would like to generate migrations for your models, remove \n`managed = False` from the Meta class.\n\nIf you want, you can also ensure compatibility with other pluggable apps that use the SDE models, by configuring \narmada_sde to load your custom variants instead of the stock models. Add this to your `settings.py`:\n\n```python\nARMADA = {\n 'SDE': {\n 'module': 'project.myapp.models'\n }\n}\n```\n\nAny other app importing models from `armada_sde.models`, will instead be loading your custom models from your project.\n\n### Using a custom schema for the SDE\n\nIf you are sharing a database between several projects, it might be handy to have a shared schema for the SDE. You can \nconfigure armada-sde to use a custom destination schema for tables, instead of moving them from evesde into public.\n\nTo achieve this, set these parameters in `settings.py`:\n\n```python\nARMADA = {\n 'SDE': {\n 'schema': ''\n }\n}\n```\n\nIt is not a good idea to use the evesde schema as your custom schema, as it might give you issues when upgrading the \nSDE. \n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kriberg/armada-sde.git", "keywords": "", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "armada-sde", "package_url": "https://pypi.org/project/armada-sde/", "platform": "", "project_url": "https://pypi.org/project/armada-sde/", "project_urls": { "Homepage": "https://github.com/kriberg/armada-sde.git" }, "release_url": "https://pypi.org/project/armada-sde/0.3.0/", "requires_dist": [ "Django", "autopep8", "psycopg2" ], "requires_python": ">=3.5.0", "summary": "A pluggable Django app for the EVE SDE", "version": "0.3.0" }, "last_serial": 4370200, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d7c0934b7b1b2a405e927d1a4d29de91", "sha256": "66e122406105a7a493b174e2fd957dcdfbf7ee81c0426c3c13c87b5c5a9df480" }, "downloads": -1, "filename": "armada_sde-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d7c0934b7b1b2a405e927d1a4d29de91", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5.0", "size": 25823, "upload_time": "2018-10-05T20:59:58", "url": "https://files.pythonhosted.org/packages/63/aa/241acf9cbd33bf4ec7411b531d2e8ab7cea8cf22e21ec441e4f25566600b/armada_sde-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eed3ab8ae860c8a559eba87156e41eac", "sha256": "d8e1e548ebf3685cb0439191369ccd23d02e2129dbe8385adc92f8166787fb18" }, "downloads": -1, "filename": "armada-sde-0.1.0.tar.gz", "has_sig": false, "md5_digest": "eed3ab8ae860c8a559eba87156e41eac", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 19867, "upload_time": "2018-10-05T21:00:00", "url": "https://files.pythonhosted.org/packages/79/4a/e64b86dc56cece930d50d2fe2810aa908abc14e6727361134bef6020a9c0/armada-sde-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "9d1b0a76e38efaae101902c8db58b563", "sha256": "cb52b7e5b739d3cbb82a0261e6dde16321f96ff0c91650719352a0336914e3e4" }, "downloads": -1, "filename": "armada_sde-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9d1b0a76e38efaae101902c8db58b563", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5.0", "size": 26179, "upload_time": "2018-10-06T19:57:08", "url": "https://files.pythonhosted.org/packages/2f/b0/6a624e181714315933596cd8c6fe6b1287c9b626f90b796e2714e2321e9c/armada_sde-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8d0e0bd928dd4cc65cb68614cf93507d", "sha256": "f7435ef21d4db104e1779735696fd662b373890ccc202138a0cc0133bdf42da6" }, "downloads": -1, "filename": "armada-sde-0.2.0.tar.gz", "has_sig": false, "md5_digest": "8d0e0bd928dd4cc65cb68614cf93507d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 20179, "upload_time": "2018-10-06T19:57:10", "url": "https://files.pythonhosted.org/packages/31/87/2d013e64c485384a509a56ded531986bb64ec46a752ef3e89614c430294c/armada-sde-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "bbc24f2df5f5d9f55b3ef3be6404b99b", "sha256": "0fa7a058cee2d32c9f93e6921b08fb66e789196e3f81feca89a0ba0806c0f0e9" }, "downloads": -1, "filename": "armada_sde-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bbc24f2df5f5d9f55b3ef3be6404b99b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5.0", "size": 26604, "upload_time": "2018-10-07T18:17:37", "url": "https://files.pythonhosted.org/packages/6c/d6/0f6ab41a414d89a408218bf9a420aa518dbb752b6205ce6b05903cfe0d1b/armada_sde-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a53db66fa4423176c876d13113da1c7f", "sha256": "5116176536c29f795c9d1526e71435f1d20d7a3242708d4967097bf999ac6daa" }, "downloads": -1, "filename": "armada-sde-0.2.1.tar.gz", "has_sig": false, "md5_digest": "a53db66fa4423176c876d13113da1c7f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 20604, "upload_time": "2018-10-07T18:17:38", "url": "https://files.pythonhosted.org/packages/0d/5e/267e229f22b0c3684ffed000261268d156b240a407f02d601bc801909db9/armada-sde-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "9b3f9fa1baefa4724cf4ce36441baab3", "sha256": "2bbc2d44de831b3545b8284b6c25fee2dd7fd71cb40cabc8efb53453ceb19dcf" }, "downloads": -1, "filename": "armada_sde-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9b3f9fa1baefa4724cf4ce36441baab3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5.0", "size": 26749, "upload_time": "2018-10-07T19:35:24", "url": "https://files.pythonhosted.org/packages/56/76/12c0f129c22b75af3486b808568ac3d620eb2ec8fe7ee8e7a2c16bfd958f/armada_sde-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a9d472ff96f35de222f77a08602cc8ae", "sha256": "69c4575703b68bb8039b2595d40837e33c1d7cfec3fc21c30c94f9ba8458ede2" }, "downloads": -1, "filename": "armada-sde-0.2.2.tar.gz", "has_sig": false, "md5_digest": "a9d472ff96f35de222f77a08602cc8ae", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 20739, "upload_time": "2018-10-07T19:35:26", "url": "https://files.pythonhosted.org/packages/84/0b/1a5e73289f2998822b9b8dd7cfebb06262481a4ce6d760723be79f1e2c28/armada-sde-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "35ed56ba3270e0e4d6bee13e63c89fd1", "sha256": "32edc9e049bc260cb63b2442ed7f961403b8ed05470fa55d7d33393161152855" }, "downloads": -1, "filename": "armada_sde-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "35ed56ba3270e0e4d6bee13e63c89fd1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5.0", "size": 26840, "upload_time": "2018-10-11T15:39:45", "url": "https://files.pythonhosted.org/packages/6d/5e/96b81434b12a085a3daf8fe992cbbcb5c23e45fad9243d5875b1c7b1cada/armada_sde-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7ea423deaff1c3854063d012d5dcd20", "sha256": "6cae5e4a9b098b391b2b372efbba1a31ef9fade9e2c463e576b9c59ed963975e" }, "downloads": -1, "filename": "armada-sde-0.2.3.tar.gz", "has_sig": false, "md5_digest": "a7ea423deaff1c3854063d012d5dcd20", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 20832, "upload_time": "2018-10-11T15:39:47", "url": "https://files.pythonhosted.org/packages/be/37/6a7a68a0c94837f82a5f24fa6a6457753b9fcccf81ba33d568824bd36145/armada-sde-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "1dd0c6a6f5557cf7ff200d53183dbf4a", "sha256": "c55e9eb7d42a39ebfa04c2c4bc6e25eaa59ae5348269109c1e3ffa362b080a1e" }, "downloads": -1, "filename": "armada_sde-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1dd0c6a6f5557cf7ff200d53183dbf4a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5.0", "size": 28492, "upload_time": "2018-10-12T21:36:49", "url": "https://files.pythonhosted.org/packages/2f/e2/ae00a443d2ba0393c47620b315be134c6f1fc5305a7f35254ad2e4be8e80/armada_sde-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12db7d435b9201168c5a2728b55ad4fb", "sha256": "717138d62a7b1e57f36361ad9111b8fe3f9ea09f185ffcf20a87cc6127f4b971" }, "downloads": -1, "filename": "armada-sde-0.3.0.tar.gz", "has_sig": false, "md5_digest": "12db7d435b9201168c5a2728b55ad4fb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 22362, "upload_time": "2018-10-12T21:36:51", "url": "https://files.pythonhosted.org/packages/a2/a8/e69120994b2ddc2507d078ffde6f30242a6ad2c49a1a33ba6e4c6f132f1e/armada-sde-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1dd0c6a6f5557cf7ff200d53183dbf4a", "sha256": "c55e9eb7d42a39ebfa04c2c4bc6e25eaa59ae5348269109c1e3ffa362b080a1e" }, "downloads": -1, "filename": "armada_sde-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1dd0c6a6f5557cf7ff200d53183dbf4a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5.0", "size": 28492, "upload_time": "2018-10-12T21:36:49", "url": "https://files.pythonhosted.org/packages/2f/e2/ae00a443d2ba0393c47620b315be134c6f1fc5305a7f35254ad2e4be8e80/armada_sde-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12db7d435b9201168c5a2728b55ad4fb", "sha256": "717138d62a7b1e57f36361ad9111b8fe3f9ea09f185ffcf20a87cc6127f4b971" }, "downloads": -1, "filename": "armada-sde-0.3.0.tar.gz", "has_sig": false, "md5_digest": "12db7d435b9201168c5a2728b55ad4fb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 22362, "upload_time": "2018-10-12T21:36:51", "url": "https://files.pythonhosted.org/packages/a2/a8/e69120994b2ddc2507d078ffde6f30242a6ad2c49a1a33ba6e4c6f132f1e/armada-sde-0.3.0.tar.gz" } ] }