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.

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.

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

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.

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.2.1.tar.gz (21.5 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.2.1-cp313-cp313-win_amd64.whl (778.1 kB view details)

Uploaded CPython 3.13Windows x86-64

readme_update-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl (914.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

readme_update-0.2.1-cp313-cp313-macosx_11_0_arm64.whl (764.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

readme_update-0.2.1-cp312-cp312-win_amd64.whl (778.3 kB view details)

Uploaded CPython 3.12Windows x86-64

readme_update-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl (914.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

readme_update-0.2.1-cp312-cp312-macosx_11_0_arm64.whl (763.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

readme_update-0.2.1-cp311-cp311-win_amd64.whl (778.3 kB view details)

Uploaded CPython 3.11Windows x86-64

readme_update-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl (914.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

readme_update-0.2.1-cp311-cp311-macosx_11_0_arm64.whl (765.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

readme_update-0.2.1-cp310-cp310-win_amd64.whl (778.5 kB view details)

Uploaded CPython 3.10Windows x86-64

readme_update-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl (914.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

readme_update-0.2.1-cp310-cp310-macosx_11_0_arm64.whl (765.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for readme_update-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e841fb8ea91e17642b910ac0094a8d1f54f391f0e5ec2b2756d436e4d9567e69
MD5 51f1ec845f0016e8a5cceb21a2887675
BLAKE2b-256 281442be5712d4ec349c73144db2a6bb9ba90457d77176993fd1ca80eac38a75

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1.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.2.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4b467b877c48aefdd29c0e3e53371eb8a9ee0ef2dd6d292df472f0661bbda5c1
MD5 eb9b0cc4688f34e59790d74e2f652a22
BLAKE2b-256 45946be105c34744fa725109259c1d20275ae73c8117a27adb5c4ac3e158e08d

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 defd8d1694f5675bd10be45f6bbbde171920e7898255460b32c676bdfe973252
MD5 de47cfc0294a3ccf455e93495cc42768
BLAKE2b-256 11df255e4338bccb0655df72b8b2056c0e4a2fce27573e6259226d223dfcddcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68152b329b80cf4b96694e58b68aa7e3874b9f3bc5fc9e7e33275d6a015babd4
MD5 2a718db9760f0e3dde02ab2030d37518
BLAKE2b-256 43b262abc494a6fa53a0f00deed4d2624fb5670e116000d4c8001047c350f127

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a9042f849723faac0dfcccbf2f529c4708e07c6a714ef4d0ab3cfe4f6d0dd5f0
MD5 08408315101f01d0210cb4b80fd1a7e6
BLAKE2b-256 18fefeb8d3130e86a204a6bfc47a85af186360b72d4126a2b0e0e90cc85e2f7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4ee790533a2e2e9bcdf0bf1b5c160e925573f472943e0b5cf4671a5ce60675e8
MD5 45e444a49239561e80a96b76b9b9ad87
BLAKE2b-256 e10830db2337ad146ee150de578914a398aefe9f0d49af3c7290fd91ab0089e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8dbcc290874fd11b23ee4c211c6deeef550ed358546cedb8bdb4e4e82e0af72
MD5 b2efe13edd9e40531590df1dbf2a2bde
BLAKE2b-256 6f6d3a583a1976a0e4cfdd62598450ce13789e34f780672ba7097e1583174bd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6b7596fb6d65fb0c9acc925f677c78811c36fd8082c521f3da998e6d099eb068
MD5 22eaf5e6ae5d57360809238888173955
BLAKE2b-256 8c7ff6bdba679c57ac67f10c778f2cbdc9bdff33dd133a92ba1c69816755430b

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 05ad4125794848a34f8054c5216722a81540e1eae1a23c73cf4ebe80b35728fb
MD5 1d2e26c5995cf0e48af67a86daf24f34
BLAKE2b-256 152242051a53460c7d0398cd0a5072bd7545719d721c8a71d2ada38584da2015

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8508a663f09725714d428a98c07b255b1f1831f6a1b71b65bc2c0fdcddd258fb
MD5 13d71bb35cd243dcc2acdc8dfd1e454b
BLAKE2b-256 c366beac6120f1c65a4aaa28e552ab51a5bec7054927ee020e1e6035e284af8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 31efbcfb5de964fe9adb0a626bc2d0d96323e8a7a1c6938545655dc054d5b006
MD5 02031f0d2edeb7aac88a9479bfbfbf4f
BLAKE2b-256 21d557b9464b07e0f72889193dd4c3b029e0a149b82a89432c82aece7833fead

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c2755cc4f33831f6a36de7971899b5d1553a2cc462bebbcbdbd660b0a545cc40
MD5 1234204035494600d0f78b4538820bec
BLAKE2b-256 0f7115aec6b71d2e09f10c78c6d614525391ed371ee4206ca3ecab7787b1565a

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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.2.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for readme_update-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 deb15001263582299c3c406147538cef2be6b94cb4e1981a8d35e6683e75bec4
MD5 ea4b20198073a318214db6c0be7af632
BLAKE2b-256 39d160fe9144b6f0b67628a7cc389f4ac0219cb59fb29b42c7e4dd775a2d2bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_update-0.2.1-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