Saravanan666/pypi-org huggingface dataset:
Package: normie
normie - Python package for normal distribution functionsExamples of use>>> from normie import cdf, invcdf
>>> cdf(2.0)
0.9772498607635498
>>> invcdf(0.5)
0.0How it works.The package uses C code, to be found in src/normie_impl.cThe code uses a built-in function for the cumulative distribution function, and a polynomial approximation for the inverse.Repositorynormie/ Python code
src/ C code
tests/ Test code
tools/ Used by poetry for build/test scripts
build.py Defines how the package including C code is built
LICENSE MIT License
pyproject.toml Poetry is used for building, testing, dev environment...
README.md This documentationCompatibility functionsTo make it easier to port code to Python or to make interoperable code, there are functions which are designed to be compatible with Excel functions for quantiles of the normal distribution.>>> from normie.compat.excel import NORM_INV
>>> NORM_INV(0.23, 1, 0.5)
0.6305765807628632Note that we don't make any effort to reproduce the exact value given by Excel. In particular, we are not trying to match any bugs (if there are any). We simply define the function NORM_INV to mean exactly what NORM.INV does in Excel, then provide our best possible evaluation.
Package: norminette
norminette for 42 schoolsInstallRequires python3.8+ (3.8, 3.9, 3.10, 3.11)Directly inside your global commandsInstall using pip.python3-mpipinstall--upgradepipsetuptools
python3-mpipinstallnorminetteTo upgrade an existing install, usepython3-mpipinstall--upgradenorminetteUsageRuns on the current folder and any subfolder:norminetteRuns on the given filename(s):norminette filename.[c/h]Prevents stopping on various blocking errors:norminette -dOutputs all the debug logging:norminette -ddDocker usagedocker build -t norminette .
cd ~/42/ft_printf
docker run -v $PWD:/code norminette /codeIf you encounter an error or an incorrect output, you can:Open an issue on githubPost a message on the dedicated slack channel (#norminette-v3-beta)Please try to include as much information as possible (the file on which it crashed, etc)Feel free to do pull requests if you want to help as well. Make sure that run_test.sh properly runs after your modifications.Run for developmentThis new version uses poetry as a dependency manager.If you want to contribute:poetryinstall# Run dev norminettepoetryrunnorminette# Or... with virtual envsource.venv/bin/activate
norminette# Run testspoetryrunpytest
Package: normscaler
normscalersA package for data normalization including the methods ofMinMaxScaler,MaxAbsScaler,RobustScaler,StandardScalerandNormalizerin Scikit-learning, andDecimalScaler. The package can automatically detect the one-hot encoded variables and skip them to be normalized.Installpipinstallnormscaleruse(1) import one or more scalers by their namesMinMaxScalerMaxAbsScalerRobustScalerStandardScalerNormalizerDecimalScalerFor example, import DecimalScaler byfromnormascaler.scalerimportDecimalScaler(2) Use Decimal scaling methodX_train_scaled,X_train_scaled=DecimalScaler(X_train,X-test)(3) Display the normalized X_train data in Pandas DataFrameX_train_scaled(4) Display the normalized X_test data in Pandas DataFrameX_test_scaledDocumentationExamples of a Jupyter note in GitHub:https://github.com/shoukewei/normscaler/blob/main/docs/examples.ipynb
Package: normtest
normtestThis package has a series of tests used to check whether a set of sample data follows, at least approximately, the Normal distribution.Available tests (25/11/2023)FillibenRyan-JoinerLooney-GulledgeInstallpip install normtestUsageEach test has its own class and can be imported as follows:fromnormtestimportRyanJoinerfromnormtestimportFillibenfromnormtestimportLooneyGulledgeTo perform the test, just instantiate the class and apply thefitmethod, passing the data set as aNumpyArray. For example:importnumpyasnptest=RyanJoiner()x_data=np.array([6,1,-4,8,-2,5,0])test.fit(x_data)After thefitmethod is applied, thetestobjectnow has a series of attributes with the test results. The main attribute istest.normality, which contains the summarized results:print(test.normality)RyanJoiner(statistic=0.9844829186140105,critical=0.8977794003662074,p_value='p > 0.100',conclusion='Fail to reject H₀')Thetestobjectalso has methods for graphical visualization of results, such as theline_upmethod. See thedocumentationfor details.Each test has its individual module, and functions can be accessed through the modules. To import the module that contains all the RyanJoiner test functions, for example, use:fromnormtestimportryan_joinerThis way, it is possible to generate graphs and obtain intermediate values from the test calculations. For example:size=7pi=ryan_joiner._order_statistic(size)print(pi)[0.08620690.224137930.362068970.50.637931030.775862070.9137931]LicenseBSD 3-Clause License
Package: normword-dna
normword_dnaThis is a simple numbers to word package. You can useMy GitHub Pageto ask your questions.normword_dnais a Python package for converting numbers to word sequences using custom short abbreviations.InstallationTo install num2words_mydna, simply use pip:UsageTo use This package, first usefrom normword_dna import dnamodule:Then, you can use thedna.from_user(number):function to convert a number to word.
Package: norn_dh
READMENORNDataKonsensuskorpuset (konsensuskorpus_master.xlsx) inneholder manuelt kuraterte rader med metadata om bøker fra 1800-tallslitteraturen som omtales i Litteraturhistoriske verk som "nasjonalromantiske".Data/1800-1839_metadata.xlsxinneholder metadata om 101 verk som ble publisert fra 1800 og før 1840.Data/1840-1869_metadata.xlsxinneholder metadata om 239 verk som ble publisert fra 1840, før 1870.ProsesseringDataprossesseringen er dokumentert i notebooks i repoet.do_analysis.ipynbaggregerer opp annotasjonene i konsensuskorpuset.add_imagination_metadata.ipynbhenter inn URN-lister for delkorpusene og legger til metadata.
Package: nornir
NornirNornir is a pure Python automation framework intented to be used directly from Python. While most automation frameworks use their own Domain Specific Language (DSL) which you use to describe what you want to have done, Nornir lets you control everything from Python.One of the benefits we want to highlight with this approach is the ease of troubleshooting, if something goes wrong you can just use your existing debug tools directly from Python (just add a line ofimport pdb&pdb.set_trace()and you're good to go). Doing the same using a DSL can be quite time consuming.What Nornir brings to the table is that it takes care of dealing with your inventory and manages the job of dispatching the tasks you want to run against your nodes and devices. The framework provides a very simple way to write plugins if you aren't happy with the ones we ship. Of course if you have written a plugin you think can be useful to others, please send us your code and test cases as apull request.InstallPlease note that Nornir requires Python 3.7 or higher. Install Nornir with pip.pip install nornirPluginsSince version 3.0.0 nornir doesn't ship with plugins, instead you can rely onpipto install them for you. You can find a non-exhaustive list of plugins in the following URL:https://nornir.tech/nornir/plugins/If you wrote a plugin and want to add it to the list don't hesitate toadd it yourselfDevelopment versionIf you want to clone the repo and install it from there you will need to usepoetry.DocumentationRead theNornir documentationonline or review itscode hereExamplesYou can find some examples and already made toolshereExternal ResourcesBelow you can find links to talks, blog posts, podcasts and other resources:April 2019 - Packet Pushers podcast -Heavy Networking 445: An Introduction To The Nornir Automation FrameworkMay 2018 - Software Gone Wild podcast -IPSpace podcast about nornirSep 2018 - IPSpace network automation solutions -Nornir workshop(slides)May 2018 - Networklore -Introducing Nornir - The Python automation frameworkMay 2018 - Cisco blogs -Exploring Nornir, the Python Automation FrameworkBugs & New featuresIf you think you have bug or would like to request a new feature, please register a GitHub account andopen an issue.Contact & SupportOfficial channel for communicating issues is viaGitHub issuesand you can useGitHub discussionsfor general discussions around nornir. In addition, you can join the community in our#nornirchannel in thenetworktoCode Slack team.Contributing to NornirIf you want to help the project, theContribution Guidelinesis the best place to start.
Package: nornir-ansible
nornir ansibleAnsible Inventory plugin fornornir.InstallIn most cases installation via pip is the simplest and best way to install nornir_ansible.pip install nornir_ansibleBasic ExampleIn your nornir configuration, set the inventory plugin value toAnsibleInventory---inventory:plugin:AnsibleInventoryoptions:hostsfile:"inventory.yaml"Thehostsfileinventory option argument should point to a valid Ansible inventory file, in this case a yaml style
inventory such as:---all:vars:ansible_python_interpreter:"/usr/bin/python3"username:"vrnetlab"password:"VR-netlab9"children:sea:hosts:sea-eos-1:ansible_host:"172.18.0.14"sea-nxos-1:ansible_host:"172.18.0.12"children:arista-eos:hosts:sea-eos-1:vars:platform:"eos"cisco-nxos:hosts:sea-nxos-1:vars:platform:"nxos"Initialize your nornir object and validate the appropriate inventory plugin was loaded, and the inventory file was
parsed:>>>fromnornirimportInitNornir>>>nr=InitNornir(config_file="config.yaml")>>>print(nr.config.inventory.plugin)<class'nornir_ansible.plugins.inventory.ansible.AnsibleInventory'>>>>print(nr.inventory.hosts){'sea-eos-1':Host:sea-eos-1,'sea-nxos-1':Host:sea-nxos-1}>>>Useful LinksNornirNornir Discourse GroupAnsible Inventory DocumentationAn Introduction to Nornir BlogNornir using an Ansible Inventory Blog
Package: nornir-apps
NORNIR-APPSPluggable Network CLI tool built on top of Nornir and NapalmWhy do I need this?nornir_appsis a lightweight wrapper around Nornir and Napalm and it provides a CLI that makes it easy to plugin Nornir-based scripts you have. The ClI tool comes with a few plugins that use thenornir_napalmtools that may already be suitable for quick tasks. However, you can easily add to the CLI by writing your own plugin.Getting StartedInstallationInstallnornir_appsusing pip:pipinstallnornir-appsConfigure your Nornir inventory and Initialization configYou can use your existing nornir configuration files and inventory without any modifications. By default,nornir_appslooks for aconfig.yamlfile in the root of directory from which you're using thenornir-appCLI command. You can pass another file using the-ior--init-fileflag as well. You can review sample configuration and inventory files below. They are samples from theexamplesdirectory in the root of this repo.Sample hosts file# examples/inventory/hosts.yamlcat9k:hostname:10.253.175.87port:22username:ciscopassword:ciscogroups:-cisco_iosxeSample Groups file# examples/inventory/groups.yaml---cisco_iosxe:platform:iosdata:role:routerconnection_options:napalm:extras:optional_args:fast_cli:Falsesecret:ciscoconn_timeout:30Nornir Initialization file---core:raise_on_error:Falserunner:plugin:threadedoptions:num_workers:100logging:enabled:Trueinventory:plugin:SimpleInventoryoptions:host_file:"inventory/hosts.yaml"group_file:"inventory/groups.yaml"defaults_file:"inventory/defaults.yaml"Getting Started with the CLIView available commandsUsenornir_apps --helpto view the included commands based on thenapalm_nornirproject. Any plugin that you create and register will show as an available command in the future.➜nornir_app--help

<OUPUTOMMITTED>

Commands:napalm-configureRetrievedeviceconfigurationnapalm-getRetrievedeviceconfigurationusingnapalmgettersnapalm-pingPingdevicenapalm-validateValidatedevicecomplianceusingnapalm_validateExamplesnornir_app-iinventory/config.yaml-hcat9knapalm-ping-d8.8.8.8Note: the CLI looks for aconfig.yamlfile by default to initiliaze NornirIf you have aconfig.yamlfile present in the current directory, you can omit the-iflag:nornir_app-hcat9knapalm-ping-d8.8.8.8The-hor--host-filteroption allows you to pass a simple filter to the inventory for host selection.nornir_app-hplatform=ios,role=routernapalm-ping-d8.8.8.8
Package: nornir-cli
nornir_cliDocumentation:https://timeforplanb123.github.io/nornir_clinornir_cliis CLI tool based onNornir framework,Nornir PluginsandClickFeaturesSimple CLI network orchestratornornir_cliis a simple CLI orchestrator, that you can use to interact with the SoT and manage your networkWorkflownornir_cliworkflow isNornirworkflow, but from CLIManage your custom nornir runbooksCreate and manage your own nornir runbook collections:Add your custom nornir runbooks as custom commands innornir_cliwithrunbook collectionsfeaturePass any python objects between custom commandsRun custom commands for any hosts directly from the CLIOr usenornir_clifor inventory management only, and take the result in your nornir runbooks. By excluding getting and filtering the inventory in your runbooks, you will make them more versatile.Manage InventoryGet Inventory, filter Inventory, output Inventory and save Inventory state from the CLI for any inventory plugin.
This is really useful for large, structured Inventory - for example,NetBoxwithnornir_netbox plugin.You can usenornir_netboxor SimpleInventory, by default. Another inventory plugin needs to be installed fromherewithpip.Run Nornir Pluginsnornir_clialready has commands, based on Nornir Plugins. Run them from the CLI, check result and statisticBuild a chain ofnornir_clicommandsInitialize Nornir, filter Inventory and run any command/command chains as one commandJson input. Json outputJson strings are everywhere! Command options and arguments accept json strings. Use this feature in your scripts with thejq,jcutilitiesCustom Multi Commands with clicknornir_clibased on click Custom Multi Commands, so you can easily add your custom command by following some principlesQuick StartInstallPlease, at first, check the dependencies inpyproject.tomland create new virtual environment if necessary and then:with pip:pip install nornir_cliwith git:git clone https://github.com/timeforplanb123/nornir_cli.git
cd nornir_cli
pip install .
# or
poetry installwith Docker:git clone https://github.com/timeforplanb123/nornir_cli.git
cd nornir_cli
docker build -t timeforplanb123/nornir_cli .
docker run --rm -it timeforplanb123/nornir_cli sh

# nornir_cli --version
nornir_cli, version 1.2.0Simple Exampleconfig.yaml# Simple Nornir configuration fileinventory:plugin:SimpleInventoryoptions:host_file:"inventory/hosts.yaml"hosts.yaml# Single host inventorydev_1:hostname:10.1.0.1username:usernamepassword:password# huawei is just an example hereplatform:huaweinornir_cli# As instance, let's run netmiko_send_command

$ nornir_cli nornir-netmiko init netmiko_send_command --command_string "display clock"

netmiko_send_command************************************************************
* dev_1 ** changed : False *****************************************************
vvvv netmiko_send_command ** changed : False vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv INFO
2021-03-17 14:04:22+03:00
Wednesday
Time Zone(Moscow) : UTC+03:00
^^^^ END netmiko_send_command ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dev_1                                             : ok=1               changed=0               failed=0

OK      : 1
CHANGED : 0
FAILED  : 0
Package: nornir-f5
nornir_f5Collection of Nornir plugins to interact with F5 systems and deploy declaratives to F5 Automation Toolchain (ATC) services like AS3, DO, and TS.InstallationPippipinstallnornir-f5Poetrypoetryaddnornir-f5UsagefromnornirimportInitNornirfromnornir.core.taskimportResult,Taskfromnornir_utils.plugins.functionsimportprint_resultfromnornir_f5.plugins.tasksimport(atc,bigip_cm_config_sync,bigip_cm_failover_status,)defas3_post(task:Task,as3_tenant:str)->Result:# Get the failover status of the device.failover_status=task.run(name="Get failover status",task=bigip_cm_failover_status).result# If it's the ACTIVE device, send the declaration and perform a sync.iffailover_status=="ACTIVE":task.run(name="POST AS3 Declaration from file",task=atc,atc_method="POST",atc_service="AS3",as3_tenant=as3_tenant,atc_declaration_file=task.host["appsvcs"][as3_tenant]["atc_declaration_file"],)task.run(name="Synchronize the devices",task=bigip_cm_config_sync,device_group=task.host["device_group"],)returnResult(host=task.host,result="ACTIVE device, AS3 declaration successfully deployed.",)# Else, do nothing...else:returnResult(host=task.host,result="STANDBY device, skipped.")nr=InitNornir(config_file="config.yml")nr=nr.filter(platform="f5_bigip")result=nr.run(name="AS3 POST",task=as3_post,as3_tenant="Simple_01",)print_result(result)PluginsConnectionsf5: Connects to an F5 REST server.Tasksatc: Deploys ATC declaratives on a BIG-IP/IQ system.atc_info: Returns the version and release information of the ATC service instance.bigip_cm_config_sync: Synchronizes the configuration between BIG-IP systems.bigip_cm_failover_status: Gets the failover status of the BIG-IP system.bigip_cm_sync_status: Gets the configuration synchronization status of the BIG-IP system.bigip_shared_file_transfer_uploads: Uploads a file to a BIG-IP system.bigip_shared_iapp_lx_package: Manages Javascript LX packages on a BIG-IP system.bigip_sys_version: Gets software version information for the BIG-IP system.bigip_util_unix_ls: Lists information about the file(s) or directory content on a BIG-IP system.bigip_util_unix_rm: Deletes a file on a BIG-IP system.AuthorsEric Jacob (@erjac77)
Package: nornir-infrahub
Nornirplugin forInfrahubInstallationpip install nornir_infrahubInfrahub as the Nornir inventoryInfrahub can be used as an inventory source for Nonir.
An example of this can be found in./examples/nornir_inventory.pyInfrahub Artifact TasksA set of tasks are provided to operate on Infrahub Artifacts.generate_artifacts: generates the Artifacts for a Artifact Definitionregenerate_artifact: re-generates an Artifact for a Nornir Hostget_artifact: retrieve an Artifact for a Nornir HostAn example of this can be found in./examples/nornir_tasks.py
Package: nornir-inspect
Nornir InspectNornir inspect is a Python library for inspecting the Nornir result structure.Installpip install nornir-inspect

or

poetry add nornir-inspectUsageNornir setup stepsfromnornirimportInitNornirfromnornir.core.taskimportResult,Tasknr=InitNornir(runner={"plugin":"threaded","options":{"num_workers":10,},},inventory={"plugin":"SimpleInventory","options":{"host_file":"tests/hosts.yaml"},},logging={"enabled":False},)deftask_1(task:Task,number:int)->Result:n=number+1returnResult(host=task.host,result=f"{n}")result=nr.run(task=task_1,number=1)fromnornir_inspectimportnornir_inspectnornir_inspect(result)<class'nornir.core.task.AggregatedResult'>├──failed=False├──failed_hosts={}├──name=task_1├──<class'nornir.core.task.MultiResult'> ['node1']│├──failed=False│├──failed_hosts={}│├──name=task_1│└──<class'nornir.core.task.Result'> [0]│├──changed=False│├──diff=│├──exception=None│├──failed=False│├──host=node1│├──name=task_1│├──result=2│├──severity_level=20│├──stderr=None│└──stdout=None├──<class'nornir.core.task.MultiResult'> ['node2']│├──failed=False│├──failed_hosts={}│├──name=task_1│└──<class'nornir.core.task.Result'> [0]│├──changed=False│├──diff=│├──exception=None│├──failed=False│├──host=node2│├──name=task_1│├──result=2│├──severity_level=20│├──stderr=None│└──stdout=None└──<class'nornir.core.task.MultiResult'> ['node3']├──failed=False├──failed_hosts={}├──name=task_1└──<class'nornir.core.task.Result'> [0]├──changed=False├──diff=├──exception=None├──failed=False├──host=node3├──name=task_1├──result=2├──severity_level=20├──stderr=None└──stdout=NoneAddtional Optionsvals(bool): If True, the values of the attributes will be printed. Defaults to True.headings(bool): If True, the first line of the output will include the objects key name or list postion. Defaults to True.
Package: nornir-ipfabric
nornir_ipfabricIPFabricInventory plugin fornornir.InstallThe recommended way to install nornir_ipfabric is via pippipinstallnornir-ipfabricRequirementsAn instance ofIP Fabricis required to collect information.Request trial license.Example usageUsing env varsSet environment vars to provide url and credentials to connect to the IP Fabric serverexportIPF_URL=https://ipfabric.localexportIPF_USER=adminexportIPF_PASSWORD=mySecretPasswordIf IP Fabric version 3.7 or above is in use,token authenticationis availableexportIPF_URL=https://ipfabric.localexportIPF_TOKEN=myTokenfromnornirimportInitNornirnr=InitNornir(inventory={"plugin":"IPFabricInventory"})Using the InitNornir functionInit with credentialsfromnornirimportInitNornirnr=InitNornir(inventory={"plugin":"IPFabricInventory","options":{"ipf_url":"https://ipfabric.local","ipf_user":"admin","ipf_password":"mySecretPassword",},},)Init with tokenfromnornirimportInitNornirnr=InitNornir(inventory={"plugin":"IPFabricInventory","options":{"ipf_url":"https://ipfabric.local","ipf_token":"myToken",},},)Using the Nornir configuration fileFileconfig.yamlwith credendials---inventory:plugin:IPFInventoryoptions:ipf_url:"https://ipfabric.local"ipf_user:"admin"ipf_password:"mySecretPassword"Fileconfig.yamlwith token---inventory:plugin:IPFInventoryoptions:ipf_url:"https://ipfabric.local"ipf_token:"myToken"Usage:fromnornirimportInitNornirnr=InitNornir(config_file="config.yaml",inventory={"plugin":"IPFabricInventory"})Useful LinksIP Fabric websiteIP Fabric channel on SlackNornirNornir plugins pageNornir Discourse GroupAn Introduction to Nornir
Package: nornir-nautobot
Nornir NautobotNornir-Nautobot is a set of utilities to help interact with Nautobot via Nornir. The nornir_nautobot project intends to solve two primary use cases.Providing a Nornir inventory that leverages Nautobot's API.A set of opinionated Nornir plugins.The set of plugins intend to provide mechanisms to include common networking workflows that will help enable network automation. As an example, there are method to get configurations or test network connectivity. Over time this will include functions to perform actions such as get vlans, neighbors, protocols, etc.InstallationTo install Nornir Nautobot install via Python PIP:pipinstallnornir-nautobotInventoryThe inventory plugin is used to gather inventory from a Nautobot instance. This queries the DCIM endpoint to gather information about the devices.InventoryProcessor PluginThis is an opinionated plugin to help with network automation workflows with Nautobot.Processor PluginTask PluginThe task plugin helps with dispatching specific functions with multiple underlying OS.Task Plugin
Package: nornir-nautobot-extensions
Nornir Nautobot ExtensionsExtensions that enable additional platform support for nornir-nautobot.nornir-nautobot can be found here:https://github.com/nautobot/nornir-nautobotCurrent ExtensionsFortinet FortiOSHistory0.1.0 (2022-07-11)First release on PyPI.