m9 utility library
Project description
m9lib Utility Library
m9lib is a python framework for batch processing. This library also includes general-purpose helper classes for python applications.
The batch processing framework includes:
- A powerful and flexible Configuration file format (INI) that drives batch processing
- Support for user-implemented Command objects that represent a unit of work to be executed
- A Control mechanism for instantiating and executing Command objects via configuration
- Integrated Logging features, including console logging in color
- Rules-based folder scans using pattern matching, regex, and parent folder
m9lib Project Creator
The easiest way to get started is with a simple empty project, using the m9lib project creator.
- Run this application to create an empty vscode project from a template.
- The application itself is a simple example of an m9lib project.
Sample Projects
A working demonstration of m9lib is available from the sample projects below:
- m9lib-project: Create a simple m9lib project from a template. (simple)
- unzip-files: Batch process for unziping files. (simple)
- sync-files: Rules-based folder synchronization process for backing up files. (intermediate)
m9ini Configuration files
m9lib uses m9ini for reading configuration files.
Read about m9ini on Github.
Basic utilities
| File | Classes | Feature |
|---|---|---|
| u_logger.py | uFileLogger | Log to a file |
| u_format.py | uStringFormat | String formatting |
| u_folder.py | uFolder | Folder utilities |
| u_timer.py | uTimer | Measure elapsed time |
| u_dictionary.py | uDictionary | Dictionary wrapper |
Application level
| File | Classes | Feature |
|---|---|---|
| u_args.py | uArgs | Specify and interpret command line parameters |
| u_command.py | uCommand, uCommandResult uCommandRegistry |
Command object representing a unit of work |
| u_control.py | uControl | Command orchestration |
Specialized features
| File | Classes | Feature |
|---|---|---|
| u_csv.py | uCSVFormat, uCSV | CSV file utilities |
| u_web.py | uWeb, uSoap | Http helper methods |
| u_scan.py | uScanFiles, uScanFolders | Rules for scanning folder structures |
| u_color.py | uColor, uConsoleColor | Print to console in color |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file m9lib-1.0.1.tar.gz.
File metadata
- Download URL: m9lib-1.0.1.tar.gz
- Upload date:
- Size: 82.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccd16eb372f1253dda81a036aeb47b6663f3d1a0bc4f6ee1e91e5799ead4fd12
|
|
| MD5 |
6866eceb15ef5ee7ece12a304206ba78
|
|
| BLAKE2b-256 |
49b2a33eab81a1d83e71e3729bd99ace9edcd871d5165c629a2b45d73a1f9953
|
Provenance
The following attestation bundles were made for m9lib-1.0.1.tar.gz:
Publisher:
python-publish.yml on MarcusNyne/m9lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
m9lib-1.0.1.tar.gz -
Subject digest:
ccd16eb372f1253dda81a036aeb47b6663f3d1a0bc4f6ee1e91e5799ead4fd12 - Sigstore transparency entry: 295551821
- Sigstore integration time:
-
Permalink:
MarcusNyne/m9lib@9bb906a95440f48ea3cbb6d0234ed00e925dda24 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/MarcusNyne
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9bb906a95440f48ea3cbb6d0234ed00e925dda24 -
Trigger Event:
release
-
Statement type:
File details
Details for the file m9lib-1.0.1-py3-none-any.whl.
File metadata
- Download URL: m9lib-1.0.1-py3-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87626ee1799a12de2df2f600d91cfd5d51de3150394e86b1937e9bd51ed7423a
|
|
| MD5 |
16ccdfc1ac96b8a9277dea31ace86ac6
|
|
| BLAKE2b-256 |
c46927bd39c3047693db03f5d703dbe6b667d08692f5116ee022ac435a4f0351
|
Provenance
The following attestation bundles were made for m9lib-1.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on MarcusNyne/m9lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
m9lib-1.0.1-py3-none-any.whl -
Subject digest:
87626ee1799a12de2df2f600d91cfd5d51de3150394e86b1937e9bd51ed7423a - Sigstore transparency entry: 295551822
- Sigstore integration time:
-
Permalink:
MarcusNyne/m9lib@9bb906a95440f48ea3cbb6d0234ed00e925dda24 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/MarcusNyne
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9bb906a95440f48ea3cbb6d0234ed00e925dda24 -
Trigger Event:
release
-
Statement type: