Metadata-Version: 2.1
Name: nextcode-sdk
Version: 0.2.4
Summary: Python SDK for Wuxi Nextcode Services
Home-page: https://www.github.com/wuxi-nextcode/nextcode-python-sdk
Author: WUXI NextCODE
Author-email: support@wuxinextcode.com
License: UNKNOWN
Description: # nextcode Python SDK
        
        Nextcode-sdk is a python package for interfacing with Wuxi Nextcode services.
        
        ### Installation
        ```bash
        $ pip install nextcode-sdk -U
        ```
        
        ```bash
        $ pip install nextcode-sdk[jupyter] -U
        ```
        
        ### Getting started
        
        ```python
        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.
        
        ```bash
        ! pip install nextcode-sdk[jupyter] -U
        %load_ext nextcode.gor
        ```
        
        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:
        ```bash
        %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:
        ```python
        # 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.gorz <<
        gor #dbsnp# 
          | top 100
        
        # output results to local variable as a pandas dataframe
        %%gor myvar <<
        gor #dbsnp# 
          | top 100
        
        # read from a pandas dataframe in a local variable
        %%gor
        gor [var:myvar] 
          | top 100
        
        # reference a local variable
        num = 10
        %%gor
        gor [var:myvar] 
          | top $num
        
        ```
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Flask
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Provides-Extra: jupyter
