Skip to main content

SWORD API connector for pyHeimdall

Project description

https://img.shields.io/badge/license-AGPL3.0-informational?logo=gnu&color=success https://www.repostatus.org/badges/latest/inactive.svg PyPI Version https://img.shields.io/badge/documentation-api-green https://gitlab.huma-num.fr/datasphere/heimdall/connectors/sword/badges/main/pipeline.svg https://gitlab.huma-num.fr/datasphere/heimdall/connectors/sword/badges/main/coverage.svg

What is this?

Heimdall is a tool for converting more easily one or more databases from one format to another. It leverages modules called “connectors”, responsible for conversion of data between specific databases schemas and the HERA format.

This repository contains a connector to SWORD API endpoints.

Why should I use it?

You can use this connector, along with the pyheimdall software, to retrieve any data from SWORD endpoints, like Dataverse and derivates (_eg._ Recherche Data Gouv) or arXiv and derivates. You can then aggregate this data into your research corpus easily, for example using other Heimdall connectors.

Take note however that some legal restrictions might apply to data retrieved from some SWORD servers.
Plus, if at the end of your project, you share your data, please cite the original data properly (and reuploading it elsewhere is probably a bad idea, too).

How can I use it?

Setup

This SWORD pyHeimdall connector is available as a PyPI package named pyheimdall-sword. You can install it using the pip package manager:

pip install pyheimdall-sword

You can use pip to either upgrade or uninstall this connector, too:

pip install --upgrade pyheimdall-sword
pip uninstall pyheimdall-sword

Usage

import heimdall

tree = heimdall.getDatabase(url, format='sword:api')

Please note that you don’t need to use pyheimdall-sword functions directly. As long as the package is installed on your system, pyHeimdall will automatically discover its features and allow you to use them as long as any other default or external connector.

Is it tested?

Of course! Here’s the coverage report.

How can I contribute?

PyHeimdall welcomes any feedback or proposal. Details can be accessed here

License

GNU Affero General Public License version 3.0 or later

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

pyheimdall_sword-0.0.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

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

pyheimdall_sword-0.0.1-py2.py3-none-any.whl (20.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyheimdall_sword-0.0.1.tar.gz.

File metadata

  • Download URL: pyheimdall_sword-0.0.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for pyheimdall_sword-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d6e3163b3363534e883081e44276bdd5c20a66289e4c58e4c25aec9a261ad620
MD5 5a3b88591799bd1c875a3e7f5f8f6de1
BLAKE2b-256 ca90805e110530995b9504250a56b35bf3068d82a230cb364782842c71461978

See more details on using hashes here.

File details

Details for the file pyheimdall_sword-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyheimdall_sword-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 13ee06d950dd25f56eac51032fa95e3300e7ea55a02e4e38038df53c7188c161
MD5 62644a681a266d036892b82fe6b0f665
BLAKE2b-256 d3e9297d67d318b45f4de897ee5d5d03f9a1b5a840f89d81e3bb48f1562772f5

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