No project description provided
Project description
Bibliograpy
Bibliography management to decorate source code.
API
The Bibliograpy API allows to manage bibliographic centralized references using decorators.
Hence, is it possible to factorize all bibliographic sources as variables in a single module, using them as arguments of decorators.
"""The bibliography module."""
from bibliograpy.api import TechReport
IAU_2006_B1 = TechReport.standard(
cite_key='iau_2006_b1',
author='',
institution='iau',
title='Adoption of the P03 Precession Theory and Definition of the Ecliptic',
year=2006)
"""The bibliography_client module using the bibliography.py module."""
from bibliograpy.api import reference
from bibliography import IAU_2006_B1
@reference(IAU_2006_B1)
def my_function():
"""My my_function documentation."""
# some implementation here using the reference given as a parameter to the decorator
The usage of the decorator has two purposes.
First, to use a bibliographic reference defined once and for all, centralized and reusable.
Second, to implicitly add to the documentation of the decorated entity a bibliographical section.
import bibliography_client
>>> help(my_function)
Help on function my_function in module bibliography_client
my_function()
My my_function documentation.
Bibliography: Adoption of the P03 Precession Theory and Definition of the Ecliptic [iau_2006_b1]
Preprocessing tool
Bibliograpy allows generating a source code bibliograpy from a resource bibliography file.
Bibliograpy process supports bibliography files in yaml format. Each bibliographic entry contains three fields.
The type
field only supports the misc
value. The key
fields represents the bibliographic entry unique key (id).
The title
field represents the readable form or the entry. For instance:
- entry_type: misc
cite_key: nasa
title: NASA
- entry_type: misc
cite_key: iau
title: International Astronomical Union
This bibliography file can be preprocessend by the bibliograpy process
tool.
bibliograpy process
This preprocessing produces the corresponding bibliographic references that can be used as bibliograpy decorator arguments.
from bibliograpy.api import Misc
NASA = Misc.standard(cite_key='nasa',
title='NASA')
IAU = Misc.standard(cite_key='iau',
title='International Astronomical Union')
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bibliograpy-0.0.5.tar.gz
.
File metadata
- Download URL: bibliograpy-0.0.5.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26e895b5aaa69ee6d5d57b1eeb287f770d98e759f91fd730ae3fbe7456761eb8 |
|
MD5 | 7c0c715b532fe6fae9a3e30f45f75738 |
|
BLAKE2b-256 | 3700e0951b64ee8aa69c2d3f85effb27d9c80c155627602cdaf35e0e19d1ab55 |
File details
Details for the file bibliograpy-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: bibliograpy-0.0.5-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 976d698bf32acb417f2644d0d4f76e3f1807d5aefc644534f0f2beba43ef0d15 |
|
MD5 | 00c8df48af1058d991737aa84566a32a |
|
BLAKE2b-256 | c52e6e712bea746fe89977cc84d62d069b8f4ad4919228378ec7c0980771f92e |