Skip to main content

This repository holds those infrastructure-level modules, that every application requires that follows the core 12-factor principles.

Project description

py-12f-common

Quality Check Status Coverage

About

This repository holds those infrastructure-level modules, that every application requires that follows the core 12-factor principles.

Install

Prerequisites

Install Python and module dependencies

Install Python 3, using some virtual environment.

Create and switch to a virtual environment dedicated to this project.

For development, install the package and its dependencies in editable mode, using task:

    task install-dev-editable

or directly with the pip command:

    pip install -e .[dev] .

NOTE: The task install-... tasks also installs git hooks (e.g. pre-commit). The git hooks are simple bash scripts, that call tasks, for example the pre-commit hook will call the task pre-commit command.

Usage

List the available tasks:

    task list

    task: Available tasks for this project:
    * build-docker:         Build docker image
    * clean:                Clean temporary files and folders
    * coverage:             Test coverage
    * default:              Executes all the tests then build the binary.
    * docs:                 Generate module documentation into the docs/ folder
    * format:               Autoformat the source files
    * install:              Install the package and its dependencies
    * install-dev:          Install the package and its dependencies for development
    * install-dev-editable: Install the package and its dependencies for development with editablility
    * install-git-hooks:    Install git hooks
    * lint:                 Run python linter
    * pre-commit:           Runs the QA tasks from a git pre-commit hook
    * test:                 Run all the tests.
    * test-verbose:         Run all the go tests.

Run tests:

    task test-verbose

License

The scripts and documentation in this project are released under the MIT License

References

Development tools

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

py-12f-common-0.5.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

py_12f_common-0.5.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file py-12f-common-0.5.0.tar.gz.

File metadata

  • Download URL: py-12f-common-0.5.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for py-12f-common-0.5.0.tar.gz
Algorithm Hash digest
SHA256 6a5757bc3d0667085ba4c91f6690ad18433266af692e66a9e1e5d7f94250be31
MD5 a34f164029888e900a0dd879ad2a97a8
BLAKE2b-256 3dfb581c6af45708b4f8220482bfe394ddd212e84dbf1e838cfcba2f45565c6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_12f_common-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for py_12f_common-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a093568531263e17a00c3eccbb92e26730d61260ec42a0646ddedbe7a503027a
MD5 d71d6972ae90080652977d2393f3ae30
BLAKE2b-256 720a7eeb65684df657bc16d68a22664f9bf390daf6658c94b017ba0a0bf5e7ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page