Saravanan666/pypi-org huggingface dataset:
Package: nsqdriver
_   _   ____     ___    ____           _                       
 | \ | | / ___|   / _ \  |  _ \   _ __  (_) __   __   ___   _ __ 
 |  \| | \___ \  | | | | | | | | | '__| | | \ \ / /  / _ \ | '__|
 | |\  |  ___) | | |_| | | |_| | | |    | |  \ V /  |  __/ | |   
 |_| \_| |____/   \__\_\ |____/  |_|    |_|   \_/    \___| |_|简介NSQDriver为一套耐数®量子测控系列设备的Python通用驱动接口。可使用Python作为编程语言，基于此驱动接口可以实现对本公司测控设备的控制，进而完成各种超导量子芯片的表征实验和高保真门操作。+------------------------+
                              |          Python        |
                              |     +------------------+
                              |     |      NSQDriver   |
                              +------------------------+
                                     :     :         :
                           +----------     :         -----+
                           :               :              :
                           V               V              V
                     +-----------+   +-----------+   +-----------+   
                     |  Device A |   |  Device B |   |   QSYNC   |    
                     +-----------+   +-----------+   +-----------+NSQDriver接口可用于统一控制耐数®生产的Q100、MC、QSYNC等一系列量子测控仪器，可详细控制每台仪器每个OUT、IN通道的播放与采集行为，以及查看设备的运行状态等。在一个多台测控设备组成的多量子比特测控系统中，可以有效的在软件层面实现对系统中每台设备的详细控制。耐数®量子测控系列设备详细信息参考:耐数快速开始驱动接口的通用流程如下fromnsqdriverimportMCIDriver,QSYNCDriver# 实例化设备驱动接口driver=MCIDriver('127.0.0.1')qsync=QSYNCDriver('127.0.0.1')# 连接设备qsync.open()driver.open()# 初始化系统qsync.sync_system()# 相关参数，参数细节相关参考 8.可用参数列表driver.set('Shot',1024)NSWave接口NSWave是一种对于耐数®Sequence序列发生技术的控制接口，Sequence序列发生模式将量子测控所需的各种门的编辑由主控计算机直接生成波形转化成了设备实时计算提供了一套直观的时序编辑接口如下示例展示了使用nswave控制设备重复播放一段波形200次fromnsqdriverimportInsChannelimportnumpyasnpch=InsChannel()# 生成参数化波形通道实例frame_65e9=ch.ins_frame(6.5e9)# 生成一个frameframe_67e9=ch.ins_frame(6.7e9)# 生成一个framegaussian=ch.evlp_gaussian(4500e-9)# 生成一个高斯包络square=ch.evlp_square(2500e-9)# 生成一个方波包络wave1=gaussian*frame_67e9# 生成一段高斯包络的波形wave2=square*frame_65e9# 生成一段方波包络的波形ch.ins_reset_frame('phase',frame_65e9)ch.ins_reset_frame('phase',frame_67e9)ch.wait_for_trigger()# 等待触发到来# 循环播放200次 3μs延迟+ 7μs波形withch.ins_loop(times=200)as_loop:_loop.play_zero(3000e-9)_loop.inc_phase(frame_65e9,np.pi/2)_loop.play_wave(wave2)_loop.play_wave(wave1)
Package: nsqio
nsqioif you dont like the pynsq(which use tornado) way to interact with nsq, then this library may be suitable for youyou can use this library as the common way to write thingsImportantit is not stable yetFeaturesHttp Clientsupport all the method nsq http suppliedTcp ClientConnectionlow level connection.Readerreader from both lookupd for auto finding nsqdlist of known nsqd but they can not use together.above two can't use togetherWriterall the common method for nsqd writerNext Featuresdifferent reader protocol supportmore doc to writemore testsInstallpip install nsqioUsage examplesAll you need is a loop, then enjoy. you can refer to examples, as well.Consumer:fromnsqioimportcreate_readerfromnsqio.utilsimportget_loggerloop=asyncio.get_event_loop()asyncdefgo():try:reader=awaitcreate_reader(nsqd_tcp_addresses=['127.0.0.1:4150'],max_in_flight=200)awaitreader.subscribe('test_async_nsq','nsq')asyncformessageinreader.messages():print(message.body)awaitmessage.fin()exceptExceptionastmp:self.logger.exception(tmp)loop.run_until_complete(go())Producer:fromnsqioimportcreate_writerloop=asyncio.get_event_loop()asyncdefgo():writer=awaitcreate_writer(host='127.0.0.1',port=4150,heartbeat_interval=30000,feature_negotiation=True,tls_v1=True,snappy=False,deflate=False,deflate_level=0,loop=loop)foriinrange(100):awaitwriter.pub('test_async_nsq','test_async_nsq:{i}'.format(i=i))awaitwriter.dpub('test_async_nsq',i*1000,'test_delay_async_nsq:{i}'.format(i=i))loop.run_until_complete(go())RequirementsPython_ 3.6+https://www.python.orgnsq_http://nsq.iopython-snappyubuntu:sudo apt-get install libsnappy-devpip install python-snappycentos:sudo yum install snappy-develpip install python-snappymac:brew install snappy # snappy library from GoogleCPPFLAGS="-I/usr/local/include -L/usr/local/lib" pip install python-snappyLicenseThe nsqio is offered under MIT license.
Package: nsre
Non-String Regular ExpressionsNSRE (Non-String Regular Expressions) is a new spin at regular expressions.
It's really abstract, even compared to regular expressions as you know them,
but it's also pretty powerful for some uses.Here's the twist: what if regular expressions could, instead of matching just
character strings, match any sequence of anything?fromnsreimport*re=RegExp.from_ast(seq('hello, ')+(seq('foo')|seq('bar')))assertre.match('hello, foo')The main goal here is matching NLU grammars when there is several possible
interpretations of a single word, however there is a lot of other things that
you could do. You just need to understand what NSRE is and apply it to
something.Note— This is inspired bythis articlefrom Russ Cox,
which explains how Thompson NFA work, except that I needed to add some
features and then the implementation is much less elegant because I actually
don't know what I'm doing. But it seems to be working.Documentation✨Documentation is there✨LicenceThis library is provided under the terms of theWTFPL.If you find it useful, you can have a look at thecontributorspage to
know who helped.
Package: ns-rep-imports
Generates Realitive info with a camel to snake conversion of class name.>>>fromrelimportmod_relasRelInfo>>>obj_str='awt.uno.XInterface'>>>ns='awt.grid'>>>rel=RelInfo.get_rel_import(in_str=obj_str,ns=ns)>>>print(f"from{rel.frm}import{rel.imp}")from..uno.x_interfaceimportXInterface
Package: nsrr
nsrrnsrr- a Python-based client library is available for users to access NSSR Cloud resources. This library is compatible with Mac, Linux and Windows (tested on win10 PowerShell with admin privileges).Installationpip install nsrrIf both version of Python i.e., Python2.x and Python3.x are installed in the OS then you can use the command below to call Python3 based pip using:pip3 install nsrrorpython3 -m pip install nsrrUsageThis section of the documentation covers usage of 'CFS' dataset as an example.To learn about different parameters, use help argument:nsrr --helpTo list approved datasets access of a user:nsrr --list-accessTo list all the files of the dataset:nsrr cfs --list-filesTo list all the directories of the dataset:nsrr cfs --list-directoriesTo download based on a folder or file path:nsrr -d cfs/forms
nsrr -d cfs/dataset/cfs-data-dictionary-0.5.0-variables.csv
nsrr -d cfs/polysomnography/annotations-events-nsrrTo download entire dataset:nsrr -d cfsTo decompress EDFZ files into EDF files, and delete the compressed originals:nsrr -d cfs --decompressTo learn more about EDFZ file format, visitEDFZ: working with compressed EDFs{:target="_blank"}.To list all the subjects of a specific dataset:nsrr cfs --list-subjectsTo download subject specific files from a dataset:nsrr -d cfs --subject 800002To provide password in non-interactive way:nsrr -d cfs --token-file token.txtData Integrity check is performed via the following two options.(Recommended) md5 checksum value is unique to every file. This option verifies that the downloaded file is same as being served by NSRR using md5 checksum value comparison.file size check to match with download size of the file hosted by NSRR.To skip memory intensive data-integrity check:nsrr cfs -d --no-md5To forcefully download the whole dataset:nsrr -d cfs --forceTo list the version of the nsrr library:nsrr -vDeveloper guidePrerequisitesFollowing installation are necessary to start development,Python (version >=3.6)Auth server is runningInitializationUpdate Auth server address in the 'nsrr.py' fileBuild and publish packageDelete any existing distributions in the dist folder:rm -rf dist/*Update setup.py, nsrr/main.py and nsrr/init.py to bump version number:ex: vi nsrr/__init__.py
__version__ = "x.x.x"Run build command:python3 setup.py sdist bdist_wheelUpdate test pypi with the latest version:twine upload --repository-url https://test.pypi.org/legacy/ dist/*Upload pypi with the latest version:twine upload -u <username> -p <password> dist/*Notes:It is recommended to use Python version 3.8.xCompatible with Windows (tested on win10 powershell with admin privileges), Mac and Linux systemsData Integrity check is performed via the following two options(Recommended) md5 checksum value is unique to every file. This option verifies that the downloaded file is exactly the same as being served by NSRR using md5 checksum value comparison. Use '--no-md5' to skip this optionfile size check to match with download size of the file hosted by NSRR
Package: nsrt-mk3-dev
IntroductionThe NSRT_mk3_Dev is a new variant of the NSRT_mk3 series that introduces an open virtual Com port
communication protocol. That means that the instrument can be used on any platform that has a generic
driver to support the CDC (Communication) USB class. Nowadays most platforms support that class,
including Windows, Mac and Linux.
That instrument is targeted at developers. Because its communication protocol is open, developers can
design their own application supporting the instrument.
In addition to the Com port, the NSRT_mk3_Dev can have an optional USB Audio interface to stream
the actual Audio signal captured by the microphone.UsageConnect the NSRT mk3 dev to the computerCheck the virtual Com port under which it was enumerated:Windows: WIN + type: Device ManagerLook for the extra device:USB Serial Device (COM20)Indicating the device can be found on COM20Linux: type:dmesg | grep -i usband look for:[22339.508035] usb 1-1.2: Product: NSRT_mk3_Dev
[22339.508044] usb 1-1.2: Manufacturer: Convergence Instruments
[22339.520711] cdc_acm 1-1.2:1.1: ttyACM0: USB ACM deviceIndicating that the device can be found on /dev/ttyACM0Install the package:pip install nsrt-mk3-devCreate a script to access the device:import nsrt_mk3_dev

nsrt = nsrt_mk3_dev.NsrtMk3Dev('COM20')
model = nsrt.read_model()

serial_number  = nsrt.read_sn()
firmware_revision = nsrt.read_fw_rev()
date_of_birth = nsrt.read_dob()
date_of_calibration = nsrt.read_doc()
print(f'Sound level meter model: {model}\n'
      f'serial number: {serial_number}, firmware revision number: {firmware_revision}\n'
      f'manufactured on: {date_of_birth}, calibrated on: {date_of_calibration}')

leq_level = nsrt.read_leq()
weighting = nsrt.read_weighting()
weighted_level = nsrt.read_level()
print(f'current leq level: {leq_level:0.2f} dB, {weighting} value: {weighted_level:0.2f}')TestThe GIT repo contains a pytest which tests all the API functions. The test_device_parameters testcase will need to be
updated to the device under test as it reads out device specific data. To execute the test run the following command
in the GIT repo’s root directory:pytest tests
Package: nss
NSS is a database operation module made by Nanshan team.
It is simple and fast to use nssql.
The module can create database, create list, read database, change database, associate operation, import and export.
Functions included in this module:
new_sql(sql_name=’default_sql’,password=’None’,existet=False): create a new database
cursor(name=1): create cursor
new_list(sql_name=’default_sql’,list_name=’list0’,existet=False,password=’None’): create list
new_position(sql_name=’default_sql’,list_name=’list0’,position_name=’position0’,data=’NanShanSQL’,password=’None’): create location and add data
close_sql(sql=’default_sql’): close the database to open a new database
open_sql(sql=’default_sql’,password=’None’): get the contents of the database
change_sql(sql_name=’default_sql’,list_name=’list0’,position_name=’position0’,new_data=’NanShanSQL’,password=’None’): change the contents of the database
change_password(sql=’default_sql’,new_password=’None’): if there is a password, this function can change the password
new_relation(sql=’default_sql’,obj1=’default_sql\list0\position0’,obj2=’default_sql\list1\position0’,password=’None’): create a new relation
open_relation(sql=’default_sql’,obj=’default_sql\list0\position0’,password=’None’): open the data corresponding to the Association
del_sql(sql_name=’default_sql’,password=’None’): delete database
export_sql(ea=’nssea’,sql_name=’default_sql’,file_position=’D:',password=’None’): export the database to a file
import_sql(file=’D:\default_sql.nss’,sql_name=’default_sql’,existet=False,password=’None’): import the database file
del_every_sql(): delete all databases
Package: nss2
NSS2 is a database operation module made by Nanshan team.
It is simple and fast to use nssql.
The module can create database, create list, read database, change database, associate operation, import and export.
Functions included in this module:
new_sql(sql_name=’default_sql’,password=’None’,existet=False): create a new database
cursor(name=1): create cursor
new_list(sql_name=’default_sql’,list_name=’list0’,existet=False,password=’None’): create list
new_position(sql_name=’default_sql’,list_name=’list0’,position_name=’position0’,data=’NanShanSQL’,password=’None’): create location and add data
del_position(sql_name=’default_sql’,obj=’default_sql\list1\position0’,password=’None’):Delete a position
close_sql(sql=’default_sql’): close the database to open a new database
open_sql(sql=’default_sql’,password=’None’): get the contents of the database
change_sql(sql_name=’default_sql’,list_name=’list0’,position_name=’position0’,new_data=’NanShanSQL’,password=’None’): change the contents of the database
change_password(sql=’default_sql’,new_password=’None’): if there is a password, this function can change the password
new_relation(sql=’default_sql’,obj1=’default_sql\list0\position0’,obj2=’default_sql\list1\position0’,password=’None’): create a new relation
open_relation(sql=’default_sql’,obj=’default_sql\list0\position0’,password=’None’): open the data corresponding to the Association
del_sql(sql_name=’default_sql’,password=’None’): delete database
export_sql(ea=’nssea’,sql_name=’default_sql’,file_position=’D:',password=’None’): export the database to a file
import_sql(file=’D:\default_sql.nss’,sql_name=’default_sql’,existet=False,password=’None’): import the database file
open_sql_set():Get which databases in the database set
del_every_sql(): delete all databases
Package: nss3
NSS3 is a database operation module made by Nanshan team.
It is simple and fast to use nssql.
The module can create database, create list, read database, change database, associate operation, import and export.
Functions included in this module:
new_sql(sql_name=’default_sql’,password=’None’,existet=False): create a new database
cursor(name=1): create cursor
new_list(sql_name=’default_sql’,list_name=’list0’,existet=False,password=’None’): create list
new_position(sql_name=’default_sql’,list_name=’list0’,position_name=’position0’,data=’NanShanSQL’,password=’None’): create location and add data
new_position_file(sql_name=’default_sql’,list_name=’list0’,position_name=’position2’,file=’File’,password=’None’):Add files to a position
open_position_file(sql_name=’default_sql’,list_name=’list0’,position_name=’position2’,password=’None’):Open a file in a position
del_position(sql_name=’default_sql’,obj=’default_sql\list1\position0’,password=’None’):Delete a position
close_sql(sql=’default_sql’): close the database to open a new database
open_sql(sql=’default_sql’,password=’None’): get the contents of the database
change_sql(sql_name=’default_sql’,list_name=’list0’,position_name=’position0’,new_data=’NanShanSQL’,password=’None’): change the contents of the database
change_password(sql=’default_sql’,new_password=’None’): if there is a password, this function can change the password
new_relation(sql=’default_sql’,obj1=’default_sql\list0\position0’,obj2=’default_sql\list1\position0’,password=’None’): create a new relation
open_relation(sql=’default_sql’,obj=’default_sql\list0\position0’,password=’None’): open the data corresponding to the Association
del_relation(sql=’default_sql’,obj=’default_sql\list0\position0’,password=’None’):Delete a relation
del_sql(sql_name=’default_sql’,password=’None’): delete database
export_sql(ea=’nssea’,sql_name=’default_sql’,file_position=’D:',password=’None’): export the database to a file
import_sql(file=’D:\default_sql.nss’,sql_name=’default_sql’,existet=False,password=’None’): import the database file
open_sql_set():Get which databases in the database set
del_every_sql(): delete all databases
Package: nssacPreCommitHook
nssacPreCommitHookInstallLinux and MacOS XSystem wide installationsudopipinstallnssacPreCommitHookUser local installationpipinstallnssacPreCommitHook--userWindowsSystem installation(Instructions on how to run a console as administrator)pipinstallnssacPreCommitHookUser local installation (not recommeded as the script path is not in the search PATH)pipinstallnssacPreCommitHook--userConfigurationThe configuration uses aJSON schemato specify the license and the copyright statements to be used.Two examples are provided:Example 1Example 2Enable nssacPreCommitHook for a repositoryDownloadExampleand save it.preCommitHook.py--init-rrepository-cPath_to_ExampleIf you saved the example as repository/.nssac.json you may ommit-c Path_to_ExampleSuported file formats:The patterns section of the example currently supports the following formatsC/C++".cpp", ".hpp", ".c", ".h", "*.h.in"Java"*.java"XML".xsd", ".xml", "*.rng"Shell"*.sh"CMake"*.cmake", "CMakeLists.txt"Python"*.py"It is not difficult to add more file types often is is just adding another pattern to the include section of an exiting pattern.
Package: nsscurves
Modelo Nelson Siegel Svensson:Pacote para calibrar parâmetros do modelo e calcular modelo.Através deste pacote é possÃ­vel passar um DataFrame com três colunas:1ª Coluna: Prazo em dias ou anos;2ª Coluna: Valores a serem calculados;3ª Coluna: Peso a ser atribuído.Após a calibragem dos parâmetros pode-se utilizar o modelo NSS para 
retornar o valor atravs do modelo de Nelson Siegel Svensson.
Package: ns-serial
SerialIOPython support for serial I/Opip install ns-serialimportns-serialasserialThis module was originally created by novus-alex,https://github.com/novus-alexhttps://github.com/novus-alex/SerialIOCopyright (c) 2021 by Alexandre HachetPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Quick Examplesimportns-serialasserialhComm=serial.Serial("YourPort",Baudrate,Timeout)data=serial.read(hComm)# Wait until receive data from serial port
Package: nssjson
nssjson is a (not so) simple, fast, complete, correct and extensibleJSONencoder and decoder for Python 2.5+ and Python 3.3+.  It is pure Python code with no
dependencies, but includes an optional C extension for a serious speed boost.nssjsonis a fork ofsimplejsonthat fulfills my need of having a good performance JSON
encoder/decoder able to handle also Python’s datetime and UUID, even if with an admittedly
non-standard and faulty heuristic that wasnot consideredwithin the scope of the original
product.Practically, the difference is that, out of the box, you have:>>>importdatetime,uuid>>>importnssjson>>>now=datetime.datetime.now()>>>uid=uuid.uuid1()>>>nssjson.loads(...nssjson.dumps([uid,now],iso_datetime=True,handle_uuid=True),...iso_datetime=True,handle_uuid=True)==[uid,now]TrueChanges0.7 (2015-08-07)Optionally serialize/deserialize UUIDs0.6 (2015-05-31)Avoid broken JSON output for int/long/float subclasses reimplementing the __str__()
and/or __repr__() methods0.5 (2014-12-21)Fix memory leak when an error occurs encoding dict itemsOverhaul of load() and dump() signaturesDrop Sphinx documentation0.4 (2014-06-28)Complete the fix against negative index parameter to raw_decode()Fix C encoder initializationCatch invalid item_sort_key argument to C encoder0.3 (2014-04-16)Update version in nssjson/__init__.py at release timeCatch negative index parameter to the C scan_once() function, mimickinghttp://hg.python.org/cpython/rev/ef52ae1675550.2 (2014-03-22)Remove dead code noticed by Anatoly TechtonikUse an interned instance of the UTC timezone instead of passing it as an argument to
function/constructors0.1 (2014-03-19)Fork of simplejson 3.3.3Add support for Python datetimes, dates and times
(seehttps://github.com/simplejson/simplejson/issues/86andhttps://github.com/simplejson/simplejson/pull/89)Fix compatibility with Python 3.4 unittests
Package: nssql
NSSQL is a database operation module made by Nanshan team.
It is simple and fast to use nssql.
The module can create database, create list, read database, change database, associate operation, import and export.
Functions included in this module:
new_sql(sql_name=’default_sql’,password=’None’,existet=False): create a new database
cursor(name=1): create cursor
new_list(sql_name=’default_sql’,list_name=’list0’,existet=False,password=’None’): create list
new_position(sql_name=’default_sql’,list_name=’list0’,position_name=’position0’,data=’NanShanSQL’,password=’None’): create location and add data
close_sql(sql=’default_sql’): close the database to open a new database
open_sql(sql=’default_sql’,password=’None’): get the contents of the database
change_sql(sql_name=’default_sql’,list_name=’list0’,position_name=’position0’,new_data=’NanShanSQL’,password=’None’): change the contents of the database
change_password(sql=’default_sql’,new_password=’None’): if there is a password, this function can change the password
new_relation(sql=’default_sql’,obj1=’default_sql\list0\position0’,obj2=’default_sql\list1\position0’,password=’None’): create a new relation
open_relation(sql=’default_sql’,obj=’default_sql\list0\position0’,password=’None’): open the data corresponding to the Association
del_sql(sql_name=’default_sql’,password=’None’): delete database
export_sql(ea=’nssea’,sql_name=’default_sql’,file_position=’D:',password=’None’): export the database to a file
import_sql(file=’D:\default_sql.nss’,sql_name=’default_sql’,existet=False,password=’None’): import the database file
del_every_sql(): delete all databases
Package: ns_stitchclient
python-stitch-clientA Stitch Import API client library for pythonUseThis library depends on python3 - if that's not your default python, try this:›mkvirtualenv-ppython3stitchNext, install this library:›workonstitch
›pipinstallstitchclientNow you're ready to use the library. From the samevirtualenv:fromstitchclient.clientimportClientwithClient(int(os.environ['STITCH_CLIENT_ID']),os.environ['STITCH_TOKEN'],callback_function=print)asc:foriinrange(1,10):c.push({'action':'upsert','table_name':'test_table','key_names':['id'],'sequence':i,'data':{'id':i,'value':'abc'}},i)Licensepython-stitch-client is Copyright © 2016 Stitch and Distributed under
the Apache License Version 2.0transit-python is Copyright © 2014-2016 Cognitect and Distributed
under the Apache License Version 2.0