Saravanan666/pypi-org huggingface dataset:
Package: nexsys-core
[->] NexsysAn equation solving program written in Rust 🦀Nexsys (iNtuitiveEquations, eXpressions, andSYStems) is
inspired by Engineering Equation Solver (EES), which is a program intended
for engineers working with thermal or fluids-heavy systems. This tool allows
engineers to develop massive mathematical models of the systems they work with
and produce optimized designs in less time than it might take to develop the
same model in Python or Matlab.The main drawback of EES is its closed-source nature and poor ability to
integrate with non-Windows machines and other software, so with an interest in
simulation and computer-aided engineering, I took it upon myself to fill the gap.Thenexsys-coreCrateThis is thenexsys-coresub-crate, which is responsible for providing
from-scratch implementations of Newton's method for solving both single-unknown
equations and nonlinear systems of equations, as well as the Nexsys solver engine.The main point of access for the Nexsys solver is theNexsysstruct, which
interprets raw text as a sort of pseudo-code in order to determine what equations
can and can't be solved and in what order.
Package: next1api
Next1ApiInstalling Requests and Supported Versionsnext1api officially supports Python 3.5+next1api is available on PyPI:$python-mpipinstallnext1apifromnext1api.next1apiimportMusic#search>>>C=Music()>>>C.search("تست")[{'name':'دانلود ریمیکس دی جی فلیکس به نام دشتستانی','url':'https://nex1music.ir/ریمیکس-دی-جی-فلیکس-دشتستانی/'},{'name':'دانلود آهنگ مرداد و تنیلر به نام رویا','url':'https://nex1music.ir/آهنگ-مرداد-تنیلر-رویا/'},{'name':'دانلود آهنگ سامان دانشور به نام وقتی نیستی','url':'https://nex1music.ir/آهنگ-سامان-دانشور-وقتی-نیستی/'},{'name':'دانلود آهنگ مهران و مرتضی به نام انرژی خاص','url':'https://nex1music.ir/آهنگ-مهران-مرتضی-انرژی-خاص/'},{'name':'دانلود آهنگ مجید رومیانی و سهیل سکاکی به نام نگاهم کن','url':'https://nex1music.ir/آهنگ-مجید-رومیانی-سهیل-سکاکی-نگاهم-کن/'},{'name':'دانلود آهنگ بهروز کیانی به نام دیوونه','url':'https://nex1music.ir/آهنگ-بهروز-کیانی-دیوونه/'},{'name':'دانلود آهنگ آنهولی به نام اگه اینو بفهمی','url':'https://nex1music.ir/آهنگ-آنهولی-اگه-اینو-بفهمی/'},{'name':'دانلود آهنگ حسن حیدرپور به نام لیلا','url':'https://nex1music.ir/آهنگ-حسن-حیدرپور-لیلا/'},{'name':'دانلود آهنگ مستر چنج به نام میمونم','url':'https://nex1music.ir/آهنگ-مستر-چنج-میمونم/'},{'name':'دانلود آهنگ بهزاد ملک زاده به نام پروونه ی قلبم','url':'https://nex1music.ir/آهنگ-بهزاد-ملک-زاده-پروونه-ی-قلبم/'},{'name':'دانلود آهنگ مانی رعد به نام هدف','url':'https://nex1music.ir/آهنگ-مانی-رعد-هدف/'},{'name':'دانلود آهنگ آریا نوید به نام بهار','url':'https://nex1music.ir/آهنگ-آریا-نوید-بهار/'},{'name':'دانلود آهنگ دانیال داراب به نام چشمک','url':'https://nex1music.ir/آهنگ-دانیال-داراب-چشمک/'},{'name':'دانلود آهنگ سعید داوری به نام فرشته','url':'https://nex1music.ir/آهنگ-سعید-داوری-فرشته/'},{'name':'دانلود آهنگ پرویز بابایی به نام داره میره','url':'https://nex1music.ir/آهنگ-پرویز-بابایی-داره-میره/'},{'name':'دانلود آهنگ مجتبی پورعلی به نام رگ خواب','url':'https://nex1music.ir/آهنگ-مجتبی-پورعلی-رگ-خواب/'},{'name':'دانلود آهنگ رامین بیباک به نام سرزنش','url':'https://nex1music.ir/آهنگ-رامین-بیباک-سرزنش/'},{'name':'دانلود آهنگ احسان دلبندی به نام دیوانگی','url':'https://nex1music.ir/آهنگ-احسان-دلبندی-دیوانگی/'},{'name':'دانلود آهنگ حنان به نام مدام','url':'https://nex1music.ir/آهنگ-حنان-مدام/'},{'name':'دانلود آهنگ مجید خراطها به نام یک ماه و چهل روز','url':'https://nex1music.ir/آهنگ-مجید-خراطها-یک-ماه-چهل-روز/'}]#download>>>C.download("https://nex1music.ir/آهنگ-احسان-دلبندی-دیوانگی/"){'music':[{'k':'اصلی','u':'https://dl.nex1music.ir/1399/08/16/Ehsan Delbandi - Divanegi.mp3'},{'k':'128','u':'https://dl.nex1music.ir/1399/08/16/Ehsan Delbandi - Divanegi [128].mp3'},{'k':'64','u':'https://dl.nex1music.ir/1399/08/16/Ehsan Delbandi - Divanegi [64].mp3'}],'date':' 16 آبان 1399 ','name':'دانلود آهنگ احسان دلبندی به نام دیوانگی','M_name':'احسان دلبندی دیوانگی','tumbnial':'https://nex1music.ir/upload/2020-11-06/ehsan-delbandi-divanegi-2020-11-06-16-16-45.jpg'}
Package: nextai
Project Structure for MLflow integrated ML ProjectsThis cli tool generates the following directory structure for quickstart ML projectsinstallaton:pip install nextaiexample use:nextai create mytestprojectIt generates the project with following structureProject
|
+--- Input
|    |
|    +--- raw               Raw data here
|    |
|    +--- interim           Any intermediate data, to pause and continue experiments
|    |
|    +--- processed         Processed data ready for ML pipeline
|
+--- output
|    |
|    +--- models             Model pickle or model weights stored here
|    |
|    +--- artifacts         Serialized artifacts like LabelEncoder, Vectorizer etc
|    |
|    +--- images            All plots and visualizations goes here
|    |
|    +--- Results           If the results needs to be stored for review, save here
|
+--- notebooks              All notebooks and experiments resides here
|
+--- src                    Final program, with training and prediction pipeline
|
|
README.md                   Description and instruction about the project
nextai                   MLflow project file. If you want to use this directory as MLflow project
Requirements.txt            python dependencies
Config.yml                  configuration key values in yaml format
Package: nextapm
NextAPMMonitor the python serverless functions deployed in vercel platform. You needhttps://nextapm.devaccount to configure the monitor.InstallationInstall agent module in your applicationpip install nextapmInstrumentationTo monitor serverless api, import following module in all api files// this should be in the first line
import nextapm;

from http.server import BaseHTTPRequestHandler
... your app code ...ConfigurationConfigure the following environment variables, you can get it fromhttps://app.nextapm.devafter creating monitorNEXTAPM_LICENSE_KEY
NEXTAPM_PROJECT_IDRestart/RedeployRestart/Redeploy your application and perform transactions
Package: next-app-kit
29 Next App KitApp Kit is a cross-platform command line tool to build and maintain apps on the 29 Next platform.InstallationApp Kit is a python package available onPyPiIf you already havepythonandpip, install with the following command:pip install next-app-kitMac OSX RequirementsSee how to installpythonandpipwithHomeBrew. Once you have completed this step you can install using thepipinstructions above.Windows RequirementsSee how to installpythonandpipwithChocolatey. Once you have completed this step you can install using thepipinstructions above.Updating App KitUpdate to the latest version of App Kit with the following command:pip install next-app-kit --upgrade:warning:ImportantUsage requires a Partner Account and an App Client ID, create and setup your partner accounthere.UsageWith the package installed, you can now use the commands inside your app directory to build and push your app updates.Available Commandsnak setup- configure current directory with an app in your accountnak build- build new app zip filenak push- push latest app zip file to 29 Next platformSetupConfigures the current directory with necessary data to push the app files to 29 Next.Data collected by thesetupcommand:App Client ID- retrieve this from the app in your partner account.Email- your email used to access your partner account.Password- your password used to access your partner account.BuildCreates a new version (zip of the current directory files) to prepare your app to be pushed to 29 Next.PushPushes the latest version to 29 Next and to your development stores to review and test your app.
Package: nextbike-api
Nextbike API wrapper (unofficial)This is an unofficialnextbikeAPI client.It's worthy to note, that the API itself isn't open, so there is no permission of use or SLA.Currently, the client implements only read operations.How to use the clientThe client itself is very simple.
It allows acquiring all of the data, which, in turn, takes a lot of time, or fetch some country data only.
Note, that "country" in terms of Nextbike API is not equal to its common meaning.from nextbike_api.client import Client


c = Client()
print(c.country('ua'))How to run the testsThere are two kinds of tests here: unit tests and integration tests. First ones do their job without interaction with some external stuff, e. g. Nextbike API.
The latter need to make use of some external API. That makes them more time-consuming.To be able to run tests, you need to install development packages:$ pipenv install --devSo, to run unit tests you need to executepytestBut if you want to perform deep tests, you need to set a relevant environment variable:export NEXTBIKE_API_SKIP_INTEGRATION_TESTS=Falseand then run the tests:pytest
Package: next-bus-bot
A bot/ cli tool that simply gives you the waiting times for next buses at your favorite bus stop.It works only for the IDFM/RATP Network, relying on the apilines/v4. For now only a handfull of bus stops on the Plateau de Saclay are registered, but you can add your ownWarningI am not responsible if you arrive late at your work.
For serious travel planning, use your favorite app.Example$ nbb mdv
Next buses at Mare du Vivier:
- ⏰  6 min. (12:29)  9️⃣ 🚍 ▶ Centre Commercial Ulis 2
- ⏰ 27 min. (12:50)  9️⃣ 🚍 ▶ Gare de Jouy en Josas
- ⏰ 35 min. (12:58)  9️⃣ 🚍 ▶ Centre Commercial Ulis 2
- ⏰ 53 min. (13:16)  9️⃣ 🚍 ▶ Christ de SaclayInstallationPip Installation$ pip install next-bus-botDeveloper Installationclone the repo$ git clone git@github.com:paquiteau/nbb/create your venv with your favorite toolInstall locally the package with bells and whistles$ (venv) pip install -e .[dev,test]TODOautomatic aliasing of stops (based on initials)support for direction filteringAdd support for a bot front-end (slack, discord, IRC, etc).Extend the useful bus stops.Configurationnbb can be configured via its command line argument, or via a config filenbb_conf.toml, it usesTOML https://toml.io/en/syntax formatting. Suitable location for the config file are, loaded in this order:nbb/nbb_conf.toml~/.config/nbb_conf.tomlnbb_conf.tomlin current directory.nbb –config <file>An example (and default) config file is available innbb/nbb_conf, and a example config is:[cli]# Default parameters for the CLIpretty=true# Emoji in the terminalcompact=false# More condensed outputverbose=false# More verbose output, only for debugging.[stop.places]# List of bus stops, with their name and their ID# You can find the ID of a stop by looking at the URL of the stop on the IDFM website# https://data.iledefrance-mobilites.fr/explore/dataset/zones-de-correspondance/custom/?disjunctive.zdctype# The name of the step as a key does not matter,# it should only be consistent between the stops, stops.aliases and stop.directions sections.## The first stop defined is the default one.[stop.aliases]# Aliases for the stops defined in stop.places"Mare du Vivier"=["CEA Porte Sud","Neurospin","nsp","mdv"]"Moulon"=["ens"]"Raoul Dautry"=["CEA Porte Est"]"Place Marguerite Perey"=["Inria"][stop.direction_filter]# Direction filter for the stops defined in stop.places.# For each stop you can filter the direction"Mare du Vivier"=["Gare du Guichet","Centre Commercial Ulis 2"]# Only keep the buses that have either 'gare du guichet'  or  'Centre commercial ulis2' as destination."Moulon"=["Gare du Guichet","Centre Commercial Ulis 2"]# Only keep the gare du guichet  and Centre commercial ulis2
Package: nextbv2
Python量化交易实验代码基于python的币圈量化交易实验项目，next2.0版本。微信公众号：NextB二维码：一、安装命令pip install nextbv2二、使用命令命令行功能使用方式nextb-v2-data-processNextBv2下载、更新本地数据集工具详细情况，使用-h参数查看nextb-v2-data-staticsNextBv2本地数据集统计分析工具详细情况，使用-h参数查看nextb-v2-trade-simulationNextBv2本地仿真交易、回归测试工具详细情况，使用-h参数查看nextb-v2-trade-onlineNextBv2线上交易工具详细情况，使用-h参数查看三、配置文件与参数3.1 程序配置文件nextb-v2-data-process和nextb-v2-trade-online命令的-c参数使用该配置[NEXTBV2_CONFIG]API_KEY=123API_SECRET=123KLINES_INTERVAL=1hLIMIT=1000START_TIME=1640966399000PROXY=onHTTP_PROXY=http://127.0.0.1:7890HTTPS_PROXY=http://127.0.0.1:7890SYMBOLS=BNBUSDTDATA_PATH=./datas/serialize.dataAPI_KEY：币安的api_keyAPI_SECRET：币安的api_secretKLINES_INTERVAL：K线类型，取值包括：1m，3m，5m，15m，30m，1h，4h等LIMIT：每次请求数据上限值，取值范围[1, 1000]START_TIME：13位的时间戳，默认2022-01-01 00:00:00PROXY：是否使用代理，on：使用，off：不使用HTTP_PROXY：http类型代理地址HTTPS_PROXY：https类型代理地址SYMBOLS：需要获取的币种名称，币种间使用","隔开，如：BTCUSDT,ETHUSDT,BNBUSDTDATA_PATH：本地数据集保存路径3.2 交易参数配置nextb-v2-trade-simulation和nextb-v2-trade-online命令的-tc参数使用该配置。以下参数已经过调试，建议直接使用。{"symbol":"BNBBUSD","base":100.0,"down":1,"decline":0.03,"magnification":1.0,"max_quote":15000,"profit_ratio":0.013,"force_buy":false,"user":"nextb","sqlite_path":"./datas/trade.db","asset_symbol":"BUSD"}symbol：指定交易币种base：单次投入金额、单次追加投入金额down：价格连续下跌次数decline：价格下跌幅度magnification：每次投入金额、追加投入金额的倍数max_quote：最大投入金额profit_ratio：收益率force_buy：不考虑策略，只要空仓，则强制买入user：用户名sqlite_path：交易数据存储路径asset_symbol：交易资产币种四、回测结果4.1 BNBUSDT回测结果回测结果如下：回测时间：2022.01.01 00:00:00 - 2023-02-04 10:00:00交易次数：341次获利：421.482U最大投入金额：1100.0U平均投入成本：207.625U平均利润率：203.0%资金使用情况如下：资金（单位：U）使用次数占比10020259.24%2005817.01%300308.8%400195.57%50072.05%60072.05%70072.05%80051.47%90030.88%100020.59%110010.29%4.2 CAKEUSDT回测结果回测结果如下：回测时间：2022.01.01 00:00:00 - 2023-02-04 10:00:00交易次数：536次获利：677.802U最大投入金额：2600.0U平均投入成本：268.47U平均利润率：252.47%资金使用情况如下：资金资金（单位：U）使用次数占比10030356.53%2008716.23%300478.77%400305.6%500-700101.87%80081.49%90050.93%100040.75%110030.56%1200-150020.37%1600-260010.19%4.3 回测结论通过对2022年的数据进行回测，可得出如下结论：本策略与比价关系较弱，基本能保证不亏损本策略开始的时间越早，收益会越大本策略目前受进场时机影响，会导致收益差距较大
Package: nextcloud-api-wrapper
OverviewPython wrapper for NextCloud’s API.The lib tends to support most common features i.e. :User provisioningOCS ShareWebDAV (files)TagsActivity appNotifications appLDAP configurationCapabilitiesGroup FoldersTested with :NextCloud 14, python 3.7 (automated test)NextCloud 20, python 2.7NextCloud 20, python 3.6The main lines :NextCloud(URL, auth=…)provide you a connection manager. You can use it withwith … as nxc:to open a session.The session is the connection object that make the requests.The requests are initiated by a requester associated to an API wrapper.API wrappers are the definition of how to use the NextCloud REST API : it provide functions that will be attached to theNextCloudobject.Functions can return :
- Response object with attributesis_ok,data. Ifis_okis False, you can useget_error_message.
- Data objects (File, Tag…) or None.Data objects are useable as dict object or with attribute. They provide operations. If the operation fails, you’ll get an exception.For quick start, check outexamplesand thetests.Install# use 'pip3' for python3 or 'python -m pip' instead of pippipinstallnextcloud-api-wrapper# the associated python lib is nammed 'nextcloud'
# beware the conflictsFork ChangesThis version is a fork (mainly refactoring, fixes and optimization) ofnextcloud-API.TestingThe integration to Travis and CodeCov provided by the original repository are lost.There is now 2 branchesdevelopandmain.
Alltestsare validated usingtest.sh dockerbefore mergingdeveloptomain.DocumentationThe integration with readthedoc.io is lost.
You still can build the documentation with Sphinx source.Looking at the code docstrings is recommended.
Significative changes will be reported inCHANGELOG.mdfile.Too, you can check out the originalnextcloud API documentation, but the use could have changed.ContributingPull RequestAccording to the testing procedure, you shall fork and PR on branchdevelop.
Package: nextcloud-async
nextcloud-asyncAsynchronous Nextcloud ClientThis module provides an asyncio-friendly interface to public NextCloud APIs.Covered APIsFile Management APIUser Management APIGroup Management APIGroupFolders APIApp Management APILDAP Configuration APIStatus APIShare API (except Federated shares)Talk/spreed APINotifications APILogin Flow v2 APIRemote Wipe APIMaps APIAPIs To DoSharee APIReaction APIUser Preferences APIFederated Shares APICookbook APIPasswords APINotes APIDeck APICalendar CalDAV APITasks CalDAV APIContacts CardDAV APIIf you know of any APIs missing from this list, please open an issue athttps://github.com/aaronsegura/nextcloud-async/issueswith a link to
the API documentation so it can be added.  This project aims to eventually
cover any API provided by NextCloud and commonly used NextCloud apps.Example Usageimport httpx
import asyncio
from nextcloud_async import NextCloudAsync

nca = NextCloudAsync(
    client=httpx.AsyncClient(),
    endpoint='http://localhost:8181',
    user='user',
    password='password')

async def main():
    users = await nca.get_users()
    tasks = [nca.get_user(user) for user in users]
    results = await asyncio.gather(*tasks)
    for user_info in results:
        print(user_info)

if __name__ == "__main__":
    asyncio.run(main())This project is not endorsed or recognized in any way by the NextCloud
project.
Package: nextcloudmonitor
NextcloudMonitorPython wrapper around Nextcloud monitor apiInstallationpipinstallnextcloudmonitorQuickStart>>>fromnextcloudmonitorimportNextcloudMonitor>>>ncm=NextcloudMonitor("https://your_nextcloud_url","nextcloud_admin_username","nextcloud_app_password")>>>ncm.data['nextcloud']['system']['version']'16.0.5.1'>>>ncm.data['activeUsers']['last24hours']1Notes:The user must be a user that has access to the nextcloud monitor api (generally an admin user)The nextcloud app password should be generated from the nextcoud security settings page.Change Logv1.0.0 : Initial Releasev1.1.0 : Added basic error handling for api errorsv1.2.0 : Allow ssl verification bypassv1.2.1 : Privide more detailed feedback for api connection errorsv1.3.0 : Add more specific exceptions (Thanks @mib1185)v1.4.0 : Fix #4 key error (Thanks @mib1185)v1.5.0 : Support 'skip' parameter (Thanks @mib1185)
Package: nextcloud_news_filter
Nextcloud News FilterThis library is designed to filter Feeds fromNextcloud News, by marking them as read.
It is originally based onnextcloud-news-filterby mathisdt.State of this packageThis package is in an early stage of development. Things like configuration may change heavily in this early stage.UsageThis can be used directly on the system via a cli or as serverless functionInstallationCLIIf you want to use the CLI install it withpip install nextcloud_news_filter[cli]Scaleway Serverless functionA full documentation will follow. These are just the steps you need to follow.create a namespaceadd a function via UIGet the last Release file: nextcloud_news_filter-$TAG.zipupload this via UI or withscwcliadd your credentials as variables/secretscreate a cron trigger with your filter configurationConfigurationAll settings concerning the nextcloud server is done via environment variables:NEXTCLOUD_URL - the url of your instance e.g 'https://nextcloud.example.com'NEXTCLOUD_USER - your usernameNEXTCLOUD_PASS - the password of your userIt is using Basic authentication, if you have enabled 2-factor-authentication it will probably not workFilterThe json to configure your filters consists of two keysskipFeedsto ignore Feeds from all filters.
andfilterto actually filter feeds. These are the options:name: Name of the filter.MandatoryfeedId: Id of the feed the filter should be limited to (if not there, the filter rule is applied to all feeds).OptionalbodyRegex: Regex that is applied to search in body of the feed item.OptionaltitleRegex: Regex that is applied to search in the title of the feed entry.OptionalhoursAge: Maximum lifetime of the feed entry.Example:{"skipFeeds":[1678,1683,1681,1682,1684,1680,1659,1654,1658,1657,1656,1660,1655],"filter":[{"name":"heise+","feedId":1592,"titleRegex":"heise\\+|heise\\-Angebot|TechStage"},{"name":"All with Advertisement in Body","feedId":1594,"bodyRegex":"^Advertisement: "},{"name":"Feed older then one day, for feed 1595","feedId":1595,"hoursAge":24},{"name":"all > 20 Days all feeds (except for skipped ones)","hoursAge":480}]}
Package: nextcloud-notes-api
nextcloud-notes-apiANextcloud Notes appAPI wrapper.fromnextcloud_notes_apiimportNotesApi,Noteapi=NotesApi('username','pass','hostname')note=Note('Shopping List','Spam',favorite=True)api.create_note(note)nextcloud-notes-api is not supported nor endorsed by Nextcloud.Installationpipinstallnextcloud-notes-apiDocumentationThe docs are available onGithub Pages.ContributingPull requests are welcome. For major changes,
please open an issue first to discuss what you would like to change.Please make sure to update tests and documentation as appropriate.LicenseMIT
Package: nextcloudtalkbot
Nextcloud Talk BotPython 3 library for creating a Nextcloud Talk bot.This repository contains the code for a Nextcloud Talk bot that can perform various actions in a Nextcloud Talk room, such as sending files and listing activities.InstallationVia PIP:pip install nextcloudtalkbotor manually:Clone this repository:git clone https://github.com/sowoi/nextcloud-talk-bot.gitNLPTo use Spacy as a Natural Language Processor, it is necessary to download a model.python -m spacy download en_core_web_smThe command downloads the model for the English language file.DocumentationDocumentation can be found atreadthedocs.org.TranslationsThis project usesHosted Weblatefor translation.LicenseLicensed under the terms of GNU General Public License v3.0. See LICENSE file.Developer-Websitehttps://okxo.de
Package: nextcloudtasks
Nextcloud Tasks APIANextcloud TasksAPI wrapper with some useful examples for CLIfromnextcloudtasksimport*nextcloud=NextcloudTask("foo.bar.org:443/remote.php/dav/calendars/foobar/","myList")nextcloud.connect("username","password")nextcloud.printTODOs("summary,categories,created,priority")nextcloud.close()It is a custom API wrapper that is not developed nor maitained by Nextcloud.InstallationpipinstallnextcloudtasksExamplesThe following example is a tool that manages the a Nextcloud TODO list from the command line. It can be found inexamples.nc-tasks.rc[DEFAULT]
url=your.nextclouddomain.foo:443/remote.php/dav/calendars/youruser/
user=youruser
password=yourpassword
list=yourlistnc-tasks.py:Welcome to Nextcloud tasks CLI.   Type help or ? to list commands.
(Nextcloud Tasks) ?

Documented commands (type help <topic>):
========================================
add    complete  delete  exit  list  nextcloud  print_all
close  connect   edit    help  load  print    

(Nextcloud Tasks) load
(Nextcloud Tasks) print
+---------+--------------------------------------+------------+----------+
| SUMMARY |                 UID                  | RELATED-TO | PRIORITY |
+---------+--------------------------------------+------------+----------+
|  Task 2 | d4910d0e-e82f-474c-8b96-39d51a078820 |    None    |    0     |
|  Task 3 | e823277e-08da-4e38-a98e-67f6e0301eb3 |    None    |    0     |
|  Task 1 | de92dbda-afba-4bf3-b924-57b4db08f3f2 |    None    |    3     |
+---------+--------------------------------------+------------+----------+HackingPull requests are welcome.LicenseGPL
Package: nextcode-sdk
nextcode Python SDKNextcode-sdk is a python package for interfacing with Wuxi Nextcode services.Installation$pipinstallnextcode-sdk-U$pipinstallnextcode-sdk[jupyter]-UGetting startedimportnextcodeclient=nextcode.Client(api_key="xxx")qry=client.service("query")qry.status()qry.get_queries()qry.get_query(query_id)qry.list_templates()Jupyter notebooksTo start using the python sdk in Jupyter Notebooks you will first need to install it using thejupyterextras and then load the gor%magic extension.!pipinstallnextcode-sdk[jupyter]-U
%load_extnextcodeJupyter notebooks running on the Wuxi Nextcode servers are preconfigured with aGOR_API_KEYandGOR_PROJECT. If you are running outside such an environment you will need to configure your environment accordingly:%envGOR_API_KEY="***"%envGOR_API_PROJECT="test_project"# optionally set the LOG_QUERY environment variable to get more information about running queries.%envLOG_QUERY=1Now you can run gor with the following syntax:# simple one-liner%gorgor#dbsnp# | top 100# one-liner which outputs to local variable as a pandas dataframeresults=%gorgor#dbsnp# | top 100# multi-line statement%%gorgor#dbsnp#|top100# multi-line statement which writes results into project folder%%goruser_data/results.tsv<<nor#dbsnp#|top100# output results to local variable as a pandas dataframe%%gormyvar<<nor#dbsnp#|top100# read from a pandas dataframe in a local variable%%gornor[var:myvar]|top100# reference a local variablenum=10%%gornor[var:myvar]|top$num