Skip to main content

A CLI for extracting python metadata from packages

Project description

mddj

Your DJ of MetaData.

PyPI - Version PyPI - Python Version


Table of Contents

Overview

A CLI for interacting with your python package metadata.

Supports multiple packaging backends via a uniform interface.

Installation

pipx install mddj

Usage

Env Vars

Build Isolation

MDDJ_ISOLATED_BUILDS=0 can be set to disable the (default) behavior using isolated build environments when getting package metadata.

This requires that you have installed all of the build-system requirements in to the current environment, but will be much faster.

Commands

See --help on each command for more detail on supported options.

mddj self version

Show the version of mddj.

mddj read requires-python

Show the requires_python field.

mddj read version

Show the version.

mddj read tox min-version

Show the minimum python version in the tox env_list.

mddj read tox list-versions

Show all python versions in the tox env_list.

mddj write version

Write a new version to a target file, defaulting to a version = ... assignment in pyproject.toml.

Supports configuration via pyproject.toml.

Config

Configuration for mddj can only be read from a tool.mddj table in pyproject.toml. No other configuration sources are supported.

write_version

This setting controls how version information is written for mddj write version.

It takes a colon delimited string with two or three values. Either {mode}:{path}:{key} or {mode}:{key}.

The only supported {mode} is "assign" (for now). {path} defaults to pyproject.toml if omitted. {key} is the name of the attribute used to assign a value.

This defaults to assign: version.

For example, the following config can be used to target a __version__ attribute in an __init__.py file in a src-layout project:

[tool.mddj]
write_version = "assign: src/foopkg/__init__.py: __version__"

License

mddj is distributed under the terms of the MIT license.

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

mddj-0.0.8.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

mddj-0.0.8-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file mddj-0.0.8.tar.gz.

File metadata

  • Download URL: mddj-0.0.8.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mddj-0.0.8.tar.gz
Algorithm Hash digest
SHA256 56b5fa48dca8466773ad5043866db8bc0ccd0c0208099f4c65002a7c54db30ff
MD5 10e1324c647fc605d71a576ddc8c9e36
BLAKE2b-256 a69d7914d91f9da5d6e05fe00e48ce2e0cefb834a75c3bd6c429b35e6fe34e55

See more details on using hashes here.

Provenance

The following attestation bundles were made for mddj-0.0.8.tar.gz:

Publisher: GitHub
  • Repository: sirosen/mddj
  • Workflow: publish.yaml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: mddj-0.0.8.tar.gz
    • Subject digest: 56b5fa48dca8466773ad5043866db8bc0ccd0c0208099f4c65002a7c54db30ff
    • Transparency log index: 147048726
    • Transparency log integration time:

File details

Details for the file mddj-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: mddj-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mddj-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0e94cea45389469aa56027c1aebee791ec28c45866d5b0099eabed8aa0f77afe
MD5 8f8a2b39e137bd80b4ca6273e99c5ffb
BLAKE2b-256 61d349c4acb1c2f110fd716e68119dec9244c9c443aa9a91db34ad821e6142c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mddj-0.0.8-py3-none-any.whl:

Publisher: GitHub
  • Repository: sirosen/mddj
  • Workflow: publish.yaml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: mddj-0.0.8-py3-none-any.whl
    • Subject digest: 0e94cea45389469aa56027c1aebee791ec28c45866d5b0099eabed8aa0f77afe
    • Transparency log index: 147048727
    • Transparency log integration time:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page