Saravanan666/pypi-org huggingface dataset:
Package: nivacloud-qclib
# InstallingInstall fromhttps://pypi.org/:` pip installnivacloud-qclib`# Standalone module containing quality testsInput to the libary is a qcinput stucture which contains two lists:Values: it is a list of lists [[],[],[],…], where inner list is [datetime, value]Locations: is it a list of lists [[],[],[],…], where inner list is [datetime, lon, lat] and it is optionalDatahas tobe sorted ascending in time (first element in the list is the oldest, last element is the newest)and a dictionarytests, where key is the measurement name
(e.g. temperature, or salinity, or…) and the value is a
list of tests =[“global_range”,”local_range”]…# QC.pyA simple interface to facilitate execution of QC tests during ingest phase.
It contains a platform_dict to relate platform_code to the relevant QC class and
the three functions:
1. init(platform_code) instatiates (creates obj of) a relevant platform class. If platform_code is not found in platform_dict a PlatformQC is instatiated.
2. execute(platform, qc_input, measurement_name, tests) calls applyQC function defined in PlatformsQC.
3. finalize() prints success.# PlatformQC.pyContains a global common_tests dictionary and definition of PlatformQC class.
PlatformQC has a constructor which initiated qc_tests to be the same as common_tests.
applyQC method of this class executes the QC functions for each test in qc_tests and stores relevant QC flags.
It also contains methods to format flags.# Platforms.py
Contains definitions of subclasses for each platform: FerryboxQC, SeaGliderQC, WaveGliderQC, SailbuoyQC.
They all inherit from PlatformQC defined in PlatformQC.py
Constructor in derived class may modify threshold and qc_tests dictionary.
In addition platform specific information such as calibration may be added here.# QCTests.py
Contains definition of QCTests class which has a list
of (static) function definitions for each QC test and a decorator checking number of sample requirements for each test.
This class is a base for PlatformQC.# Thresholds.py
Defines threshold values for range tests.# Version updateIn order to update qclib version, update __version__ attribute in qclib/__init__.pypip install -e .# ChangelogWhenever we release a new version, the changes should be listed in [CHANGELOG.md](CHANGELOG.md)
Package: nive
Nive application base packageThis is the base package.Source codeThe source code is hosted on github:https://github.com/niveThe form module nive.components.reformThe reform package is a merge of deform and colander and includes several changes
to make form handling easier. Please see nive.components.reform.README.txt for details.TranslationsTranslations can be extracted using lingua>=3.2pip install lingua-3.2
bin/pot-create -o nive/locale/nive.pot niveDependencieslibrary 'pillow' 10> optional. required for extensions.images.
Package: nive_cms_design_bs3
# Nive cms design based on bootstrap 3!Currently the default design. Now released as independent package.See Nive cms:http://cms.nive.co## UsageAfter installation (pip install nive_cms_design_bs3) activate the element by
addingnive_cms_design_bs3to your website project module list.For a default scaffold installation go to__init__.pyof your website
and add the following line to the configurationwebsite.modules.append("nive_cms_design_bs3")e.g.website = AppConf("nive.cms.app",
    title=u"My website",
    id="website",
    ...
)
website.modules.append("nive_cms_design_bs3")
Package: nive_cms_design_bs_grayscale
# Single page cms design based on bootstrap 3 grayscale!The design renders a series of pages on the level on a single page. The navigation allows the user to scroll smoothly
to the selected content without leaving the page. The editor shows only the single page for easier handling.## ABOUT GRAYSCALEGrayscale is a free Bootstrap 3 theme created by Start Bootstrap. It can be yours right now, simply download the
template on the preview page. The theme is open source, and you can use it for any purpose, personal or commercial.This theme features stock photos by Gratisography along with a custom Google Maps skin courtesy of Snazzy Maps.Grayscale includes full HTML, CSS, and custom JavaScript files along with LESS files for easy customization.Seehttp://startbootstrap.com/template-overviews/grayscale/## UsageAfter installation (pip install nive_cms_design_bs_grayscale) activate the element by
addingnive_cms_design_bs_grayscaleto your websites’ project module list.For a default scaffold installation go to__init__.pyof your website
and add the following line to the configurationwebsite.modules.append("nive_cms_design_bs_grayscale")e.g.website = AppConf("nive.cms.app",
    title=u"My website",
    id="website",
    ...
)
website.modules.append("nive_cms_design_bs_grayscale")See Nive cms:http://cms.nive.co
Package: nive_markdowntext
# Markdown text element for Nive cmsSee Nive cms:http://cms.nive.coAdds a markdown text page element to the list of available elements.
Markdown syntax is automatically converted to html.## UsageAfter installation (pip install nive_markdowntext) activate the element by
addingnive_markdowntextto your website project module list.For a default scaffold installation go to__init__.pyof your website
and add the following line to the configurationwebsite.modules.append("nive_markdowntext")e.g.website = AppConf("nive.cms.app",
    title=u"My website",
    id="website",
    ...
)
website.modules.append("nive_markdowntext")
Package: niveristand
InfoVeriStand Python SupportAuthorNational InstrumentsAboutTheniveristandpackage contains an API (Application Programming Interface) that interacts with VeriStand systems.
The package is implemented in Python. NI created and supports this package.Requirementsniveristandrequires the following to be installed:VeriStand 2020 or laterCPython 3.8 or later (the standard Python, available on python.org and elsewhere)RecommendedNI recommends you use an editor with code completion, such asVisual Studio Code, to make it easier to browse and use this code.InstallationTo installniveristand, use one of the following methods:pip:$ python -m pip install niveristandeasy_installfromsetuptools:$ python -m easy_install niveristandDownload the project source and run the following script:$ python setup.py installUsageRefer to theSystem Definition Examples sectionfor detailed examples of how to script a system definition file.Refer to theBasic Real-time Sequence Examples sectionfor detailed information on how to write a Python real-time sequence.Support / FeedbackTheniveristandpackage is supported by NI. For support forniveristand, open
a request through the NI support portal atni.com.Bugs / Feature RequestsTo report a bug or submit a feature request, please use theGitHub issues page.DocumentationTo view the documentation, visit theVeriStand Python Documentation Page.Additional DocumentationRefer to theVeriStand Helpfor detailed information on setting up a system and running real-time test scenarios.VeriStand Help installs only with the full version of VeriStand.Licenseniveristandis licensed under an MIT-style license (seeLICENSE).  Other incorporated projects may be licensed under different
licenses. All licenses allow for non-commercial and commercial use.
Package: nive-userdb
Nive User DatabaseThis package provides the user database for nive applications 'nive_cms' and 'nive_datastore'.
It can be used as standalone user management plugin for pyramid applications though
the installation is not explicitly dcumented. Please refer to 'Nive cms'.VersionThe package will soon be released as stable 1.0 version. For a better package management the previousnivepackage has been split up into several smaller packages.
If you are updating from version 0.9.11 or older please readupdate-0.9.11-to-1.0.txt.
Version 0.9.12 is compatible.Source codeThe source code is hosted on github:https://github.com/nive/nive_userdbDocumentation, part of Nive cmshttp://cms.nive.co/doc/html/index.htmlTranslationsTranslations can be extracted using lingua>=3.2pip install lingua-3.2
bin/pot-create -o nive_userdb/locale/nive_userdb.pot nive_userdbEmail testsUse loacel email test smtp serverpython -m smtpd -n -c DebuggingServer localhost:1025
Package: niworkflows
NeuroImaging Workflows (NiWorkflows)is a selection of image processing workflows
for magnetic resonance images of the brain. It is designed to provide an easily
accessible, state-of-the-art interface that is robust to differences in scan
acquisition protocols and that requires minimal user input.This open-source neuroimaging data processing tool is being developed as a part of
the MRI image analysis and reproducibility platform offered by theNiPreps Community.Documentation:https://www.nipreps.org/niworkflows/
Package: nixio
VersionsThis repository’smasteris the development branch ofNIXPY. It is not guaranteed to build or work properly. At times it may not even work at all. We strongly recommend using the latest stable version, which can be found on PyPI asnixio.About NIXPYTheNIXPYproject is an extension toNIXand provides Python bindings forNIX.Getting StartedThe simplest way to installNIXPYis from PyPI using pip. The name of the package isnixio:pip install nixioTo check if installed properlyTry importing nixio:>>> import nixio
>>>If python successfully executesimport nixio, the installation went well.
Check out the API documentation for further tutorials.NIXPY API DocumentationThe API documentation can be foundhere.
Package: nixml
NIX-ML : Easy, reproducible, environments with Nix + YAMLSimple, perfectly reproducible, environments withnixspecified using an YAML file.Example, write to a file calledenv.nml:nixml: v0.0
snapshot: stable-19.03
packages:
  - lang: python
    version: 2
    modules:
      - numpy
      - scipy
      - matplotlib
      - mahotas
      - jupyter
      - scikitlearnNow, runnixmlshelland you will be dropped into an environment containing the packages listed
above, as was up to date in March 2019. Conceptually, the environment will
always be generated from scratch, but caching means that the first time will
take significantly longer (including, it will download all dependencies).
Afterwards, it should take a few seconds at most.This environment will be like a typicalconda/pip/virtualenv/...environment:
if will place the corresponding binaries at the front of thePATHso that
they are picked with high priority, but, alternatively, you can generate apure environment, which will containonly the packages that you specify.
This avoids accidental use of packages that are not part of the environment:nixmlshell--pureFinally, you can runnixmlgenerateto just create thenixml.nixcorresponding to the enviroment.DependenciesPythonnixNIXML FormatIt's a YaML filenixml: version of nixml to use. Currently, onlyv0.0is supported.snapshot: This is the package version to use. Currently, onlystable-19.03is available, but general syntax is{stable,unstable}-{year}.{month}.packages: A list of packages, which are grouped into language blocks.
Currently supported:python: Python language environment, specify the version (version) andmodules.texlive: Texlive packagesnix: Generic packages (i.e.,vimorbash)AuthorLuis Pedro Coelho(email:luis@luispedro.orgon twitter:@luispedrocoelho)
Package: nixnet
InfoCommunicate over CAN or LIN via NI-XNET hardware with Python.AuthorNational Instruments>>>importnixnet>>>withnixnet.FrameInStreamSession('CAN1')asinput_session:>>>input_session.intf.can_term=constants.CanTerm.ON>>>input_session.intf.baud_rate=125000>>>frames=input_session.frames.read(count)>>>forframeinframes:>>>print('Received frame:')>>>print(frame)Quick StartRunningnixnetrequires NI-XNET or NI-XNET Runtime. Visit theni.com/downloadsto download the latest version
of NI-XNET.nixnetcan be installed withpip:$ python -m pip install nixnet~=0.3.2Now you should be able to move onto theExamples.ResourcesDocumentation.Source.Product SupportThenixnetpackage and NI-XNET are supported by NI. For support, open
a request through the NI support portal atni.com.Bugs / Feature RequestsWe welcome all kinds of contributions.  If you have a bug to report or a feature
request fornixnet, feel free toopen an issue on Githuborcontribute the change yourself.Statusnixnetpackage is created and maintained by National Instruments.The following support is included:CAN and LIN protocolFrames, Signals, and frame/signal conversionDatabase APIsFor a complete list of supported features and functions, see thedocumentation.See theenhancement issuesfor potential future work.Breaking API changes will be kept to a minimum. If a breaking change is made, it will be planned throughbreaking-change isssuesand communicated viasemverand therelease notes.Known issues.nixnetcurrently supportsWindows operating system.CPython 2.7.0+, 3.4+, PyPy2, and PyPy3.NI-XNET 15.5+Licensenixnetis licensed under an MIT-style license (seeLICENSE).
Other incorporated projects may be licensed under different licenses. All
licenses allow for non-commercial and commercial use.
Package: nix-nox
Nox is a small tool that makes the use of the Nix package manager
easier.Nox is written in Python 3 and requires nix 1.8 and git. It is
released under MIT license.Try itYou can install it from nixpkgs by runningnix-env-inox.To try the last version, just clone the repository, runnix-build,
and run the resulting binaries inresult/bin. To install it, runnix-env-if..SearchJust runnox QUERYto search for a nix package. The underlyingnix-envinvocation is cached to make the search faster than your
usualnix-env-qa| grep QUERY. In addition, package descriptions
are searched as well as their names. You may specify multiple queries,
in which case only packages matching all of them will be listed. Queries
are considered as Python-style regular expressions.Once you have the results, type the numbers of the packages to install.Bonus: if you enter the letter ‘s’ at the beginning of the package
numbers list, a nix-shell will be started with those packages instead.ReviewThenox-reviewcommand helps you find what has changed in nixpkgs, and
build changed packages, so you’re sure they are not broken. There are 3 modes:nox-reviewwipcompares the nixpkgs in the current working dir
against a commit, so you can check that your changes break
nothing. Defaults to comparing toHEAD(the last commit), but you
can change it:nox-reviewwip--againstmaster^'.nox-reviewpr PRfinds the packages touched by the given PR and build
them.ExperimentalI’m working on a new command,nox-update, that will display
information about what is about to be updated, especially giving info
not provided by nixos-rebuild:Why is everything being installed?Which are package upgrades?Which are expression changes?Which are only rebuilds trigerred by dependency changes?Especially, what package triggered the rebuild?A picture is better than a thousand words, so here is what it looks like for
now:
Package: nixpass
Hello fellow person,nixpass was created to help organize, generate, and store passwords. It allows password workspaces to be encrypted with AES-256 and decrypted with a single password, giving access to all entered credentials within that workspace.Work flow was designed to create organized spaces called password files. The designed workflow is as follows:Homewhich has entriesGoogle-username
-passwordReddit-username
-passwordThese entries are stored in JSON format, encrypted with AES-256, encoded with base64 and written to a file.To open a workspace, enter the name of the Workspace and authenticate. This will decode and decrypt the JSON in the file that has all the entries.To view the username/password of a password file entry, enter the entry name:RedditThis will provide the username/passwordfoo bar---Installation----Via Pip-1.Create virtual environment, was developed with python 3.6 modules2.pip install nixpass3.run nixpass  from virtual environment-Via Standalone-Download stand-alone-nixpass.py from github -https://github.com/gatovato/nixpassRename to whateverCreate virtual environment - developed using standard python 3.6 modules and pycrypto 2.6.1Include path to your virtual environment in the !# at the topHope this helps in your password management/storage needs-Shane Guymon, aka. gatovato 😸  11/1/2018
Package: nixpkgs
# nixpkgs-python-importer## WhatAn importlib hack that allowsfrom nixpkgs.pythonpackagename import modulename.Examples:from nixpkgs.scipy import scipy
import nixpkgs.scipy.scipy
from nixpkgs.matplotlib.matplotlib import pyplot as plt
import nixpkgs.matplotlib.matplotlib.pyplot as plt
from nixpkgs.pillow.PIL import Image## WhyI used to be a researcher who usedpythonandxonshinteractively a lot.
While I appreciate the purity of Nix, sometimes I really want to violate it
and pull in some dependency into my shellright now,
without tearing my session down, editing and rebuilding an environment,
and then recreating my session from history.A convenient way of spawning axonshinstance with an extra dependency
soothes the nerves a bit, but doesn’t really free me from the recreation part.I started writing axonshmacro that ended up being a generic Python solution
with a pleasingly nice syntax. I mean,from nixpkgs.scipy import scipy.
Ain’t that nice?## Howimportlibmagic## TryThe quickest way to try it would be (on a recent NixOS):` nix run-f'(import <nixpkgs>{}).python3.withPackages(ps:[ps.nixpkgs])'-cpython `then tryfrom nixpkgs.pbr import pbr(or any other package).If that doesn’t work, you may also try your luck with unstable nixpkgs:` nix run-fchannel:nixos-unstable'(import <nixpkgs>{}).python3.withPackages(ps:[ps.nixpkgs])'-cpython `
Package: nixpkgs-pytools
python nixpkgs toolsThese are scripts written to remove the tedious nature of creating nix
package derivations for nixpkgs. The goal of these scripts is not to
create a perfect package derivation but complete as much as possible
and guide the user on necessary changes.python-package-initusage: python-package-init [-h] [--version VERSION] [--filename FILENAME] [--stdout] [--nixpkgs-root NIXPKGS_ROOT] [-f] package

positional arguments:
  package               pypi package name

optional arguments:
  -h, --help            show this help message and exit
  --version VERSION     pypi package version (stable if not specified)
  --filename FILENAME   filename for nix derivation
  --stdout              Print the nix derivation to stdout
  --nixpkgs-root NIXPKGS_ROOT
                        Root directory of nixpkgs
  -f, --force           Force creation of file, overwriting when it already existspython-package-initnow has the ability to create a<package-name> = callPackages ../...<package-name> { };inpkgs/top-level/python-modules.nixand write thedefault.nixtopkgs/development/python-modules/<package-name>/default.nixwith a
nearly complete derivation.Example lets addnixpkgs-pytoolsto nixpkgs. It is already in
nixpkgs so you would need to provide the-f(force) option to force
it to be written to nixpkgs.nix-shell-pnixpkgs-pytools
python-package-initnixpkgs-pytools--nixpkgs-root=<pathtonixpkgs>Creates adefault.nixderivation to go intonixpkgs/pkgs/development/python-modules/<pypi-name>/default.nix. This
script is overly verbose so that you don't have to remember the name
of attributes. Delete the ones that you don't need.python-rewrite-importsusage: python-rewrite-imports [-h] --path PATH [--replace REPLACE REPLACE]

optional arguments:
  -h, --help            show this help message and exit
  --path PATH           path to refactor imports
  --replace REPLACE REPLACE
                        module import to replaceexample rewriting airflow importsnix-shell-pnixpkgs-pytoolscd/tmp
wgethttps://github.com/apache/airflow/archive/master.tar.gz
tar-xfmaster.tar.gz

python-rewrite-imports--path/tmp/airflow-master\--replaceflask_appbuilderflask_appbuilder_1_13_6237336a2b92fa6ba5f7f14dda56c08af6c0a76a\--replacependulumpendulum_1_4_4_55011d302b80c60360e2cc9f3a5ace7336c727c7

grep-Rpendulum/tmp/airflow-masterYou'll notice that all imports have been rewritten. Rewrites are done
viaropea robust refactoring
library used by many text editors.Hacking on these toolsnix-shellwill load the correct environment for your usage:nix-shell
Package: nix-shell-utils
nix_shell_utilssimple shell-like commands for Pythonnix_shell_utilsis a collection of Python function wrappers around commonly
used shell commands. The idea is to move all the small shell scripts heavily
usingcp,mkdir,rmand shell globbing that tend to be used for automation
into one’s Python codebase.The package isnotmultiplatform: it will only work in unix-like systems (only tested
in Ubuntu & RHEL).DependenciesPython version required:3.7+If documentation is to be generatedsphinxandsphinx_rtd_themepackages are required:pip install sphinx sphinx_rtd_themeInstallationSimply typepip install nix_shell_utilsDocumentationDocumentation can be found @readthedocsExamplescp, cd, mkdir: the following pythonfromunix_shell_utilsimport*dest='$PRJ_HOME/sv/src'src='$PRJ_HOME/gen/sv/out'mkdir(dest)# make destination folderwithcd(src):# change to src directory - returns automatically to current foldercp('*.sv',dest)# copy all .sv files in src to dest folderis equivalent to this shell code:dest=$PRJ_HOME/sv/src
src=$PRJ_HOME/gen/sv/out
mkdir -p $dest
curdir=$PWD
cd $src
cp *.sv $dest
cd $curdirremoving files: the following codewithcd('$PRJ_HOME/logs/'):rm('*.log')is equivalent to the following shell commands:curdir=$PWD
cd $PRJ_HOME/logs
rm -rf *.log
cd $curdirtemporary environment: the code under thetmpenvcontext managerwithtmpenv('HOME',FOO='BAR'):print(os.environ['FOO']# ==> 'BAR'...will modify temporarily theos.environin place so thatHOMEenv variable is
deleted, and a new environment variableFOOis added. Upon leaving thewithblock,os.environis returned to its prior state.Developmentclone this repository (or download a zip and unzip it somewhere)git clone https://github.com/alb-garcia/nix_shell_utils.gitinside the cloned folder, make a editable installationpip install -e .To run tests (pytest needs to be installed):cd test; pytest -vvvDocumentation GenerationTo generate the documentation (assuming the clone repository lives @$NIX_SHELL_UTILS_DIR:cd $NIX_SHELL_UTILS_DIR/docs
make htmlthe documentation can be then accessed @$NIX_SHELL_UTILS_DIR/docs/_build/html/index.htm
Package: nixstatsagent
NixStats AgentNixStats.com is a web service of monitoring and displaying statistics of
your server performance.This software is an OS-agnostic agent compatible with Python 2.4, 2.5, 2.6 and 2.7.
It's been optimized to have a small CPU consumption and comes with an
extendable set of useful plugins.InstallationDepending on your platform, many installation options are possible. We
are listing them more or less in the order from the most specific (and
preferred) to the most generic ones.Debian GNU/LinuxManual installation:apt-get install python3-devel python3-setuptools python3-pip
pip3 install nixstatsagent
wget -O /etc/nixstats.ini https://www.nixstats.com/nixstats.iniYou can find your USERTOKEN on the settings page (https://nixstats.com/settings/overview). You need this to generate a serverid.nixstatshello USERTOKEN /etc/nixstats-token.iniCreate a service for systemd at/etc/systemd/system/nixstatsagent.service[Unit]
Description=Nixstatsagent

[Service]
ExecStart=/usr/local/bin/nixstatsagent
User=nixstats

[Install]
WantedBy=multi-user.targetThen run:chmod 644 /etc/systemd/system/nixstatsagent.service
systemctl daemon-reload
systemctl enable nixstatsagent
systemctl start nixstatsagentFedora / CentOSFor version 6 or earlier (python 2.6, 2.7):yum install python-devel python-setuptools gcc
easy_install nixstatsagent netifaces psutilFor version 7 and later (python 3):yum install python36-devel python36 gccpip3 install nixstatsagentWindowsDownload thewindows installer for nixstatsagent. When asked for the usertoken, provide the usertoken that is available on thesettings pageat Nixstats.Python 2.4 or 2.5 environmentAs the source package is published onPyPI,
provided that you've obtainedsetuptools,
simply do:easy_install nixstatsagent