معرفی شرکت ها


django-sqlite-backup-0.0.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A Django app to easily backup your sqlite database through an endpoint.
ویژگی مقدار
سیستم عامل -
نام فایل django-sqlite-backup-0.0.3
نام django-sqlite-backup
نسخه کتابخانه 0.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Ferran Jovell <ferran.jovell+gh@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/django-sqlite-backup/
مجوز MIT License Copyright (c) 2023 Ferran Jovell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Django Sqlite Backup A Django application to backup you SQLite database by calling and endpoint. ## Installation From PYPi using `pip`: ``` pip install django-sqlite-backup ``` ## Usage Add the app to the `INSTALLED_APPS`: ``` INSTALLED_APPS = [ ..., "django_sqlite_backup", ..., ] ``` Then, add the app's URLs to the root URL conf: ``` path("", include("django_sqlite_backup.urls")), ``` This will create a route in your application to backup your sqlite database: `/backup/` which accepts only `POST` requests with authentication. If the request succeeds it will return a `294`. Otherwise, a `403` if the request was not authenticated. ### Settings You must define your settings in your `settings.py`: ``` SQLITE_BACKUP = { "BACKUP_CLASS": ..., "RESTORE_CLASS": ..., "BUCKET_NAME": ..., "S3_ENDPOINT": ..., } ``` - `BACKUP_CLASS` must point to class which follows the [`SqliteBackup`](./django_sqlite_backup/backup.py) protocol. - `RESTORE_CLASS` must point to class which follows the [`SqliteRestore`](./django_sqlite_backup/restore.py) protocol. - `BUCKET_NAME` is the name of the bucket in S3 which can be written to. - `S3_ENDPOINT` S3 endpoint override. Leave this blank if you use AWS S3 directly. ### Management commands This app provides two commands for carrying out operations on the backups: `backup` and `restore`. ```console ./manage.py backup ``` Will back up the current sqlite database into the configured bucket. ```console ./manage.py restore [date_str] ``` Will restore your sqlite database from your configured bucket on the date specified. The `date_str` is optional and defaults to today. ### AWS By default, the backup class uses `boto3` to backup the sqlite database into S3. Therefore, you will need to also pass the [AWS Environment Variables](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html) to the environment where your application is running. ## Licence This package is distributed under [MIT Licence](./LICENCE).


نیازمندی

مقدار نام
>=3.2.14 Django
- boto3
- boto3
- coverage
- moto
- pre-commit
- pytest
- pytest-django
- time-machine


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl django-sqlite-backup-0.0.3:

    pip install django-sqlite-backup-0.0.3.whl


نصب پکیج tar.gz django-sqlite-backup-0.0.3:

    pip install django-sqlite-backup-0.0.3.tar.gz