colony


Namecolony JSON
Version 1.4.24 PyPI version JSON
download
home_pagehttp://getcolony.com
SummaryColony Framework
upload_time2024-01-08 12:13:24
maintainer
docs_urlNone
authorHive Solutions Lda.
requires_python
licenseApache License, Version 2.0
keywords colony plugin framework web
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # [![Colony Framework](res/logo.png)](http://getcolony.com)

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](https://virtualenv.pypa.io/)

* 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](http://getcolony.com/docs/colony/documentation_how_to_establish_your_colony_in_3_easy_steps.html)

## 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.                                         |
| **LOGGING_LOGSTASH** | `bool` | `False`       | If the [Logstash](https://www.elastic.co/logstash) logging adapter should be enabled. |

## 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](https://github.com/hivesolutions/colony_plugins).

And remember, this is just the base runtime. To understand what you can do with Colony,
browse the [Colony Plugins repository](https://github.com/hivesolutions/colony_plugins).

## 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](http://groups.google.com/group/colony-users).
2. Send pull requests for bug fixes or new features and improvements.
3. Help make the [docs](http://getcolony.com/docs/colony/) better.

## Extensions

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

* Python Imaging Library (PIL) [link](https://pillow.readthedocs.io/).
* Reportlab PDF Generator [link](http://www.reportlab.com/).
* Unofficial Windows Binaries for Python Extension Packages [link](http://www.lfd.uci.edu/~gohlke/pythonlibs/).
* MySQL driver for Python [link](http://sourceforge.net/projects/mysql-python/).

## Project information

* Colony Base Source: https://github.com/hivesolutions/colony
* Colony Base Plugins Source: https://github.com/hivesolutions/colony_plugins
* Web: http://getcolony.com
* Docs: http://getcolony.com/docs/colony/
* Mailing list: http://groups.google.com/group/colony-users
* Twitter: http://twitter.com/colonyframework

## License

Colony is an open-source project currently licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/).

## Build Automation

[![Build Status](https://app.travis-ci.com/hivesolutions/colony.svg?branch=master)](https://travis-ci.com/github/hivesolutions/colony)
[![Build Status GitHub](https://github.com/hivesolutions/colony/workflows/Main%20Workflow/badge.svg)](https://github.com/hivesolutions/colony/actions)
[![Coverage Status](https://coveralls.io/repos/hivesolutions/colony/badge.svg?branch=master)](https://coveralls.io/r/hivesolutions/colony?branch=master)
[![PyPi Status](https://img.shields.io/pypi/v/colony.svg)](https://pypi.python.org/pypi/colony)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/)



            

Raw data

            {
    "_id": null,
    "home_page": "http://getcolony.com",
    "name": "colony",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "colony plugin framework web",
    "author": "Hive Solutions Lda.",
    "author_email": "development@hive.pt",
    "download_url": "https://files.pythonhosted.org/packages/2e/4e/32a70701576e1d3d1ad302d1cf51dd5517852a1d8eea352b6182697dcb6f/colony-1.4.24.tar.gz",
    "platform": null,
    "description": "# [![Colony Framework](res/logo.png)](http://getcolony.com)\n\nThe 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.\n\nColony'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.\n\n## Quick start\n\n### Handicraft\n\n* Install Colony using `pip install colony`\n* Run the command `RUN_MODE=devel colony`\n\n### [Virtualenv](https://virtualenv.pypa.io/)\n\n* Start and activate the environment using `virtualenv .venv && source .venv/bin/activate`\n* Install Colony in the system using `pip install colony`\n* Deploy the console package using `cpm install console_interface`\n* Run your new colony using the command `RUN_MODE=devel colony`\n\n### Docker\n\n* Create a new directory to serve as the base for the build `mkdir colony && cd colony`\n* Retrieve the `Dockerfile` from the repo using `wget https://github.com/hivesolutions/colony/raw/master/assets/docker/Dockerfile`\n* Create the new docker image using `docker build --tag self/colony .`\n* Execute colony with `docker run -e RUN_MODE=devel -i -t self/colony`\n\nTo actually do something useful, look into [How to Establish your Colony in 3 Easy Steps](http://getcolony.com/docs/colony/documentation_how_to_establish_your_colony_in_3_easy_steps.html)\n\n## Installation\n\n### For development\n\n* Set `PYTHONPATH` to the `colony/src` path so that the Python source files may be included\n* Set `PATH` to the `colony/scripts/pypi` to use the provided base scripts\n\n### For production\n\n* Installation via pip: `pip install colony`\n\n## Configuration\n\n| Name                 | Type   | Default       | Description                                                                           |\n| -------------------- | ------ | ------------- | ------------------------------------------------------------------------------------- |\n| **RUN_MODE**         | `str`  | `development` | The mode in which the Colony will be running.                                         |\n| **LOGGING_LOGSTASH** | `bool` | `False`       | If the [Logstash](https://www.elastic.co/logstash) logging adapter should be enabled. |\n\n## Usage\n\nMost of the colony operations are run through the `cpm` command:\n\n* `cpm clone <target>` - clones the base colony instance into the target directory (new project)\n* `cpm cleanup <target>` - cleans the current instance, removing extra files\n* `cpm pack <target>` - packs the current instance into a .zip file\n* `cpm generate [target] <...>` - generates a .json descriptor file for the provided Python file and then runs\nthe build operation for the generated .json file, effectively building the package item\n* `cpm build [descriptor] <...>` - builds the target .json descriptor file into a package file\n* `cpm deploy [package]` - deploys the target .cbx file into the current instance\n* `cpm info [package]` - prints information about the package to the standard output\n* `cpm install [name] <...>` - installs the package with the provided name from the remote repositories\n* `cpm upgrade` - updates the complete set of packages deployed in the instance\n* `cpm require [path] <...>` - installs the complete set of packages defined in the requirements file\n* `cpm upload [target] <repo>` - generates a package for the provided path and then uploads it to the currently\nconfigured primary repository or another repository if defined\n\n## Testing\n\nTo run the complete set of available tests for the deployment, use either `colony test`\nor `MODE=test colony` and Colony Manager will boot directly to unit testing and exit in error in\ncase at least one test fails.\n\n## Features\n\n* Runtime modularity.\n* No restart is required for deploying new plugins or updating or reconfiguring existing ones.\n* Simplified component model (easy to create a plugin, even easier to combine existing ones).\n* Capabilities: simple extension points that allow your plugins to take advantage of future plugins that adhere to the capability API.\n* Dependencies: simplified dependency management, declare the id of the plugin your plugin needs to function, and the plugin manager\nwill ensure your plugin only gets loaded when the conditions are met.\n* Most importantly, runs [Colony Plugins](https://github.com/hivesolutions/colony_plugins).\n\nAnd remember, this is just the base runtime. To understand what you can do with Colony,\nbrowse the [Colony Plugins repository](https://github.com/hivesolutions/colony_plugins).\n\n## Contributing\n\nAlthough Colony is still in an early stage, we're welcoming help for all kinds of work.\nThe best ways to get involved:\n\n1. Join the [mailing list](http://groups.google.com/group/colony-users).\n2. Send pull requests for bug fixes or new features and improvements.\n3. Help make the [docs](http://getcolony.com/docs/colony/) better.\n\n## Extensions\n\nTo find the Python native extension required for some of the plugins, use the following sites:\n\n* Python Imaging Library (PIL) [link](https://pillow.readthedocs.io/).\n* Reportlab PDF Generator [link](http://www.reportlab.com/).\n* Unofficial Windows Binaries for Python Extension Packages [link](http://www.lfd.uci.edu/~gohlke/pythonlibs/).\n* MySQL driver for Python [link](http://sourceforge.net/projects/mysql-python/).\n\n## Project information\n\n* Colony Base Source: https://github.com/hivesolutions/colony\n* Colony Base Plugins Source: https://github.com/hivesolutions/colony_plugins\n* Web: http://getcolony.com\n* Docs: http://getcolony.com/docs/colony/\n* Mailing list: http://groups.google.com/group/colony-users\n* Twitter: http://twitter.com/colonyframework\n\n## License\n\nColony is an open-source project currently licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/).\n\n## Build Automation\n\n[![Build Status](https://app.travis-ci.com/hivesolutions/colony.svg?branch=master)](https://travis-ci.com/github/hivesolutions/colony)\n[![Build Status GitHub](https://github.com/hivesolutions/colony/workflows/Main%20Workflow/badge.svg)](https://github.com/hivesolutions/colony/actions)\n[![Coverage Status](https://coveralls.io/repos/hivesolutions/colony/badge.svg?branch=master)](https://coveralls.io/r/hivesolutions/colony?branch=master)\n[![PyPi Status](https://img.shields.io/pypi/v/colony.svg)](https://pypi.python.org/pypi/colony)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/)\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Colony Framework",
    "version": "1.4.24",
    "project_urls": {
        "Homepage": "http://getcolony.com"
    },
    "split_keywords": [
        "colony",
        "plugin",
        "framework",
        "web"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0efc38d6439f04868b57cc17c2c3c6bc7aeb20ddeda21a4e1d606b7d1f327b34",
                "md5": "9b75739f697740f27cd0155a9efc8991",
                "sha256": "3c9341a19127a30ef2b3b3a8f81f95a9bd1bc6343f2fdf616a166868ccefb669"
            },
            "downloads": -1,
            "filename": "colony-1.4.24-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9b75739f697740f27cd0155a9efc8991",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 267997,
            "upload_time": "2024-01-08T12:13:21",
            "upload_time_iso_8601": "2024-01-08T12:13:21.797157Z",
            "url": "https://files.pythonhosted.org/packages/0e/fc/38d6439f04868b57cc17c2c3c6bc7aeb20ddeda21a4e1d606b7d1f327b34/colony-1.4.24-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e4e32a70701576e1d3d1ad302d1cf51dd5517852a1d8eea352b6182697dcb6f",
                "md5": "4b0304d162ba6ec7a9336005dda57cd3",
                "sha256": "6189f1ffbbab1d022a8164a78906017dcc2b6b3975c68dc4ef6b5041ab1c1a78"
            },
            "downloads": -1,
            "filename": "colony-1.4.24.tar.gz",
            "has_sig": false,
            "md5_digest": "4b0304d162ba6ec7a9336005dda57cd3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 196265,
            "upload_time": "2024-01-08T12:13:24",
            "upload_time_iso_8601": "2024-01-08T12:13:24.257038Z",
            "url": "https://files.pythonhosted.org/packages/2e/4e/32a70701576e1d3d1ad302d1cf51dd5517852a1d8eea352b6182697dcb6f/colony-1.4.24.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-08 12:13:24",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "colony"
}
        
Elapsed time: 0.33787s