Skip to main content

A light umls client with rate limiting

Project description

umls-client

python umls client

Description

light umls client with rate limiting

Installation

Usage

resolver = UMLSClient("API_KEY")
r0 = resolver.search_string("olfactory receptor")
print(r0.result)
r0.has_next_page() # True
r0_a = resolver.search_string("olfactory receptor", page=99)
r0_a.has_next_page() # False

r1 = resolver.search_cui("C1518565")
# r1.result = {...}
r2_a = resolver.search_cui("C1518565", CuiExtension.RELATIONS)
# r2_a.result = [{...},{...},{...}]
r3 = resolver.search_tui("T104")
# r3.result = {...}

Roadmap

  - [x] GET 	/search/{version}                                       Retrieves CUIs when searching by term or code
  - [x] GET 	/content/{version}/CUI/{CUI} 	                        Retrieves information about a known CUI
  - [x] GET 	/content/{version}/CUI/{CUI}/atoms                      Retrieves atoms and information about atoms for a known CUI
  - [x] GET 	/content/{version}/CUI/{CUI}/definitions             	Retrieves definitions for a known CUI
  - [x] GET 	/content/{version}/CUI/{CUI}/relations              	Retrieves NLM-asserted relationships for a known CUI
  - []  GET 	/content/{version}/source/{source}/{id}                 Retrieves information about a known source-asserted identifier
  - []  GET 	/content/{version}/source/{source}/{id}/atoms           Retrieves information about atoms for a known source-asserted identifier
  - []  GET 	/content/{version}/source/{source}/{id}/parents     	Retrieves immediate parents of a source-asserted identifier
  - []  GET 	/content/{version}/source/{source}/{id}/children    	Retrieves immediate children of a source-asserted identifier
  - []  GET 	/content/{version}/source/{source}/{id}/ancestors   	Retrieves all ancestors of a source-asserted identifier
  - []  GET 	/content/{version}/source/{source}/{id}/descendants 	Retrieves all descendants of a source-asserted identifier
  - []  GET 	/content/{version}/source/{source}/{id}/relations       Retrieves all relationships of a source-asserted identifier
  - []  GET 	/content/{version}/source/{source}/{id}/attributes      Retrieves information about source-asserted attributes
  - [x] GET 	/semantic-network/{version}/TUI/{id} 	                Retrieves information for a known Semantic Type identifier (TUI)
  - []  GET 	/crosswalk/{version}/source/{source}/{id}               Retrieves all source-asserted identifiers that share a UMLS CUI with a particular code

Authors and acknowledgment

https://documentation.uts.nlm.nih.gov/rest/home.html

https://requests.readthedocs.io/en/latest/

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

umls_client-0.0.1.tar.gz (13.4 MB view details)

Uploaded Source

Built Distribution

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

umls_client-0.0.1-py3-none-any.whl (5.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: umls_client-0.0.1.tar.gz
  • Upload date:
  • Size: 13.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for umls_client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2f1149ed099ca25cedd7825c7886e4bf7c10a22a348005a54136a5d780c37d2c
MD5 eb3f717270bf4376b872ec8214446b43
BLAKE2b-256 e40ff033d8762bdebc8cae32370f917fbc1a70d3d6f51f0204a2bfc4af5a0a49

See more details on using hashes here.

File details

Details for the file umls_client-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: umls_client-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for umls_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79e260c4194d6eac82309ea4eda3b1164bc3c828709731259785157ca91d203f
MD5 68e8c7889b2f42b577ba31c8e95135cd
BLAKE2b-256 4a89d18ac1da3c4af472f5c339e2e1a370c08666eac21dfc6e16562aa7d4e41b

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