Skip to main content

Core python library for Sudoblark.

Project description


Logo

sudoblark.python.core

The core Python library for Sudoblark, mainly used to power CLI tooling to augment CI/CD operations.
· Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Technical Documentation
  5. Testing
  6. Packaging
  7. CI/CD
  8. License
  9. Contact

About The Project

This is the core Python library for Sudoblark, mainly used to power CLI tooling to augment CI/CD operations.

The live source of documentation may be said to reside here. It is recommended for developers to at least read the "Developers notes" section before attempting to contribute to this repo.

(back to top)

Built With

(back to top)

Getting Started

The below are instructions for how to develop the core library, for instructions on how to install see the Usage section instead.

Prerequisites

These installation instructions are targeted for MacOS.

  • Python3.10
    brew install python@3.10
    
  • Poetry
    python3.10 -m venv venv
    source venv/bin/activate
    pip install -U pip setuptools
    pip install poetry
    

Installation

Assume a local virtual environment, and poetry, are setup as per the Prerequisites then installation is simply:

poetry install

Which you may verify via:

python3
import sudoblark_python_core
help(sudoblark_python_core)

(back to top)

Usage

TODO

(back to top)

Technical Documentation

mkdocs is used in order to auto-generation documentation. It is configured via the docs/mkdocs.yml file and - for the most part - doesn't need to be altered. F

In order to generation a local web server of documentation:

mkdocs serve

However, it should be noted that live versioned documentation is produced during the release process by an admin running the mkdocs gh-deploy --force command.

(back to top)

Testing

The Behave! library is utilised in order to conduct end-to-end testing, hopefully proving we can actually interact in a reliable fashion with the GitHub RESTAPI.

For those uninitiated, the basic premise is:

  • The features folder is the root of Behave!
  • At this top-level, it contains .feature files, which are used to define our test cases
  • In the nested steps folder, we will define what the test case components mean in programmatic terms

Checks may be run by simply executing behave locally once the Installation steps have been followed.

NOTE: All scenarios require a valid GITHUB_TOKEN environment variable to be present

(back to top)

Packaging

The package is published to PyPi simply by running the below commands:

poetry build
poetry config pypi-token.pypi <token>
poetry publish

(back to top)

CI/CD

GitHub Actions is used for all CI/CD activities. We give a brief outline of what each pipeline does below.

Pipeline Triggers Description
commit-to-pull-request.yaml Commit on a pull request Runs flake8 and behavioural tests

(back to top)

License

Distributed under the project_license. See LICENSE.txt for more information.

(back to top)

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

sudoblark_python_core-1.0.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

sudoblark_python_core-1.0.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file sudoblark_python_core-1.0.0.tar.gz.

File metadata

  • Download URL: sudoblark_python_core-1.0.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.15 Darwin/23.3.0

File hashes

Hashes for sudoblark_python_core-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cfefa573a6c3b74e6e8cc1ec27a2bcea981d4028a865bde8981c3f0debf6a6c6
MD5 93c371c4417a407858e38f810b6d9943
BLAKE2b-256 698d72c613a33ad123b7298f38f01406411a74c7fc7eeb10d590f82041d17871

See more details on using hashes here.

File details

Details for the file sudoblark_python_core-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sudoblark_python_core-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a77c4cc3bbf1c89e17faf24eec0541ad63d16428205d0e7acb4d54bad442a3c2
MD5 b1428f19104eebe984a1f5b2f274cceb
BLAKE2b-256 7afadc648650afb9aa22aab3d61ca7e4cb85b473b5f76cdd2f84c03e7efe9e78

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