OArepo module that adds support for communities
Project description
OARepo-Communities
OArepo module that adds support for communities
Installation
OARepo-Communities is on PyPI so all you need is:
$ pip install oarepo-communities
Configuration
To customize invenio roles to be created inside each community, override the following defaults:
OAREPO_COMMUNITIES_ROLES = ['member', 'curator', 'publisher']
"""Roles present in each community."""
Usage
CLI
You can find all CLI commands that are available under invenio oarepo:communities
group.
To create a community, use:
Usage: invenio oarepo:communities create [OPTIONS] COMMUNITY_ID TITLE
Options:
--description TEXT Community description
--policy TEXT Curation policy
--title TEXT Community title
--logo-path TEXT Path to the community logo file
--ctype TEXT Type of a community
--help Show this message and exit.
This command will create a new community together with Invenio Roles for the community. Created community roles will be defined by default as:
dict(
name=f'community:{community_id}:{community_role}',
description=f'{title} - {community_role}'
)
This can be customized by using custom OAREPO_COMMUNITIES_ROLE_KWARGS
factory.
Further documentation is available on https://oarepo-communities.readthedocs.io/
Copyright (C) 2021 CESNET.
OARepo-Communities is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details.
.. Copyright (C) 2021 CESNET.
OARepo-Communities is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
Changes
Version 0.1.0 (released TBD)
- Initial public release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for oarepo_communities-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db03b6584eae6b8d694e5cb4d2ca43721a1cb54eca34b344b05b3a5136721f7 |
|
MD5 | 7b5031fe9f8a7eb9a558e35f951053f2 |
|
BLAKE2b-256 | b71ab287c95643625356511482ac5ca68ec47559570de0ff9dbdc1038e6eaea0 |