Skip to main content

The Bitsmiths Loquacious Correspondence Package

Project description

BITSMITHS LOCO

LoCo stands for Loquacious Correspondence. It is the common Bitsmiths python package that we use to send out communications to user of other systems.

The intended purpose of LoCo is to have a shared product that offers:

  • The complete customization of messages templates to be sent to external people or systems.
  • To support multiple methods of sending messages:
    • Also allow dynamic/custom pluggin modules so this can be extended from outside this library
    • We currently support sending messages to e-mail, sms, log files (debug purposes).
    • Next we need to support push notifications of some kind.
  • To provide a single a place to store the metrics and performance sending messages to different providers.
  • To provide a transcationable library extension so that other products can send messages and be sure those messages are always sent.
  • Finally to provide a default method of archiving messages that have been sent (batch code to speak).

This product has a dependency on:

  • Mettle (bitsmiths-mettle)
  • Bitsmiths Library (bitsmiths-lib)
  • Bitsmiths Auditing (bitsmiths-audit)

Note that we package the generated Mettle code in this package, which means that the Mettle version required in this module is important.

Tables & Setup

Loco is designed to use a relational database with a schema/namespace of loco in your database. You will need to create this schema manually. It requires several other relational database tables.

The package provides the SQL code to create these tables. There are two ways to access the table creation SQL.

  1. You can run bs-loco -g postgresql at the command line, this will print all the SQL to stdout.
  2. You can import the bs_loco module and get the SQL as shown below:
import bs_loco

print(bs_loco.get_table_sql('postgresql'))

Note! Currently only postgres SQL is added to the package. If you want us to support another database let us know and we will put it into the development pipeline.

Table Configuration

TODO - Complete this section.

Library Objects

TODO - Complete this section.

"bug_fixes" : [ { "id" : "bg01", "brief": "", "detail": "The dynamic importing was not working correctly after the previous refactor." }, { "id" : "bg02", "brief": "", "detail": "Remove all the json handling around the database types." } ],

Change History

2.1.5

Type Description
Bug Fixed the template updown batch to use the correct import from the refactored mettle change.

2.1.4

Type Description
Bug Fixed the SMTP Provider that was still using legacy imports and bs_lib methods.

2.1.3

Type Description
Bug Fixed the dynamic importing of provider and correspondence types.
Bug Fixed the json.dumps and json.loads errors caused by the mettle upgrade.

2.1.0

Type Description
New Pulled in the mettle via PYPI, updated project to cater for new changes in mettle.
New You can now read the database creation from the package, also added an entry point for this.
New You can change or add new correspondence providers with the environment variable 'BITSMITHS_LOCO_CUST_PROVIDERS'

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

bitsmiths-loco-2.1.5.tar.gz (112.0 kB view details)

Uploaded Source

Built Distribution

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

bitsmiths_loco-2.1.5-py3-none-any.whl (430.5 kB view details)

Uploaded Python 3

File details

Details for the file bitsmiths-loco-2.1.5.tar.gz.

File metadata

  • Download URL: bitsmiths-loco-2.1.5.tar.gz
  • Upload date:
  • Size: 112.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.9

File hashes

Hashes for bitsmiths-loco-2.1.5.tar.gz
Algorithm Hash digest
SHA256 6bbb7747f4d792f42bf8a60cec0315d7f21823af3778bf7ffe3cc69d23ab7aee
MD5 e17d39a11e28fec767f1e463169125fc
BLAKE2b-256 b3992e8f29a3aab4f78a43736c4c834fdbf6df6b518e9c9fcc998ffd8cf4677d

See more details on using hashes here.

File details

Details for the file bitsmiths_loco-2.1.5-py3-none-any.whl.

File metadata

  • Download URL: bitsmiths_loco-2.1.5-py3-none-any.whl
  • Upload date:
  • Size: 430.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.9

File hashes

Hashes for bitsmiths_loco-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3e320a3ab1628da2e9eed72e4b70bd9cc7505f966260738a477d341ce88d8162
MD5 d180797016e5d1296a2f5b2969493803
BLAKE2b-256 85cc9fef87fe06ec975795bbd8e5bcf20b176b715c23eea725ee04fe31d6725e

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