Skip to main content

No project description provided

Project description

Crates.io Version GitHub Actions Workflow Status GitHub Actions Workflow Status GitHub Actions Workflow Status GitHub Actions Workflow Status PyPI - Version

crate2bib

Converts a given crate and version number to a BibLaTeX entry.

The crate will try to determine if a publication is already available by scanning for possible CITATION.cff files. It will further generate entries from the information available at crates.io. There are 4 distinct ways of using this package:

  1. Webapp jonaspleyer/.github.io/crate2bib
  2. Python bindings pypi.org/project/crate2bib
  3. CLI tool crate2bib-cli
  4. Rust crate crate2bib
def get_biblatex(
        crate_name: str,
        semver: Optional[str] = None,
        user_agent: Optional[str] = None,
        branch_name: Optional[str] = None,
        filenames: Sequence[str] = ['CITATION.cff', 'citation.bib'],
    ) -> typing.Any:
    r"""
    Wraps the [crate2bib::get_biblatex] function.

    Args:
        crate_name: Name of the crate to get BibLaTeX entry
        version: A semver-compliant version number for the crate
        user_agent: The name of the user agent. Defaults to None.
        branch_name: Name of the branch where to look for citaiton files.
        filenames: Filenames to search for within repository.
    Returns:
        list: A list of formatted BibLaTeX entries.
    """
    ...

Example Usage

import asyncio
from crate2bib import get_biblatex

async def obtain_result():
    results = await get_biblatex(
        "serde", "1.0.228", "crate2bib-py-testing-serde-user-agent"
    )
    biblatex = results[0]
    print(biblatex)
> @software {Tolnay2025,
>     author = {David Tolnay},
>     title = {{serde}: A generic serialization/deserialization framework},
>     url = {https://github.com/serde-rs/serde},
>     date = {2025-09-27},
>     version = {1.0.228},
>     license = {MIT OR Apache-2.0},
> }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crate2bib-0.7.1.tar.gz (54.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

crate2bib-0.7.1-py3-none-musllinux_1_2_x86_64.whl (177.3 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

crate2bib-0.7.1-py3-none-musllinux_1_2_i686.whl (191.3 kB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

crate2bib-0.7.1-py3-none-musllinux_1_2_armv7l.whl (271.5 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

crate2bib-0.7.1-py3-none-musllinux_1_2_aarch64.whl (189.3 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

crate2bib-0.7.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (184.1 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

crate2bib-0.7.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (6.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

crate2bib-0.7.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.3 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

crate2bib-0.7.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (179.4 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

crate2bib-0.7.1-py3-none-manylinux_2_5_i686.manylinux1_i686.whl (5.6 kB view details)

Uploaded Python 3manylinux: glibc 2.5+ i686

crate2bib-0.7.1-cp314-cp314-win32.whl (1.8 MB view details)

Uploaded CPython 3.14Windows x86

crate2bib-0.7.1-cp314-cp314-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

crate2bib-0.7.1-cp313-cp313-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

crate2bib-0.7.1-cp313-cp313-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

crate2bib-0.7.1-cp312-cp312-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

crate2bib-0.7.1-cp312-cp312-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

crate2bib-0.7.1-cp311-cp311-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

crate2bib-0.7.1-cp311-cp311-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file crate2bib-0.7.1.tar.gz.

File metadata

  • Download URL: crate2bib-0.7.1.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.6

File hashes

Hashes for crate2bib-0.7.1.tar.gz
Algorithm Hash digest
SHA256 d225fd83bbcce149225d1f99b9aee17bb9303f30e0f7bfb94dfa421fdc5b4773
MD5 9c87c0eabcccbe81d75359ac26c34586
BLAKE2b-256 64c134b91db44050c5634dee12c84f299602c8e37aaf286f127f5da013ac11e7

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 788e4d6d02e1f721cc148e192a14107a7653b22ba75f709b5dd43784c02f352c
MD5 d074e555698dc44b463f57786fc2ef9e
BLAKE2b-256 4ec664ebc2e7d14169dc64f6baac50d3380dab8219dd1ee89f0b27868938b469

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 20af19c39779423fcbc45e90675ef6f35fbba0e26e0613351d86a421511cebac
MD5 e22552757198933a1fba1cd8a2bf8b86
BLAKE2b-256 0455715fc10df9b5d27e000b3a76841d049d2c4dbfc1d65136dcdd97bf3c0684

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 fed19df3ac73ab93aeaf79f4da9b1a182ec28793f5169ff57c91dcd120be10bc
MD5 204a1f447d6b151843f74b0fc56f9718
BLAKE2b-256 e61e413c3e013f397f7f0bec87eb06c0bb6f5d0d27ea8f49022d579dd5759a3a

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4f6d74bf5c2dfe7c272bd211753d98e1d3640ea46aa7f15184c169018cf68b3c
MD5 09ee918cdbdc55a40484ac8ea9e5a81b
BLAKE2b-256 50faa587d83630e66eb83b512a24b6b94e64da234edd75eae963309375ef1cc6

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7b245ef1438b51c0a7bf9aeaa5951e2f9a8df37c3ec67b77fc9c84f27e965df
MD5 4e42e5c9032e6506bb34e9d2e91731b8
BLAKE2b-256 8df456bbdfdbd3a73a518a45e2e914bc8bb9e905a2d7f076ba9ed131671f3e66

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 fb8353aa91ccb8740a2176c8affeff47332d8d766c835f31f07ef85785f22f8a
MD5 6d2ccca0a3ec13e7085b04dabe7940db
BLAKE2b-256 766beda3e9829ab30067bfe4374880dc3ff9878fa844a964541b2a16b3f90e11

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 238b80d499546061e98869279f840b4877f1ba20eaf66fe5764eca84bd673c09
MD5 c77acd612edc595a158804326df01a14
BLAKE2b-256 8706be8d05aaf82318dea0a65f36b4829b63a351c1e0b71147014a118962c5a5

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 723894e9e161abc08a7616010a293f55f405a0e5cd85a765862b1ef1cc5bc558
MD5 e8541d1e92748a1108515ab76946e770
BLAKE2b-256 54afb3cc3bf600b246e0f4afc1d7d7bb0a3a11fa931a7f1836fe8caa1b041e90

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-py3-none-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 1fd763d0ef9558bae857e2d276e7f2cdf55e22e01a851b639b010fdb82b2bbcf
MD5 ab2784820e9ed6f33ac9aa9621330541
BLAKE2b-256 651f22f0416e5d770f30357fe9c99597728455d4b57f3e93df9c0bff7e67032f

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-cp314-cp314-win32.whl.

File metadata

  • Download URL: crate2bib-0.7.1-cp314-cp314-win32.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.14, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.6

File hashes

Hashes for crate2bib-0.7.1-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 c457e36aa378e42dc3c3ffb50cb24b8e9ff6cc3b38aa113b450b2a358ead6346
MD5 e10493dc8c59337fa25622a01b59e561
BLAKE2b-256 fd8136bf18e8f7289ae3c7bae4420423d233a4d5136db7c9ce90d8a0777f582d

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88c71b52d91ba8a5022691f98dfdab7ccda9d1735e64b35dba4f6b6868e98e3e
MD5 b452ebb94a8a4c742eaeed44f4831aab
BLAKE2b-256 b573decc5794a4942df42b53c2c0d14dcdcefde4e587edd8e26d54be6ffa182e

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b680e3c79b03a6e0c433a033719760d215da89bd2319bc889f0e4192cc2b74b
MD5 ddf1b173e65ceb2980c712d230695108
BLAKE2b-256 934cc9e8becee18392645926bdc51e1d5060d10800a556b8dc508e74d84e8020

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 19e54cbbc3bce273d96c39775aaa3953d967ec815b4569c0fff3827f0591beff
MD5 c9faadaf88149d2ceba4832fe201db8a
BLAKE2b-256 34ced77f46477e2a3b4d422ecb03bdbd2a73ac684d231cadd87c23743e51f9c5

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 354b952211a5c469d7f97f51b7ad0d23c8700444eea7489a4a201d14dfe3f5c7
MD5 55592ee0298e791dd363d2348bf75a3c
BLAKE2b-256 4037a76172eaf528d54ba7d31608a387f460254ac18ecf0bf2f97073778eeb2c

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a6cb5f1268cbb816b0af11fb27ac616963f2adefc3fecb4296936e4a2956152a
MD5 6743822cb659187257a7ff7ef9e268b9
BLAKE2b-256 8f733a9bcb99725a3f58becfeb62c1951b9970bb016e6f1f0572bef3c3700781

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ad4d1ad97bc9516aca204d709457d1116202935317a50f656f239e767edbd40
MD5 b0838c50c3eab74a48d5f3220a2260cc
BLAKE2b-256 0e2f5fd5fb2cec1c2ce29a89eadb42b0217c11782904b863d33cf22e07d3640a

See more details on using hashes here.

File details

Details for the file crate2bib-0.7.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for crate2bib-0.7.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 892009a74f0ef5d41a935737e08dda180ae45c1a6184afaba95a0a0fa00ec826
MD5 bcf7504bcb3f4ea966fd40daed4f9572
BLAKE2b-256 bd69a8235e5e95e70ad87df908aaa2989afa5862a5e972994aea3a15716e021d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page