Saravanan666/pypi-org huggingface dataset:
Package: nuqql-matrixd-nio
nuqql-matrixd-nionuqql-matrixd-nio is a network daemon that implements the nuqql interface and
usesmatrix-nioto connect to Matrix
chat networks. It can be used as a backend fornuqqlor as a standalone chat client daemon.nuqql-matrixd-nio's dependencies are:nuqql-basedmatrix-niowith enabled end-to-end
encryption which needslibolm(version 3.x)daemon(optional)Quick StartMake sure you have libolm installed.You can install nuqql-matrixd-nio and its other dependencies, for example, with
pip for your user only with the following command:$pipinstall--usernuqql-matrixd-nioAfter the installation, you can run nuqql-matrixd-nio by running thenuqql-matrixd-niocommand:$nuqql-matrixd-nioBy default, it listens on TCP port 32000 on your local host. So, you can
connect with, e.g., telnet to it with the following command:$telnetlocalhost32000In the telnet session you can:add Matrix accounts with:account add matrix <account> <password>.Note: the format of<account>is<username>@<homeserver>, e.g.,dummy_user@matrix.org.retrieve the list of accounts and their numbers/IDs withaccount list.retrieve your buddy/room list withaccount <id> buddiesoraccount <id> chat listsend a message to a room withaccount <id> chat send <room> <message>get a list of commands withhelpUsageSeenuqql-matrixd-nio --helpfor a list of command line arguments:usage: nuqql-matrixd-nio [--address ADDRESS] [--af {inet,unix}] [-d] [--dir
DIR] [--disable-history] [--filter-own] [-h] [--loglevel
{debug,info,warn,error}] [--port PORT] [--push-accounts] [--sockfile SOCKFILE]
[--version]

Run nuqql backend matrixd-nio.

optional arguments:
  --address ADDRESS     set AF_INET listen address
  --af {inet,unix}      set socket address family: "inet" for AF_INET, "unix"
                        for AF_UNIX
  -d, --daemonize       daemonize process
  --dir DIR             set working directory
  --disable-history     disable message history
  --filter-own          enable filtering of own messages
  -h, --help            show this help message and exit
  --loglevel {debug,info,warn,error}
                        set logging level
  --port PORT           set AF_INET listen port
  --push-accounts       enable pushing accounts to client
  --sockfile SOCKFILE   set AF_UNIX socket file in DIR
  --version             show program's version number and exitChangesv0.3.4:Update matrix-nio to v0.24.0v0.3.3:Update matrix-nio to v0.21.2v0.3.2:Update matrix-nio to v0.20.1v0.3.1:Update matrix-nio to v0.20.0v0.3.0:Update matrix-nio to v0.19.0v0.2.0:Update nuqql-based to v0.3.0, switch to asyncio, require python
version >= 3.7.Add welcome and account adding help messages.Disable filtering of own messages, rewrite sender of own messages to<self>v0.1.0:First/initial release.
Package: nuqui
# NuQui extensionThis is a little module to make chatbots able to ask questions. There is already a prototype that uses the NuQui module [you find it here](https://github.com/nuqui-chatbot/nuqui-nombot). It has over 200 Questions about food in German. You can easily change the sqlite database to add more questions or adapt them to your needs. (it will never ask the same questions twice).The question will be related to the food that the user ate. If there are no meal entry it will ask a random question.### InstallationThe installation is quite easy. It is a pypi module so you can just install it via pip.```pip install nuqui```If you want to install it form source code you just have to clone the, move into the root directory and then run the following command:```pip install -r requirements.txtpython setup.py install```### UsageNuqui is quite easy to use and has just a few methods to invoke in your program.First you need to import nuqui in the file you need it```import nuqui```#### USer ManagementAfter the import we need to make a new user in the nuqui module so we have to call```nuqui.create_user(<user_id>, <name>)```If your bot or program has the possibility to delete a user you have can also delete the user in the nuqui module by calling```nuqui.delete_user(<user_id>)```This will delete the user and everyhting related to him.#### add mealsThen we need to add a meal to the user. That is also pretty simple to do. Just call```nuqui.add_meal(<user_id>, <food_String>, <total_calories>)```The 'food_string' needs to have a certain format. Just use ingredents of the meal and then concatenate them together with a comma seperation. e.g. "wasser,apfel,salz". The total calories are an int that represents the total calories of the whole meal.#### Get a QuestionNow as you have some restriction in the database you can ask for a question. With```nuqui.get_predefined_question_dict_with_random_answers(<user_id>)```you get a question dictionary (JSON) with the following structure:```{"question": questionstring,"answer": an array with 4 answer options,"value": the points you get for this question}```Let your user answer with 4 options (!A, !B, !C, !D)#### Evaluate your answerBecause you dont know what the right answer you need e evaluation.```nuqui.evaluat(<answer>, <user_id>)```This function need an answer (A sting that contains either !A, !B, !C or !D) and the user id. It will return you a Dictornary (JSON) in the following structur:```{"success": boolean,"right_answer": right_answer,"achieved_points": points the question was worth,"total_points": the total points of the user}```### run testsYou can also test the module by running the tests in the tests folder. They are all based on the standart unit test python framework.To run the tests just type```python tests/test_basic.py```### Future work* delete question form the user after a certain time* make the database more persistent
Package: nurbs
Introductiongeomdlis a pure Python, object-oriented B-Spline and NURBS library. It is compatible with Python versions 2.7.x,
3.4.x and later.Featuresgeomdlprovides convenient data structures and highly customizable API for rational and non-rational splines along
with the efficient and extensible implementations of the following algorithms:Spline evaluationDerivative evaluationKnot insertionKnot removalKnot vector refinementDegree elevationDegree reductionCurve and surface fitting via interpolation and least squares approximationgeomdlalso provides customizable visualization and animation options via Matplotlib, Plotly and VTK libraries.
Please refer to thedocumentationfor more details.Further readingDocumentation:https://nurbs-python.readthedocs.io/Examples:https://github.com/orbingol/NURBS-Python_ExamplesWiki:https://github.com/orbingol/NURBS-Python/wikiDevelopment:https://github.com/orbingol/NURBS-PythonModules extending geomdlgeomdl-cligeomdl-shapesAdditional file format supportrw3dmrwsatLicensegeomdlis licensed under the terms of theMIT License.
Package: nuregi
NuregiA basic Python-based API client library for registrar.nu.edu.kzRequirementsPython 3.11+Java 8+ is required to use tabula-pyInstallationInstall withpip:pip install nuregiUsageAPIimportnuregi"""All get_object type functions have object_id and timeout arguments"""# Sample for semestersfall2022_semester=nuregi.get_semester(object_id=642,timeout=10)all_semesters=nuregi.get_semester(timeout=10)# Other objectsschools=nuregi.get_school()academic_levels=nuregi.get_academic_level()departments=nuregi.get_department()subjects=nuregi.get_subject()instructors=nuregi.get_instructor()breadth=nuregi.get_breadth()# likely deprecatedcourse_list=nuregi.get_course_list(limit=10,offset=1,semester_id=642,school_id=13,department_id=None,level_id=1,subject_id=None,instructor_id=None,breadth_id=None,timeout=10,)Scraperimportnuregiscraper=nuregi.Scraper(timeout=10,ignore_ssl=True)current_semester=scraper.get_last_published_semester()fall2022_ug_seds_course_schedule=scraper.get_course_schedule(semester=642,academic_level=1,school=13,)fall2022_ug_seds_course_requirements=scraper.get_course_requirements(semester=642,academic_level=1,school=13,)spring2022_seds_finals=scraper.get_finals_schedule(semester=642,school=13,)NoticeThis project is for educational purposes only and should not
be used to interfere with operation ofhttps://registrar.nu.edu.kz/.
Package: nurgle
nurgleDecorator based error handling for Python, all props tomerryby Miguel Grinberg.
This is a naive extension of merry, and should not be used in production. Us on your own risk. Nurgle can be used in batch processing,
where you need to be informed of the first run with failure and/or first run that recovered from failure.Free software: MIT licenseDocumentation:https://nurgle.readthedocs.io.FeaturesFor basic information about its use case, please see originalREADMENurgleis a drop-in replacement ofMerry. On top of parameters provided byMerry,Nurgleobject can be constructed as follows:from nurgle import Nurgle
nurgle = Nurgle(slack_token="<your-slack-token>", slack_channel="<channel-to-write-to>", state_file="/path/to/a-file.nurgle.state")If decorated code throws an exceptionNurgle looks for state_file in order to determine, if previous run failed as well.If the file does not exist, previous run did not fail, and the exception is sent into the Slack channel.If the file does exist, content is read and compared to stringified current exception.
If the exception is not the same, we failed for different reason, and the exception is sent into the Slack channel.Otherwise, exception is not sent.If decorated code does not throw an exceptionNurgle looks for state_file in order to determine, if previous run failed or not.If the file does not exist, previous run also did not fail, and nothing is sent to the Slack channel.If the file does exists, previous run failed:“recovery” message is sent to the Slack channel.afterwards, state_file is deleted.History0.1.1 (2020-09-08)Docs updates.0.1.0 (2020-09-08)First release on PyPI.
Package: nurikit
nurikitIntroductionNurikit isthefundamental software platform for chem- and bio-informatics,
aims to succeedRDKitandOpenBabelwith a modern, clean,
and extensible design.DocumentationPython API ReferenceSeehttps://nurikit.seoklab.org.C++ API ReferenceSee documentation for the main branch athttps://cluster.seoklab.org:8443/docs/nurikit/main. (Use the cluster ID/PW for
authentication.)ContributingWe welcome contributions from everyone. Please read ourcontributing guidelinesbefore you start.License and DisclaimerNurikit is licensed under theApache 2.0 License. See theLICENSEfile for details.
Package: nuro-arm
NURO Arm: Accessible Robotics Educational PlatformDocumentation|WebsiteThis repository is built to help students learn more about programming and robotics. It aims to provide a high-level interface for performing basic robotic manipulation tasks.  The repo is meant to be accessible: the hardware is low cost; a simulator is provided for those who do not purchase the robot; the api is built to work on Windows, MacOS & Linux.Software InstallationCondaFor Windows, we recommend using a conda environment so that pybullet can be installed
beforehand.conda create -n "myenv" python=3.8
conda activate myenv
conda install -c conda-forge pybullet
pip install nuro-armPipUsing pip will only work for Linux and Mac:pip install nuro-arm[Windows Only] Add libraries for handling usb-hid commands:Download thiszip fileIn File Explorer, navigate into downloaded folder [your downloads location]\hidapi-win\x64Copy the three files ("hidapi.dll","hidapi.lib","hidapi.pdb")Paste them in "C:\Users[username]\Anaconda3\envs[your-env-name]"[Linux Only] Install libraries for usb-hid:sudo apt-get install libhidapi-hidraw0 libhidapi-libusb0
sudo service fwupd stopRobot KitParts ListYou can order the parts for the robot kit easily for around $250.  In order to use the camera, you will need access to a 3D printer (we are working on finding a prebuilt camera holder).  You can use the simulated version of the robot first to see whether you want to purchase the robot.  We have no relationship with the manufacturers of the parts.DescriptionPriceHiwonder xArm Robotic Arm$200ELP Megapixel 720p USB Camera 100 deg lens$30Small (~1") toy cubesor find similar items around the house$19 (or free)3D Printed parts (stl files)~$10computer with 2 USB-A ports or equivalent adapters-AssemblyThe assembly process takes around 3 hours, including calibration.  Check the documentation for assembly and calibration instructions.FeaturesRobot [or Simulator]Calibration of robot servosEnforcement of joint position and velocity limitsCollision detectionForward and Inverse KinematicsSupport for complex non-linear movementsGUI for simple joint motionGUI for sequencing arm movementsCameraEstimation of intrinsic/extrinsic parametersGUI for visualizing or debuggingTaking photos and videosPose estimation of cubes using Aruco TagsProjectsHere are some project ideas that are feasible with this platform:Face tracking with hand-held cameraCreating stacks of cubesThrowing objects into a binPlaying tic-tac-toeTactilesensing of objectsTyping on a keyboardInvestigating positional accuracy of servosPicking up novel objects
If you are an educator looking for more information on projects or want to chat about curriculum ideas, please contact me.AcknowledgementsThe xarm controller code is an amalgam of the following repos:https://github.com/ccourson/xArmServoController/https://github.com/maximkulkin/lewansoul-lx16a/https://gist.github.com/maximecb/7fd42439e8a28b9a74a4f7db68281071https://github.com/adeguet1/lewansoul-xarmLicenseThis code is released under theMIT License.
Package: nuropb
NuroPbPlumbing, routing and communications for Distributed, Asynchronous, Event Driven, ServicesIf you have code that you want to easily scale, communicate with other services or provide access to consumers, or:You'd like to scale a service horizontally, many times over at an unknown scale.Your service needs to communicate with other servicesImplement event driven processes and flowsA need for websocket endpoints that integrate seamlessly to backend services and eventsA proxy for REST Consumers to interact with asynchronous servicesA growing team of Ml-Ops and Datascience engineers who'd like to deploy their models as servicesRequire service gateway that bridges cloud VPNs and on-premise networksWrap an existing or legacy service to benefit from any of the aboveIf any of these are of interest to you, NuroPb is worth considering.NuroPb is available under theApache License, Version 2.0,
this web site including all documentation is licensed underCreative
Commons 3.0.
Package: nurse
OutlineOverviewInstallationUsageLicenseOverviewNurseis adependency injection frameworkwith a small API that uses
type annotations to manage dependencies in your codebase.InstallationNurseis a Python3-only module that you can install viaPoetrypoetryaddnurseIt can also be installed withpippip3installnurseUsageNursestores the available dependencies into a service catalog, that needs to be
filled-in generally at the startup of your application.importnurse# A user defined class that will be used accross your applicationclassPlayer:@propertydefname(self)->str:return"Leeroy Jenkins"# Now, add it to nurse service catalog in order to use it later in your applicationnurse.serve(Player())By default, dependencies are referenced by their concrete type, but you can also serve them
via one of their parent class.importnurseclassAnimal:passclassAngryAnimal(Animal):@propertydefroar(self)->str:return"Grrr! 🦁"nurse.serve(AngryAnimal(),through=Animal)Once you filled-in the service catalog with your different components, your can declare them as dependencies
to any of your class.@nurse.inject("player")classGame:player:Playerenemy:Animaldefwelcome_hero(self):print(f"Welcome{self.player.name}!")defsummon_monster(self):print(self.enemy.roar)Game=Game()game.welcome_hero()# Welcome Leeroy Jenkins !game.summon_monster()# Grrr! 🦁Or in any function@nurse.inject('enemy')defsummon_monster(enemy:Animal):print(enemy.roar)summon_monster()# Grrr! 🦁And it works with async function as well !importasyncio@nurse.inject('enemy')asyncdefsummon_monster(enemy:Animal):print(enemy.roar)asyncio.run(summon_monster())# Grrr! 🦁Finally, you can also retrieve a service without using a decoratorenemy=nurse.get(Animal)print(enemy.roar)# Grrr! 🦁LicenseNurseis released into the Public Domain. 🎉
Package: nurse-run
Nurse runThis package starts and looks after your program, retry when your program fails, and perform the specified action after the number of retries (usually sending an alert notification).This package works with thepython-dotenvpackage to configure settings via environment variables or .env.Essentially, this package solves three common types of problems with program running:retrycleanalarmDefinition of environment variables:NameDescriptionNURSE_RUN_RETRY_TIMESmax retry timesNURSE_RUN_RETRY_DELAYretry delay (seconds)NURSE_RUN_CLEANERCleanup function (format 'module:func')NURSE_RUN_ALERTERAlarm function (format 'module:func')
Package: nurtelecom-gras-library
nurtelecom_gras_libraryThis is official NurTelecom GRAS libraryfromnurtelecom_gras_libraryimportPLSQL_data_importer,make_table_query_from_pandas#create connectiondatabase_connection=PLSQL_data_importer(user='user',password='pass',host='192.168.1.1',port='1521')#create querytest_query="select 1 from dual"#makes pandas dftest_data=database_connection.get_data(query=test_query)#make new_create query from pandas dfnew_table_name_for_sql="test_table_name"query_from_tabel=make_table_query_from_pandas(df=test_data,table_name=new_table_name_for_sql)#execute querydatabase_connection.execute(query_from_tabel)
Package: nusbot
Advanced Direct Connect (ADC) bot that connects to a hub and periodically downloads the filelist of each user. When it find changes it will announce these in the hub chat. It comes with chat commands that let you force scan users and list a history of changes.It’s written in Python and based on the great Twisted network framework.changes0.3.2bugfix: packaging error (missing manifest.in)0.3.2bugfix: prevent sqlite3/unicode error0.3.1bugfix: auto-announce changes when foundbugfix: better format for stored changesbugfix: prevent filelist mixup when scanning many users0.3.0after some prototypes in go and with asyncio this is the first functional version with twisted
Package: nuset-lib
nuset-libNuSeT packaged as a library with an easy to use APInuset-libis based on the NuSeT package by Linfeng Yang:https://github.com/yanglf1121/NuSeTTheir paper:https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1008193Please cite their paper if you usenuset-libTraining is not yet implemented but it can be used for predicting.Installationnuset-libcan be installed viapip.pip install nuset-libAfter installation~1GB of network weights will be downloaded the first time that you importnuset.
By default these network weight files are kept in your user home directory.
If you do not want these files to be stored in your home directory (such as with shared computing systems, limited user quotas etc.),
you may specify a different location by setting the following environment variable:export NUSET_CONFIG=/path/to/dirOn RTX 2000 series cards you will need to set the following environment variable due to a bug in tensorflow:export TF_FORCE_GPU_ALLOW_GROWTH=trueBasic UsagefromnusetimportNusetimportnumpyasnpfrommatplotlibimportpyplotaspltimporttifffileimg=tifffile.imread('path to file')nuset=Nuset()mask=nuset.predict(image=img,watershed=True,min_score=0.8,nms_threshold=0.1,rescale_ratio=2.5)thr=0.7mask[mask<thr]=0mask[mask>thr]=1fig=plt.figure(figsize=(15,15))plt.imshow(img,cmap='viridis')plt.imshow(mask,alpha=0.5)plt.show()You may benefit from preprocessing the image to adjust gamma, equalize the histogram etc.See the example notebook for more details:https://github.com/kushalkolar/nuset-lib/blob/master/example.ipynb
Package: nusex
nusexA dynamic, multi-language project templating utility.CPython versions 3.6 through 3.11-dev and PyPy versions 3.6 through 3.8 are officially supported.Windows, MacOS, and Linux are all supported.FeaturesAn easy-to-use CLI (command-line interface)Dynamic templating using placeholder variablesTemplate add-ons for use during the whole development lifecycleA profile system for those who maintain personal and organisation-owned projectsAutomatic dependency installationPremade templates for applications and packagesNo dependencies!InstallationYou need Python 3.6.0 or greater to run nusex.To install the latest stable version of nusex, use the following command:pipinstallnusexYou can also install the latest development version using the following command:pipinstallgit+https://github.com/nusex/nusexYou may need to prefix these commands with a call to the Python interpreter depending on your OS and Python configuration.QuickstartBefore you can build and deploy templates with nusex, you need to initialise it. You only need to do this once, and not for every new project. To initialise nusex, use the following command:nusexinitSome premade templates will be downloaded for you to experiment with. You can deploy these templates with the following command(s):# For general applicationsnusexdeploynsx_simple_app# For PyPI packagesnusexdeploynsx_simple_pkgTo learn how to build templates of your own,read the documentation.Contributingnusex is open to contributions. To find out where to get started, have a look at thecontributing guide.LicenseThe nusex module for Python is licensed under theBSD 3-Clause License.
Package: nushell-sdk
Nushell Python plugin SDK⚠ Warning: this SDK is not finalized yet.While it tries to be bug-free, the architectural decisions may change in the future.The main goal to provide a seamless integration between Nushell and Python.Quick startHavenu_plugin_py-quickstart.pyfile with the following content:from nushell_sdk import NuPlugin


class QuickStartPlugin(NuPlugin):
    """The simplest Python plugin for Nushell."""

    name = "py-quickstart"

    def call(self, input):
        if input == "magic":
            return 42
        else:
            return 0


if __name__ == "__main__":
    QuickStartPlugin().run()Register it:register nu_plugin_py-quickstart.pyThe registered command ispy-quickstart, the usage comes from the documentation comment from the class. When the command is executed, thecallmethod is called. The second argument is always the input, which is a native Python type. The return of the method will be the output of the Nushell command.❯ py-quickstart
0
❯ 123 | py-quickstart
0
❯ "magic" | py-quickstart
42Mapping between Nushell and Python typesNushellPythonIntegerintFloatfloatStringstrBooleanboolDatedatetime.datetimeDurationdatetime.timedeltaFile sizeFileSize (custom)RangeRange (custom)BinarybytesListlistRecorddictTablelist of dictsNullNoneEverything elseNushellObject (custom)Raise errorIf an exception raises in Python, a Nushell error is made with the relevant information and stack trace.Parameters and signatureThe parameters can be specified in signature, using the Nushell syntax for it. The signature is prefilled with basic default options, so you have to fill only the relevant parts. For more information about Nushell pulgin signature, see thePlugins chapter of the Nushell book.If you want to provide examples, you can override theexamplesmethod.LimitationsWhile Nushell plugin architecture allows to set multiple signatures (with different command name), at current implementation only one signature can be provided for a Python plugin. If you want to provide more commands, you need to split them into different Python modulesCustom encode / decodeIf you have custom types in Nushell, you can override thedecode_customandencode_custommethods.Debug your codeIf you need to debug your code, you can callself.print, which prints tostderr. (stdoutis used to communicate between Python and Nushell.)
Package: nusselt
nusseltUsagefromnusseltimportModelLoader,ImageTransformerimporttorchdevice=torch.device("cuda"iftorch.cuda.is_available()else"cpu")model=ModelLoader(device).load_from_file("4x_sr_model.pth")model.eval()image=ImageTransformer.read_image("input.png","grayscale"ifmodel.input_channels==1else"color")output=ImageTransformer.img2tensor(image).to(device)withtorch.no_grad():output=model(output)output_image=ImageTransformer.tensor2img(output)ImageTransformer.write_image(output_image,"output.png")ArchitecturesSPANDITNOmniSRCreditsBased onchaiNNer-org/spandrel