Skip to main content

Sourcecode on GitHub Sourcecode License Documentation Documentation License
PyPI PyPI - Status PyPI - Python Version
GitHub Workflow - Build and Test Status Libraries.io status for latest release Codacy - Quality Codacy - Coverage Codecov - Branch Coverage

pyTooling.Sphinx

pyTooling.Sphinx adds roles and directives to Sphinx: styled inline text and line breaks working in HTML and LaTeX, condensed class interfaces, dependency tables generated from requirements files and the package index, badges, schema graphs, trees, lists of abbreviations, and unit test and coverage reports.

Other packages build on it: pyTooling.GitHub contributes the domain ghactions for GitHub Actions workflows, enabled as the extension pyTooling.GitHub.Sphinx.

The extension is enabled in conf.py:

# doc/conf.py
extensions = [
  ...,
  "pyTooling.Sphinx",
]

It links its stylesheet into every HTML page, appends its substitutions to rst_prolog, and sets up sphinx.ext.graphviz for the schema graphs.

The domain report - unit test, code coverage and documentation coverage reports as tables - reads the reports with pyEDAA.Reports, an optional dependency. A project using a report installs it with the extra reports:

pip install pyTooling.Sphinx[reports]

Roles and Directives

Roles

Directives

  • condensed-class - A class' public interface as one code block, parsed from its source.
  • dependency-table - A project's dependencies with versions and licenses, from its requirements files and the package index.
  • jsonschema-graph - Planned: a JSON schema as a Graphviz graph.
  • xmlschema-graph - An XML schema as a Graphviz graph, drawn from the schema file.
  • shields - A project's badges from shields.io, in rows.
  • tree - A hierarchy, written as an indented list, drawn as a tree with foldable nodes.
  • abbreviations - A list of abbreviations, referred to by :acs:, :acl:, :acf: and their plurals; in HTML, a short form explains itself on hover.

Directives of domain report (extra reports)

  • report:unittest-summary - A unit test report in JUnit XML or pyTooling's XML format, per testsuite and testcase; optionally with a page per testsuite and testcase, referred to by the roles :ts: and :tc:.
  • report:code-coverage - A code coverage report in Cobertura XML or coverage.py's JSON format, per directory and source file, and a legend of its coverage levels; optionally with a page per directory and source file showing a file's highlighted source, each line marked by its coverage, referred to by the role :cov:.
  • report:doc-coverage - A package's documentation coverage, per package and module, and a legend of its coverage levels.

Consumers

This layer is used by:

  • pyTooling.GitHub - its Sphinx domain ghactions builds on this extension, and its documentation uses it.
  • 🚧 pyTooling - its documentation, which still uses pyTooling's own copy of this extension.

Contributors

License

This Python package (source code) is licensed under Apache License 2.0.
The accompanying documentation is licensed under Creative Commons - Attribution 4.0 (CC-BY 4.0).
Content of other projects - e.g. GitHub's emoji table from github/gemoji (MIT) - is listed with its license in NOTICE.md.


SPDX-License-Identifier: Apache-2.0

Metadata

Release files for pyTooling.Sphinx 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyTooling.Sphinx 1.1.0
File Size Uploaded Provenance Actions
pytooling_sphinx-1.1.0.tar.gz 194.9 kB Without provenance Details for pytooling_sphinx-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyTooling.Sphinx 1.1.0
File Interpreter ABI Platform Actions
pytooling_sphinx-1.1.0-py3-none-any.whl Python 3 none any Details for pytooling_sphinx-1.1.0-py3-none-any.whl

Total release size: 411.5 kB

Release files / pytooling_sphinx-1.1.0.tar.gz

Download URL pytooling_sphinx-1.1.0.tar.gz
Size 194.9 kB
Tags Source
SHA-256 checksum
How to use checksums
319a042b30d4416f2bb33549eee106c8676ad34831838fb4846528082895e44c
BLAKE2b-256 checksum
How to use checksums
c4eacca384c610d1954566ba57b8829819592b69653b2f5df5a83c5d032ef53e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / pytooling_sphinx-1.1.0-py3-none-any.whl

Download URL pytooling_sphinx-1.1.0-py3-none-any.whl
Size 216.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f8cb9df1c03ac14079d0370fffa572a9e73167925bf1226e66b30ca76c71a95
BLAKE2b-256 checksum
How to use checksums
7ec1431f62b3dc82ec6eea43cc1b75e73bd59b84333763aab19085d487ba2519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for pyTooling.Sphinx 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page