Skip to main content

sphinxcontrib-git_include

https://pypi.org/project/gitinclude/

literalinclude from git repository.

  • using git cat-file -p {rev}:{path_to_file}
  • using git show {rev}:{path_to_file}

install

> pip install gitinclude

Sample

https://ousttrue.github.io/sphinxcontrib-gitinclude/

Sphinx: conf.py

extensions = [
    "gitinclude",
]

Sphinx: usage

myst

``{gitinclude} HEAD^ gitinclude/__init__.py
:language: python
:linenos:
``

Metadata

Release files for gitinclude 0.3.1

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

Source distribution (sdist)

Source distribution for gitinclude 0.3.1
File Size Uploaded
gitinclude-0.3.1.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitinclude 0.3.1
File Interpreter ABI Platform
gitinclude-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / gitinclude-0.3.1.tar.gz

Download URL gitinclude-0.3.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b0ebb35be8e3f2f6e2fc08eae37436895b278a432d01604ef4575fa609668a0e
BLAKE2b-256 checksum
How to use checksums
23e10e492a4d08cffe44dac206e0b0aacac11c3772c29947f04a794c0ac136fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / gitinclude-0.3.1-py3-none-any.whl

Download URL gitinclude-0.3.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58b9c69579e1fbb19f00d4c9e562be2eba079742903b8c4af276033385813a70
BLAKE2b-256 checksum
How to use checksums
5dca5b52c10c6e741f96323096dd158f1788069ec9e9c048670569e3eb673f36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

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