
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
.. This file is part of citeproc-py-styles. Copyright (C) 2016-2018 CERN.
citeproc-py-styles is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
.. image:: https://github.com/inveniosoftware/citeproc-py-styles/workflows/CI/badge.svg :target: https://github.com/inveniosoftware/citeproc-py-styles/actions?query=workflow%3ACI
.. image:: https://img.shields.io/coveralls/inveniosoftware/citeproc-py-styles.svg :target: https://coveralls.io/r/inveniosoftware/citeproc-py-styles
.. image:: https://img.shields.io/pypi/v/citeproc-py-styles.svg :target: https://pypi.org/pypi/citeproc-py-styles
This module is meant to be used as a static resources package, in order to make
it easy to include the required Citation Style files (.csl) when using
citeproc-py <https://github.com/brechtm/citeproc-py>
_.
In order to avoid always installing ~40MB of files each time you include it in
a project you could specify it as an extra in your setup.py
, and only use it
in the production environment or as an optional feature of your module.
(Example setup.py <https://github.com/inveniosoftware/invenio-records-rest/blob/master/setup.py>
_)
The included files are originally hosted on the CSL Style Repository <https://github.com/citation-style-language/styles>
_ which belongs to the
CSL Project <http://citationstyles.org/>
_
Note: The style files are referenced as a git submodule. This means that this repository/package is pinned on a specific commit of the CSL Style Repository, and thus may not include any fixes or new styles that may have been added. Next versions of this repository will of course 'bump' the styles version to the latest commit, but this will not happen on a scheduled basis for the time being.
citeproc-py-styles is on PyPI so all you need is: ::
pip install citeproc-py-styles
This is a minimal example of how one could use citeproc-py-styles
to render a
citation with citeproc-py
:
.. code-block:: python
from citeproc import (Citation, CitationItem, CitationStylesBibliography,
CitationStylesStyle, formatter)
from citeproc.source.json import CiteProcJSON
from citeproc_styles import get_style_filepath
csl_data = json.loads("...")
source = CiteProcJSON(csl_data)
style_path = get_style_filepath('apa')
style = CitationStylesStyle(style_path)
bib = CitationStylesBibliography(style, source, formatter.plain)
bib.register(Citation([CitationItem('data_id')]))
print(''.join(bib.bibliography()[0]))
FAQs
CSL styles.
We found that citeproc-py-styles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.