Skip to main content

Adds a generic list of plugins for use within projects

Project description

Giant Plugins

A re-usable package which can be used in any project that requires a base set of plugins.

This will include a small set of plugins that are used in a large number of projects, but will not necessarily cover the full requirements. It will also provide a RichText field which can be used in other areas of the project The RichText field uses summernote for styling the WYSIWYG widget.

Installation

To install with the package manager, run:

$ poetry add giant-plugins

You should then add "giant_plugins" to the INSTALLED_APPS in base.py.

In order to run django-admin commands you will need to set the DJANGO_SETTINGS_MODULE by running

$ export DJANGO_SETTINGS_MODULE=settings

Configuration

This application exposes the following settings:

SUMMERNOTE_CONFIG which allows the user to configure a set of options for the redactor. For example the settings below will give you a basic setup,

SUMMERNOTE_CONFIG = (
    {
        "iframe": True,
        "summernote": {
            "airMode": False,
            # Change editor size
            "width": "100%",
            "height": "480",
            "lang": None,
            "toolbar": [
                ["style", ["style"]],
                ["font", ["bold", "underline", "clear"]],
                ["fontname", ["fontname"]],
                ["color", ["color"]],
                ["para", ["ul", "ol", "paragraph"]],
                ["table", ["table"]],
                ["insert", ["link", "picture", "video"]],
                ["view", ["fullscreen", "codeview", "help"]],
                ["cleaner", ["cleaner"]],
            ],
        },
    },
)

Preparing for release

In order to prep the package for a new release on TestPyPi and PyPi there is one key thing that you need to do. You need to update the version number in the pyproject.toml. This is so that the package can be published without running into version number conflicts. The version numbering must also follow the Semantic Version rules which can be found here https://semver.org/.

Publishing

Publishing a package with poetry is incredibly easy. Once you have checked that the version number has been updated (not the same as a previous version) then you only need to run two commands.

$ `poetry build` 

will package the project up for you into a way that can be published.

$ `poetry publish`

will publish the package to PyPi. You will need to enter the username and password for the account which can be found in the company password manager

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

giant-plugins-0.2.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

giant_plugins-0.2.1-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file giant-plugins-0.2.1.tar.gz.

File metadata

  • Download URL: giant-plugins-0.2.1.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.9 Linux/5.4.0-59-generic

File hashes

Hashes for giant-plugins-0.2.1.tar.gz
Algorithm Hash digest
SHA256 297279bdb3baae87d951d37abfcef70af07d0cfa7c9b233ca399c7502203c7a1
MD5 b939e9748cf284f5a7512538b3e51f04
BLAKE2b-256 a8503574baf4668d2f47627b911ea329a0cb5e283b608257a097a64db08d9df4

See more details on using hashes here.

File details

Details for the file giant_plugins-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: giant_plugins-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.9 Linux/5.4.0-59-generic

File hashes

Hashes for giant_plugins-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86affce365ce80dca7988e4b088e72ac58b29f2b38fec0cfadd45daeb2fae8cb
MD5 70a41fb978a9ccd1f5e00126d4122d69
BLAKE2b-256 5a71d58d9a2b6cdcc5aee6994fd97064621f18f6cd6ac349b96c2dfaa907504b

See more details on using hashes here.

Supported by

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