nextcode Python SDK
Nextcode-sdk is a python package for interfacing with Wuxi Nextcode services.
Installation
$ pip install nextcode-sdk -U
$ pip install nextcode-sdk[jupyter] -U
Getting started
import nextcode
client = nextcode.Client(api_key="xxx")
qry = client.service("query")
qry.status()
qry.get_queries()
qry.get_query(query_id)
qry.list_templates()
Jupyter notebooks
To start using the python sdk in Jupyter Notebooks you will first need to install it using the jupyter extras and then load the gor % magic extension.
! pip install nextcode-sdk[jupyter] -U
%load_ext nextcode
Jupyter notebooks running on the Wuxi Nextcode servers are preconfigured with a GOR_API_KEY and GOR_PROJECT. If you are running outside such an environment you will need to configure your environment accordingly:
%env GOR_API_KEY="***"
%env GOR_API_PROJECT="test_project"
# optionally set the LOG_QUERY environment variable to get more information about running queries.
%env LOG_QUERY=1
Now you can run gor with the following syntax:
# simple one-liner
%gor gor #dbsnp# | top 100
# one-liner which outputs to local variable as a pandas dataframe
results = %gor gor #dbsnp# | top 100
# multi-line statement
%%gor
gor #dbsnp#
| top 100
# multi-line statement which writes results into project folder
%%gor user_data/results.tsv <<
nor #dbsnp#
| top 100
# output results to local variable as a pandas dataframe
%%gor myvar <<
nor #dbsnp#
| top 100
# read from a pandas dataframe in a local variable
%%gor
nor [var:myvar]
| top 100
# reference a local variable
num = 10
%%gor
nor [var:myvar]
| top $num
Metadata
Release files for nextcode-sdk 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nextcode_sdk-2.1.2.tar.gz | 56.7 kB | Without provenance | Details for nextcode_sdk-2.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nextcode_sdk-2.1.2-py3-none-any.whl | Python 3 | none | any | Details for nextcode_sdk-2.1.2-py3-none-any.whl |
Total release size: 133.3 kB
Release files / nextcode_sdk-2.1.2.tar.gz
| Download URL | nextcode_sdk-2.1.2.tar.gz |
|---|---|
| Size | 56.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93e3240684dec8c2eb5dc6627c17330f789895150f0f6800014e46f69759db91
|
|
BLAKE2b-256 checksum How to use checksums |
07be984dab57031c850b3410e7c5b47d624101f0ea56d42a1f273e940dcc0a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.10.15 Linux/5.10.219-208.866.amzn2.x86_64
|
Release files / nextcode_sdk-2.1.2-py3-none-any.whl
| Download URL | nextcode_sdk-2.1.2-py3-none-any.whl |
|---|---|
| Size | 76.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
461c8885c263c32fac620164f0dd41ca681016c5e5e51a8a585245a5b1f897cd
|
|
BLAKE2b-256 checksum How to use checksums |
fd2d2629695abcb0d1b4925e556d1e20e085e33a590d8a606ea7fb8491d3d489
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.10.15 Linux/5.10.219-208.866.amzn2.x86_64
|
Security for nextcode-sdk 2.1.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.