Saravanan666/pypi-org huggingface dataset:
Package: ndex-webapp-python-exporters
ndex-webapp-python-exportersCommand line exporters written in Python used by the NDEx REST service.Supported ExportersGraphmlToolsndex_exporters.pyTakes file inNDEx CXformat and converts to format specified as a command line argumentDependenciesargparsendex2CompatibilityPython 3.5+Installationpip install ndex_webapp_python_exportersOr directly from repo (requires git)git clone https://github.com/ndexbio/ndex_webapp_python_exporters.git
cd ndex_webapp_python_exporters
python setup.py installExample usageThe example below assumesfoo.cxis a file inNDEx CXformatcat foo.cx | ndex_exporters.py graphml > foo.graphmlNOTE:For the above example, the networkThyroid Cancercan be downloaded
as a file namedfoo.cxinNDEx CXformat.CreditsGraphmlexporter derived from code developed by Cecilia ZhangThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2018-12-4)Fixed bug where list datatypes were not being stored as string in graphml exporterIssue #10.1.0 (2018-11-29)First release on PyPI.
Package: ndfind
ndfindA collection of three cython-optimized search functions for NumPy. When the required value is found,
they return immediately, without scanning the whole array. It can result in 1000x or larger speedups for
huge arrays if the value is located close to the the beginning of the array.Installation:pip install ndfindContentsBasic usage:find(a, v)finds v in a, returns index of the first match or -1 if not foundfirst_above(a, v)finds first element in a that is strictly greater thanv,
returns its index or -1 if not foundfirst_nonzero(a)finds the first nonzero element in a,
returns its index or -1 if not foundAdvanced usage:find(a, v, rtol=1e-05, atol=1e-08, sorted=False, missing=-1, raises=False)Returns the index of the first element inaequal tov.
If either a or v (or both) is of floating type, the parametersatol(absolute tolerance) andrtol(relative tolerance)
are used for comparison (seenp.isclose()for details).Otherwise, returns themissingvalue (-1 by default)
or raises aValueErrorifraises=True.For example,>>>find([3,1,4,1,5],4)2>>>find([1,2,3],7)-1>>>find([1.1,1.2,1.3],1.2)1>>>find(np.arange(0,1,0.1),0.3)3>>>find([[3,8,4],[5,2,7]],7)(1,2)>>>find([[3,8,4],[5,2,7]],9)-1>>>find([999980.,999990.,1e6],1e6)1>>>find([999980.,999990.,1e6],1e6,rtol=1e-9)2first_above(a, v, sorted=False, missing=-1, raises=False)Returns the index of the first element inastrictly greater thanv.
If either a or v (or both) is of floating type, the parametersatol(absolute tolerance) andrtol(relative tolerance)
are used for comparison (seenp.isclose()for details).In 2D and above the the values inaare always tested and returned in
row-major, C-style order.If there is no value inagreater thanv, returns thedefaultvalue
(-1 by default) or raises aValueErrorifraises=True.sorted, use binary search to speed things up (works only if the array is sorted)For example,>>>first_above([4,5,8,2,7],6)2>>>first_above([[4,5,8],[2,7,3]],6)(0,2)>>>first_above([5,6,7],9)3first_nonzero(a, missing=-1, raises=False)Returns the index of the first nonzero element ina.In 2D and above the the values inaare always tested and returned in
row-major, C-style order.For example,>>>first_nonzero([0,0,7,0,5])2>>>first_nonzero([False,True,False,False,True])1>>>first_nonzero([[0,0,0,0],[0,0,5,3]])(1,2)TestingRunpytestin the project root.
Package: ndg.clap
Table of ContentsIntroductionGetting StartedRoom for ImprovementIntroductionCLAPis the command-line argument parser that builds itself.It is designed to be easy to use, by building itself based on a function’s
signature and documentation.This project is not intended to be used for simple scripts, but rather
command-line tools that have multiple sub-commands and options. (I would like
to add support for simple scripts in the future.)Getting StartedRequires Python 3.8+ and usesNumPy-style docstrings.Available on PyPI asndg.clap. Install it with PIP.python-mpipinstall-Undg.clapFor an example project, seefuji.Room for ImprovementAdd support for simple scriptsAdd documentation using SphinxAdd unit testsAdd examplesWrite a better README
Package: ndg-oauth-client
This is an OAuth 2.0 client library and WSGI middleware filter.Releases0.6.0Clean up of password-based authentication of client by authorization serverRemoval of redundant MyProxy hooks0.5.1New pseudo release to keep in sync with ndg_oauth_server package versioning. No
changes from 0.4.0.  New ndg_oauth_server 0.5.1 contains enhancements from W
van Engen including support for password based authentication for clients. See
ndg_oauth_server package for details.0.4.0Revised examples in ndg.oauth.client.examples.  bearer_tok uses bearer token
to secure access to a simple html page on a resource server, slcs is an
example protecting a short-lived credential service aka Online Certificate
Authority.  This requires the ContrailOnlineCAClient package and should be
used in conjunction with the equivalent example in the ndg_oauth_server
example.Revised ndg.oauth.client.lib.oauth2client.Oauth2Client to include support for
bearer access token passed in Authorization header to resource server.PrerequisitesThis has been developed and tested for Python 2.6 and 2.7.InstallationInstallation can be performed using easy_install or pip.ConfigurationExamples are contained in the examples/ sub-folder:bearer_tok/:This configures a simple test application that uses string based tokens.slcs/:Bearer token example protecting a Short-Lived Credential Service or OnlineCA.
ContrailOnlineCAService package is needed for this example.The examples should be used in conjunction with the ndg_oauth_server package.
Package: ndg-oauth-server
This is an OAuth 2.0 server library and WSGI middleware filter.Releases0.6.0Clean up of password-based authentication of client by authorization serverRemoval of redundant MyProxy hooks0.5.1Integrated enhancements from Willem van Engen including:password-based client authentication, which is a commonly used client
authentication methodresource authentication for the check_token endpoint, to avoid brute-force
attacks on token check; also provides a starting point for audience-restricted
tokens and resource-restricted attribute releasereturn user attribute from check_token endpoint, so that the resource knows
what the user is; attribute name user_name according to CloudFoundryResource and client authentication use the same classes, and now are instantiated
with a string indicating their use (to give meaningful log messages). The
client_authenticator interface was removed, since all authenticators can derive
directly from authenticator_interface, since they’re both used for clients and
resources; they were also renamed to make that clear (removing _client).In client_register.ini and resource_register.ini (the latter is new) the field
secret is optional.Client code is unchanged.0.4.0Revised examples in ndg.oauth.client.examples.  bearer_tok uses bearer token
to secure access to a simple html page on a resource server, slcs is an
example protecting a short-lived credential service aka. Online Certificate
Authority.  This requires the ContrailOnlineCAService package and should be
used in conjunction with the equivalent example in the ndg_oauth_client
example.Added discrete WSGI resource server middleware
ndg.oauth.server.wsgi.resource_server.Oauth2ResourceServerMiddlewareIncludes support for bearer access token passed in Authorization header to
resource server.PrerequisitesThis has been developed and tested for Python 2.6 and 2.7.InstallationInstallation can be performed using easy_install or pip.ConfigurationExamples are contained in the examples/ sub-folder:bearer_tok/:This configures a simple test application that uses string based tokens.slcs/:Bearer token example protecting a Short-Lived Credential Service or OnlineCA.
ContrailOnlineCAService package is needed for this example.The examples should be used in conjunction with the ndg_oauth_client package.
Package: ndg-saml
SAML 2.0 implementation for use with the Earth System Grid Federation Attribute
and Authorisation Query interfaces.  The implementation is based on the Java
OpenSAML libraries.  An implementation is provided with ElementTree but it can
easily be extended to use other Python XML parsers.Releases0.8.3Minor fixes for PyOpenSSL imports0.8.2Allow for authorisation decision query response not setting Action namespace
correctly. - Accept response with warning.0.8.1Fixes for SAML response processing - allow for more liberal check of response type
and for case for status message value not returned0.8.0Re-factored to use ndg-httpsclient for client HTTP calls in place of M2Crypto.decoupled SAML bindings classes from types.0.7.0add command line script for making attribute and authorisation decision
query client calls.0.6.0added support for SAML 2.0 profile of XACML v2.0
(http://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-saml-profile-spec-os.pdf),
specifically the SAML request extensions:XACMLAuthzDecisionQueryandXACMLAuthzDecisionStatement.  This an alternative to the SAML definedAuthzDecisionQuery.  It enables a richer functionality for expressing
queries and authorisation decisions taking advantage of the full
capabilities of a XACML PDP.fixed bug in SAML SOAP binding code:RequestBaseSOAPBindingand derived
classes to act as a query factory, instead of container, for thread
safety.Thanks to Richard Wilkinson for these contributions.0.5.5allow passing a client certificate chain in client HTTPS requests0.5.4fix forndg.saml.saml2.binding.soap.server.wsgi.queryinterface.SOAPQueryInterfaceMiddleware:
bug in issuerFormat property setter - settingissuerNamevalue.0.5.3fix forndg.soap.utils.etree.prettyPrintfor undeclared Nss.0.5.2fix for applying clock skew property inqueryinterfaceWSGI middleware,
and various minor fixes forclassfactorymodule andm2crytpoutilities.0.5.1fix for date time parsing where no seconds fraction is present, fixed
error message forInResponseToID check for Subject Query.0.5adds WSGI middleware and clients for SAML SOAP binding and assertion
query/request profile.It is not a complete implementation of SAML 2.0.  Only those components required
for the NERC DataGrid have been provided (Attribute and AuthZ Decision Query/
Response).  Where possible, stubs have been provided for other classes.
Package: ndic
Python package for NAVER English-Korean and Korean-English dictionariesIntroductionSearch of both English-Korean and Korean-English dictionaries is
provided.RequirementsNdic works by crawling the webhttp://endic.naver.com/. To crawl, it
usesRequestsandBeautifulSoup.Therefore, you should use it inInternet Environments.Ndic supports Python 2.7 & 3.4–3.7 becauseRequests officially
supports these versions.InstallationInstall via pip:$pipinstallndicUsageThe usage is very simple.Begin by importing the Ndic module:>>>importndicEntering an English word as thesearchfunction argument will return the
corresponding Korean word(s).>>>ndic.search('apple')'사과'Conversely, entering a Korean word as thesearchfunction argument will return
the corresponding English word(s).>>>ndic.search('안녕하세요')'Hi!'If the word you search has multiple meanings, you can choose the meaning of the desired order.Unless you set anyxthvalue, you will get the first meaning of the word.>>>ndic.search('말',1)# 1st meaning'(언어) word, language, speech, (literary) tongue'>>>ndic.search('말',2)# 2nd meaning'(동물) horse'Phrases may also be searched.>>>ndic.search('in order to')'(목적) 위하여'Entering a nonexistent word as thesearchfunction argument will return the
empty string.>>>ndic.search("aslkjfwe")''>>>ndic.search("아댜리야")''If your network connection is lost, you will get below error message.>>>ndic.search('...')NdicConnectionError:Networkconnectionislost.PleasechecktheconnectiontotheInternet.Command Line InterfaceFurthermore, Ndic supports CLI(Command Line System).So you can use it
in command line and get the return value of thesearchfuction in terminals. It works
byClick.$ndiclove(특히가족・친구에대한)사랑$ndicget--xth2# or -x 2얻다,입수하다;가지다(obtain)
Package: ndicapi
HistoryProgram:   NDI Combined API C Interface LibraryCreator:   David GobbiLanguage:  EnglishAuthors:David GobbiAndras Lassolassoan@queensu.caAdam Rankinarankin@robarts.caStephen Thompsons.thompson@ucl.ac.ukOverviewThese are binary python wheels of the PlusToolKits's ndicapi library (https://github.com/PlusToolkit/ndicapi).
The CI scripts where developed on and hosted by (https://github.com/scikit-surgery/ndicapi).This package provides provides a straightforward Python interface to AURORA, POLARIS, and VEGA systems manufactured by Northern Digital Inc. This library is provided by the Plus library, and is not supported by Northern Digital Inc.AcknowledgmentsThe implementation of continuous integration and deployment was Supported by theWellcome Trustand theEPSRCas part of theWellcome Centre for Interventional and Surgical Sciences.
The ndicapi library was developed as part of thePLUS Toolkit.
Package: ndicts
DescriptionNested dictionary structures emerge every time there is some sort hierarchy
in the data. Trees, archives, the chapters and sections in a book,
these are all examples where you will likely find nested loops of data.Python does not have a built-in data type for nested mappings.
Dictionaries can be used, however there many inconveniences and limitations.
Two above all: getting items requires to open and close several square brackets
(eg.d[level1][level2]...[levelN]),
and iterating will only access the first layer,
so nested for loops are needed to iterate through all the values.Thendictspackage aims to tackle the main issues of nested dictionaries,
exposing an interface with minimum differences from dictionaries themselves.NestedDictis aMutableMappingat its core,
therefore all familiar dictionary methods are available
and the overall behaviour similar.If you need to perform simple mathematical operations with your nested data,
useDataDict. In addition to allowing arithmetics,DataDictsborrow some methods that you would expect from apandasDataFrame.Finally, this is a simple project for simple needs.
Consider usingpandasMultiIndexfor more functionalities!InstallationInstallndictswithpip.pip install ndictsOverviewImportNestedDictandDataDict.>>>fromndictsimportDataDict,NestedDictCreate aNestedDictfrom a dictionary.>>>book={..."Book 1":{..."Section 1":"The Eve of the War",..."Section 2":"The Falling Star"...},..."Book 2":{..."Section 1":"Under Foot",..."Section 2":{"Paragraph 1":"After eating we crept back to the scullery"}...}...}>>>nd=NestedDict(book)Get items more conveniently than with standard dictionaries.>>># NestedDict>>>nd["Book 1","Section 1"]'The Eve of the War'>>># dict>>>book["Book 1"]["Section 2"]'The Falling Star'Iterate over aNestedDict.>>>forkeyinnd:...print(key)('Book 1', 'Section 1')('Book 1', 'Section 2')('Book 2', 'Section 1')('Book 2', 'Section 2', 'Paragraph 1')Documentationhttps://edd313.github.io/ndicts/Licencendictsis licensed under the MIT license.
Package: nDimensional
nd-core-libCore library for nDimensional. Currently this contains only add and sub method and it can be used like this,import nDimensional as nD

print(nD.add(1, 2))Table of ContentsInstallUsageInstallTo test the package in local, go intond-core-lib(root folder) and runpip install -e .UsageTo create the distribution,python setup.py sdistInstall twinpip install twineTo upload the distribution to PyPI,twine upload dist/* --verboseTo run unit tests,pytestTo run the tests against all the supported Python versions,tox
Package: ndindex
ndindexA Python library for manipulating indices of ndarrays.The documentation for ndindex can be found athttps://quansight-labs.github.io/ndindex/ndindex is a library that allows representing and manipulating objects that
can be valid indices to numpy arrays, i.e., slices, integers, ellipses,
None, integer and boolean arrays, and tuples thereof. The goals of the library
areProvide a uniform API to manipulate these objects. Unlike the standard index
objects themselves likeslice,int, andtuple, which do not share any
methods in common related to being indices, ndindex classes can all be
manipulated uniformly. For example,idx.argsalways gives the arguments
used to constructidx.Give 100% correct semantics as defined by numpy's ndarray. This means that
ndindex will not make a transformation on an index object unless it is
correct for all possible input array shapes. The only exception to this rule
is that ndindex assumes that any given index will not raise IndexError (for
instance, from an out of bounds integer index or from too few dimensions).
For those operations where the array shape is known, there is areduce()method to reduce an index to a simpler index that is equivalent for the
given shape.Enable useful transformation and manipulation functions on index objects.ExamplesCanonicalize a slice (over a given shape, or independent of array shape)>>>fromndindeximport*>>>Slice(-2,10,3).reduce()Slice(-2,10,2)>>>Slice(-2,10,3).reduce(5)Slice(3,4,1)Compute the maximum length of a sliced axis>>>importnumpyasnp>>>len(Slice(2,10,3))3>>>len(np.arange(10)[2:10:3])3Compute the shape of an array of shape(10, 20)indexed by[0, 0:10]>>>Tuple(0,slice(0,10)).newshape((10,20))(10,)>>>np.ones((10,20))[0,0:10].shape(10,)Check if an indexed array would be empty>>>Tuple(0,...,Slice(10,20)).isempty((3,4,5))True>>>np.ones((3,4,5))[0,...,10:20]array([],shape=(4,0),dtype=float64)See thedocumentationfor full details
on what ndindex can do.LicenseMIT LicenseAcknowledgmentsndindex development is supported byQuansight
Labsand is sponsored in part bythe D. E.
Shaw group. The D. E. Shaw group collaborates with
Quansight on numerous open source projects, including Numba, Dask and Project
Jupyter.
Package: ndip-checker
说明本脚本可以检查 病程记录/培养/涂片 三种检查项的数据是否有问题。项目基于python2.7，因MySQLDB尚未支持python3。安装与使用创建虚拟环境：virtualenv venv -p python2.7激活虚拟环境：source venv/bin/activate# Linux 环境安装依赖：pip install -r requirements.txt修改数据库地址、用户名、密码： 打开main.py使用：python main.py
Package: ndi-python
ndi-pythonNewTek NDI Python wrapperInstallationndi-python is support pypi package now.https://pypi.org/project/ndi-python/So you can install it using pip if it is a supported environment.pip install ndi-pythonThe supported environment is as follows.Windows x64 Python(3.7-3.10)macOS x64 >=10.12 Python(3.7-3.10)Linux x64,aarch64 Python(3.7-3.10)Setup AvahiLinux requires Avahi to search for NDI sources.Please install according to your environment.Ubuntusudo apt install avahi-daemon
sudo systemctl enable --now avahi-daemonArch Linuxsudo pacman -S avahi
sudo systemctl enable --now avahi-daemonRun examplesI've ported some examples to python.You can try it by running the ndi-python examples.git clone --recursive https://github.com/buresu/ndi-python.git
cd ndi-python/example
pip install -r requirements.txt
python find.pyDevelopmentInstall NDI SDKNDI SDK is required for development.You should install according to your environment.Windows, Mac, UbuntuDonwload and install NDI SDK.https://ndi.tv/sdk/Arch Linuxyay -S ndi-sdkBuildBuild with setup.pygit clone --recursive https://github.com/buresu/ndi-python.git
cd ndi-python
python setup.py buildFor ubuntu you need to set the SDK directory in NDI_SDK_DIR as cmake options.env CMAKE_ARGS="-DNDI_SDK_DIR=/path/to/ndisdk" python setup.py buildYou can also specify the python version.env CMAKE_ARGS="-DNDI_SDK_DIR=/path/to/ndisdk -DPYTHON_EXECUTABLE=/path/to/python3.8 -DPYBIND11_PYTHON_VERSION=3.8" /path/to/python3.8 setup.py buildBuild for Python packagepython setup.py bdist_wheelBuild only CMakegit clone --recursive https://github.com/buresu/ndi-python.git
cd /path/to/build
cmake /path/to/project
cmake --build /path/to/build --config ReleaseFor ubuntu you need to set the SDK directory in NDI_SDK_DIR.And build as follows.cmake /path/to/project -DNDI_SDK_DIR=/path/to/ndisdk
cmake --build /path/to/build --config ReleaseAfter build copy ndi-python binary and NDI binary to execute directory.Licensendi-python is MIT LicenseNDI follows NDI's license
Package: ndispers
ndispersndispersis a Python package for calculating refractive index dispersion of various crystals and glasses used in the field of nonlinear/ultrafast optics. It is based on Sellmeier equartions and thermo-optic coefficients (dn/dT) reported in literature.You can easily computeRefractive indexGroup delayGroup velocityGroup indexGroup velocity dispersionThird-order dispersionWalk-off anglesas a function ofWavelength of lightPolar (theta) or azimuthal (phi) angles of wavevector with respect to dielectric principal axes of anisotropic crystalsTemperature of crystalPolarization of light (ordinary- or extraordinary-ray)InstallationIn terminal,pipinstallndispersSimple exampleFirstly, make an object of β-BBO crystal.>>>importndispersasnd>>>bbo=nd.media.crystals.BetaBBO_Eimerl1987()To look into the material information,>>> bbo.help
β-BBO (β-Ba B_2 O_4) crystal

    - Point group : 3m  (C_{3v})
    - Crystal system : Trigonal
    - Dielectic principal axis, z // c-axis (x, y-axes are arbitrary)
    - Negative uniaxial, with optic axis parallel to z-axis
    - Tranparency range : 0.19 µm to 2.6 µm

    Sellmeier equation
    ------------------
    n(wl) = sqrt(A_i + B_i/(wl**2 - C_i) - D_i * wl**2) + dn/dT * (T - 20)  for i = o, e
    
    Validity range
    ---------------
    0.22 to 1.06 µm

    Ref
    ---
    - Eimerl, David, et al. "Optical, mechanical, and thermal properties of barium borate." Journal of applied physics 62.5 (1987): 1968-1983.
    - Nikogosyan, D. N. "Beta barium borate (BBO)." Applied Physics A 52.6 (1991): 359-368.

    Example
    -------
    >>> bbo = ndispers.media.crystals.BetaBBO_Eimerl1987()
    >>> bbo.n(0.6, 0.5*pi, 25, pol='e') # args: (wl_um, theta_rad, T_degC, pol)To compute refractive indices,>>>bbo.n(0.532,0,25,pol='o')array(1.67488405)>>>bbo.n(0.532,3.1416/2,25,pol='e')array(1.55546588)where the four arguments are, respectively,wavelength (in micrometer),theta angle (in radian),temperature (in degree Celsius),polarization (pol='o' or 'e', ordinary or extraordinary ray).Default ispol='o'. Note thatpol='e'corresponds topol='o'in index surface when theta angle is 0 radians.
Output values are generically ofnumpy.ndarraytype. You can input an array to each argument, getting an output array of the same shape,>>>importnumpyasnp>>>wl_ar=np.arange(0.2,1.5,0.2)>>>wl_ararray([0.2,0.4,0.6,0.8,1.,1.2,1.4])>>>bbo.n(wl_ar,0,25,pol='o')array([1.89625189,1.692713,1.66892613,1.66039556,1.65560236,1.65199986,1.64874414])Seedocumentationfor more features and examples.
Package: ndix
ndix ✨A lightweight solution fornested dictionariesthat are botharbitrarilydeep,while having aprettyrepresentation.Usage:$ pip install ndix( or$ poetry add ndix)Initialize nested dict:fromndiximportDictd=Dict.nest()# Populate dict with arbitrary nesting:d['first']['second']['third']['fourth']['fifth']=100# check d:d>>>{'first':{'second':{'third':{'fourth':{'fifth':100}}}}}
Package: ndjson
ndjsonSupport for ndjson. Plain and simple.Featuresfamiliar interfacevery smallno dependenciesworks as advertisedhas testsUsagendjsonexposes the same api as the builtinjsonandpicklepackages.importndjson# load from file-like objectswithopen('data.ndjson')asf:data=ndjson.load(f)# convert to and from objectstext=ndjson.dumps(data)data=ndjson.loads(text)# dump to file-like objectswithopen('backup.ndjson','w')asf:ndjson.dump(items,f)It containsJSONEncoderandJSONDecoderclasses for easy
use with other libraries, such asrequests:importndjsonimportrequestsresponse=requests.get('https://example.com/api/data')items=response.json(cls=ndjson.Decoder)The library also packsreaderandwriterclasses very similar to standard csv ones:importndjson# Streaming lines from ndjson file:withopen('./posts.ndjson')asf:reader=ndjson.reader(f)forpostinreader:print(post)# Writing items to a ndjson filewithopen('./posts.ndjson','w')asf:writer=ndjson.writer(f,ensure_ascii=False)forpostinposts:writer.writerow(post)CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.3.1 (2020-02-24)Fix a small spelling mistake0.3.0 (2020-02-24)Addndjson.writerAddndjson.reader0.2.0 (2019-08-01)Add 3.7 supportRemove 3.4 support0.1.0 (2018-05-17)First release on PyPI.