django-mega-drive


Namedjango-mega-drive JSON
Version 1.6 PyPI version JSON
download
home_page
Summarymega drive storage for django implemented with mega.py package
upload_time2022-12-03 20:01:58
maintainer
docs_urlNone
authorRahul Singh
requires_python
licenseMIT
keywords django python django_mega_drive
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            settins.py
``` 
MEGA_ACCOUNTS = {
    'default': {
        'email': 'mega drive account email here',
        'password': "mega drive account password"
    },

    # define another account  with anothers alias
}
```

models.py
```
from mega_drive.storage import MegaDriveStorage
from django.db import model

drive_storage = MegaDriveStorage(account_alias='default')
second_drive_storage = MegaDriveStorage(
    account_alias="another_mega_drive_alias")

class Profile(models.Model):
    image = models.ImageField(
        upload_to='upload_destination', storage=drive_storage)
    image = models.FileField(
        upload_to='upload_destination', storage=second_drive_storage)
    ...

```



            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "django-mega-drive",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django python django_mega_drive",
    "author": "Rahul Singh",
    "author_email": "rahulsingh32929@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d3/79/e3eeec18bd8bbe82531119c9f089c0a4e849469ff67bb773c1a06c6fd167/django-mega-drive-1.6.tar.gz",
    "platform": null,
    "description": "settins.py\n``` \nMEGA_ACCOUNTS = {\n    'default': {\n        'email': 'mega drive account email here',\n        'password': \"mega drive account password\"\n    },\n\n    # define another account  with anothers alias\n}\n```\n\nmodels.py\n```\nfrom mega_drive.storage import MegaDriveStorage\nfrom django.db import model\n\ndrive_storage = MegaDriveStorage(account_alias='default')\nsecond_drive_storage = MegaDriveStorage(\n    account_alias=\"another_mega_drive_alias\")\n\nclass Profile(models.Model):\n    image = models.ImageField(\n        upload_to='upload_destination', storage=drive_storage)\n    image = models.FileField(\n        upload_to='upload_destination', storage=second_drive_storage)\n    ...\n\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "mega drive storage for django implemented with mega.py package",
    "version": "1.6",
    "split_keywords": [
        "django",
        "python",
        "django_mega_drive"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "a3b3faaa908133405e31d56542b8a471",
                "sha256": "b72320c7a82a7c166d7e4c3f98cf3336cb81e2e9ba54eea332663fb39ce2dc8b"
            },
            "downloads": -1,
            "filename": "django_mega_drive-1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3b3faaa908133405e31d56542b8a471",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5987,
            "upload_time": "2022-12-03T20:01:52",
            "upload_time_iso_8601": "2022-12-03T20:01:52.674170Z",
            "url": "https://files.pythonhosted.org/packages/69/aa/540d5f9f1997bfd31d6792e762cc691ae206b6ab3719d564ae4b9f767c76/django_mega_drive-1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "d48da4bd834f3ca33bc50cf5028d307d",
                "sha256": "c6944c5195e7993d2747b677e6b1561346c865e1f9c8624bb197f49bcd0cb63b"
            },
            "downloads": -1,
            "filename": "django-mega-drive-1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "d48da4bd834f3ca33bc50cf5028d307d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4725,
            "upload_time": "2022-12-03T20:01:58",
            "upload_time_iso_8601": "2022-12-03T20:01:58.608929Z",
            "url": "https://files.pythonhosted.org/packages/d3/79/e3eeec18bd8bbe82531119c9f089c0a4e849469ff67bb773c1a06c6fd167/django-mega-drive-1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-03 20:01:58",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "django-mega-drive"
}
        
Elapsed time: 0.01481s