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

pip install umls-client

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.1.0.tar.gz (43.5 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.1.0-py3-none-any.whl (5.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: umls_client-0.1.0.tar.gz
  • Upload date:
  • Size: 43.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 ab5f5c340dbaa148f8b541c910e44d54f6f46800420e1d516a07d1e9b6490865
MD5 db216ebb2a0ac5ffef35ac69cff733e4
BLAKE2b-256 2c19c51be912f30f9ef062fa404b51e803aab3899ed9df392adcb44598dd62e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: umls_client-0.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06e2177585abe24e19f04e2179bd8ad144692792b8482cb91a85fd2a9fee44ba
MD5 4bd011fca008e957775607d8f238368c
BLAKE2b-256 8f88a4909dc08fb812d11653cdd089bb264d9cc52e4995b04b74657616d2bcd0

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