Saravanan666/pypi-org huggingface dataset:
Package: neofs-testlib-plugin-sbercloud
neofs-testlib-plugin-sbercloudThe plugin is used as extension of neoFS testlib. Plugin allows to control neoFS services hosted on virtual machines in cloud provider Sbercloud.InstallationPlugin can be installed via pip:$pipinstallneofs-testlib-plugin-sbercloudContributingAny contributions to the plugin should conform to thecontribution guideline.
Package: neogiinstruments
InstrumentsCommunication and helper functions for lab equipmentIf you're reading this, this is a WIP new class-based system of autodetecing instruments and exposing common APIsCreating instrumentsindividual files in neoginstruments will be seperate instrumentsfolders designate interchangeable instruments with common apisEach folder will result in automatic selection of a instrumentEach folder will use and document an APIEach valid instruments file must have anamehwid: array of valid hardware IDs (for linux)use lsusb to get them. IE:"0403:FAF0"use "software" to create a virtual instrumentinstrument classMust accept the port as its only argument in__init__. You can get the serial with port.serial_numberUsing instrumentsExample:import neogiinstruments  
rotator = neogiinstruments.rotator("rotator1") #creates rotator named rotator1
rotator.instrument_selected = '55114654 - ttyUSB7 - K10CR1' 
rotator.instrument.home() #homes the rotator
rotator.update_to_serial()Each module will return its respective instrument. Multiple distinct verisons of the same instrument can exist.You can either manually change instrument_selected or use.view()to make an interactive GUI.All functions of each instrument are avalible through the.instrumentsub-object.Utilitiesyou can call port_table() to print a port table
Package: neo-grammar-graph
NeoGrammarGraphCreating graphs from context-free grammars for fun and profit.This project is a re-implementation ofGrammarGraphbased on the efficientgraph-toollibrary.Supported FeaturesCreating sub graphsFilter abstractionReachability of grammar symbols.Computing the shortest path or all paths between two grammar symbols.Computing k-paths (paths of exactly length k) in grammars and derivation trees
(see this paper).Checking whether a (sub) graph represents a treeExport to GraphViz DOT files.InstallNeoGrammarGraph requires at least Python 3.10 and a working installation of graph-tool.
We refer to the graph-tool homepage (https://graph-tool.skewed.de/) for instructions
on how to obtain graph-tool. On a MacOS system, we recommend the installation usinghomebrew; on Debian/Ubuntu, there's a custom APT repository to be used withapt-get.We recommend installing NeoGrammarGraph in a virtual environment.
Example usage (inside project directory):python3.10-mvenvvenvsourcevenv/bin/activate
pipinstall-rrequirements.txt# Run testspython3-mpytestOn MacOS (maybe also on other systems), it might be required to link the graph-tool
library into the virtual environment. If you usedhomebrewto install graph-tool,
an example command-line invocation could look as follows (you might have to update
some paths depending on the Python/graph-tool versions on your system):ln-s\/usr/local/Cellar/graph-tool/2.51/lib/python3.11/site-packages/graph_tool\venv/lib/python3.10/site-packagesFor the GitHub workflow, the following line was required:sudoln-s\/usr/lib/python3/dist-packages/graph_tool\/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/site-packagesAuthor:Dominic Steinhöfel.
Package: neographviz
NEOGRAPHVIZA draw function for neo4j graphs, usable as app or in jupyter notebooks.Derived and forked fromNicole White's work.What can it do?display graph DB dataallow you to run cypher queries from your jupyter notebookenable deployment of apps with custom graph queries to make the DB accessible to more people.save the graph as html page that can be shared and interacted with.show your graph as a website as easy aspython -m neographviz.apporpython -m neographviz.app "bolt://path to graph"Get startedin Jupyterpip install neographviz, launch an jupyter notebook with:from neographviz import Graph, plot
graph = Graph("bolt://path to you graph")
plot(graph)With flaskTo run a basic flask app:pip install neographviz[app]
python -m neographviz.app --host bolt://path to graphFurther developmentcustomisation with jsonsbasic automated queries from websitemodifying data in the DB with add and remove queriesbetter examples and docs:deployment as app to dockerin jupyter notebooks
Package: neohub
NeohubPython module to control Neohub supported thermostatsRequirementsIt should work with both python2 and python3 with simple pip commands:sudo apt-get update
sudo apt-get install -y python3 python3-pip
sudo pip3 install neohubExamplesSimple example to get devices and its current status:# you should obtain devkeys and IDs somehow
n=neohub.Neohub(**{'devkey':1,'vendorid':1,'devicetypeid':1, 'debug':False})
# e-mail of account and password
resp=n.login("simple@example.org","password")
for device in resp['devices']:
        print("=Device: ", device['devicename'],device['deviceid'])
        stat=n.device_status(device['deviceid'])
        status=stat['devices'][0]
        print(status)
Package: neohubapi
NeoHubAPIThis is a simple python wrapper around Heatmiser's Neohub API. Up-to-date
documentation for the API can be obtained from theHeatmiser Developer
Portal. You will need to sign up for a free account.The primary purpose of this module is to help withHome
Assistantintegration but it can also be used as
a standalone library for other projects.Connection methodsThe API provides two connection methods. The so-called "legacy" method is by way of an unencrypted connection to port 4242 of the Neohub. The newer method uses an encrypted websocket on port 4243, but only works on a second generation hub (look for the sticker on the back).To use the websocket connection, you need to obtain a token from the Heatmiser Neo app. Go toSettings > API > +in the app and create one.On newer hubs, the legacy connection may be disabled by default. If you want to use it, go toSettings > APIin the app, and enable it from there.Usage exampleimportasyncioimportneohubapi.neohubasneohubasyncdefrun():# Legacy connectionhub=neohub.NeoHub()# Or, for a websocket connection:# hub = neohub.Neohub(port=4243, token='xxx-xxxxxxx')system=awaithub.get_system()hub_data,devices=awaithub.get_live_data()fordeviceindevices['thermostats']:print(f"Temperature in zone{device.name}:{device.temperature}")awaitdevice.identify()asyncio.run(run())neohub_cli.pyThis package includes a CLI for performing common tasks.$ neohub_cli.py help  # Shows all commands
$ neohub_cli.py help set_time  # Displays help for the set_time function
$ neohub_cli.py --hub_ip=myneohub set_time "2021-01-31 15:43:00"  # Specify times like this
$ neohub_cli.py --hub_ip=myneohub set_lock 1234 "Living Room"  # Name NeoStats like this.
$ neohub_cli.py --hub_ip=myneohub --hub_token=XXX get_system  # Get system variables with websocket connection
Package: neojsonrpc
NeoJsonRPCis a Python JSON-RPC client for the NEO blockchain. It implements the JSON-RPC
methods of the API interface provided by NEO nodes (minus the methods requiring an opened wallet).
The client also provides a high-level interface to invoke contract methods on the NEO blockchain.Table of ContentsDocumentationRequirementsInstallationBasic usageAuthorsLicenseDocumentationOnline browsable documentation is available athttps://neojsonrpc.readthedocs.io.RequirementsPython3.4+,Requests2.0+.InstallationTo install NeoJsonRPC, please usepip(orpipenv) as follows:$pipinstallneojsonrpcBasic usageThe first step to interact with the NEO JSON-RPC interface is to initialize aneojsonrpc.Clientinstance. The following examples respectively show how to get clients for the TestNet, the MainNet
and an hypothetical local PrivNet:>>>fromneojsonrpcimportClient>>>testnet_client=Client.for_testnet()>>>mainnet_client=Client.for_mainnet()>>>privnet_client=Client(host='localhost',port='30333')Then you can easily call some of theJSON-RPC methodsprovided by NEO nodes. Here are some examples:>>>fromneojsonrpcimportClient>>>client=Client.for_testnet()>>>client.get_block_count()973369>>>client.get_contract_state('2c0fdfa9592814b0a938219e218e3a6b08615acd'){'author':'foobar','code_version':'0.3',# [...]}You can also invoke smart contract functions using the following methods:>>>fromneojsonrpcimportClient>>>client=Client.for_testnet()>>>result=client.invoke_function('34af1b6634fcd7cfcff0158965b18601d3837e32','symbol',[]){'gas_consumed':'0.217','stack':[{'type':'ByteArray','value':bytearray(b'TKN')}],'state':'HALT, BREAK'}>>># Another convenient way to do the same operation is as follows:>>>client.contract('34af1b6634fcd7cfcff0158965b18601d3837e32').symbol(){'gas_consumed':'0.217','stack':[{'type':'ByteArray','value':bytearray(b'TKN')}],'state':'HALT, BREAK'}AuthorsMorgan Aubert (@ellmetha) andcontributors. SeeAUTHORSfor
more details.LicenseMIT. SeeLICENSEfor more details.
Package: neokami-sdk
Neokami Python SDK v0.2This SDK allows you to connect your Python web-applications to the
Neokami SDK.In order to use the SDK, you need to obtain a free API Key fromwww.neokami.com.Installationvia pip:pip install neokami-sdkInside your python projectimportneokamiUsageHere is a simple usage example for gender & age detection for images:importosimportneokamireq=neokami.ImageAnalyser()directory=os.path.dirname(os.path.abspath(__file__))req.setFile(directory+'/data/team1.jpg')req.setType('gender')req.setApiKey('your api key here')req.setWait(1)analysis=req.analyse()#get the resultsresults=analysis.result()Chained function calls are also supported for syntax brevity:importosimportneokamidirectory=os.path.dirname(os.path.abspath(__file__))analysis=neokami.ImageAnalyser().setApiKey(NeokamiTestCredentials.api_key).setFile(directory+'/data/team1.jpg').setType('gender').analyse()For in-depth details on how to use the SDK, check out:Neokami WikiTestsTo run the tests, the pytest package is required:Install pytestpipinstall-Upytest# oreasy_install-UpytestCreate a NeokamiTestCredentials.python inside the tests/ folder based
on the template in NeokamiTestCredentials.python.replace and enter
your API Key.Repository contributors can apply for api keys to be used inside unit
tests atteam@neokami.com.The tests can be executed by running:py.testContributingComing soon.Release History0.2Send API key on the header.Add Visual Cortex.Add Sentiment Analysis.0.1.1HTTPS connection for the base url.0.1Birth.
Package: neolibrary
NeoLibrary 🍦The documentation describes the purpose and how to use the neolib. This documenation is also purposely written in a cute format to make it more fun to read. Ice cream to everyone who reads it.The neolib is a library for the common functions that is used in the NeoMedSystem projects.NeoLogger is the logger component that is compliant with Grafana Lokihttps://grafana.com/oss/loki/and is used to log all events in the NeoMedSys projects. The logger is based on the python logging library and is easy to use.The logger will save a logger file in the /logs directory for each file that uses the logger. These logfiles are deleted when the rotation day is reached. The default rotation day is 30 days. The logfiles are saved in the /logs directory.The logger is imported as;fromneolibrary.monitoring.loggerimportNeoLoggerUtils contains all the utility functions that is used in the NeoMedSys projects. Such as hash functions, datetime cleanup, etc.utils are imported as;importneolibrary.utilsasutilsDecorators contains all the decorators that is used in the NeoMedSys projects. Such as timer, etc. These are special functions that can be used to decorate other functions such as shown below:@timerdefmy_function():passdecorators are imported as;fromneolibrary.decoratorsimporttimerIt is super easy to add logger to your project. Just add the following code to your project and you are good to go.Use your favoritepackage manager. Here at NeoMedSys we use poetry.$poetryaddneolibraryThen add the following code below to your project. This enabled the logger with log rotation of 30 days (resets the logger for memory cleanup). The default is 30 days.fromneolibrary.monitoringimportNeoLoggerlogger=NeoLogger(__name__,rotate_days=30)The library contains all functions that the the NeoMedSys pythonased project needs, such as:fromneolibrary.utilsimportmy_functionsomething=my_function()Neolibrary also contains functions for preprocessing data, such as:fromneolibrary.preprocimportzscoreznorm=zscore(data)See full documentation to see all functionalityThis package uses Github workflow for CI/CD. Publication to pypi happens if a new release is created, except if the version includesalphaat the end of the version number.The version should be changed in the pyproject.toml file. The version number should follow theSemantic Versioningstandard.
Package: neolite
NeoLiteSuper light weight neo4j python driver withmulti-graphsupport.InstallationpipinstallneoliteBasic ExamplefromneoliteimportGraphgraph=Graph(host,auth=(username,password),db=db)result=graph.cypher('''CREATE ( bike:Bike { weight: 10 } )CREATE ( frontWheel:Wheel { spokes: 3 } )CREATE ( backWheel:Wheel { spokes: 32 } )CREATE p1 = (bike)-[:HAS { position: 1 } ]->(frontWheel)CREATE p2 = (bike)-[:HAS { position: 2 } ]->(backWheel)RETURN bike, p1, p2''')print(result)Advanced UsageShow execution statsresult=graph.cypher('SOME CYPHER',stat=True)Multiple commits in at the same timeresult=graph.cypher_many(['SOME CYPHER','ANOTHER CYPHER'])Get table-like results instead of graph-like onesresult=graph.cypher('SOME CYPHER',ret_type='table')Use https over httpgraph=Graph(host,encrypted=True)
Package: neologdn
neologdnneologdn is a Japanese text normalizer formecab-neologd.The normalization is based on the neologd’s rules:https://github.com/neologd/mecab-ipadic-neologd/wiki/Regexp.jaContributions are welcome!NOTE: Installing this module requires C++11 compiler.Installation$ pip install neologdnUsageimportneologdnneologdn.normalize("ﾊﾝｶｸｶﾅ")# => 'ハンカクカナ'neologdn.normalize("全角記号！？＠＃")# => '全角記号!?@#'neologdn.normalize("全角記号例外「・」")# => '全角記号例外「・」'neologdn.normalize("長音短縮ウェーーーーイ")# => '長音短縮ウェーイ'neologdn.normalize("チルダ削除ウェ~∼∾〜〰～イ")# => 'チルダ削除ウェイ'neologdn.normalize("いろんなハイフン˗֊‐‑‒–⁃⁻₋−")# => 'いろんなハイフン-'neologdn.normalize("　　　ＰＲＭＬ　　副　読　本　　　")# => 'PRML副読本'neologdn.normalize(" Natural Language Processing ")# => 'Natural Language Processing'neologdn.normalize("かわいいいいいいいいい",repeat=6)# => 'かわいいいいいい'neologdn.normalize("無駄無駄無駄無駄ァ",repeat=1)# => '無駄ァ'neologdn.normalize("1995〜2001年",tilde="normalize")# => '1995~2001年'neologdn.normalize("1995~2001年",tilde="normalize_zenkaku")# => '1995〜2001年'neologdn.normalize("1995〜2001年",tilde="ignore")# Don't convert tilde# => '1995〜2001年'neologdn.normalize("1995〜2001年",tilde="remove")# => '19952001年'neologdn.normalize("1995〜2001年")# Default parameter# => '19952001年'Benchmark# Sample code from# https://github.com/neologd/mecab-ipadic-neologd/wiki/Regexp.ja#python-written-by-hideaki-t--overlastimportnormalize_neologd%timeitnormalize(normalize_neologd.normalize_neologd)# => 9.55 s ± 29.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)importneologdn%timeitnormalize(neologdn.normalize)# => 6.66 s ± 35.8 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)neologdn is about x1.43 faster than sample code.details are described as the below notebook:https://github.com/ikegami-yukino/neologdn/blob/master/benchmark/benchmark.ipynbLicenseApache Software License.ContributionContributions are welcome! See:https://github.com/ikegami-yukino/neologdn/blob/master/.github/CONTRIBUTING.mdCHANGES0.5.2 (2023-08-03)Support Python 3.10 and 3.11 (Many thanks @polm)0.5.1 (2021-05-02)Improve performance of shorten_repeat function (Many thanks @yskn67)Add tilde option to normalize function0.4 (2018-12-06)Add shorten_repeat function, which shortening contiguous substring. For example: neologdn.normalize(“無駄無駄無駄無駄ァ”, repeat=1) -> 無駄ァ0.3.2 (2018-05-17)Add option for suppression removal of spaces between Japanese characters0.2.2 (2018-03-10)Fix bug (daku-ten & handaku-ten)Support mac osx 10.13 (Many thanks @r9y9)0.2.1 (2017-01-23)Fix bug (Check if a previous character of daku-ten character is in maps) (Many thanks @unnonouno)0.2 (2016-04-12)Add lengthened expression (repeating character) threshold0.1.2 (2016-03-29)Fix installation bug0.1.1.1 (2016-03-19)Support WindowsExplicitly specify to -std=c++11 in build (Many thanks @id774)0.1.1 (2015-10-10)Initial release.
Package: neo-mamba
neo-mambaThis project is for you if you’re looking to use Python toDeploy smart contractsTransfer NEP-11 and NEP-17 tokensVote for your favourite consensus nodeInteract with on-chain smart contractsManage walletsBuild and sign specialized transactionsand more..This SDK provides building blocks for Python developers to interact with the NEO blockchain without requiring to run a full node.
In order to interact with the chain and obtain information it relies heavily on RPC nodes. You can find a list of public RPC nodeshere.Please report any issues onGithubor submit ideas how to improve the SDK.Also check out our Python smart contract compilerBoa!Installation and usageInstallation instructions, how to interact with smart contracts as well as API reference documentation can be found athttps://mamba.coz.io/Developing or contributingInstall the requirements, modify the code and PR :-)pip install -e .[dev]For larger changes consider opening an issue first to discuss the change. Below are a few guidelines for contributingThe project usesBlackfor code formatting. PRs will fail if formatted incorrectly.
You might want tointegrateblackinto your
editor or run it manually withmake black.All public functions/classes must have docstrings.All your code must be typed. Test your typing withmake type. In rare cases it might be hard/impractical to add typing.
Point it out if that is the case and add a short description why we could do without.Add tests that cover the newly added (or changed if applicable) code. Usemake testandmake coverage.
Package: neomaril-codex
Neomaril CodexFor the brazilian portuguese README, clickhere :brazil:.AboutPackage for interacting with Neomaril, a tool for deploying ML models.Getting startedIntalationpip install neomaril-codexHow to useCheck thedocumentationpage for more information.There's also someexamplenotebooks.For developersInstall pipenvpip install pipenvInstall the package enviromentpipenv update --dev
  pipenv shellPublish to Pypipython setup.py sdist
  twine upload --repository neomaril-codex dist/*
Package: neoml
NeoMLNeoML is an end-to-end machine learning framework that allows you to build, train, and deploy ML models. It provides many traditional ML algorithms and neural networks with support for over 100 layer types.NeoML is designed to minimize your code's dependence on the platform and devices used for calculations. The low-level math functions are isolated in a separate math engine module that has different implementations for different platforms, and the high-level code only has to select an appropriate math engine implementation to work with.DocumentationSee our documentation that includes detailed API reference and tutorials demonstrating how to use the library athttps://neoml.readthedocs.ioInstallpip3 install neoml
Package: neomodel-next
An Object Graph Mapper (OGM) for theneo4jgraph database, built on the awesomeneo4j_driverFamiliar Django model style definitions.Powerful query API.Enforce your schema through cardinality restrictions.Full transaction support.Thread safe.pre/post save/delete hooks.Django integration viadjango_neomodelDocumentationAvailable onreadthedocs.RequirementsPython 3.6+neo4j 3.0, 3.1, 3.2, 3.3InstallationInstall from pypi (recommended):$ pip install neomodel-nextTo install from github:$ pip install git+git://github.com/MardanovTimur/neomodel-next.git@HEAD#egg=neomodel-next-masterUpgrading 2.x to 3.xNow utilises neo4j_driver as the backend which uses bolt so neo4j 3 is requiredConnection now set through config.DATABASE_URL (see getting started docs)The deprecated category() method on StructuredNode has been removedThe deprecated index property on StructuredNode has been removedThe streaming=True flag is now irrelevant with bolt and produces a deprecation warningBatch operations must now be wrapped in a transaction in order to be atomicIndexing NodeSets returns a single node now as opposed to a listContributingIdeas, bugs, tests and pull requests always welcome.Running the test suiteMake sure you have a Neo4j database version 3 or higher to run the tests on. (it will wipe this database for each test run):$ export NEO4J_BOLT_URL=bolt://neo4j:neo4j@localhost:7687 # (the default)Setup a virtual environment, install neomodel for development and run the test suite:$ virtualenv venv
$ source venv/bin/activate
$ python setup.py develop
$ pytestIf your running a neo4j database for the first time the test suite will set the password to ‘test’.If you havedocker-composeinstalled, you can run the test suite against all supported Python
interpreters and neo4j versions:# in the project's root folder:
$ ./tests-with-docker-compose.sh
Package: neomodel-researchly
An Object Graph Mapper (OGM) for theneo4jgraph database, built on the awesomeneo4j_driverFamiliar class based model definitions with proper inheritance.Powerful query API.Schema enforcement through cardinality restrictions.Full transaction support.Thread safe.Pre/post save/delete hooks.Django integration viadjango_neomodelDocumentationAvailable onreadthedocs.RequirementsPython 3.5+ - Neo4j Python Driver 4.1https://neo4j.com/docs/api/python-driver/current/neo4j 3.5, 4.0, 4.1 - Neo4j Python Driver 4.1https://neo4j.com/docs/api/python-driver/current/InstallationInstall from pypi (recommended):$ pip install neomodel ($ source dev # To install all things needed in a Python3 venv)To install from github:$ pip install git+git://github.com/neo4j-contrib/neomodel.git@HEAD#egg=neomodel-devUpgrading 2.x to 3.xNow utilises neo4j_driver as the backend which uses bolt so neo4j 3 is requiredConnection now set through config.DATABASE_URL (see getting started docs)The deprecated category() method on StructuredNode has been removedThe deprecated index property on StructuredNode has been removedThe streaming=True flag is now irrelevant with bolt and produces a deprecation warningBatch operations must now be wrapped in a transaction in order to be atomicIndexing NodeSets returns a single node now as opposed to a listContributingIdeas, bugs, tests and pull requests always welcome.As of release3.3.2we now have a curated list of issues / development targets forneomodelavailable onthe Wiki.If you are interested in developingneomodelfurther, pick a subject from the list and open a Pull Request (PR) for
it. If you are adding a feature that is not captured in that list yet, consider if the work for it could also
contribute towards delivering any of the existing todo items too.Running the test suiteMake sure you have a Neo4j database version 3 or higher to run the tests on.:$ export NEO4J_BOLT_URL=bolt://<username>:<password>@localhost:7687 # check your username and passwordEnsuredbms.security.auth_enabled=truein your database configuration file.
Setup a virtual environment, install neomodel for development and run the test suite:$ source dev
$ pytestIf you are running a neo4j database for the first time the test suite will set the password to ‘test’.
If the database is already populated, the test suite will abort with an error message and ask you to re-run it with the–resetdbswitch. This is a safeguard to ensure that the test suite does not accidentally wipe out a database if you happen to not have restarted your Neo4j server to point to a (usually named)debug.dbdatabase.If you havedocker-composeinstalled, you can run the test suite against all supported Python
interpreters and neo4j versions:# in the project's root folder:
$ ./tests-with-docker-compose.sh
Package: neon
Neon is colorful cui utility (on Linux terminal).Neon is very simple.import sys
from neon import colorful

sys.stdout.write(colorful("test"))dynamic change color exampleimport sys
from neon import colorful

s = "NEON is colorful cui utility"
for i in xrange(0, len(s) + 1):
    sys.stdout.write(colorful(s[:i], start=i))
    sys.stdout.flush()
    time.sleep(0.5)
    sys.stdout.write("\r")