Skip to main content

Super light UMLS connection. The goal is to feel similar to the UMLS browser. Requires no downloading, but the UMLS rest connection is somewhat slow so user beware. You need to make an account with UMLS.

import connect_umls as um
umls = um.UMLS(apikey)

Your api key can be found here: https://documentation.uts.nlm.nih.gov/rest/authentication.html You only need to supply the api key in step 1. We take care of all the ticket nonsense.

Example:

#get top 10 search results
results = umls.search("joint pain hip", k=10)

#"CUI"|"Term"|"Code" default Term. CUI - the cui. Term - the text words. Code - the code.

for result in results:
    code = result.cui() # the CUI
    name = result.name() # the main name
    synonyms = result.synonyms() # all the different names of the atoms
    if result.hasMapping("LNC"):
        # check if this result maps to a certain codeset, eg. SNOMED-CT.
        ## Note: you will need to give the UMLS short hand version of the codeset name.
        ## e.g. "LNC" not "LOINC"
        print("There is a map to LOIN-C!")

Metadata

Release files for connect-umls 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for connect-umls 0.0.2
File Size Uploaded Provenance Actions
connect_umls-0.0.2.tar.gz 3.5 kB Without provenance Details for connect_umls-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for connect-umls 0.0.2
File Interpreter ABI Platform Actions
connect_umls-0.0.2-py3-none-any.whl Python 3 none any Details for connect_umls-0.0.2-py3-none-any.whl

Total release size: 10.2 kB

Release files / connect_umls-0.0.2.tar.gz

Download URL connect_umls-0.0.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dabaff5e23f8b7131aa55f11225e320ebbc65f2cb715b7135beca44140905bf2
BLAKE2b-256 checksum
How to use checksums
8a4dcb5387a39a349f71d45804862682f6d9fce4912e1b7af73ae803d5f86964
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release files / connect_umls-0.0.2-py3-none-any.whl

Download URL connect_umls-0.0.2-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5d87f2cb482050c7e0b02e66f01a149d8a524e771fc25a781112247b205287c
BLAKE2b-256 checksum
How to use checksums
9c8e4f9e059959caebb03290ed15a4e9e2436ccff02f19efd7b5767306e662c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Security for connect-umls 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page