Skip to main content

A utility package designed to enhance workflows projects that use ticdat.

Project description

A utility package to enhance workflows in projects using TicDat.

The mwcommons library is designed to streamline development and improve usability for optimization and machine learning projects that rely on TicDat. This shared utility package offers specialized tools, helper functions, and custom exceptions, enabling faster development and consistent workflows.

Key Features

  • Workflow Enhancements: Tools specifically tailored for projects using TicDat.
  • Helper Functions: Simplifies repetitive or complex tasks in optimization and machine learning workflows.
  • Custom Exceptions: Provides meaningful error handling to improve debugging and development efficiency.
  • Shared Utilities: Promotes reusability and consistency across projects.

Why Use mwcommons?

  • Save time by reusing proven tools and utilities.
  • Improve code clarity and maintainability with a standardized approach.
  • Simplify the integration of TicDat in your projects.
  • Enhance error handling and logging with custom exceptions.

Common Maintenance Tasks

  • Installing dependencies:

    • For fresh environments or setting up the project for the first time.
      • Install uv using pip or pipx. The last one is more recommended to its global isolation property.
        • pipx install uv
    • Create virtual environment using uv.
      • uv venv
      • If you need to create the venv based on a specific python you can use:
        • uv venv --python python3.11
    • Install dependencies using uv.
      • uv sync
  • Add dependencies:

    • uv add <package-name>
  • Removing dependencies:

    • uv remove <package-name>
  • Updating version of the project:

    • Change the version into the pyproject.toml.
    • It uses semantic versioning: '<patch/minor/major>`
  • Running tests:

    • python -m unittest discover test_mw_utils
  • Maintaining a changelog:

    • Update CHANGELOG.md with each release
  • Tagging the release:

    • git tag v<new-version>
  • Building the package:

    • This will create a dist directory with the built package.
    • uv build
  • Publishing to PyPI:

    • uv publish --repository pypi,
    • or twine upload dist/*.

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

mwcommons-0.0.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

mwcommons-0.0.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file mwcommons-0.0.1.tar.gz.

File metadata

  • Download URL: mwcommons-0.0.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.24

File hashes

Hashes for mwcommons-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5bcbef3e396eb146f7a96f42d6d87efb8e59f270efdaa4a8f475dfb806d63e97
MD5 58ea85d2d5d62d8dfd889afdcc85b91e
BLAKE2b-256 2abe26d7a51fef5d7ab81f0ecc5b25dd9c164dc55e84d89db7e5fdbadc766664

See more details on using hashes here.

File details

Details for the file mwcommons-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mwcommons-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.24

File hashes

Hashes for mwcommons-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9552469884e808a233abdbf6797db8a02fbdd192f937cd171fa6c6669ac593f2
MD5 0a16294cbad340b1443e2b912b40bf74
BLAKE2b-256 fd5352fbf3c27ca5146ceb617ecd16f1ce6759dfa4679a6084c614aef9a5aaf2

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