{ "info": { "author": "Mike Ryan", "author_email": "mike@backtothelab.io", "bugtrack_url": null, "classifiers": [], "description": "# Django Ethereum Utilities\n\nA collection of helpers to make it easier to work with Ethereum from your Django app.\n\nCurrently this only consists of a custom model field which stores Ethereum addresses\nin the checksummed format.\n\n## Install\n\n`pip install django-ethereum`\n\n\n## Fields\n\n### `EthereumAddressField`\n\n\nA `CharField` which automatically converts an Ethereum address into its checksummed\nrepresentation.\n\n```python\n from django_ethereum.fields import EthereumAddressField\n\n class MyModel(models.Model):\n address = EthereumAddressField()\n\n my_model = MyModel(address=\"0x627306090abab3a6e1400e9345bc60c78a8bef57\")\n my_model.save()\n print(my_model.address)\n \"0x627306090abaB3A6e1400e9345bC60c78a8BEf57\" # Note capitalisation\n```\n\nIf the address is invalid a ``ValidationError`` will be raised.\n\nNote that the address is stored in the checksummed format. If you want to compare against\na non-checksummed address you will need to perform a case-insensitive match (or preferably convert\nthe address to a checksummed address before comparing):\n\n```python\n MyModel.objects.filter(address__iexact=non_checksummed_address)\n # Or\n MyModel.objects.filter(address__iexact=Web3.toChecksumAddress(non_checksummed_address))\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/mikery/django-ethereum/", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-ethereum", "package_url": "https://pypi.org/project/django-ethereum/", "platform": "", "project_url": "https://pypi.org/project/django-ethereum/", "project_urls": { "Homepage": "https://github.com/mikery/django-ethereum/" }, "release_url": "https://pypi.org/project/django-ethereum/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Utilities to make it easier to work with Ethereum from your Django app.", "version": "0.0.4" }, "last_serial": 4040685, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "fc7029666b2e76894b58ffbec104bbca", "sha256": "5d1e87452af45ba5a7cd92e61e18bd94d47ce3fd171b36132d21e776e0da402c" }, "downloads": -1, "filename": "django_ethereum-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "fc7029666b2e76894b58ffbec104bbca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3340, "upload_time": "2018-07-08T13:54:55", "url": "https://files.pythonhosted.org/packages/7c/f6/ddc86d4fc38531b6fc409780d6c721bcb48d12d7c687b2f4b200f20871d0/django_ethereum-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf7c95c23e3d13a431ce10675ac4c458", "sha256": "3b30c7c0f34c1c0560b2838cb0790cd88bd24f5fc81b26ab6bb31c27c15649aa" }, "downloads": -1, "filename": "django-ethereum-0.0.4.tar.gz", "has_sig": false, "md5_digest": "bf7c95c23e3d13a431ce10675ac4c458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3347, "upload_time": "2018-07-08T13:54:56", "url": "https://files.pythonhosted.org/packages/da/e0/e546036d8798833c802cd45e84340506cf7d173fcdaa35e994af338b5aa2/django-ethereum-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fc7029666b2e76894b58ffbec104bbca", "sha256": "5d1e87452af45ba5a7cd92e61e18bd94d47ce3fd171b36132d21e776e0da402c" }, "downloads": -1, "filename": "django_ethereum-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "fc7029666b2e76894b58ffbec104bbca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3340, "upload_time": "2018-07-08T13:54:55", "url": "https://files.pythonhosted.org/packages/7c/f6/ddc86d4fc38531b6fc409780d6c721bcb48d12d7c687b2f4b200f20871d0/django_ethereum-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf7c95c23e3d13a431ce10675ac4c458", "sha256": "3b30c7c0f34c1c0560b2838cb0790cd88bd24f5fc81b26ab6bb31c27c15649aa" }, "downloads": -1, "filename": "django-ethereum-0.0.4.tar.gz", "has_sig": false, "md5_digest": "bf7c95c23e3d13a431ce10675ac4c458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3347, "upload_time": "2018-07-08T13:54:56", "url": "https://files.pythonhosted.org/packages/da/e0/e546036d8798833c802cd45e84340506cf7d173fcdaa35e994af338b5aa2/django-ethereum-0.0.4.tar.gz" } ] }