Skip to main content

1 contactList

pipeline status coverage analysis

PyPI Version

A Python 3 utility for constructing, managing and organising email addresses in YAML format.

1.1 Installation

The simplest way to install is using pip

pip install contactList

1.2 Getting Started

The structure of YAML file is very simple. Organise email addresses into arbitrarily named groups and then organise those groups into arbitrarily named “clusters”.

groups:
  g1:
    - 'u1@some.domain'

  g2:
    - 'u3@some.other.domain'

  g3:
    - 'u4@this.domain'
    - 'u2@some.domain'

clusters:
  c1: [ 'g1' ]

  c2: [ 'g1', 'g2' ]

  c3: [ 'g2', 'g3' ]

There is no requirement restricting an email address to only one group.

1.3 contact-list utility

Once the wheel package is installed the command line utility contact-list is available. This utility can be used to manage contact list data in a YAML file from the command line.

> contact-list --help
usage: contact-list [-h] [--file CONTACTSFILE] {cluster,email,group} ...

positional arguments:
  {cluster,email,group}

optional arguments:
  -h, --help            show this help message and exit
  --file CONTACTSFILE, -f CONTACTSFILE
                        Contacts file to manage (default contacts.yml)

Subcommands enable the modification of the respective entities in the file, cluster, email, group.

1.4 Using the framework

Using the contactList framework, your application can then use the clusters to build a list of the necessary emails. By default, the from_yamlFile classmethod tries to load YAML from contacts.yml in the current directory, otherwise the user specifies the file name to use.

from contactList import Contacts

myContacts = Contacts.from_yamlFile()

# A list of the groups loaded from YAML
assert isinstance( myContacts.groups, list )
# A list of the clusters loaded from YAML
assert isinstance( myContacts.clusters, list )

# Check that the groups and clusters are correctly specified.
myContacts.validate()

# Generate a Python set of email addresses for the chosen cluster.
emailList = myContacts.emails( 'c2' )

assert isinstance( emailList, set )

Metadata

Release files for contactList 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contactList 0.1.0
File Size Uploaded Provenance Actions
contactList-0.1.0.tar.gz 33.3 kB Without provenance Details for contactList-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for contactList 0.1.0
File Interpreter ABI Platform Actions
contactList-0.1.0-py3-none-any.whl Python 3 none any Details for contactList-0.1.0-py3-none-any.whl

Total release size: 249.9 kB

Release files / contactList-0.1.0.tar.gz

Download URL contactList-0.1.0.tar.gz
Size 33.3 kB
Tags Source
SHA-256 checksum
How to use checksums
797ad64a9888cb363cd98aace151d79dd46b9c1dc440f08018e93805a866ed4a
BLAKE2b-256 checksum
How to use checksums
f07b35ebe044c393f04fc63f646f9ae1c65eef315fcae4faf3665f50b74d05e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.20.0

Release files / contactList-0.1.0-py3-none-any.whl

Download URL contactList-0.1.0-py3-none-any.whl
Size 216.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a57b86846343ae08d80634ac01e3eac749c89a3252363e9c7549e0a54389f6d
BLAKE2b-256 checksum
How to use checksums
24845a969f9de8e5bb1f7034ab8736d07b3a373b61bcba3427572d08ee7c2f49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.20.0

Security for contactList 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page