Skip to main content

No project description provided

Project description

xini - eXtract pyproject.toml configs to INI

pyproject.toml is a fantastic idea. I want all my tool configurations in my pyproject.toml file. Not all my tools support a pyproject.toml configuration option though, but why wait?

xini pulls configurations from a pyproject.toml file for:

  • pytest
  • flake8
  • coverage
  • pylint

And generates the appropriate ini-config files.

Install

... pip install xini

How Does It Work?

  1. Write tool configuration in the pyproject.toml under the appropriate "[tool.toolname]" section. This becomes the standard location for your configurations. Keep pyproject.toml in source control as normal.

  2. Run xini in the root project directory where the pyproject.toml file exits. (xini does not search for pyproject.toml files anywhere but the current directory.)

  3. xini generates standard named ini-config files in the current directory (e.g. .flake8, .coveragerc, etc.). Tools that use old-style ini file formats can then run using the generated config file. No need to maintain these ini-config files in source control.

  4. Make config changes in pyproject.toml and run xini to regnerate ini-config files.

The Future

It is my sincere hope that there is no future for this project. I wish all tool developers to build support for pyproject.toml as a configuration option so a tool like xini is unnecessary.

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

xini-0.2.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

xini-0.2.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file xini-0.2.2.tar.gz.

File metadata

  • Download URL: xini-0.2.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.6.2 Darwin/17.7.0

File hashes

Hashes for xini-0.2.2.tar.gz
Algorithm Hash digest
SHA256 da32091a00156500fe6d9b0f5a3de934fd1e639308cd5fb3ebafb56c2577adb5
MD5 7cb8d4ada607c5ad34c076acaccfc5ed
BLAKE2b-256 4fd01f889e7967e1bbef48b5cf8eeab19a81ae761dacef01191e885e2e501cbf

See more details on using hashes here.

File details

Details for the file xini-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: xini-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.6.2 Darwin/17.7.0

File hashes

Hashes for xini-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74fe4a9c5427897f82d426342e853dc1d5523fe2e30c8735721468e9bdc3b032
MD5 9a6e58d891025ca44453d08ac0989059
BLAKE2b-256 4ed9130110522d3b935e4edec289f05f0bb01711ac638875e7ba5b29ff1d638a

See more details on using hashes here.

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