Skip to main content

PBSHM Core Library

Project description

PBSHM Flask Core

PBSHM Flask Core is a minimal application built on Flask to enable development of PBSHM Modules that consume PBSHM Schema data. It was designed to deal with all the basic requirements of a PBSHM system, allowing developers to focus on implementation of PBSHM Modules.

The application includes an initialisation module to setup the system and database, a permission-based user authentication module and a simple graphing module to allow exploration of data within the database. The minimum version of Python required to run the PBSHM Flask Core is version 3.8.10.

Installation

Install the required python packages via pip:

pip install -r requirements.txt

Setup

Set the Flask application path and environment.

For Linux/Mac:

export FLASK_APP=pbshm
export FLASK_DEBUG=1

For Windows:

set FLASK_APP=pbshm
set FLASK_DEBUG=1

Configure settings and initialise the database with a new root user:

flask init config
flask init db new-root-user

The above steps will prompt you for all the required fields to setup the system.

Running

The application is run via the standard Flask command:

flask run

Tools

The PBSHM Flask Core comes with a few tools which are available via the mechanic module.

To retrieve all versions of the PBSHM Schema available for installation, use the following command:

flask mechanic versions

To create a new collection with the latest version of the PBSHM Schema installed within the collection, use the following command:

flask mechanic new-structure-collection collection-name

To create a new collection with a specific version of the PBSHM Schema installed within the collection, use the following command:

flask mechanic new-structure-collection collection-name --version=v1.0

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

pbshm-core-1.0.5.tar.gz (61.7 kB view details)

Uploaded Source

Built Distribution

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

pbshm_core-1.0.5-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

Details for the file pbshm-core-1.0.5.tar.gz.

File metadata

  • Download URL: pbshm-core-1.0.5.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pbshm-core-1.0.5.tar.gz
Algorithm Hash digest
SHA256 790ed218407e6b9c255491f1bd88111f923fb2a14dc3d77eaa00945901d627bf
MD5 fd5579b67b25aa3bca5779fd1537d3c0
BLAKE2b-256 b9b51be09391fd0fac9d0057ce3db70819bd93109e97d6fe4e9a7caa41db4db0

See more details on using hashes here.

File details

Details for the file pbshm_core-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pbshm_core-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 51.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pbshm_core-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7e6c07bb7925472f28e06b711d0b3f3326547cc928f3df04f27c28258745b6da
MD5 4abb571ac5167fe14c939115ecdb1a4f
BLAKE2b-256 6a610ac9b528d4b0f807a2034f3b885147cfb06016fceff0abf2e4747299b46a

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