Skip to main content

No project description provided

Project description

pylint-hexagonal

PyPI - Version PyPI - Python Version


Table of Contents

Introduction

This is a pylint plugin for use with a with a package structure as follows:

example/
├── adapters
│   ├── api
│   │   └── api.py
│   └── db
│       └── db.py
└── core
    ├── application
    │   └── service.py
    ├── domain
    │   └── aggregate.py
    └── ports
        ├── primary
        │   └── serviceport.py
        └── secondary
            └── daoport.py

The checker validates the following hexagonal architecure rules:

  1. Core modules must not import from adapters
  2. Adapter modules must not import from other adapters
  3. Adapter modules modules should only import from the ports subpackage of the core.
  4. Ports should not include any logic (abstract classes and methods only)

Installation

pip install pylint-hexagonal

License

pylint-hexagonal is distributed under the terms of the MIT license.

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

pylint_hexagonal-0.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

pylint_hexagonal-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pylint_hexagonal-0.0.1.tar.gz.

File metadata

  • Download URL: pylint_hexagonal-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for pylint_hexagonal-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5b35bf008e7394e26be5bf834c155a2c02495a132897058fd08d05d19026498f
MD5 07e2350a9b1c544eeb3777c1a7bb056e
BLAKE2b-256 041e2e951b99713272fadcc68c1f7d91c962e86d7b547f0227f8680325a2825b

See more details on using hashes here.

File details

Details for the file pylint_hexagonal-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pylint_hexagonal-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5a100cf796501c496649c6255c88d3f1a29ec573ea79e563663a4f84c6d7432
MD5 1dafbdc8fe5fbd110c9b71be35006a56
BLAKE2b-256 35bcce931e1e0d72991778551d4cdb9a14346b5760ad3d6e51b80a8656c9ca4b

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