Skip to main content

A module that provides a set of swearwords to listen to when filtering while allowing to toggle on and off different languages.

Project description

polyguard

PyPI - Python Version PyPI - Implementation PyPI - Wheel PyPI - Version PyPI - Downloads PyPI - License Execution status GitHub Workflow Status (with event) GitHub repo size GitHub Repo stars GitHub commit activity (branch) GitHub last commit (branch)

Static Badge

Take a look

This project now has automated documentation that gets generated, this manually written one will remain for legacy reasons, but you can now take a look at the automatic documentation here: https://hanra-s-work.github.io/polyguard/

Description

Table of Content

  1. polyguard
  2. Description
  3. Table of Content
  4. Installation
    1. Using pip
    2. Using python
  5. Usage
    1. Running as a script
    2. Importing
    3. Initialising
  6. Documentation
  7. Author

Installation

Using pip

pip install -U polyguard

Using python

Under Windows:

py -m pip install -U polyguard

Under Linux/Mac OS:

python3 -m pip install -U polyguard

Usage

Running as a script

You can run polyguard directly as a script to start an interactive terminal session:

python -m polyguard

This will launch the interactive PolyGuard interface where you can execute commands.

Importing

from polyguard import PolyGuard

Initialising

The generic class is: PolyGuard(success: int = 0, error: int = 1, log: bool = True, debug: bool = False)

For your convenience, you can initialize the class with default parameters:

from polyguard import PolyGuard
ERROR = 1
SUCCESS = 0
LOG=True
DEBUG=False

polyguard_instance = PolyGuard(
    SUCCESS,
    ERROR,
    COLOUR_LIB,
    LOG,
    DEBUG
)
polyguard_instance()

Documentation

Comprehensive Doxygen-generated documentation is available online at https://hanra-s-work.github.io/polyguard/. This includes detailed API references, class documentation, and usage examples.

To generate the documentation locally, navigate to the doxygen_generation directory and run the provided scripts.

Author

This module was written by (c) Henry Letellier Attributions are appreciated.

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

polyguard-1.0.1.tar.gz (636.6 kB view details)

Uploaded Source

Built Distribution

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

polyguard-1.0.1-py3-none-any.whl (633.1 kB view details)

Uploaded Python 3

File details

Details for the file polyguard-1.0.1.tar.gz.

File metadata

  • Download URL: polyguard-1.0.1.tar.gz
  • Upload date:
  • Size: 636.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for polyguard-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e054f67567903acc28f706c9bbad31a1e972d2bc54e12c7325166f2df3f52020
MD5 9bb86d847147eb5c60f41d4a7d191cd2
BLAKE2b-256 2e4809b906552b66176ff3758e11252cfd245c63ae9af08151abf5fcd7c3dc30

See more details on using hashes here.

File details

Details for the file polyguard-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: polyguard-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 633.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for polyguard-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea37ef355e14c6e8d5ac669617b15512879594119dbd2d0bc52135e4081af30
MD5 c80764e780b741c847220f3e0bafa035
BLAKE2b-256 d64c5aaf5280f11240de71641588a69d670498218c4474c2d7ad1901cd6aa6d1

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