Skip to main content

No project description provided

Project description

readme-update ๐Ÿฆ€

PyPI Downloads

Tired of updating documentation?

This tool updates your README.md with a one line description for each of the python scripts in a directory you point it to (and recursively). It adds the text for lines that start with "Description: " and "Link: ". It ignores any that don't have the description.

You can supply alternative --table-fields to create a table with columns for the provided fields. The --link-fields argument is used to signal which of the --table-fields should be rendered as links like this [Link](this/is/the/link).

The idea is that links should link to higher level documentation (if it exists).

This can be used as a pre-commit for python projects with standalone scripts for specific processes.

It will update in place if the # Scripts block exists or else it will append it to the end of the README.md

example_usage.py shows how to call the script from python.

Here is an example output from the tool:

Scripts

Name Description Link
example1.py This is an example file that links to my own github. Link
example2.py Some other description.
example3.py Link
::

Installation

pip install readme-update

Or

uv add readme-update

Usage

Assuming its is run from this location.

root/
  scripts/
    example_script.py
  README.md
uv run -m update_readme \
--scripts-root "./scripts" \
--readme-path "./README.md"

Args

Argument Type Required Default Description
--scripts-root str โœ… Path to the root of the scripts to scan
--readme-path str โŒ './README.md' Path to the README file that will be modified
--table-fields list โŒ ["Description", "Link"] Fields to dynamically add to the README.md table.
--link-fields list โŒ ["Link"] Which of the provided table fields should be rendered as links.

Ret codes

RetCode int description
NoModification 0 The Repo Map reflects the current state of the repo.
ModifiedReadme 1 The README was updated.
NoPyFiles 2 No python files found at the scripts-root location.
FailedParsingFile 3 Failed to read README file
FailedToWriteReadme 4 The given README.md path does not match the expected basename.
InvalidLinkFields 5 The given link_fields are not a subset of the given table_fields.

Repo map

โ”œโ”€โ”€ .github
โ”‚   โ””โ”€โ”€ workflows
โ”‚       โ”œโ”€โ”€ ci.yaml
โ”‚       โ””โ”€โ”€ publish.yaml
โ”œโ”€โ”€ python
โ”‚   โ””โ”€โ”€ update_readme
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ””โ”€โ”€ __main__.py
โ”œโ”€โ”€ scripts
โ”‚   โ”œโ”€โ”€ example1.py
โ”‚   โ”œโ”€โ”€ example2.py
โ”‚   โ””โ”€โ”€ example3.py
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ core
โ”‚   โ”‚   โ”œโ”€โ”€ adapters.rs
โ”‚   โ”‚   โ”œโ”€โ”€ domain.rs
โ”‚   โ”‚   โ””โ”€โ”€ mod.rs
โ”‚   โ”œโ”€โ”€ api.rs
โ”‚   โ””โ”€โ”€ lib.rs
โ”œโ”€โ”€ tests
โ”‚   โ””โ”€โ”€ integration_tests.rs
โ”œโ”€โ”€ .pre-commit-config.yaml
โ”œโ”€โ”€ Cargo.lock
โ”œโ”€โ”€ Cargo.toml
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ pyproject.toml
โ””โ”€โ”€ uv.lock
::

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

readme_update-0.3.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distributions

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

readme_update-0.3.0-cp313-cp313-win_amd64.whl (832.6 kB view details)

Uploaded CPython 3.13Windows x86-64

readme_update-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl (944.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

readme_update-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (808.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

readme_update-0.3.0-cp312-cp312-win_amd64.whl (832.6 kB view details)

Uploaded CPython 3.12Windows x86-64

readme_update-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl (944.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

readme_update-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (808.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

readme_update-0.3.0-cp311-cp311-win_amd64.whl (832.8 kB view details)

Uploaded CPython 3.11Windows x86-64

readme_update-0.3.0-cp311-cp311-manylinux_2_34_x86_64.whl (945.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

readme_update-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (810.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

readme_update-0.3.0-cp310-cp310-win_amd64.whl (833.0 kB view details)

Uploaded CPython 3.10Windows x86-64

readme_update-0.3.0-cp310-cp310-manylinux_2_34_x86_64.whl (946.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

readme_update-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (811.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file readme_update-0.3.0.tar.gz.

File metadata

  • Download URL: readme_update-0.3.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for readme_update-0.3.0.tar.gz
Algorithm Hash digest
SHA256 77f30111fcc4b905638bdcb99b7a76d48eb0bdede23fad3b2b9aeea590b785a0
MD5 31ea7013cd16b8d47d5828be76a9fb84
BLAKE2b-256 dd43a6a2983f384a8460e6d847bb53cdc90d05b13e90d7d07af4fa2fab6c5c55

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0.tar.gz:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b51c1a5362582afb3a9ca596554ad3068275ef41f490ed33ece15e4a708e20e8
MD5 48915d3d85d592df2d82efb0c938e21a
BLAKE2b-256 d884c434b179050e2ff6c7d91fd4d27ce207729e057637947f309cb399aa92d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp313-cp313-win_amd64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 227aa9fa1f3f4aaff5cdc5b63d94593fb76815dd13cdf6c31f20a2bff7b23c70
MD5 8b863313f606057efe0a8d2a0e3c8ef7
BLAKE2b-256 d40038f758fad32ae12d58b9a13ba6d40dbd9767fa099a5338c11a01f0453a9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58775d1e2576b895b2ca6007a6840cfd06d96cb29daa4a72f4700c15d103f006
MD5 2ae856962ef84b0cdca68e02a814c05a
BLAKE2b-256 1429bf577919eefb3304afea3f40cabefab9f41ab009b10187125346ce0b4000

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fff65a6deb742973dbde7f1cd8ab17815f4027207a285ed9f2118add8dd13c7e
MD5 f40ff2c9cdd430131967153296805982
BLAKE2b-256 25986dcee1bdfb64098f506c96581b2cc4b8a8553fd4d6b5411b867889cb940c

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp312-cp312-win_amd64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d78396b0da0edc840ef6ace27e19ac697ca5058d1ee88025f74bf7c0c8fc725f
MD5 eae21aaeb010d989ba1fb12338443387
BLAKE2b-256 b6665f9665c512f65ad71f6d2a07a84480d000dca0618f5dbdd69a380f1c88d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47e7a26c252a12f592d683d58fae84ef5bbcc4032ee1fe3a5844ed516a718006
MD5 d26f9187bedb22a7cc5ceff64aa88f95
BLAKE2b-256 3c6550de33028cf6d8d659ce3983ff7f83a809c12fe0c0e813031b3811a40808

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 46ca5d0434955601b8b37a33224be5d55470e49478408982c55126eacfd326e9
MD5 a1486009db1eb4d1096456de8eca049e
BLAKE2b-256 e2a1e1d13f2fd512d947a32049c89cbfb7b663f226dab7d7f99dc25513ed6938

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp311-cp311-win_amd64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3329b1d203d80f5b50348a5864f478da47ec9a172e4b473663c59ec168a1d181
MD5 1c9f21776b413be495e18d3858e5b02d
BLAKE2b-256 2f584bca162b2d3727c15e5a95cb50ae4e23c6a48415ea713e46de72f338b133

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00da6cc053cfb1f1398d8dba45dda9bd62648d2db3f1206b22c8b47037df1dcf
MD5 509ccb40fa341e6f7296f5a83619403c
BLAKE2b-256 898006dd719fbbe54a9b7226d6482585d97a3ab79d753bf3105405dc41f90b34

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f68d55db5983c3443cad51bbee917361ea4ba4de8a98c5d9fdab23a2f4a964f1
MD5 e52c8ab70ef27d51c6f94db8089a0693
BLAKE2b-256 3114a63cc48a662a0aa729b249674acd09ff9465f5d63474b9534fe9da92a5b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp310-cp310-win_amd64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b023015e4ebd1d294f10c4091485a6fbdf61b03099e85287afca656c3a4d7500
MD5 89b7af0d71c3f0c3b17ff25f07dc1e0f
BLAKE2b-256 92f763eb557706f20290d95cf38567bff6cc43ed157b6cadf77a0d7da5e3bc2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp310-cp310-manylinux_2_34_x86_64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_update-0.3.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for readme_update-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 327c5223bbb3f020d51a4638750821728a64e657eb44bb89190736b5758cdf16
MD5 51b02eea687ff29893fcf6c292f58652
BLAKE2b-256 1517b86ecedc533e9536750d8450fef2c9e03a3e2b17f82211d9ea08099e06dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.3.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish.yaml on second-ed/readme-update

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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