{ "info": { "author": "Rich Jones", "author_email": "rich@openwatch.net", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "![Bezos is a Hustler](http://i.imgur.com/Lw15zkJ.jpg)\n\ndjango-aws-billing\n==================\n\nDjango AWS Usage/Billing Package. **Work in Progress**.\n\n* Version: 0.2.6\n* Status: Working!\n\nMaps items from CSVs in the AWS programmatic billing access reports to a **BillingRecord** model in Django, allowing billing\nqueries to be processed via the Django ORM. Also provides some convenience methods to calculate costs for specific\nresources.\n\n## Set up\n\n1. First you need to set up [Programmatic Billing\nAccess](http://docs.aws.amazon.com/awsaccountbilling/latest/about/programaccess.html) and \"detailed billing reporting\nwith resources and tags\" from your [billing preferences\npage](https://portal.aws.amazon.com/gp/aws/developer/account?ie=UTF8&action=billing-preferences). This also means making\na bucket to store the output in (those bastards, charging us to host our own billing data!), and setting up an\nappropriate policy for that bucket.\n\n1. Wait an hour for your first usage report to be generated. \ud83d\ude34\n\n1. Install django-aws-billing:\n\n ```bash\n pip install django-aws-billing\n ```\n\n1. Set your AWS credentials in your Django settings:\n\n ```python\n AWS_ACCESS_KEY = 'AKDERPDERPDERPDERPDERP'\n AWS_SECRET_ACCESS_KEY = 'iL+HERPHERPHERPHERPHERPHERPSQUIRT'\n AWS_BILLING_BUCKET = 'your-aws-billing-info-bucket-name'\n AWS_ACCOUNT_ID = '1234-5679-0000' # Find this number from your AWS Manage Account page: https://portal.aws.amazon.com/gp/aws/manageYourAccount\n ```\n\n1. Add 'aws\\_billing' to your INSTALLED\\_APPS:\n\n ```bash\n INSTALLED_APPS = (\n ...\n 'aws_billing',\n ...\n )\n ```\n\n1. Run syncdb:\n\n ```bash\n python manage.py syncdb\n ```\n\n1. Run the billing command:\n\n ```bash\n python manage.py process_aws_billing\n ```\n\n1. You can then see the costs with:\n\n ```bash\n python manage.py aws_costs\n ```\n\n## Programmatic Usage\n\n1. Import it and call it!\n\n ```python\n from aws_billing import aws_billing\n aws_billing.get_cost_for_resource('your-resource-name') # 12.002415\n aws_billing.get_total_cost() # 42.001234\n aws_billing.get_all_costs_by_resource() # {'your-resource-name': 12.002415, 'your-other-resource-name': 29.998819}\n ```\n\nHooray!\n\n## TODO:\n\n* Hopefully, this package will also include utilities to create nice little javascript charts.\n* Something something timezones. And date ranges on the utilities.\n* Tests\n* Your idea here? The future is unwritten..\n\nIssues welcomed, patches thanked, stars appreciated.", "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/Miserlou/django-aws-billing", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-aws-billing", "package_url": "https://pypi.org/project/django-aws-billing/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-aws-billing/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Miserlou/django-aws-billing" }, "release_url": "https://pypi.org/project/django-aws-billing/0.2.6/", "requires_dist": null, "requires_python": null, "summary": "AWS Billing for Django", "version": "0.2.6" }, "last_serial": 1057239, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8910779714c45d3b071186aeed27ff9e", "sha256": "a9a3f8f4ff864d085fccf7aa86fe7a01dc132de26b859289d2cddfcfd32c6fe5" }, "downloads": -1, "filename": "django-aws-billing-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8910779714c45d3b071186aeed27ff9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4425, "upload_time": "2014-02-10T01:34:24", "url": "https://files.pythonhosted.org/packages/46/0d/ecc3ecd4690ae4d934f09ae18b4f6b820783dae38eee17c015015082eb0a/django-aws-billing-0.1.0.tar.gz" } ], "0.1.0.1": [ { "comment_text": "", "digests": { "md5": "079c9bf9352ab069453bada1c3e77378", "sha256": "4ec747c4819de2a2a6155ad08edbc8a9fafc3dc9bd0d105fc02fffd931d29d9c" }, "downloads": -1, "filename": "django-aws-billing-0.1.0.1.tar.gz", "has_sig": false, "md5_digest": "079c9bf9352ab069453bada1c3e77378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4715, "upload_time": "2014-02-10T07:03:07", "url": "https://files.pythonhosted.org/packages/1e/b6/008440262fcf51b022a4fd5e5b587e0c8f626abfe18a0fc5a2af3e2803be/django-aws-billing-0.1.0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "50ed1391f1dddb9a9dc2b99354e71103", "sha256": "9ac459763338b30ab46757521ceea92064bfb182b19a162abc3ed309d0ea1d16" }, "downloads": -1, "filename": "django-aws-billing-0.1.1.tar.gz", "has_sig": false, "md5_digest": "50ed1391f1dddb9a9dc2b99354e71103", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4784, "upload_time": "2014-02-10T23:20:15", "url": "https://files.pythonhosted.org/packages/76/eb/ecc05f6816766e65391f8e827235275ec30c32d280bbf66f132efc88734c/django-aws-billing-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "72a8a488c4d68876fb1cd6cc7bef882b", "sha256": "30d4e11fc65aa30b7264ea7f14b30a86b8435dc975fceec6e5638ef327974e56" }, "downloads": -1, "filename": "django-aws-billing-0.1.2.tar.gz", "has_sig": false, "md5_digest": "72a8a488c4d68876fb1cd6cc7bef882b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5775, "upload_time": "2014-04-02T19:51:32", "url": "https://files.pythonhosted.org/packages/a3/db/5ddf48de75949c5a2d4b8c352091e3a312bd3c4f57b54656f31bf7b8f350/django-aws-billing-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "3c27afcfcae60e7637590312f72cf09a", "sha256": "3ff93b3a90ef8c12584b6153743dc152a536041d531212e30a995db5ca472c32" }, "downloads": -1, "filename": "django-aws-billing-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3c27afcfcae60e7637590312f72cf09a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5870, "upload_time": "2014-04-02T19:53:55", "url": "https://files.pythonhosted.org/packages/01/1e/4b88e6be502ffb50e7913435074642260cdbe492e99f735d6b4fe3dfcd0f/django-aws-billing-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "eb988581b06d38e9151d6434c036716d", "sha256": "e09bf4b5c4ac62df1622297b317286c06605f54e123ab39a2140c89abd798e91" }, "downloads": -1, "filename": "django-aws-billing-0.1.4.tar.gz", "has_sig": false, "md5_digest": "eb988581b06d38e9151d6434c036716d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6078, "upload_time": "2014-04-09T03:50:16", "url": "https://files.pythonhosted.org/packages/94/a4/fb1bf8a94d406ec37e814eb09fa0f29cb421d985e7329aed4c151d44a57f/django-aws-billing-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "94afb6b6ac7b2f1edf7c8ad4eb3ceb53", "sha256": "9c57d75a6d0e7d6308a363161e48f7f219d87cff1d531d8397da52eec8c09455" }, "downloads": -1, "filename": "django-aws-billing-0.2.0.tar.gz", "has_sig": false, "md5_digest": "94afb6b6ac7b2f1edf7c8ad4eb3ceb53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6189, "upload_time": "2014-04-10T00:10:11", "url": "https://files.pythonhosted.org/packages/a6/7e/9e71ce714a12419594cc7b0591c7ca0aac085965e3c669e50e78da656835/django-aws-billing-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "06016643cc073da7364b853b578b9269", "sha256": "0dc6fb88bf6a032a33c17379710cdc4f2c875dc847b23c2cf11f0967546c42e5" }, "downloads": -1, "filename": "django-aws-billing-0.2.1.tar.gz", "has_sig": false, "md5_digest": "06016643cc073da7364b853b578b9269", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6249, "upload_time": "2014-04-10T00:25:11", "url": "https://files.pythonhosted.org/packages/78/1e/d6aff2136c6358af172c56ad15dbd8ecb91174a33652fa694d2120398afb/django-aws-billing-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "ecf1564c94ba4873a2ff283b600b49e5", "sha256": "b84b1f7e1075732c2782972e69a00d717f3e38480eb33bc8b11673c4c474fb09" }, "downloads": -1, "filename": "django-aws-billing-0.2.2.tar.gz", "has_sig": false, "md5_digest": "ecf1564c94ba4873a2ff283b600b49e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6272, "upload_time": "2014-04-10T00:38:52", "url": "https://files.pythonhosted.org/packages/43/a1/5465096d73ee67d6701a0937d13e88801b58abd3e5a6a6f42b2e3d60ef79/django-aws-billing-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "cc24086f31390b033b1efcb81386422b", "sha256": "ad3001828958da6478d969eae7aaf6ace1de2cf9f1a948fd0e12df6f0c0e4543" }, "downloads": -1, "filename": "django-aws-billing-0.2.3.tar.gz", "has_sig": false, "md5_digest": "cc24086f31390b033b1efcb81386422b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6279, "upload_time": "2014-04-10T00:42:34", "url": "https://files.pythonhosted.org/packages/bf/a5/bb6ef59e14d2af38cebe5abb3c65042762e17144e49ea0411c8778e3ea2f/django-aws-billing-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "0148054b559373757575ba37a5325412", "sha256": "2bd51c2363e2889fd160de1695dace2326fd4e548cbc2ad106f5c530833c3983" }, "downloads": -1, "filename": "django-aws-billing-0.2.4.tar.gz", "has_sig": false, "md5_digest": "0148054b559373757575ba37a5325412", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6309, "upload_time": "2014-04-10T01:03:46", "url": "https://files.pythonhosted.org/packages/4c/4f/7e4e6ca07c82cdd8d488e8b50577b651b6cf9417756282d554fd4cee373e/django-aws-billing-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "391dfd0c092c9ad1550d834fe5b2681f", "sha256": "8219da4cd241c7dce09c4b6649121d75b1ca7fe912d2b6667487fdc6e2af907b" }, "downloads": -1, "filename": "django-aws-billing-0.2.5.tar.gz", "has_sig": false, "md5_digest": "391dfd0c092c9ad1550d834fe5b2681f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6308, "upload_time": "2014-04-10T22:32:35", "url": "https://files.pythonhosted.org/packages/87/10/15f5b6823238aa4e9d5b03c9be7056d6310141bec643d580491d143e346f/django-aws-billing-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "8cfeed4d865e7047e510dc91e5faacff", "sha256": "657b10d82cad42831ca1886c22460c889eb9a25b6357c236e0801d98fe7ef832" }, "downloads": -1, "filename": "django-aws-billing-0.2.6.tar.gz", "has_sig": false, "md5_digest": "8cfeed4d865e7047e510dc91e5faacff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6245, "upload_time": "2014-04-10T22:56:56", "url": "https://files.pythonhosted.org/packages/c4/97/87a7258e617cce6441a4c45fb8468cbef5fdcf3b19a7bc7b33072d1112ec/django-aws-billing-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8cfeed4d865e7047e510dc91e5faacff", "sha256": "657b10d82cad42831ca1886c22460c889eb9a25b6357c236e0801d98fe7ef832" }, "downloads": -1, "filename": "django-aws-billing-0.2.6.tar.gz", "has_sig": false, "md5_digest": "8cfeed4d865e7047e510dc91e5faacff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6245, "upload_time": "2014-04-10T22:56:56", "url": "https://files.pythonhosted.org/packages/c4/97/87a7258e617cce6441a4c45fb8468cbef5fdcf3b19a7bc7b33072d1112ec/django-aws-billing-0.2.6.tar.gz" } ] }