A tool to determine Crossref credential permissions.
Project description
credCheck: lookup Crossref credential permissions
credCheck allows you to test whether your Crossref credentials have the necessary permissions to deposit a DOI. It is a simple command-line tool that takes a DOI and Crossref username and password and returns a boolean value indicating whether the user has the necessary permissions to deposit the DOI.
Install
pip install credcheck
CLI Usage
Usage: cli.py [OPTIONS] USERNAME PASSWORD DOI
Checks the credentials for a given username, password, and doi.
╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * username TEXT The username [default: None] [required] │
│ * password TEXT The password [default: None] [required] │
│ * doi TEXT The doi with prefix to check [default: None] [required] │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion [bash|zsh|fish|powershell|pwsh] Install completion for the specified shell. [default: None] │
│ --show-completion [bash|zsh|fish|powershell|pwsh] Show completion for the specified shell, to copy it or customize the installation. [default: None] │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Programmatic Usage
import cred
credential = cred.Credential(username=username, password=password, doi=doi)
if not credential.is_authenticated():
...
if credential.is_authorised():
...
© Crossref 2024
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
credcheck-0.0.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for credcheck-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c4a698d588778def3d59ccba49e1d729fb720aece2de5487efa0892952c20e1 |
|
MD5 | 951e2b053621b04f81d80e69bd1a51c4 |
|
BLAKE2b-256 | ecd1bf5868fd2b50904dfc20920a4346b1e6d238269ddaa512e7b3addd0ec0a6 |