Django Spades can be used to keep track of things(events) that happen on your django and you want to track.
There is basically two usages:
1 - API
2 - Saving a record model
Quick start
-----------
1. Install:
pip install django-spades
1. Add "Spades" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'Spades',
]
2. Run `python manage.py migrate` to create the models.
Usage
-----------
You should see it under admin with a nice rendering of the json field
Using the Model::
from Spades.models import Event
tmp={}
tmp['User']=request.user.id
tmp['AnyTag']="Checkpoint 1"
tmp['Tag2'] = some_variable
event = Event(name="USER_CLICKED_A_BUTTON",info=json.dumps(tmp))
Raw data
{
"_id": null,
"home_page": "https://github.com/iwalucas/django-spades/",
"name": "django-spades",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Lucas",
"author_email": "teppss@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/99/48/287fbaa73dcbd4a28137cd04a11cf068b9ada1efb1f380f574ba5b8aa235/django-spades-0.1.9.tar.gz",
"platform": null,
"description": "Django Spades can be used to keep track of things(events) that happen on your django and you want to track.\n\nThere is basically two usages:\n\n1 - API \n\n2 - Saving a record model\n\nQuick start\n-----------\n\n1. Install:\n\n pip install django-spades\n\n\n1. Add \"Spades\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = [\n ...\n 'Spades',\n ]\n\n2. Run `python manage.py migrate` to create the models.\n\nUsage\n-----------\n\nYou should see it under admin with a nice rendering of the json field\n\nUsing the Model::\n\n from Spades.models import Event\n tmp={}\n tmp['User']=request.user.id\n tmp['AnyTag']=\"Checkpoint 1\"\n tmp['Tag2'] = some_variable\n\n event = Event(name=\"USER_CLICKED_A_BUTTON\",info=json.dumps(tmp))\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Django app to track generic events and keep records of unstructured data.",
"version": "0.1.9",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "63f4a010cb9c4368d44bb8ce726b77e4a52f4cf4289ef86c4484a47507e78e64",
"md5": "9f2e6f6c60cb960ba2355831303d072b",
"sha256": "a433cc11c980b1883f44bf6e1205bb4e5d135ccf493aa776c79335c8ec2ba948"
},
"downloads": -1,
"filename": "django_spades-0.1.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9f2e6f6c60cb960ba2355831303d072b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10093,
"upload_time": "2023-01-25T22:29:41",
"upload_time_iso_8601": "2023-01-25T22:29:41.835333Z",
"url": "https://files.pythonhosted.org/packages/63/f4/a010cb9c4368d44bb8ce726b77e4a52f4cf4289ef86c4484a47507e78e64/django_spades-0.1.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9948287fbaa73dcbd4a28137cd04a11cf068b9ada1efb1f380f574ba5b8aa235",
"md5": "3867cbcfe676f7a31e9c87cdf5a267c9",
"sha256": "46c53d06220eaab261d4808b8961b7a49b99ea7f9d17cd131abb85f1526c4903"
},
"downloads": -1,
"filename": "django-spades-0.1.9.tar.gz",
"has_sig": false,
"md5_digest": "3867cbcfe676f7a31e9c87cdf5a267c9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8155,
"upload_time": "2023-01-25T22:29:46",
"upload_time_iso_8601": "2023-01-25T22:29:46.824243Z",
"url": "https://files.pythonhosted.org/packages/99/48/287fbaa73dcbd4a28137cd04a11cf068b9ada1efb1f380f574ba5b8aa235/django-spades-0.1.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-25 22:29:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "iwalucas",
"github_project": "django-spades",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-spades"
}