Skip to main content

A library to hold code shared by EPS and Spine

Project description

eps-spine-shared

A library to hold code shared by EPS and Spine.

Overview

This library provides shared functionality and utilities used across EPS (Electronic Prescription Service) and Spine systems.

Development

It is recommended that you use VS Code and a devcontainer as this will install all necessary components and correct versions of tools and languages. See https://code.visualstudio.com/docs/devcontainers/containers for details on how to set this up on your host machine.

All commits must be made using signed commits

Once the steps at the link above have been completed. Add to your ~/.gnupg/gpg.conf as below:

use-agent
pinentry-mode loopback

and to your ~/.gnupg/gpg-agent.conf as below:

allow-loopback-pinentry

As described here: https://stackoverflow.com/a/59170001

You will need to create the files, if they do not already exist. This will ensure that your VSCode bash terminal prompts you for your GPG key password.

You can cache the gpg key passphrase by following instructions at https://superuser.com/questions/624343/keep-gnupg-credentials-cached-for-entire-user-session

Pre-commit Hooks

Some pre-commit hooks are installed as part of the install above, to run basic lint checks and ensure you can't accidentally commit invalid changes. The pre-commit hook uses python package pre-commit and is configured in the file .pre-commit-config.yaml. A combination of these checks are also run in CI.

Code Quality

This project uses Flake8 for linting and Black for code formatting.

Run linting:

make lint

Format code:

make format

Project Structure

eps-spine-shared/
├── src/
│   └── eps_spine_shared/     # Main library code
├── tests/                    # Test files
├── pyproject.toml            # Project configuration
├── Makefile                  # Build automation
└── README.md                 # This file

Contributing

Contributions to this project are welcome from anyone, providing that they conform to the guidelines for contribution and the community code of conduct.

Licensing

This code is dual licensed under the MIT license and the OGL (Open Government License). Any new work added to this repository must conform to the conditions of these licenses. In particular this means that this project may not depend on GPL-licensed or AGPL-licensed libraries, as these would violate the terms of those libraries' licenses.

The contents of this repository are protected by Crown Copyright (C).

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

eps_spine_shared-0.1.0.tar.gz (67.2 kB view details)

Uploaded Source

Built Distribution

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

eps_spine_shared-0.1.0-py3-none-any.whl (78.2 kB view details)

Uploaded Python 3

File details

Details for the file eps_spine_shared-0.1.0.tar.gz.

File metadata

  • Download URL: eps_spine_shared-0.1.0.tar.gz
  • Upload date:
  • Size: 67.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for eps_spine_shared-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4b69a9d87a9d83b38acd494d3b68359e292e57a37e2a7bd9e754703dbad20845
MD5 c3caad2c335b42fbfb1bbbbbe0e83b43
BLAKE2b-256 7c6881e55969219b13d832462ca85c1feda1df4699f1ce4ac0bd73813958ab1b

See more details on using hashes here.

File details

Details for the file eps_spine_shared-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for eps_spine_shared-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6aaac8e1a9fd41ee5dbbc5049be362bc65dd9a95e2b3019cd51140f9856cf794
MD5 80cd1bfa34515e6373a60dd73af4b967
BLAKE2b-256 11ee8808886320d78180b47823dbfcd3ea13465899fb43a354649791ad3a8abb

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