LibDNB
This project is heavily inspired by calibre-dnb
About
I needed a way to fetch basic book metadata from the German National Libraries "API", I found calibre-dnb, but it is not suitable for my usage case, so I modified it. You can visit the portal here: portal.dnb.de.
Get started
Obtain Token
You need to apply for an API-Key at schnittstellen-service@dnb.de in order to get access to the catalogue. This library uses the SRU-API, you need a SRU Access Token.
Installation
pip install libdnb
Usage
Code Example:
import libdnb
dnbclient = libdnb.LibDNB("Your-SRU-Access-Token-Here")
result = dnbclient.lookup("9783346111098") # ISDN, Title, or any other metadata to search for here
if result: # Result might be None if nothing was found
print(result["title"])
Fields
| Key | Datatype |
|---|---|
title |
String |
authors |
String |
author_sort |
List |
languages |
List |
pubdate |
datetime.datetime |
publisher_location |
String |
publisher_name |
String |
subtitle |
String |
tags |
List |
comments |
String |
isbn |
String |
urn |
String |
idn |
String |
ddc |
String |
Note that some fields might be empty, you have to figure out on which fields you want to rely upon.
Metadata
Release files for libdnb 0.0.1
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 | |
|---|---|---|---|---|
| libdnb-0.0.1.tar.gz | 5.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libdnb-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.0 kB
Release files / libdnb-0.0.1.tar.gz
| Download URL | libdnb-0.0.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2ded80ca814f8047f609c98c4e9e76a58672407a014452c2c23ceb047e04bf5
|
|
BLAKE2b-256 checksum How to use checksums |
9ac17139e9c9161570c61e29667c50b617f8eed86c8b21257ca1b7769875e79b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Release files / libdnb-0.0.1-py3-none-any.whl
| Download URL | libdnb-0.0.1-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
315fe6dc47240793e7c638f334cdbae06989e0258780f10580e98cfd1446160f
|
|
BLAKE2b-256 checksum How to use checksums |
54c3590b63e2bb46a004e28441f026d0b1483baaa54d3c49c12465489e438ad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Security for libdnb 0.0.1
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.