fair-identifiers-client
Client SDK and CLI for the FAIR Research Identifiers Service.
Summary
The fair-identifiers-client package provides command line and SDK interfaces to the FAIR Research Identifiers Service.
Pre-Requisites
Building and installing the fair-identifiers-client requires the use of the pipenv tool. Pre-install it with the command pip install --user --upgrade pipenv or a similar command suitable for your installation.
Building
The default method of building the client is simply to use make install which creates the local executable file fair-identifiers-client. This default method assumes a build using Python version 3.6. Other versions of Python may be forced by setting the PYTHON_VERSION environment variable prior to running make install. For example, the command PYTHON_VERSION=2.7 make install will build for use with version 2.7 of the python interpreter.
At present, only python versions 2.7 and 3.6 have been tested.
Running
A completed build will create an executable file fair-identifiers-client in the base directory for the project. Additional help running the command can be found using the command fair-identifiers-client --help. Typically, the first command to be executed will be fair-identifiers-client login to create a cache of the credentials needed to interact with the service in subsequent invocations of the command. The login command will open a web browser which will step you through logging in with your Globus identity and for providing consent for the command line tool to perform operations on the FAIR Research Identifiers Service on your behalf.
Use as an SDK
The SDK functionality is encapsulated in the source file fair_identifiers_client/identifiers_api.py. The Doc String comments on the various methods of the IdentifierClient class describe the parameters to the operations.
Examples
from fair_identifiers_client.identifiers_api import identifiers_client
from fair_identifiers_client.config import config
# Loads tokens stored from config
client = identifiers_client(config)
client.create_identifier(namespace='<my_namespace>', visible_to=['public'])
Use as a Command Line Client
A CLI client application comes with the installation, and can be used with fair-identifiers-client
Examples
Below are example commands
Print information on all options for creating identifiers
$ fair-identifiers-client identifier-create --help
Create an Identifier
fair-identifiers-client identifier-create --namespace <my_namespace> --visible-to public
Update an identifier
Add a location
fair-identifiers-client identifier-update --identifier <myidentifier> --locations https://foo.example.com
Add many fields
fair-identifiers-client identifier-update --identifier <myidentifier> --locations https://foo.example.com https://example.com/foo --checksum-sha256 sha256checksum --checksum-md5 mymd5checksum --metadata file://foo.json<!-- @IGNORE PREVIOUS: link -->
Metadata
Release files for fair-identifiers-client 0.5.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 | |
|---|---|---|---|---|
| fair-identifiers-client-0.5.1.tar.gz | 42.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fair_identifiers_client-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 87.7 kB
Release files / fair-identifiers-client-0.5.1.tar.gz
| Download URL | fair-identifiers-client-0.5.1.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b865b78f905035c33cd34a35029564ef294cfbe2b633aaeba4b239e63d0ef78
|
|
BLAKE2b-256 checksum How to use checksums |
35b35a45e9c7f28c8c3cc40c0336199d5bbc4fb6f041d3dba097cff5b8e038bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / fair_identifiers_client-0.5.1-py3-none-any.whl
| Download URL | fair_identifiers_client-0.5.1-py3-none-any.whl |
|---|---|
| Size | 45.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d42d2ca9b2badd7c1cdb93a0e4076586bd248f49d3623cb3fc88e92bbba54716
|
|
BLAKE2b-256 checksum How to use checksums |
22016580b6544d1cec6b88aff47da46ebb305f1622191c3170c0eb4ef673add9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for fair-identifiers-client 0.5.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.