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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
790ed218407e6b9c255491f1bd88111f923fb2a14dc3d77eaa00945901d627bf
|
|
| MD5 |
fd5579b67b25aa3bca5779fd1537d3c0
|
|
| BLAKE2b-256 |
b9b51be09391fd0fac9d0057ce3db70819bd93109e97d6fe4e9a7caa41db4db0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e6c07bb7925472f28e06b711d0b3f3326547cc928f3df04f27c28258745b6da
|
|
| MD5 |
4abb571ac5167fe14c939115ecdb1a4f
|
|
| BLAKE2b-256 |
6a610ac9b528d4b0f807a2034f3b885147cfb06016fceff0abf2e4747299b46a
|