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.5.0.tar.gz (67.3 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.5.0-py3-none-any.whl (78.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eps_spine_shared-0.5.0.tar.gz
  • Upload date:
  • Size: 67.3 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.5.0.tar.gz
Algorithm Hash digest
SHA256 3c56ced4aa64bc8d258a134928f9147ad624919638eaa6e3fd1e12d3eed136dd
MD5 9f41db5d09a40e6f1abc35e489f283dc
BLAKE2b-256 406ab79fcf36eeebd946a17e5e1f15a007d3543e807a46a43e7a83415cb7157b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eps_spine_shared-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1df4554085d667a723e718f0d035ebde10b4ade3fe77d83a234e821a8e7c2a2d
MD5 8e6811d93acdd306c92f3477c1ee2974
BLAKE2b-256 040effdcdfda2f08c4f2d75f83daa650235eeef222bfe254e64b8794f8ab5fa9

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