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 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.5.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

mddj-0.0.5-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mddj-0.0.5.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for mddj-0.0.5.tar.gz
Algorithm Hash digest
SHA256 dc7f06770a4851fea9850ad2c0f51a337e4bf767894ce103fdc8a0f943708f63
MD5 247b7bd10eee24e369fe61c8c14a2519
BLAKE2b-256 6f92142d453659429bbd383a9ac23b6d5dfafe74356f35f1471920d56d29c88e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mddj-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for mddj-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f4ff58eede9dbbf5feeb6c4df721119a869f7f9e4e3a7067bc1876f72730d05c
MD5 f6d3459531f0429287fc29d835141ffb
BLAKE2b-256 c1240ecc6cec9f6f9eb6717d566ba9276852d14e5cd965d97b7b241d81d47521

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