{ "info": { "author": "LevIT SCS", "author_email": "info@levit.be", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "DRF-Base64\n==========\n\n**DRF-Base64** provides a set of serializers to handle Bas64-encoded\nfiles.\n\nCompatibility Matrix\n--------------------\n\n**DRF-Base64** is compatible with the following matrix\n\n+------------------+------------+------------+------------+\n| | Py 3.5 | Py 3.6 | Py 3.7 |\n+==================+============+============+============+\n| **Django 2.0** | DRF 3.7+ | DRF 3.7+ | DRF 3.7+ |\n+------------------+------------+------------+------------+\n| **Django 2.1** | DRF 3.7+ | DRF 3.7+ | DRF 3.7+ |\n+------------------+------------+------------+------------+\n| **Django 2.2** | DRF 3.7+ | DRF 3.7+ | DRF 3.7+ |\n+------------------+------------+------------+------------+\n\nInstallation\n------------\n\n**DRF-Base64** is compatible with Python 3.5+ as well as Django 2.0+ and\nDRF 3.7+\n\nFor previous versions of Python and/or Django, please see the `V1.x\nbranch `__\n\nWith pip\n~~~~~~~~\n\n``pip install drf-base64``\n\nFrom source\n~~~~~~~~~~~\n\nWithin the source directory:\n\n``python setup.py install``\n\nField Serializers\n-----------------\n\n**DRF-Base64** provides a ``Base64FileField`` and a ``Base64ImageField``\nvery similar to DRF's ``FileField`` and ``ImageField`` with the added\nfunctionality of accepting base64-encoded file strings as input. If\nthose serialiers receive an url (ie: when updating a record containing a\nfile without modifying that said file), it will leave the existing value\nuntouched.\n\nExample usage:\n\n::\n\n from rest_framework import serializers\n from base64.fields import Base64ImageField\n\n from .models import Product\n\n\n class ProductSerializer(serializers.ModelSerializer):\n\n picture = Base64ImageField(required=False)\n\n class Meta:\n model = Product\n ...\n\nModel Serializers\n-----------------\n\n**DRF-Base64** also provides a ``ModelSerializer`` and an\n``HyperlinkedModelSerializer`` also similar to DRF's own\n``ModelSerializer`` and ``HyperlinkedModelSerializer`` with the added\nfunctionality of mapping ``django.db.models.FileField``'s to\n``Bas64FileField``'s and ``django.db.models.ImageField``'s to\n``Base64ImageField``'s.\n\nExample usage:\n\n::\n\n from drf_base64.serializers import ModelSerializer\n\n from .models import Product\n\n\n class ProductSerializer(ModelSerializer):\n\n class Meta:\n model = Product\n ...\n\nMixins\n------\n\n``drf_base64.fields.Base64FieldMixin``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nIf you'd like to enable base64 uploading of file for other field types\nthan ``FileField`` or ``ImageField``, **DRF-Base64** provides\n``Base64FieldMixin`` to let you do just that.\n\n``drf_base64.serializers.Base64ModelSerializerMixin``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nIf you wish to use ``Base64FileField`` and ``Base64ImageField`` as\ndefault for model serializers other than the ones provided,\n**DRF-Base64** also provides ``Base64ModelSerializerMixin`` that you can\napply on any other model serializer as long as they use\n```serializer_field_mapping`` `__.\n\n--------------\n\nLicense information available `here `__.\n\nContributors code of conduct is available `here `__. Note that\nthis COC **will** be enforced.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/levit_scs/drf_base64", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "drf_base64", "package_url": "https://pypi.org/project/drf_base64/", "platform": "", "project_url": "https://pypi.org/project/drf_base64/", "project_urls": { "Homepage": "https://bitbucket.org/levit_scs/drf_base64" }, "release_url": "https://pypi.org/project/drf_base64/2.0/", "requires_dist": null, "requires_python": "", "summary": "DRF serializers to handle base64-encoded files", "version": "2.0" }, "last_serial": 5385175, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "0fa65f52a4883b70287c79fa4f3fe04e", "sha256": "77d0d01262fbd11dad390679c1a75dc86115cb6b7b123348352cb118cfe07ea9" }, "downloads": -1, "filename": "drf_base64-0.9.tar.gz", "has_sig": false, "md5_digest": "0fa65f52a4883b70287c79fa4f3fe04e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1908, "upload_time": "2016-11-29T10:11:51", "url": "https://files.pythonhosted.org/packages/c6/e0/38aba2a93529593c5571826dfe9973379aa8238a537589b10972873da2d5/drf_base64-0.9.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "ab454b55d0a1abcdc714356eae925e99", "sha256": "0efd59e425eb2bd1f0c2f173bc170a91e7936e16b0fa9698cecb0569e1c91f33" }, "downloads": -1, "filename": "drf_base64-0.9.1.tar.gz", "has_sig": false, "md5_digest": "ab454b55d0a1abcdc714356eae925e99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3385, "upload_time": "2016-12-31T07:05:08", "url": "https://files.pythonhosted.org/packages/6b/a6/a279ddb9d9cc64813e8475268acc362a2240d9383495c750d9e6e84e8515/drf_base64-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "39e8447444dbd549634412311c04263d", "sha256": "aa50176100ad470ad14d463016e8db3bd3365b6c301e46badf0f06ceb6431130" }, "downloads": -1, "filename": "drf_base64-0.9.2.tar.gz", "has_sig": false, "md5_digest": "39e8447444dbd549634412311c04263d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3412, "upload_time": "2017-06-22T13:57:44", "url": "https://files.pythonhosted.org/packages/71/b1/16723c9a585a6b179948405f32765b7560a0bb5c93c195e908a30b6f4aaa/drf_base64-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "998be852d940a9c0f1b432c6742c3df9", "sha256": "3fdebdb72b3fddda7c3bc60b2fa07c4d8e70471e26c9ace64a6976351f6a1f06" }, "downloads": -1, "filename": "drf_base64-0.9.3.tar.gz", "has_sig": false, "md5_digest": "998be852d940a9c0f1b432c6742c3df9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3222, "upload_time": "2018-01-19T08:37:53", "url": "https://files.pythonhosted.org/packages/11/ed/2ecef08617e588acf538d3dc1fa401b4425b0929ce114f3d43a29238ac4a/drf_base64-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "5a5c8ebfc3e8fa0f48da9b555740b9a9", "sha256": "22bd74d69afb2cd1e409d1f5fb188d169e6bfc3281ed95051a7459de0e185d1d" }, "downloads": -1, "filename": "drf_base64-0.9.4.tar.gz", "has_sig": false, "md5_digest": "5a5c8ebfc3e8fa0f48da9b555740b9a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3221, "upload_time": "2018-01-29T11:43:15", "url": "https://files.pythonhosted.org/packages/80/da/1c95b24b454b564f33202f02aa4f0f57e960eed180cf4f20ef5a47cb2e3d/drf_base64-0.9.4.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "fc2f4977918c110496d78b042ca1e99f", "sha256": "f6ac4086de29252d560f2bdd7d7683b105f5963507043c40b77e64b3f766db2b" }, "downloads": -1, "filename": "drf_base64-1.0.tar.gz", "has_sig": false, "md5_digest": "fc2f4977918c110496d78b042ca1e99f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3637, "upload_time": "2019-06-07T13:37:47", "url": "https://files.pythonhosted.org/packages/d7/21/911faa795e37dc6053e51ac0fde3398124a91e5bad62dae3d00617ee270e/drf_base64-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3bc9d9b7e737c0fc099774ba596742d4", "sha256": "4aea717bf2ed91a2e8e47ebf4dd3fa637df7f97a4469da54ee6019ccf1237ef9" }, "downloads": -1, "filename": "drf_base64-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3bc9d9b7e737c0fc099774ba596742d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3779, "upload_time": "2019-06-07T14:28:25", "url": "https://files.pythonhosted.org/packages/bb/02/299021041c7ecc5636da958a55784fe59747a0c4fc131183543edb15f0e7/drf_base64-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "8b6afc142b932370fe75444e23a77295", "sha256": "af0bcb4072087240618dc4944ddc752936e04dc1006bae053d8c0a472c918119" }, "downloads": -1, "filename": "drf_base64-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8b6afc142b932370fe75444e23a77295", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3767, "upload_time": "2019-06-11T07:32:06", "url": "https://files.pythonhosted.org/packages/8b/da/6d07fa8530489fa4d3d28015a216c1a2aa1e9139cee8f63e5a82f20e4d87/drf_base64-1.0.2.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "3b52e413684b54f9a5d28155b17a3afb", "sha256": "dee42f27e6ea5fb91ff85916ad1aaba222275552815430ff6a55a547e0246234" }, "downloads": -1, "filename": "drf_base64-2.0.tar.gz", "has_sig": false, "md5_digest": "3b52e413684b54f9a5d28155b17a3afb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3660, "upload_time": "2019-06-11T07:43:23", "url": "https://files.pythonhosted.org/packages/48/1c/090d49cbd04b5c5356d96725d5b1e57d931f008ec96b5fda5cd3dbaebb9c/drf_base64-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3b52e413684b54f9a5d28155b17a3afb", "sha256": "dee42f27e6ea5fb91ff85916ad1aaba222275552815430ff6a55a547e0246234" }, "downloads": -1, "filename": "drf_base64-2.0.tar.gz", "has_sig": false, "md5_digest": "3b52e413684b54f9a5d28155b17a3afb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3660, "upload_time": "2019-06-11T07:43:23", "url": "https://files.pythonhosted.org/packages/48/1c/090d49cbd04b5c5356d96725d5b1e57d931f008ec96b5fda5cd3dbaebb9c/drf_base64-2.0.tar.gz" } ] }