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

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.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

py_12f_common-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py-12f-common-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for py-12f-common-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3db24ad84da955afe6d252db9401069355ebc49969bbd640292d923777a0edd6
MD5 d7a41c84d69837512798d1e9f21dfb6c
BLAKE2b-256 c4a22792fb8ba6aa9ef5ee5253f0cd9b15c0619e5ba237cdc259fe70546865da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_12f_common-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for py_12f_common-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 352da496ad512c3eafdae196283c33781b906feb7cecb491b62fdd15046681b2
MD5 00bf57a75758c83fd60505d5b72582e9
BLAKE2b-256 3487665ff207a8fa06a515a6f4c082a9effa1427fab199c8c2b2d286cf8f9631

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