Bibliothek
🏛 Managing Markup Files
Example
from typing import Tuple
from bibliothek.toc import ToC, Note
t = ToC(base='path/to/dir', file_pattern=r'^.+\.md')
@t.on_sort('path', 'to')
def _(note: Note):
return note['created date']
@t.on_sort('path')
def _(note: Note):
return note['last updated date']
@t.before_generate
def _() -> str:
return '# ToC'
@t.after_generate
def _() -> str:
return '_Generate by Bibliothek_'
@t.before_dir
def _(curr_dir: Tuple[str]) -> str:
return f'## {curr_dir[-1]}' if len(curr_dir) > 0 else None
@t.after_dir
def _(curr_dir: Tuple[str]) -> str:
return '\n'
@t.on_note
def _(note: Note) -> str:
# path would be inserted into front matter and auto escaped
return f'- [{note["title"]}]({note["path"]})'
print(t)
Metadata
Release files for bibliothek 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bibliothek-0.2.0.tar.gz | 5.0 kB | Without provenance | Details for bibliothek-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bibliothek-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for bibliothek-0.2.0-py3-none-any.whl |
Total release size: 24.2 kB
Release files / bibliothek-0.2.0.tar.gz
| Download URL | bibliothek-0.2.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2e6462599f49e3c55dc4f4e04a4c9ace573c01b8440426741c910736fe804e6
|
|
BLAKE2b-256 checksum How to use checksums |
eaab3cd8d98793a6c9db604c13331cae34ab179f042018435eb73e1348a4e261
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.10
|
Release files / bibliothek-0.2.0-py3-none-any.whl
| Download URL | bibliothek-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cb2d3059c5c2c89fd331f909f3a68f195a65b475185a574ff5d437574423853
|
|
BLAKE2b-256 checksum How to use checksums |
7812a1ff78c41cacd4a6b091d08c9d0e4ff402622344ae17e55d00069ead3193
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.10
|
Security for bibliothek 0.2.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.