Skip to main content

A Python plugin for OMERO.web

Project description

https://travis-ci.org/ome/omero-signup.svg?branch=master

OMERO.signup

OMERO.web app to allow anyone to signup for an OMERO account.

Generated usernames are formed from the alphanumeric unicode characters in a user’s first and last names, with a numeric suffix if the username already exists. If OMERO.web is configured to connect to multiple OMERO servers the user account will be created on the default one.

Requirements

  • OMERO.web 5.6 or newer.

  • Python 3.6 or newer.

Installation

This section assumes that an OMERO.web is already installed.

$ pip install omero-signup
$ omero config append omero.web.apps '"omero_signup"'

Required configuration settings:

  • omero.web.signup.admin.user: OMERO admin username, must have permission to create groups and users

  • omero.web.signup.admin.password: Password for OMERO admin username

  • omero.web.signup.group.name: Default group for new users, will be created if it doesn’t exist

Optional configuration settings:

  • omero.web.signup.group.templatetime: If True expand omero.web.signup.group.name using strftime to enable time-based groups, default disabled

  • omero.web.signup.group.perms: Permissions on default group for new users if it doesn’t exist

These configuration settings are untested due to the difficulty of configuring email on a test server:

  • omero.web.signup.email.enabled: If True send emails to new users with their username and password instead of displaying the password, default disabled

  • omero.web.signup.email.subject: Email subject for new-user emails

  • omero.web.signup.email.body: Email body for new-user emails. It should include template strings {username} and {password} that will be substituted with the created user’s username and password.

Example:

$ omero config get
omero.web.apps=["omero_signup"]
omero.web.signup.admin.password=root-password
omero.web.signup.admin.user=root
omero.web.signup.group.name=testgroup-%Y-%m
omero.web.signup.group.templatetime=true
omero.web.signup.host=localhost

Restart OMERO.web in the usual way.

$ omero web restart

New users will be able to sign-up for an account at http://omero.web.host/signup.

Release process

Use bumpversion to increment the version, commit and tag the repo.

$ bumpversion patch
$ git push origin master
$ git push --tags

License

OMERO.signup is released under the AGPL.

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

omero-signup-0.2.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

omero_signup-0.2.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file omero-signup-0.2.0.tar.gz.

File metadata

  • Download URL: omero-signup-0.2.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

File hashes

Hashes for omero-signup-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5ef4f7ca8c646fb476dd2c94b1eefcd9e9e8c4f0dedfa87940845e7277ecbe65
MD5 8b9701c8cf68bfe7ee21f0390f928f47
BLAKE2b-256 80baa1e5fec3427ec31a4ecc02f6c37cd8f57efb4ec311d9995826cd0255cba4

See more details on using hashes here.

File details

Details for the file omero_signup-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: omero_signup-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

File hashes

Hashes for omero_signup-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e80ba7c73af694f39b6e7ef263e3b7daa4d60d08873532be8eaced06d42641ce
MD5 3cd9826ea2fe682fee15a685c6c7d7e0
BLAKE2b-256 50a622303728297b872e230d176614a0280acf788fb866ff5895ae3bcb23a806

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