marshmallow-dataclass-djangofield


Namemarshmallow-dataclass-djangofield JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/OJFord/marshmallow-dataclass-djangofield
SummaryUse marshmallow-dataclass as a Django Field
upload_time2022-12-15 13:58:14
maintainer
docs_urlNone
authorOliver Ford
requires_python>=3.7
licenseMIT
keywords django database marshmallow
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Use [marshmallow-dataclass](https://github.com/lovasoa/marshmallow_dataclass)es as [Django](https://github.com/django/django) Fields.

## Usage
```python
from marshmallow_dataclass_djangofield import MarshmallowField
from marshmallow_dataclass_djangofield import marshmallow_dataclass_djangofield



class MyModel(Model):

    @marshmallow_dataclass_djangofield(model_name='MyModel')
    @marshmallow_dataclass.dataclass
    class MyDataClass:
        foo: str
        bar: int

    foobars = MarshmallowField(many=True, schema=MyDataClass)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OJFord/marshmallow-dataclass-djangofield",
    "name": "marshmallow-dataclass-djangofield",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "Django,database,marshmallow",
    "author": "Oliver Ford",
    "author_email": "dev@ojford.com",
    "download_url": "https://files.pythonhosted.org/packages/41/2f/1054141f2fce188a8405a90526f0b44bb308920559a2f7a3e38ab7706271/marshmallow_dataclass_djangofield-0.4.0.tar.gz",
    "platform": null,
    "description": "Use [marshmallow-dataclass](https://github.com/lovasoa/marshmallow_dataclass)es as [Django](https://github.com/django/django) Fields.\n\n## Usage\n```python\nfrom marshmallow_dataclass_djangofield import MarshmallowField\nfrom marshmallow_dataclass_djangofield import marshmallow_dataclass_djangofield\n\n\n\nclass MyModel(Model):\n\n    @marshmallow_dataclass_djangofield(model_name='MyModel')\n    @marshmallow_dataclass.dataclass\n    class MyDataClass:\n        foo: str\n        bar: int\n\n    foobars = MarshmallowField(many=True, schema=MyDataClass)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Use marshmallow-dataclass as a Django Field",
    "version": "0.4.0",
    "split_keywords": [
        "django",
        "database",
        "marshmallow"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "9fda585dca3bc10e7bcb62f5c769537e",
                "sha256": "5191a613cfe94b6fa4b4451b65936caec402088db3dc88215504af2ef41dec15"
            },
            "downloads": -1,
            "filename": "marshmallow_dataclass_djangofield-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9fda585dca3bc10e7bcb62f5c769537e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3183,
            "upload_time": "2022-12-15T13:58:13",
            "upload_time_iso_8601": "2022-12-15T13:58:13.114634Z",
            "url": "https://files.pythonhosted.org/packages/4f/c8/2bd7470bb2483686e4cf97e2ec73f846b827d8c6c04abd7a713ac9563c61/marshmallow_dataclass_djangofield-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "904787f50349eb2c07b2c3c8881ca4c6",
                "sha256": "8192cfef2406e2b90a8e13b88b33bf377be510fd7886d3a4c75972972ab73b0b"
            },
            "downloads": -1,
            "filename": "marshmallow_dataclass_djangofield-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "904787f50349eb2c07b2c3c8881ca4c6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2754,
            "upload_time": "2022-12-15T13:58:14",
            "upload_time_iso_8601": "2022-12-15T13:58:14.396786Z",
            "url": "https://files.pythonhosted.org/packages/41/2f/1054141f2fce188a8405a90526f0b44bb308920559a2f7a3e38ab7706271/marshmallow_dataclass_djangofield-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-15 13:58:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "OJFord",
    "github_project": "marshmallow-dataclass-djangofield",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "marshmallow-dataclass-djangofield"
}
        
Elapsed time: 0.22962s