Skip to main content

Colony Framework

The Colony Framework is an open-source plugin framework specification. Its implementations provide a component model at runtime, enabling plugins to be installed, started, stopped, updated, and uninstalled without having to stop the application container. The framework heavily relies on the Inversion of Control principle, making it easier for application components to discover and interact with each other.

Colony's goal is to simplify the process of creating modular applications by offering a unified, simplified model for component development. This can have practical applications in a variety of fields, ranging from modular enterprise software to application mashing.

Quick start

Handicraft

  • Install Colony using pip install colony
  • Run the command RUN_MODE=devel colony

Virtualenv

  • Start and activate the environment using virtualenv .venv && source .venv/bin/activate
  • Install Colony in the system using pip install colony
  • Deploy the console package using cpm install console_interface
  • Run your new colony using the command RUN_MODE=devel colony

Docker

  • Create a new directory to serve as the base for the build mkdir colony && cd colony
  • Retrieve the Dockerfile from the repo using wget https://github.com/hivesolutions/colony/raw/master/assets/docker/Dockerfile
  • Create the new docker image using docker build --tag self/colony .
  • Execute colony with docker run -e RUN_MODE=devel -i -t self/colony

To actually do something useful, look into How to Establish your Colony in 3 Easy Steps

Installation

For development

  • Set PYTHONPATH to the colony/src path so that the Python source files may be included
  • Set PATH to the colony/scripts/pypi to use the provided base scripts

For production

  • Installation via pip: pip install colony

Configuration

Name Type Default Description
RUN_MODE str development The mode in which the Colony will be running.
COLONY_LOGGING_LOGSTASH bool False If the Logstash logging adapter should be enabled (fallback: LOGGING_LOGSTASH).
LOGGING_LOGSTASH bool False Same as LOGGING_LOGSTASH.

Usage

Most of the colony operations are run through the cpm command:

  • cpm clone <target> - clones the base colony instance into the target directory (new project)
  • cpm cleanup <target> - cleans the current instance, removing extra files
  • cpm pack <target> - packs the current instance into a .zip file
  • cpm generate [target] <...> - generates a .json descriptor file for the provided Python file and then runs the build operation for the generated .json file, effectively building the package item
  • cpm build [descriptor] <...> - builds the target .json descriptor file into a package file
  • cpm deploy [package] - deploys the target .cbx file into the current instance
  • cpm info [package] - prints information about the package to the standard output
  • cpm install [name] <...> - installs the package with the provided name from the remote repositories
  • cpm upgrade - updates the complete set of packages deployed in the instance
  • cpm require [path] <...> - installs the complete set of packages defined in the requirements file
  • cpm upload [target] <repo> - generates a package for the provided path and then uploads it to the currently configured primary repository or another repository if defined

Testing

To run the complete set of available tests for the deployment, use either colony test or MODE=test colony and Colony Manager will boot directly to unit testing and exit in error in case at least one test fails.

Features

  • Runtime modularity.
  • No restart is required for deploying new plugins or updating or reconfiguring existing ones.
  • Simplified component model (easy to create a plugin, even easier to combine existing ones).
  • Capabilities: simple extension points that allow your plugins to take advantage of future plugins that adhere to the capability API.
  • Dependencies: simplified dependency management, declare the id of the plugin your plugin needs to function, and the plugin manager will ensure your plugin only gets loaded when the conditions are met.
  • Most importantly, runs Colony Plugins.

And remember, this is just the base runtime. To understand what you can do with Colony, browse the Colony Plugins repository.

Contributing

Although Colony is still in an early stage, we're welcoming help for all kinds of work. The best ways to get involved:

  1. Join the mailing list.
  2. Send pull requests for bug fixes or new features and improvements.
  3. Help make the docs better.

Extensions

To find the Python native extension required for some of the plugins, use the following sites:

  • Python Imaging Library (PIL) link.
  • Reportlab PDF Generator link.
  • Unofficial Windows Binaries for Python Extension Packages link.
  • MySQL driver for Python link.

Project information

License

Colony is an open-source project currently licensed under the Apache License, Version 2.0.

Build Automation

Build Status Build Status GitHub Coverage Status PyPi Status License

Metadata

Release files for colony 1.4.50

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colony 1.4.50
File Size Uploaded Provenance Actions
colony-1.4.50.tar.gz 205.2 kB Without provenance Details for colony-1.4.50.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colony 1.4.50
File Interpreter ABI Platform Actions
colony-1.4.50-py2.py3-none-any.whl Python 3, Python 2 none any Details for colony-1.4.50-py2.py3-none-any.whl

Total release size: 485.1 kB

Release files / colony-1.4.50.tar.gz

Download URL colony-1.4.50.tar.gz
Size 205.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e8fa6b049783526f576e74689c66ae7ab487fe381035a4178bce8ebf6d3a3b4f
BLAKE2b-256 checksum
How to use checksums
945ef670c0aa11ce67aa260bf0a08176118b39307fa48f706f57547bd8abddfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

Release files / colony-1.4.50-py2.py3-none-any.whl

Download URL colony-1.4.50-py2.py3-none-any.whl
Size 279.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5bbba5f2361562285fa310a9c1546d4cd1551486ebf808e9aa49c2efc7fc2f1f
BLAKE2b-256 checksum
How to use checksums
08783bd1441652aac1263c63e7fba60f016be02227f19456274111abda9d9163
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

Security for colony 1.4.50

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.4.50 This release

2 release files No provenance

1.0.8

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page