{ "info": { "author": "CERN", "author_email": "info@inveniosoftware.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "..\n This file is part of citeproc-py-styles.\n Copyright (C) 2016-2018 CERN.\n\n citeproc-py-styles is free software; you can redistribute it and/or modify it\n under the terms of the MIT License; see LICENSE file for more details.\n\n====================\n citeproc-py-styles\n====================\n\n.. image:: https://img.shields.io/travis/inveniosoftware/citeproc-py-styles.svg\n :target: https://travis-ci.org/inveniosoftware/citeproc-py-styles\n\n.. image:: https://img.shields.io/coveralls/inveniosoftware/citeproc-py-styles.svg\n :target: https://coveralls.io/r/inveniosoftware/citeproc-py-styles\n\n.. image:: https://img.shields.io/pypi/v/citeproc-py-styles.svg\n :target: https://pypi.org/pypi/citeproc-py-styles\n\nAbout\n=====\n\nThis module is meant to be used as a static resources package, in order to make\nit easy to include the required Citation Style files (.csl) when using\n`citeproc-py `_.\n\nIn order to avoid always installing ~40MB of files each time you include it in\na project you could specify it as an extra in your `setup.py`, and only use it\nin the production environment or as an optional feature of your module.\n(`Example setup.py `_)\n\nThe included files are originally hosted on the `CSL Style Repository\n`_ which belongs to the\n`CSL Project `_\n\nNote: The style files are referenced as a git submodule. This means that this\nrepository/package is pinned on a specific commit of the CSL Style Repository,\nand thus may not include any fixes or new styles that may have been added.\nNext versions of this repository will of course 'bump' the styles version to\nthe latest commit, but this will not happen on a scheduled basis for the time\nbeing.\n\n\nInstallation\n============\n\nciteproc-py-styles is on PyPI so all you need is: ::\n\n pip install citeproc-py-styles\n\nUsage\n=====\n\nThis is a minimal example of how one could use `citeproc-py-styles` to render a\ncitation with `citeproc-py`:\n\n.. code-block:: python\n\n from citeproc import (Citation, CitationItem, CitationStylesBibliography,\n CitationStylesStyle, formatter)\n from citeproc.source.json import CiteProcJSON\n from citeproc_styles import get_style_filepath\n\n csl_data = json.loads(\"...\")\n source = CiteProcJSON(csl_data)\n\n style_path = get_style_filepath('apa')\n style = CitationStylesStyle(style_path)\n\n bib = CitationStylesBibliography(style, source, formatter.plain)\n bib.register(Citation([CitationItem('data_id')]))\n print(''.join(bib.bibliography()[0]))\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/inveniosoftware/citeproc-py-styles", "keywords": "citeproc styles csl", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "citeproc-py-styles", "package_url": "https://pypi.org/project/citeproc-py-styles/", "platform": "any", "project_url": "https://pypi.org/project/citeproc-py-styles/", "project_urls": { "Homepage": "https://github.com/inveniosoftware/citeproc-py-styles" }, "release_url": "https://pypi.org/project/citeproc-py-styles/0.1.1/", "requires_dist": [ "lxml (>=3.6.0)", "six (>=1.10.0)", "check-manifest (>=0.25); extra == 'all'", "coverage (>=4.0); extra == 'all'", "isort (>=4.2.2); extra == 'all'", "pydocstyle (>=1.0.0); extra == 'all'", "pytest-cov (>=1.8.0); extra == 'all'", "pytest-pep8 (>=1.0.6); extra == 'all'", "pytest (>=2.8.0); extra == 'all'", "check-manifest (>=0.25); extra == 'all'", "coverage (>=4.0); extra == 'all'", "isort (>=4.2.2); extra == 'all'", "pydocstyle (>=1.0.0); extra == 'all'", "pytest-cov (>=1.8.0); extra == 'all'", "pytest-pep8 (>=1.0.6); extra == 'all'", "pytest (>=2.8.0); extra == 'all'", "check-manifest (>=0.25); extra == 'tests'", "coverage (>=4.0); extra == 'tests'", "isort (>=4.2.2); extra == 'tests'", "pydocstyle (>=1.0.0); extra == 'tests'", "pytest-cov (>=1.8.0); extra == 'tests'", "pytest-pep8 (>=1.0.6); extra == 'tests'", "pytest (>=2.8.0); extra == 'tests'" ], "requires_python": "", "summary": "CSL styles.", "version": "0.1.1" }, "last_serial": 3692328, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "73dce5994530f5f9134aa3ec3fe264fb", "sha256": "4e2d229b17aa2f7af4a218063a67fb12f19db1aec972cfd35834e7b7a756f5df" }, "downloads": -1, "filename": "citeproc_py_styles-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73dce5994530f5f9134aa3ec3fe264fb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8193960, "upload_time": "2016-06-10T13:34:20", "url": "https://files.pythonhosted.org/packages/27/39/5f438a1bd5af4549e5956fab89dd9eba306d20052cc8233f472ddcbf5c97/citeproc_py_styles-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9a1d0d2316794fd4d856ffd080597d23", "sha256": "e695c8df59b023bb3724d7b0b727ae96574d6c04dc2a337894622302715c9211" }, "downloads": -1, "filename": "citeproc-py-styles-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9a1d0d2316794fd4d856ffd080597d23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1815406, "upload_time": "2016-06-10T13:34:30", "url": "https://files.pythonhosted.org/packages/61/ce/4caaa6d4ef3149e945caa58882a17bf641974b482d7c08930f55ac74dbc0/citeproc-py-styles-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e5ef886755daae728a91669204d6ebc4", "sha256": "9c1c8c8eba0f45435f20ee9818019d5ce48707dc309bf72848aab3c98266dd2a" }, "downloads": -1, "filename": "citeproc_py_styles-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e5ef886755daae728a91669204d6ebc4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8191930, "upload_time": "2018-03-21T16:32:00", "url": "https://files.pythonhosted.org/packages/f7/b3/008102b5aa867289ff70f50f0b58bc019e58ed5d9d94243eaf57c6272cb5/citeproc_py_styles-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e64aabbb2ea4e334703445a72468c76a", "sha256": "3856920968f1c5873bff2e85e4753131797f27a034c59f2b2e8dd625f1732a69" }, "downloads": -1, "filename": "citeproc-py-styles-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e64aabbb2ea4e334703445a72468c76a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1809419, "upload_time": "2018-03-21T16:32:06", "url": "https://files.pythonhosted.org/packages/40/49/b402387b77ccc977ff4e44578348d2ccb9a2d29d1f2b858b29bc932eec2a/citeproc-py-styles-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e5ef886755daae728a91669204d6ebc4", "sha256": "9c1c8c8eba0f45435f20ee9818019d5ce48707dc309bf72848aab3c98266dd2a" }, "downloads": -1, "filename": "citeproc_py_styles-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e5ef886755daae728a91669204d6ebc4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8191930, "upload_time": "2018-03-21T16:32:00", "url": "https://files.pythonhosted.org/packages/f7/b3/008102b5aa867289ff70f50f0b58bc019e58ed5d9d94243eaf57c6272cb5/citeproc_py_styles-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e64aabbb2ea4e334703445a72468c76a", "sha256": "3856920968f1c5873bff2e85e4753131797f27a034c59f2b2e8dd625f1732a69" }, "downloads": -1, "filename": "citeproc-py-styles-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e64aabbb2ea4e334703445a72468c76a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1809419, "upload_time": "2018-03-21T16:32:06", "url": "https://files.pythonhosted.org/packages/40/49/b402387b77ccc977ff4e44578348d2ccb9a2d29d1f2b858b29bc932eec2a/citeproc-py-styles-0.1.1.tar.gz" } ] }