Skip to main content

Django admin package to interact with Sharing Configs API

Project description

Sharing Configs for Django

Version:

0.1.1

Source:

https://github.com/maykinmedia/sharing-configs

Keywords:

django, github

PythonVersion:

3.7, 3.8, 3.9

Build status Coverage status black

python-versions django-versions pypi-version

A reusable Django app to export and import resources using Sharing Configs API.

Developed by Maykin Media B.V..

Features

  • provides client to interact with Sharing Configs API

  • easy download and upload of resources in the Django admin

Installation

Requirements

  • Python 3.7 or above

  • setuptools 30.3.0 or above

  • Django 2.2 or newer

Install

  1. Install from PyPI

pip install sharing-configs
  1. Add sharing_configs to the INSTALLED_APPS setting.

  2. In the admin page of SharingConfigsConfig configure access to the Sharing Configs API

Usage

The Sharing Config Library provides two mixins to add into the ModelAdmin class of your resources: * SharingConfigsImportMixin - to import the resource * SharingConfigsExportMixin - to export the resource

The mixins provide custom admin views and request Sharing Configs API under the hood.

Import

To use SharingConfigsImportMixin the developer should specify how to convert the imported file into the django model instance and override get_sharing_configs_import_data method

Export

To use SharingConfigsExportMixin the developer should specify how to convert the django model instance into the exporting file and override get_sharing_configs_export_data method

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sharing-configs-0.1.1.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

sharing_configs-0.1.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file sharing-configs-0.1.1.tar.gz.

File metadata

  • Download URL: sharing-configs-0.1.1.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for sharing-configs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 422f7d8feb730a389dd63605b3bd08d422cc617b38661df81c07b3060038cbd7
MD5 dd2255e14a03433850dc338cf2f6c90d
BLAKE2b-256 70539a1f1d2a161635c1e3d3d62e1f713f84b8aa0ac5c690c4f4a19b9bf5b2c4

See more details on using hashes here.

File details

Details for the file sharing_configs-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sharing_configs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d2f216e9e5bff19cb8f1b5c0f4c0e91a85d14dd63c37da666b8dad873cc4327
MD5 79a78fa2dfd8cf5332256e5008f46e1a
BLAKE2b-256 2b1c5e7257bcdb577e4c6bc1a5f808a60acfab4c692c4a1e882f7c98d6cff1ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page