Saravanan666/pypi-org huggingface dataset:
Package: pynxm
A python wrapper for the Nexus API.Features:Retrieve information regarding colour-specific themes for games;Access resources specific to a user:Get user details;Get user’s endorsements;Get, add and delete user’s tracked mods.Retrieve game information;Access mod information:Get latest added mods;Get latest updated mods;Get all updated mods in a specific period of time;Get trending mods;Search for a specific mod;Get mod details;Get mod’s changelogs;Endorse or abstain from endorsing a mod.Access a mod’s files:List a mod’s files;Get a mod’s file details;Generate a download link for a mod’s file.InstallationTo installpynxm, use pip:pip install pynxmUsers will also need an api key to login with, generate one for your accounthere.Application developers that wish to use Nexus’ Single Sign-On (SSO) will need an
application slug and a connection token, please contact a Nexus Community Manager
for more information.Quick ExamplesConnect to Nexus:>>> api_key = "my-api-key"
>>> nxm = pynxm.Nexus(api_key)Track a new mod:>>> game = "fallout3"
>>> mod_id = "00000"
>>> nxm.user_tracked_add(game, mod_id)Endorse a mod:>>> game = "newvegas"
>>> mod_id = "99999"
>>> nxm.mod_endorse(game, mod_id)DocumentationFor more information check outpynxm’s API documentation atpynxm.rtfd.ioYou can supplementpynxm’s API docs with theNexus API documentation.IssuesPlease use theGitHub issue trackerto submit bugs or request features.DevelopmentSetup a virtualenv, installflitand run:flit install -sThis will install an editable version ofpynxmand all dev packages.To run the checks and tests:toxAnd to publish:flit publish
Package: pynxtools-xps
A reader for XPS dataInstallationIt is recommended to use python 3.11 with a dedicated virtual environment for this package.
Learn how to managepython versionsandvirtual environments.Install this package withpipinstallgit+https://github.com/FAIRmat-NFDI/pynxtools-xps.gitfor the latest development version.PurposeThis reader plugin forpynxtoolsis used to translate diverse file formats from the scientific community and technology partners
within the field of X-ray photoelectron spectroscopy into a standardized representation using theNeXusapplication definitionNXmpes.Supported file formatsThe reader decides which parser to use based on the file extension of the files provided. For the main XPS files, the following file extensions are supported:.sle:SpecsLabProdigyfiles, propietary format of SPECS GmbH (1 and v4).xml: SpecsLab 2files, XML format from SPECS GmbH (v1.6).vms: VAMAS files, ISO standard data transfer format (ISO 14976), both in regular and irregular format.xy: SpecsLabProdigy export format in XY format (including all export settings).txt:exported byScienta Omicroninstrumentsexported byCasaXPSanalysis softwareWe are continously working on adding parsers for other data formats and technology partners. If you would like to implement a parser for your data, feel free to get in contact.Getting startedAn example script to run the XPS reader in pynxtools:!dataconverter\--readerxps\--nxdlNXmpes\--input-file$<xps-filepath>\--input-file$<eln-filepath>\--output<output-filepath>.nxsNote that none of the supported file format have data/values for all required and recommended fields and attributes in NXmpes. In order for the validation step of the XPS reader to pass, you need to provide an ELN file that contains the missing values. Example raw and converted data can be found inpynxtools_xps/examples.ContributingDevelopment installInstall the package with its dependencies:gitclonehttps://github.com/FAIRmat-NFDI/pynxtools-xps.git\\--branchmaster\\--recursivepynxtools_xpscdpynxtools_xps
python-mpipinstall--upgradepip
python-mpipinstall-e.
python-mpipinstall-e".[dev]"There is also apre-commit hookavailable
which formats the code and checks the linting before actually commiting.
It can be installed withpre-commitinstallfrom the root of this repository.Development NotesThe development process is modular so that new parsers can be added. The design logic is the following:First,XpsDataFileParserselects the proper parser based on the file extensions of the provided files. It then calls a sub-parser that can read files with such extensions and calls theparse_filefunction of that reader. In addition, it selects a proper config file from
theconfigsubfolder.Afterwards, the NXmpes nxdl template is filled with the data inXpsDataFileParserusing theconfigfile. Data that is not in the given main files can be added through the ELN file (and must be added for required fields in NXmpes).Test this softwareEspecially relevant for developers, there exists a basic test framework written inpytestwhich can be used as follows:python-mpytest-svtestsContact person in FAIRmat for this readerLukas Pielsticker
Package: pyny
Sample>>> from pyny import api
>>> data = api.get_by_id('c1161', 2)
>>>
>>> import pprint
>>> p = pprint.PrettyPrinter()
>>> p.pprint(data)
{'attrs': {'attr0': '市役所・出張所',
           'attr1': '出張所',
           'attr2': 'おおたかの森出張所',
           'attr3': '流山市西初石6-185-2（流山おおたかの森S・C内3階）',
           'attr6': '35.8706965',
           'attr7': '139.9261438',
           'attr8': '04-7154-0333 '},
 'created': '2013/07/19 17:01:02',
 'distance': 0,
 'feature_id': 2,
 'files': {},
 'geometry': 'POINT(139.9261438 35.8706965)',
 'layer_id': 'c1161',
 'mid': 0,
 'moduserid': 0,
 'status': 0,
 'user_id': 307}
>>>
>>> from pyny.models import Model
>>> from pyny.fields import DecimalField, StringField
>>>
>>> class SampleModel(Model):
...     layer_id = StringField()
...     longitude = DecimalField('attrs.attr7')
...
>>> data = SampleModel.get_by_id('c1161', 2)
>>> data.layer_id
'c1161'
>>> data.longitude
Decimal('139.9261438')
>>>Documentationhttps://github.com/7pairs/pyny/blob/master/docs/usage.md
Package: pynYNAB
.. image:: https://travis-ci.org/rienafairefr/pynYNAB.svg?branch=master:target: https://travis-ci.org/rienafairefr/pynYNAB.. image:: https://coveralls.io/repos/github/rienafairefr/pynYNAB/badge.svg?branch=master:target: https://coveralls.io/github/rienafairefr/pynYNAB?branch=master.. image:: https://img.shields.io/badge/license-MIT-blue.svg:target:  https://pypi.python.org/pypi/pynYNAB========nYNABapi========a python client for the new YNAB APIInstallation------------.. code-block:: bash$ pip install pynYNABOr you can download the source, then call `python setup.py install`Usage-----Either code your own script that uses the pynYNAB api, or use the provided scripts, ofximport, YNAB4 migrate, csvimportScripts Documentation---------------------See appropriate `README`_API Documentation-----------------See the wiki `WIKI`_ for an extended explanation and usage examplesPreventing harm to nYnab servers---------------------------I've taken all precautionary steps so that this python Client can't affect YNAB even if used too widely.* It honors requests by the server to throttle its requests  >  Same mechanisme that the JS app uses* It self-limits the requests to 5 request per second* It clearly identifies itself by User-Agent > Easy to lock it out if it causes trouble.. _README: https://github.com/rienafairefr/nYNABapi/blob/master/scripts/README.rst.. _WIKI: https://github.com/rienafairefr/pynYNAB/wiki
Package: pynyol
pynyol is the Python implementation of the Nyol package. This package is aimed at helping with processing the spanish language.Each module inside the package provides help in a different area of language processing. These modules are:#!/usr/bin/env pythonfrom towelstuff import location
from towelstuff import utilsif utils.has_towel():print “Your towel is located:”, location.where_is_my_towel()(Note the double-colon and 4-space indent formatting above.)Paragraphs are separated by blank lines.Italics,bold,
andmonospacelook like this.DictanumUseful for getting the spelling of numbers.
The spelling is handled by differentparserwhith different number ranges.
This is one example for it:#!/usr/bin/env pythonfrom pynyol.dictanum import IntParsermynum = #insert a number hereip = IntParser(mynum)print(f’the spelling for {mynum} in spanish is: {ip.text}’)
Package: pyny-web
__    __     _     
 _ __  _   _ _ __  _   _  / / /\ \ \___| |__  
| '_ \| | | | '_ \| | | | \ \/  \/ / _ \ '_ \ 
| |_) | |_| | | | | |_| |  \  /\  /  __/ |_) |
| .__/ \__, |_| |_|\__, |   \/  \/ \___|_.__/ 
|_|    |___/       |___/Tiny Python3 based web server.Installpip3installpyny-webUsageimportpyny_webpyny_web.run()Move webcontent to webroot directory which is thehtmldirectory in your project by default.The default port is 8080.ConfigAfter running for the first time apyny.configwill be generated.Here you can set the port and webroot.Per deafult the config looks like this[pyny Web]
webroot = html
port = 8080SourceCheckhere.
Package: pynyzo
PyNyzoA Nyzo client package for Python3.Free software: MIT licenseDocumentation:https://pynyzo.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.16 (2021-07-29)Extra param for easier batch sends. By request.0.0.15 (2021-07-27)Upgrade to latest nyzostrings module0.0.14 (2021-02-07)safe_send faster return0.0.13 (2021-02-07)safe_send bugfix0.0.12 (2021-01-31)safe_send support, sync and async0.0.11 (2021-01-22)Debug trace removed, adjust requirements.0.0.10 (2021-01-21)New “NyzoClient” helper
Get frozen edge from client
Generates tx and forwards to cycle
Query tx
Associated tests0.0.9 (2019-03-30)Support for blockchain v1 & v2
Support for cycle transactions0.0.8 (2019-03-30)Fix “messages” namespace0.0.7 (2019-02-05)Small fixes for empty data0.0.6 (2019-02-05)Small fix0.0.5 (2019-02-05)Support for .nyzoblock file format0.0.4 (2019-01-28)BlockRequest11, BlockResponse12, BalanceLists0.0.3 (2019-01-26)Various fixes and more transcriptions.0.0.2 (2019-01-26)First working message, StatusRequest17.0.0.1 (2019-01-25)First release on PyPI.
Package: pyo
pyo is a Python module containing classes for a wide variety of audio signal processing types.
With pyo, user will be able to include signal processing chains directly in Python scripts or
projects, and to manipulate them in real time through the interpreter. Tools in pyo module offer
primitives, like mathematical operations on audio signal, basic signal processing (filters,
delays, synthesis generators, etc.), but also complex algorithms to create sound granulation
and others creative audio manipulations. pyo supports OSC protocol (Open Sound Control), to ease
communications between softwares, and MIDI protocol, for generating sound events and controlling
process parameters. pyo allows creation of sophisticated signal processing chains with all the
benefits of a mature, and widely used, general programming language.
Package: pyo3-branchwater
pyo3_branchwatertl;dr Do fast and low-memory search/gather of many sourmash sketches
via a sourmash plugin.DetailsThis repo contains a PyO3-based Python wrapper around thecore branchwater code.Branchwateris a fast, low-memory and multithreaded application for searching very large
collections ofFracMinHash sketchesas generated bysourmash.For details, see the Rust code insrc/and Python wrapper insrc/python/.Usespyo3for the Python-to-Rust wrapping.This functionality can be used from within sourmash as a command-line
plugin; see below quickstart.DocumentationThere is a quickstart below, as well asmore documentation here.Quickstart formanysearch.To try out branchwater, you'll need to install sourmash 4.8.3 or later.This quickstart demonstratesmultisearchusingthe 64 genomes from Awad et al., 2017.1. Install necessary dependenciesYou'll need rust, Python, and maturin to build, and sourmash to run. Seeenvironment.ymlfor a list of conda packages, and developer docs below for example command lines.2. Install pyo3_branchwater.Install this repo in developer mode:pip install -e .3. Download sketches.The following commands will download sourmash sketches for the podar genomes into the filepodar-ref.zip:curl -L https://osf.io/4t6cq/download -o podar-ref.zip5. Execute!Now runmultisearchto search all the sketches against each other:sourmash scripts multisearch podar-ref.zip podar-ref.zip -o results.csv --cores 4You will (hopefully ;)) see a set of results inresults.csv. These are comparisons of each query against all matching genomes.Debugging helpIf your collections aren't loading properly, try runningsourmash sig summarizeon them,
like so:sourmash sig summarize podar-ref.zipThis will make sure everything can be loaded properly.Future thoughtsThe speed and functions of this code will probably be brought into
sourmash core in the future, most likely as part ofsourmash#2230.
However, in the meantime, this is a fun side project that makes use
of sourmash plugins and Rust to provide some fast functionality
that may be of use to some people, and it can serve as a testbed for
future sourmash functionality.Developer notesInstalling a development environmentYou'll need sourmash, rust, andmaturin.A simple way to get up and running is to run:mamba env create -n branchwater-dev -f environment.ymlin the top directory of the repo, and then activate the environment and
install in editable mode:mamba activate branchwater-dev
pip install -e .Running the tests locallyExecuting:make testwill run the Python tests.Generating a releaseBump version number inCargo.tomland runmaketo updateCargo.lock.
Then commit and push toorigin/main.Make a new release on github with a matching version tag.Then pull, and:make sdist
make upload_sdistto create a new release on PyPI.Building wheelsYou can build a release wheel for your current platform with:make wheeland it will be placed undertarget/wheels/.LicenseThis software is under the AGPL license. Please seeLICENSE.txt.AuthorsLuiz IrberC. Titus BrownMohamed AbuelaninN. Tessa Pierce-Ward
Package: pyo3-option-pricing
Option PricingOverviewPythonPyO3wrapper package over Rust crateoption-pricing.3 builds:native i.e. current platformtomanylinuxto Windows withcross.BuildCommands:# prerequisitemmactivatework
pipinstallbuild# dev installpipinstall-e.# watchcargowatch--watchrust--pipinstall-e.# testpytest# installpipinstall.# ------- build native wheelunsetCARGOunsetCARGO_BUILD_TARGETunsetPYO3_CROSS_LIB_DIRunsetPYO3_CROSS_PYTHON_VERSIONunsetDIST_EXTRA_CONFIG

python-mbuild.# ------- build manylinux wheel# image used by builddockerbuild-tbuilder-manylinux:local-f./Dockerfile.manylinux.# build wheels for several python versionsdockerrun--rm-v$(pwd):/iobuilder-manylinux:local/bin/bash/io/build-manylinux-wheels.sh# ------- build windows wheel - using cross# prerequisitecargoinstallcrossexportCARGO=crossexportCARGO_BUILD_TARGET=x86_64-pc-windows-gnuexportDIST_EXTRA_CONFIG=/tmp/build-opts.cfg# set wheel suffixecho-e"[bdist_wheel]\nplat_name=win-amd64">$DIST_EXTRA_CONFIG# image used by crossdockerbuild-tcross-pyo3:x86_64-pc-windows-gnu-f./Dockerfile.win.# build windows wheelpython-mbuild.This produced wheels for linux and windows:ls-1dist
pyo3_option_pricing-0.1.0-cp310-cp310-linux_x86_64.whl
pyo3_option_pricing-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyo3_option_pricing-0.1.0-cp310-cp310-win_amd64.whl
pyo3_option_pricing-0.1.0-cp311-cp311-linux_x86_64.whl
pyo3_option_pricing-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyo3_option_pricing-0.1.0.tar.gzPublishCommands:# prerequisitemmactivatework
pipinstall-Utwine

twinecheckdist/*# assuming .pypirc configured# for linux only manylinux: the others will be refusedtwineuploaddist/*.tar.gz
twineuploaddist/*manylinux*
twineuploaddist/*win_amd64*InstallCommands:pipinstallpyo3_option_pricingRefPackaging offical recommendation:Is setup.py deprecated?.
Package: pyo3-poker-eval
Poker EvalOverviewPythonPyO3wrapper package over Rust cratepoker_eval.Cross compilation "linux2win" is done withcross.BuildCommands:# prerequisitemmactivatework
pipinstall-Ubuild# dev installpipinstall-e.# watchcargowatch--watchrust--pipinstall-e.# testpytest# installpipinstall.# ------- build native wheelunsetCARGOunsetCARGO_BUILD_TARGETunsetPYO3_CROSS_LIB_DIRunsetPYO3_CROSS_PYTHON_VERSIONunsetDIST_EXTRA_CONFIG

python-mbuild# ------- build manylinux wheel# image used by builddockerbuild-tbuilder-manylinux:local-f./Dockerfile.manylinux.# build wheels for several python versionsdockerrun--rm-v$(pwd):/iobuilder-manylinux:local/bin/bash/io/build-manylinux-wheels.sh# ------- build windows wheel - using cross# prerequisitecargoinstallcrossexportCARGO=crossexportCARGO_BUILD_TARGET=x86_64-pc-windows-gnuexportDIST_EXTRA_CONFIG=/tmp/build-opts.cfg# set wheel suffixecho-e"[bdist_wheel]\nplat_name=pc_windows_gnu_x86_64">$DIST_EXTRA_CONFIG# image used by crossdockerbuild-tcross-pyo3:x86_64-pc-windows-gnu-f./Dockerfile.win.# build windows wheelpython-mbuildThis produced wheels for linux and windows:ls-1dist
pyo3_poker_eval-0.1.0-cp310-cp310-linux_x86_64.whl
pyo3_poker_eval-0.1.0-cp310-cp310-pc_windows_gnu_x86_64.whl
pyo3_poker_eval-0.1.0.tar.gzPublishCommands:# prerequisitemmactivatework
pipinstall-Utwineauditwheel

twinecheckdist/*# assuming .pypirc configuredtwineuploaddist/*InstallCommands:############ TBD - no ready yetpipinstallpyo3_poker_evalRefPython packaging offical recommendation:Is setup.py deprecated?.
Package: pyoad
Project page :https://smarie.github.io/python-object-as-daemon/What’s newTravis and codecov integrationDoc now generated from markdown usingmkdocsmost special methods are now correctly proxifiedobject instance can now be created on either side (main process or
daemon)Want to contribute ?Contributions are welcome ! Simply fork this project on github, commit
your contributions, and create pull requests.Here is a non-exhaustive list of interesting open topics:https://github.com/smarie/python-object-as-daemon/issuesRunning the testsThis project usespytest.pytest-vpyoad/tests/You may need to install requirements for setup beforehand, usingpipinstall-rci_tools/requirements-test.txtPackagingThis project usessetuptools_scmto synchronise the version number.
Therefore the following command should be used for development snapshots
as well as official releases:pythonsetup.pyegg_infobdist_wheelrotate-m.whl-k3You may need to install requirements for setup beforehand, usingpipinstall-rci_tools/requirements-setup.txtGenerating the documentation pageThis project usesmkdocsto generate its documentation page.
Therefore building a local copy of the doc page may be done using:mkdocsbuildYou may need to install requirements for doc beforehand, usingpipinstall-rci_tools/requirements-doc.txtGenerating the test reportsThe following commands generate the html test report and the associated
badge.pytest--junitxml=junit.xml-vautoclass/tests/ant-fci_tools/generate-junit-html.xmlpythonci_tools/generate-junit-badge.pyPyPI Releasing memoThis project is now automatically deployed to PyPI when a tag is
created. Anyway, for manual deployment we can use:twineuploaddist/*-rpypitesttwineuploaddist/*
Package: pyOADR-VEN
pyoadr-venOpenADR Virtual End NodeFree software: Apache Software License 2.0Module Documentation:https://carboncoop.gitlab.io/pyoadr-ven/Project Documentation:https://carboncoop.gitlab.io/opendsr/docs/OpenADR (Automated Demand Response) is a standard for alerting and responding
to the need to adjust electric power consumption in response to fluctuations
in grid demand.OpenADR communications are conducted between Virtual Top Nodes (VTNs) and Virtual End Nodes (VENs).
In this implementation, a this agent is a VEN, implementing EiEvent and EiReport services
in conformance with a subset of the OpenADR 2.0b specification.CreditsCarbon Co-opBattelle Memorial InstituteHistoryThis package is a work in progress and you probably shouldn’t use it yet.2023-09-25: Upgraded dependencies so this package now supports Python 3.11
Package: pyoaktree
OakTreeRender large point clouds efficiently using Octrees. The library is a C++ module with Python bindings for ease of use.Quick DemoCreate an Octree from a Numpy array containing points' xyz positions and RGB intensities.importnumpyasnpfromoaktreeimportNode# use random points, but could be any Numpy array with shape [N, 3]points=np.random.uniform(size=(100000,3))points_rgb=points.copy()/np.linalg.norm(points_rgb,axis=1,keepdims=True)points_rgb=(points_rgb+1)/2# create Octree node that allows efficient ray castingnode=Node(max_points_per_node=1000,points=points,points_rgb=points_rgb)# camera parametersimage_hw=(640,480)K=np.array([[300.,0.,320.],[0.,300.,240.],[0.,0.,1.]],dtype=np.float64)cam2world=np.array([[0.707,-0.408,-0.577,2.0],[-0.707,-0.408,-0.577,2.0],[0.0,0.816,-0.577,2.0],[0.0,0.0,0.0,1.0]],dtype=np.float64)# renderrgbd=node.render(K=K,cam2world=cam2world,image_hw=image_hw)rgb=rgbd[...,:3]depth=rgbd[...,3]You can run this and other examples with real datasets withcdexamples
pythonbox.py
pythonwurzburg.pyNote: examples require extra dependencies includingmatplotlib, PIL, pandas.Wurzburg Lecture Hall demooutput depth maps:InstallationPypi (linux only)pipinstallpyoaktreeBuild from sourceBuild dependencies:CXX compiler compatible with C++17gitclone--recursivehttps://github.com/eduardohenriquearnold/oaktree.gitcdoaktree
pipinstall.Unit tests can be executed withmkdirbuildcdbuild
cmake..
cmake--build.
ctest# or, to see results of individual tests./cpp_test
Package: py-oathtool
py_oathtoolA python wrapper script around oathtool to allow for easy OTP code generation on the command line.This project was born out of my frustration of having many many 2-Factor accounts on my mobile phone, which did not present a quick and easy mechanism to generate and use codes.Developed and tested mainly on MacOS.Installationpip install py_oathtoolDependenciesPython packagessubprocess32pyamloathtoolshould be available on the PATHMac:brew install oath-toolkitClipboard support on MacOS is supported bypbcopywhich is installed by default. For Linux installxclipUsageList the configured accounts with the-lswitch.$ otp -l
github
aws-account-dev
aws-account-prodGenerate an OTP by providing the account name. The script will provide the OTP code, and also drop it to the clipboard.$ otp aws-account-dev
129987
Valid for 18 more seconds
(On the clipboard!)If a code is only valid for a short duration the script will pause until the next 30-second window begins.$ otp cr-dev
Short lived OTP. Holding off for 4 seconds...
591658
Valid for 30 more seconds
(On the clipboard!)Read about all options$ otp -hDeclaring accountsTwo pieces of information are required for each account:An account name / labelYour 64 character oath secret provided by the 3rd party. This is typically a QR code, but websites often also offer the string.The script will read these values from a config file sourced from, by default,~/.otp-secrets.yamlin the following format:otpsecrets:
  github: IOOVV6U5AUHUISZKJNVCCG4JWUR5XDFSI7ND62A7QT5ZOEVYVA7JEEDKTG3ZM57B
  aws-account-dev: XQYNZOIA4PWCTJCB9654EQP5LUIP23BOW6J5ZIRZZSDHK24AUEDUSCONP3KQQY4N
  aws-account-prod: 57QPXJFJ4D2ILQBRZGSHKAZCJ2Y46C52FGVSZRYMY7UMWTIQI6I3GOJQZ4VJN2R4Additionally, the following configuration options are supported in the~/.otp-secrets.yamlfile:holdoff: Specify a different holdoff value to wait for the next codeuse_clipboard: Disable putting the code on the clipboardAutocompletionAutocompletion support can be added through use of the-tflag.For zsh support, add the following to your.zshrcfile:compdef _otp otp
_otp() {
  compadd `otp -t`
}BuildingActivate the pipenv with the--devflagpipenv --three
pipenv install --dev
pipenv shellBuild the packagespython setup.py sdist bdist_wheelUpload to PyPItwine upload --repository-url https://upload.pypi.org/legacy/ dist/*Disclaimer2-Factor is meant to provide an extra layer of account security and this tool does not exactly promote that concept. You should be responsible for taking reasonable steps to protect your secrets file, and perhaps this is not the ideal 2-Factor solution for your most important accounts.I take no responsibility if you lose accounts through using this tool.