observatory-api

Software Observatory API

https://github.com/inab/observatory-api

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.3%) to scientific vocabulary

Keywords

fair-software fairsoft fastapi software-metadata
Last synced: 6 months ago · JSON representation

Repository

Software Observatory API

Basic Info
Statistics
  • Stars: 1
  • Watchers: 7
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Topics
fair-software fairsoft fastapi software-metadata
Created over 1 year ago · Last pushed 6 months ago
Metadata Files
Readme License Citation

readme.md

Software Observatory API

This repository contains the source code of the Software Observatory API. This API is a FastAPI application that uses a remote mongodb database.

Development

To start the development environment, first create a virtual environment and install the dependencies:

python3 -m venv venv source venv/bin/activate pip install -r requirements.txt

Then, start the development server:

export CONFIG_PATH=./api-variables/config_db.ini python3 main.py

The API will be available at http://localhost:3500.

Versioning

When a push is done to the main branch, the version of the API should be updated. This is done by adding the new version to VERSION. A GitHub action will create a tag with the version to the version in VERSION file, build and publish the docker image.

Collections

Most endpoints use the observatory.tools collection. The endpoint GET "/tools/names_type_labels" uses the collection observatory.tools_discoverer_w_index. This is due to this collection being processed to contain information of types and labels in a more convenient way.

Mappings

| bioschema | UI | | --------- | ------ | | @type | type | | schema:applicationSubcategory | topics | | schema:additionalType | type | | schema:name | name | | schema:url | webpages | | schema:description | description | | schema:applicationCategory | type | | schema:operatingSystem | os | | schema:license | license | | schema:author | authors | | schema:maintainer | authors | | schema:softwareVersion | version | | schema:codeRepository | repository | schema:featureList | operations | | schema:input | input | | schema:output | output | | schema:downloadURL | download | | schema:softwareHelp | documentation | | schema:citation | publication | | schema:requirements | dependencies | | schema:isAccessibleForFree | registration_not_manadatory | | schema:dateModified | - | | @context | - |

API Documentation

The API documentation is available at https://observatory.openebench.bsc.es/api/docs.

This documentation is automatically generated by FastAPI and is based on the OpenAPI standard.

Production

The API is deployed in the BSC's infrastructure. The deployment is done using docker and docker-compose.

The docker image is built as part of the CI/CD pipeline. It is triggered by pushing a tag to the repository.

Notice that the API is accessible at a subdomain of the OpenEBench platform. The API is available at https://observatory.openebench.bsc.es/api. In development, the API is available directly at http://localhost:3500.

License

This software is licensed under the MIT License. For more information, read the LICENSE file.

Owner

  • Name: Spanish National Bioinformatics Institute
  • Login: inab
  • Kind: organization
  • Email: salvador.capella@bsc.es
  • Location: Spain

Alfonso Valencia | BSC, ICREA, INB Director - Salvador Capella-Gutierrez | BSC, INB CTO

GitHub Events

Total
  • Issues event: 3
  • Push event: 17
  • Pull request event: 7
  • Create event: 11
Last Year
  • Issues event: 3
  • Push event: 17
  • Pull request event: 7
  • Create event: 11

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 3
  • Total pull requests: 6
  • Average time to close issues: about 3 hours
  • Average time to close pull requests: about 1 hour
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 3
  • Pull requests: 6
  • Average time to close issues: about 3 hours
  • Average time to close pull requests: about 1 hour
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 2
Top Authors
Issue Authors
  • EvaMart (3)
Pull Request Authors
  • metadata-updater-for-fairsoft[bot] (4)
  • EvaMart (4)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

Dockerfile docker
  • python 3.10-slim build
mongo-compose/docker-compose.yml docker
  • mongo 4.2
  • registry.gitlab.bsc.es/inb/elixir/software-observatory/observatory-api/mongo-seed dev
  • registry.gitlab.bsc.es/inb/elixir/software-observatory/observatory-api/mongo-total dev
mongo-compose/mongo-seed/Dockerfile docker
  • mongo latest build
mongo-compose/mongo-total/Dockerfile docker
  • mongo latest build
Pipfile pypi
  • click ==8.1.3
  • fastapi *
  • markupsafe ==2.1.1
  • munch *
  • pymongo ==4.2.0
  • python-dotenv *
  • pyyaml *
  • requests *
  • six ==1.16.0
  • uvicorn *
Pipfile.lock pypi
  • annotated-types ==0.7.0
  • anyio ==4.4.0
  • certifi ==2024.7.4
  • charset-normalizer ==3.3.2
  • click ==8.1.3
  • dnspython ==2.6.1
  • email-validator ==2.2.0
  • exceptiongroup ==1.2.2
  • fastapi ==0.111.1
  • fastapi-cli ==0.0.4
  • h11 ==0.14.0
  • httpcore ==1.0.5
  • httptools ==0.6.1
  • httpx ==0.27.0
  • idna ==3.7
  • jinja2 ==3.1.4
  • markdown-it-py ==3.0.0
  • markupsafe ==2.1.1
  • mdurl ==0.1.2
  • munch ==4.0.0
  • pydantic ==2.8.2
  • pydantic-core ==2.20.1
  • pygments ==2.18.0
  • pymongo ==4.2.0
  • python-dotenv ==1.0.1
  • python-multipart ==0.0.9
  • pyyaml ==6.0.1
  • requests ==2.32.3
  • rich ==13.7.1
  • shellingham ==1.5.4
  • six ==1.16.0
  • sniffio ==1.3.1
  • starlette ==0.37.2
  • typer ==0.12.3
  • typing-extensions ==4.12.2
  • urllib3 ==2.2.2
  • uvicorn ==0.30.3
  • uvloop ==0.19.0
  • watchfiles ==0.22.0
  • websockets ==12.0
requirements.txt pypi
  • annotated-types ==0.7.0
  • anyio ==4.4.0
  • certifi ==2024.7.4
  • charset-normalizer ==3.3.2
  • click ==8.1.3
  • dnspython ==2.6.1
  • email-validator ==2.2.0
  • exceptiongroup ==1.2.2
  • fastapi ==0.111.1
  • fastapi-cli ==0.0.4
  • h11 ==0.14.0
  • httpcore ==1.0.5
  • httptools ==0.6.1
  • httpx ==0.27.0
  • idna ==3.7
  • jinja2 ==3.1.4
  • markdown-it-py ==3.0.0
  • markupsafe ==2.1.1
  • mdurl ==0.1.2
  • munch ==4.0.0
  • pydantic ==2.8.2
  • pydantic-core ==2.20.1
  • pygments ==2.18.0
  • pymongo ==4.2.0
  • python-dotenv ==1.0.1
  • python-multipart ==0.0.9
  • pyyaml ==6.0.1
  • requests ==2.32.3
  • rich ==13.7.1
  • shellingham ==1.5.4
  • six ==1.16.0
  • sniffio ==1.3.1
  • starlette ==0.37.2
  • typer ==0.12.3
  • typing-extensions ==4.12.2
  • urllib3 ==2.2.2
  • uvicorn ==0.30.3
  • uvloop ==0.19.0
  • watchfiles ==0.22.0
  • websockets ==12.0