Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m9lib-1.0.1.tar.gz (82.5 kB view details)

Uploaded Source

Built Distribution

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

m9lib-1.0.1-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

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

Hashes for m9lib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ccd16eb372f1253dda81a036aeb47b6663f3d1a0bc4f6ee1e91e5799ead4fd12
MD5 6866eceb15ef5ee7ece12a304206ba78
BLAKE2b-256 49b2a33eab81a1d83e71e3729bd99ace9edcd871d5165c629a2b45d73a1f9953

See more details on using hashes here.

Provenance

The following attestation bundles were made for m9lib-1.0.1.tar.gz:

Publisher: python-publish.yml on MarcusNyne/m9lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for m9lib-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87626ee1799a12de2df2f600d91cfd5d51de3150394e86b1937e9bd51ed7423a
MD5 16ccdfc1ac96b8a9277dea31ace86ac6
BLAKE2b-256 c46927bd39c3047693db03f5d703dbe6b667d08692f5116ee022ac435a4f0351

See more details on using hashes here.

Provenance

The following attestation bundles were made for m9lib-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on MarcusNyne/m9lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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