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.

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.2.tar.gz (22.5 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.2-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mwcommons-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ba460ccc7262c5dd501f340a9ed8a11ec682e94218c5faf66d9c9126f6b76dcc
MD5 2c09486a1c6e5699d88564a882f1b934
BLAKE2b-256 ef2631d5d094969f1dd91aa02b7222f608c5e073bb914948de1a868d9da6a300

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mwcommons-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00cc3149a6d61d023a66a3a05c9c0956950c86be60827af39f45f6190d8dc5f0
MD5 e4017d4cba1144c8bf605cfd814fd16f
BLAKE2b-256 592f242c3ec31e9aee080d82510477c672b9231c98b6344f7966e6c66d4073e5

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