Saravanan666/pypi-org huggingface dataset:
Package: pyabr
Pyabr DistroPyabr © 2019 - 2021 Mani Jamali. Free Software GNU General Public License v3.0How to Contributing?For contributing in pyabr please readCONTRIBUTING.mdWhat is Pyabr?Pyabr is a small, lightweight platform and an OS written in Python.Official Website:https://pyabr.ir,https://en.pyabr.irTutorials:https://pyabr.ir/blogDownload:https://pyabr.ir/get-pyabrTelegram Channel:https://t.me/PyFarsiDownload Pyabr ISOARM64AMD/Intel 64Installing with PyPIsudopython3-mpipinstallpyabr
sudopython3-mpyabrPyAbr first repository
Package: pyabs
自动化运维工具箱 - pyabs================================简单介绍：--------基于paramiko开发的python库，支持跨机器SSH认证及跨机器执行命令，认证方式支持密码和密钥认证，支持gevent并发认证。可用于开发自动化运维工具。使用方法：-------------参考test目录下测测试文件1. test.py：直接测试2. test_with_celery.py：celery任务测试3. test_with_gevent.py：gevent协程测试
Package: pyabst
PyAbstPyAbst is a library developed to summarise text. The PyAbst algorithm ranks words according by word frequency. Each sentence is scored through summing associated word frequencies across the sentence. PyAbst allows users to amplify or suppress the weighting for specific target words. If the target word weighting is defined sufficiantly high (or low), sentences containing the target words will always be present (or absent). An interactive An interactive web-application is currently being developed and will be available shortly atwww.pyabst.com.Contact Detailspyaugment@gmail.comInstallationYou can install, upgrade, uninstall PyAbs using these commands:$ sudo pip install pyabst$ sudo pip install --upgrade pyabst$ sudo pip uninstall pyabstExample UsageWork in progress.Frequently Asked QuestionsWork in progress.TroubleshootingWork in progress.
Package: pyabstractdatatype
PyAbstractDataTypeA simple library that addsADTsto Python.Source CodeDocumentationBasic usage:fromadtimportadt@adtclassMyADT:Variant1:(int,int)Variant2:(int)Variant3:(str,str,list[float])Supportsmatchstatement!obj1=MyADT.Variant1(2,2)obj2=MyADT.Variant3("hi","foo",[2.3,5.6,3.1415])objs=obj1,obj2forobjinobjs:matchobj1:caseMyADT.Variant1(a,b):print(f"Found you!{a},{b}")caseMyADT.Variant2(x):print(":(")case_:raiseValueError("wtf")Output:Foundyou!2,2Traceback(mostrecentcalllast):...ValueError:wtfExamplesSeeexample.py.
Package: pyacadcom
pyacadcom - Pyton automation of AutoCADPyton scripts coding for AutoCAD via ActiveX Automationv.0.0.9Requires:pywin32Features:Solves connection to Autocad COMSimplifies work with coordinatesSimplifies user inputSimple usage example:frompyacadcomimportAutoCAD,AcadPointacad=AutoCAD()point1=AcadPoint(25,50,0)nextpoint=(100,100,10)point2=AcadPoint(nextpoint)acad.ActiveDocument.ModelSpace.AddLine(point1(),point2())point3=point1+point2acad.ActiveDocument.ModelSpace.AddLine(point2(),point3())AcadPoint() is equal to AcadPoint.coordinates and returns variant array of doubles of x, y, z coordinates
AcadPoint.coordinates2D returns variant array of doubles of x, y coordinatesLinksSource code and issue trackingathttps://github.com/lobyntsev-d/pyacadcompywin32:http://pypi.python.org/pypi/pywin32Version history0.0.10:class AcadPoint renamed to AcadPointproperty coordinates2D is added to AcadPoint class0.0.9: new types added for wrapping0.0.8: fix attribute errors cases0.0.7: new COM wrapper0.0.6: bugfix0.0.5: bugfix0.0.4: user input methods0.0.3: service methods0.0.2: AcadPoint class0.0.1: first release
Package: pyacaia-async
pyacaia_asyncAsync implementation ofpyacaia, based onasyncioandbleakUsageimportasynciofrompyacaia_asyncimportAcaiaScalefrompyacaia_async.helpersimportfind_acaia_devicesasyncdefmain()addresses=awaitfind_acaia_devices()address=addresses[0]scale=awaitAcaiaScale.create(mac=address,is_new_style_scale=False)awaitscale.tare()awaitscale.startStopTimer()awaitscale.resetTimer()asyncio.run(main())CallbackWeight and settings are available, if you pass a callback function to the constructor.
In that callback you will either receive objects of typeMessageorSettings. A sample notification handler can look like this and can also be found indecode.pydefnotification_handler(sender,data)->None:msg=decode(data)[0]ifisinstance(msg,Settings):print(f"Battery:{msg.battery}")print(f"Unit:{msg.units}")elifisinstance(msg,Message):print(f"Weight:{msg.value}")scale=awaitAcaiaScale.create(mac=address,callback=notification_handler)
Package: pyaccelerator
pyacceleratorPython package to build simple toy accelerators.Dependencies:numpymatplotlibscipyInstallation:pipinstallpyacceleratorIt usualy a good idea to use avirtual environment. To create a virtual environment in thevenvfolder (assuming python3):python-mvenvvenvTo activate the virtual environment:sourcevenv/bin/activateProceed with the installation to install in the virtual environment.To deactivate the virtual environment:deactivateUsage:See thenotebooksfolder for some examples.
Package: pyaccessors
Pyaccessors: The key to listsInstallpip install pyaccessorsUsageUnique Accessfrompyaccessorsimportaccesslist_of_dicts=[{"a":"A1","b":1},{"a":"A2","b":2},{"a":"A3","b":3},]accessor=access(list_of_dict,by="a")# if you want to fail when the key does not exist# accessor = access(list_of_dict, by="a", strict=True)print(accessor)# {#     "A1": {"a": "A1", "b": 1},#     "A2": {"a": "A2", "b": 2},#     "A3": {"a": "A3", "b": 3},# }Grouped Accessfrompyaccessorsimportaccesslist_of_dicts=[{"a":"A1","b":1},{"a":"A1","b":2},{"a":"A2","b":3},]accessor=access(list_of_dict,by="a",group=True)print(accessor)# {#     "A1": [{"a": "A1", "b": 1}, {"a": "A1", "b": 2}],#     "A2": [{"a": "A2", "b": 3}],# }Deep Accessfrompyaccessorsimportaccesslist_of_dicts=[{"a":"A1","b":{"c":1}},{"a":"A1","b":{"c":2}},{"a":"A2","b":{"c":3}},]accessor=access(list_of_dict,by=["b","c"])print(accessor)# {#     1: {"a": "A1", "b": {"c": 1}},#     2: {"a": "A1", "b": {"c": 2}},#     3: {"a": "A2", "b": {"c": 3}},# }
Package: pyaccl
ACCL Python BindingsThis package provides Python bindings for theAlveo Collective Communication Library (ACCL).InstallationPyACCL is built and uploaded to PyPI with:python3setup.pysdist
python3-mtwineuploaddist/*Install it as follows:From PyPIpython3-mpipinstallpyacclLocally from source distributionpython3-mpipinstalldist/*.tar.gzLocally editablepython3-mpipinstall-e.Downloading Notebooks and OverlaysPyACCL provides a few Jupyter notebooks and associated FPGA overlays for Alveo boards. After installing the PyACCL package, you can download these with:pynqget-notebooks--from-packagepyacclallPynq will automatically download the right overlay for the Alveo device(s) in your system. If you do not have an Alveo board, add--ignore-overlaysto the above command. The notebooks and overlays will be downloaded to the folder where the command was executed, and a Jupyter notebook server can be started from there.There are several notebooks available to get you started with PyACCL:Intros to (Py)ACCLprimitivesandcollectivesShort guides to usingcompressionandcommunicatorsQuick overview ofperformance-related flagsRunning TestsPyACCL includes tests for single ACCL instances and systems of ACCL instances. The tests are designed to run against ACCL emulator/simulator sessions as well as the single-FPGA ACCL test overlay, which connects 3 ACCL instances on a single Alveo board.To run the tests, add the ACCL emulator executablecclo_emuto your path and start your emulator/simulator session:pyaccl-emulate-n<NRANKS>then run the following command from the pyaccl root folder:mpirun-np<NRANKS>python3-mpytest--with-mpiIf your system has an Alveo board andNRANKSis less or equal to 3, the test fixture will try and download the appropriate overlay for it, otherwise it will skip hardware testcases. Similarly, the test fixture will attempt to identify a valid emulator/simulator session with the appropriate number of ranks, then run testcases against it. If you omit--with-mpi, only single-instance tests will run, i.e. tests forcopy()andcombine()primitives.
Package: pyacclaim
PyAcclaim - ASF/AMC motion data parser without hardcodingAcclaim Motion Capture (AMC) data is a data format for storing motion capture data. While widely adopted by various motion capture systems including the Vicon motion capture systems, it appears that the existing AMC data parsers in Python involve some level of hardcoding (e.g. assumption on the order of keywords or sections). PyAcclaim aims to solve this issue through a more generic implementation, free of assumptions, such that broader variants of AMC file formats can be read without a problem.InstallationpipinstallpyacclaimAdditionally, if you wish to use the viewer, please installopen3d:pipinstallopen3dUsagefrompyacclaimimportloadASF,loadAMCasf=loadASF('test.asf')amc=loadAMC(asf,'test.amc')
Package: pyaccredible
Python Accredible APIPython Wrapper Accredible APIFree software: MIT licenseDocumentation:https://pyaccredible.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-09-24)First release on PyPI.0.2.0 (2018-09-25)Fix json values0.3.0 (2018-09-25)Credential creating with issued_on allows null
Package: py-accumulate
py_accumulatePython wrapper for accumulate API fromhttps://accumulatenetwork.io/install'''python
pip install py_accumulate
'''pippackage link in pypi:https://pypi.org/project/py-accumulate/UsagefromaccumulateimportAccumulateENDPOINT="https://testnet.accumulatenetwork.io/v2"a=Accumulate(ENDPOINT)a.Version()MethodsMETHOD_NAME                   :   INPUTVersion()Metrics()                     :   metric, durationFaucet()                      :   token_account_urlQuery()                       :   token_account_url or ADIQueryChain()                  :   CHAIN_IDQueryTx()                     :   txId, waitQueryTxHistory()              :   UrlQuery, QueryPaginationQueryData()                   :   Url, EntryHashQueryKeyPageIndex()           :   Url, KeyQueryDataSet()                :   Url, QueryPagination, QueryOptionsQueryDirectory()              :   UrlQuery, QueryPagination, QueryOptionsExecute()                     :   sponsor, signer, signature, keyPage, payload, checkOnlyExecuteCreateAdi()            :   url, publicKey, keyBookName, keyPageNameExecuteCreateDataAccount()    :   url, KeyBookUrl, ManagerKeyBookUrlExecuteCreateKeyBook()        :   url, PagesExecuteCreateKeyPage()        :   url, KeysExecuteCreateToken()          :   url, Symbol, Precision, PropertiesExecuteCreateTokenAccount()   :   url, TokenUrl, KeyBookUrlExecuteSendTokens()           :   To, Hash, MetaExecuteAddCredits()           :   Recipient, AmountExecuteUpdateKeyPage()        :   Operation, Key, NewKey, OwnerExecuteWriteData()            :   DataEntryReference-https://docs.accumulatenetwork.io/accumulate/developers/api/api-referenceDeveloping testingDependencies in requirements.txtVersion Mangement in setup.cfgpython-munittestdiscover-stests/accumulate/-p'test_*.py'
Package: pyacd
Python API to parse and access EMBOSS [ACD](http://emboss.sourceforge.net/developers/acd/) files===============================================pyacd is a parsing library for:- EMBOSS ACD files.- EMBOSS QA files (functional tests for EMBOSS)Install-------Installing the official package from PyPi:pip install pyacdOr from source:git clone https://github.com/hmenager/pyacd.gitcd pyacd && python setup.py installUsage-----pyacd is a Python API. Here is a small example that shows how to use it to parse an ACD file andretrieve basic information from it.`from pyacd.parser import parse_acdabiview_acd = parse_acd(open('/usr/share/EMBOSS/acd/abiview.acd','r').read())print abiview_acd.application.namefor section in abiview_acd.sections:print [p.name for p in section.parameters]`
Package: pyace
This derives from my PhD thesis:
Deng, J., Large Vocabulary Automatic Chord Estimation from Audio Using Deep Learning Approaches. PhD thesis, Department of Electrical and Electronic Engineering, The University of Hong Kong, 2016However the code of this work is written in matlab (https://github.com/tangkk/tangkk-mirex-ace). So I try to port those code into python. But this is by no means a direct porting. It is meant to be minimalist version of ACE, which keeps only the algorithmic gist of the original work.Compared with the original version which supports sevenths chords and inversions, this piece of code currently only supports maj and min triads, and it has much more elegant (only a few lines of) feature extraction and segmentation codes, which leverages librosa and hmmlearn.
Package: py-ace
﻿
透過 cython 將 script 轉換成 c 模組,
加快執行速度, 使源始碼更難破解…..轉換過程會有一些之 error 被檢查出來,
變數未定義, 語法不正確等…
因為要先轉換為 C，所以一些不常跑到的程式碼,
像一些測試用的，就不能被轉換,
另外一些使用到內建的變數如 __file__ 的檔案也不適合轉換,
列在 keep_source 的項目裡就會保留避免轉換成 c 模組,tab 和 空白在同一個檔案也不能混用,
如果用混用到請將少數的部份修正一些如 config 的檔案不希望在解壓時覆蓋到原本修改好的設定,
設定在 exclude 裡面因為使用 c 語言而且使用了最佳化的選項,
因此 20 個檔案大約需要 5 分鐘轉換的時間cython 可以混合使用 python 語法和 cython 語法,
即使不使用 cython 的語法也可以,
使用 cython 語法可以加速運算另外 cython 可以控制 gil lock,
可以在安全的範圍內釋放 gliwith nogil:
        '  do something '使用 cython 執行速度可以和 c 一樣快http://blog.csdn.net/gzlaiyonghao/article/details/45616111.在 Windows 中如果有安裝 MSVC 2008 以外的版本要先準備好開發環境
例如："%VS100COMNTOOLS%vsvars32.bat"
set DISTUTILS_USE_SDK=1
set MSSdk=12.執行python cython_setup.py build_ext --inplace沒有錯誤的話會產生一個 zip
Package: pyacgt
pyacgtA Python 3.7+ interface for Havas and Ramsay's ACME package.
Currently only supports Windows and Linux.If someone can build the MacOS binaries for ACME, I can get the Mac port working for this!LicenseContributorsNicholas MeyerEmail: nicholas.meyer2@huskers.unl.eduRelated Programs and LiteratureHavas–RamsayACME packageMeier–ZupanGeneralized square knots and homotopy 4-spheresScharlemannProposed Property 2R counterexamples examinedGompf–Scharlemann–Thompson:Fibered knots and potential counterexamples to the Property 2R and Slice-Ribbon ConjecturesInstallationInstall pyacgt with either pip or directly from github.gitclonehttps://github.com/nick5435/pyacgt.gitcdpyacgtpythonsetup.pyinstallorpython-mpipinstall-UpyacgtTODOAddoptionsas a dict tomakeACMEinput.May want to "Objectify" the interface. (I.e. make anACMEclass similar to what Sage does with GAP.)
Package: pyache
PyachePython numpy caching libraryThis library caches numpy data that is generated from files and saves them in chunks to the disk.
This is useful any time a computationally expensive task is done to files to transform them into a form needed in memory.UsageCreate aPycacheobject and callloadwith your filenames.importnumpyasnpfromtimeimportsleepfrompyacheimportPyachedefload_file(filename)->np.ndarray:print('Processing{}...'.format(filename))sleep(0.5)returnnp.ones([100])pyache=Pyache('.cache',load_file,'ones-processor')data=pyache.load(['thing-1.png','thing-2.png','thing-3.png'],on_gen=lambdax:print('Just reprocessed',x),on_loop=lambda:print('Loaded one more...'))# Takes 1.5 seconds# ... Run a second time (or program re-run):data=pyache.load(['thing-1.png','thing-2.png','thing-3.png'])# Takes 0.0 secondsdata=pyache.load(['thing-1.png','thing-2.png','thing-3.png','thing-4.png'])# Takes 0.5 secondsInstallationpipinstallpyache
Package: py-acli
Library has been developped against python 3.11Installationpipinstallpy-acliUsage:importacli.clients.cliasclifromacli.executorsimportexecutorif__name__=="__main__":# Setupclient=cli.CliClient(executor=executor("/path/to/acli"))# Get Boardresult=client.execute(cli.GetClientInfo())print(result)
Package: pyacmedns
A client library to handleacme-dnsclient communication and persistent account storage.InstallationInstall from PyPI$pipinstallpyacmednsUsageThe following is a complete example of handling the validation using this library.#!/usr/bin/env pythonfrompyacmednsimportClient,Storagewhitelisted_networks=["192.168.11.0/24","[::1]/128"]domain="your.example.org"# Initialize the client. Point it towards your acme-dns instance.client=Client("https://auth.acme-dns.io")# Initialize the storage. If the file does not exist, it will be# automatically created.storage=Storage("/path/to/storage.json")# Check if credentials were previously saved for your domainaccount=storage.fetch("your.example.org")ifnotaccount:# Account did not exist. Let's create a new one# The whitelisted networks parameter is optionalaccount=client.register_account(whitelisted_networks)# Save itstorage.put(domain,account)storage.save()# Update the acme-dns TXT record.client.update_txt_record(account,"___validation_token_recieved_from_the_ca___")
Package: pyacmi
pyacmi: TacView ACMI FileParser**.acmiis a file used by tacview for creating flight recording from simulators or real world.The source code is currently hosted on GitHub at:https://github.com/wangtong2015/pyacmiACMI file documentation:Technical Reference - ACMI flight recordings 2.2InstallationYou can install pyacmi via pip or pip3 for Python 3+:$pip3installpyacmiYou can install a specific version of pyacmi by:$pip3installpyacmi==1.2.3You can upgrade pyacmi to the latest version by:$pip3install--upgradepyacmiExamplefrompyacmiimportAcmiacmi=Acmi()acmi.load_acmi(filepath='test.acmi')print(acmi)print(acmi.reference_latitude,acmi.reference_longitude,acmi.reference_time)# 打印所有的objectforobj_idinacmi.objects:obj=acmi.objects[obj_id]print(obj)print(obj.id,obj.name,obj.country,obj.tags,obj.type)# 导出成csvacmi.export_csv('test.csv',remove_empty=True,export_obj_ids=None)Creditshttps://github.com/rp-/acmi
Package: pyacorn
Getting started is just onepip installaway#1)installtheacornpythonclientpip3 install pyacorn#2)loginandselectaproject#Storetemporarycredentialsinnetrcpyacorn login#Viewtheavailableprojectspyacorn list#3)prepareyourworkspacepyacorn grow <project id>#IfyouareonWindowsandhavingPATHproblems:py -3 -m pyacorn login
py -3 -m pyacorn list
py -3 -m pyacorn grow <project id>Frequently Asked QuestionsWhat is acorn anyway?A new platform for engineering the future. We want to make software simpler, and acorn is our vision of how to achieve that aim. Alpha testing has begun…Learn more atSquirrel Technologies Ltd..LinksWeb portal:acorn.Company website:Squirrel Technologies Ltd..Email:info@squirreltechnologies.nz.We are happy to help if you have any questions. Please email our support atsupport@squirreltechnologies.nz.
Package: pyacoustics-stc
pyacoustics-stcThe Python library for Sound Transmission Class (STC) calculationInstallationpip install pyacoustics-stcQuickstartCalculate STCfrompyacoustics_stcimportSoundTransmissionClass# sound transmission loss as dict object {Frequency : Value}stl={125:11.66,160:13.303,200:14.825,250:20.861,315:22.868,400:24.943,500:26.881,630:28.889,800:30.964,1000:32.902,1250:34.84,1600:36.984,2000:38.923,2500:40.861,3150:27.557,4000:30.67,}stc=SoundTransmissionClass(stl=stl)stc.index# 29stc.deficiency# 25.579stc.contour# {125: 13, 160: 16, 200: 19, 250: 22, 315: 25, 400: 28, 500: 29, 630: 30, 800: 31, 1000: 32, 1250: 33, 1600: 33, 2000: 33, 2500: 33, 3150: 33, 4000: 33}stc.delta# {125: 1.34, 160: 2.697, 200: 4.175, 250: 1.139, 315: 2.132, 400: 3.057, 500: 2.119, 630: 1.111, 800: 0.036, 1000: 0, 1250: 0, 1600: 0, 2000: 0, 2500: 0, 3150: 5.443, 4000: 2.33}Visualizationstc.plot()# display result as graphInteractive Graph byPlotlyStatic File Exportstc.export_graph_to_file("stc.png")# save graph result as PNG image filestc.export_graph_to_file("stc.jpeg")# save graph result as JPEG image filestc.export_graph_to_file("stc.pdf")# save graph result as PDF file# <your_local_path>/stc.pngUtilsfrompyacoustics_stc.utilsimportbuild_frequency_stl_mapstl_without_key=[22.49669,27.85324,32.77704,46.30192,52.32415,58.54912,64.36372,70.38595,76.61092,82.80217,87.39175,92.54538,97.27899,70.36132,77.44058,84.8613]stl=build_frequency_stl_map(stl_without_key)stl# {125: 22.49669, 160: 27.85324, 200: 32.77704, 250: 46.30192, 315: 52.32415, 400: 58.54912, 500: 64.36372, 630: 70.38595, 800: 76.61092, 1000: 82.80217, 1250: 87.39175, 1600: 92.54538, 2000: 97.27899, 2500: 70.36132, 3150: 77.44058, 4000: 84.8613}Testingpython -m pytestFormatterblack pyacoustics_stc
Package: pyacq
====pyacq====Version 0.1 is quite drafty.A version 0.2 is in preparation (summer 2015).pyacq is a pure python simple framework for data acquisition.By data we mean : analog signal, digital signal, video, event.pyacq use zmq and so offer a simple to distribute data across thread, process and machineto build more complex acquisition system.pyacq implement a simple layer to inteact with some hardware device. Here the list:* on linux : all comedi device* on windows : measurement computing device with Universal Library* on linux/win : the Emotiv EEG system.* on linux/win : the brainvision EEG with the socket.pyacq also propose some basic visualisation with Qt4 widget to be embeded in Qt application:* a simple but multi signal continuous oscilloscope.* a online multisignal time frequency* a multi signal oscilloscope in triggered mode.More information----------------- github: https://github.com/samuelgarcia/pyacq- Mailing list:- Documentation: http://packages.python.org/pyacq/For installation instructions, see doc/source/install.rst:copyright: Copyright 2010-2012 by the pyacq team, see AUTHORS.:license: Modified BSD License, see LICENSE.txt for details.
Package: pyacryl2
PyAcryl2AcrylNode API clientFull documentationhttps://pyacryl2.readthedocs.io/en/latest/InstallationRequirements:Python 3.6 and higherPackages fromrequirements.txtFrom PyPI:pipinstallpyacryl2Or from source:pythonsetup.pyinstallWhat's includedNode API clientSyncAsyncGenerators and validatorsAddress dataTransactions dataMatcher APIDocsTests
Package: pyACS
pyACSPython package to unpack and calibrate binary data from a WetLabs ACSInstallationThe pyACS package can be installed directly with python's package manager.pip install pyACSpyACS can also be installed from the sources available atGitHub repository.python setup.py installNote that the only default dependency is numpy. Installing the library SciPy in addition will improve performances.pip install scipyConvert binary to CSV filespyACS can be used from a terminal to convert binary files recorded with Compass software to CSV files.python -m pyACS [-h] [-v] [--version] [-aux] device_file bin_file [destination]positional arguments:
device_file          Device file.
bin_file             Source file to decode and calibrate (.bin).
destination          Destination file of decoded and calibrated data.optional arguments:
-h, --help           Show this help message and exit
-v, --verbose        Enable verbosity.
--version            Prints version information.
-aux, --auxiliaries  Output auxiliary data (internal and external temperatures).Embed in other SoftwareThe classACSprovides key methods to handle the binary ACS dataread_device_file: Parse device file to be able to unpack and calibrate binary framefind_frame: Find registered ACS frames in bytearrayunpack_frame: Unpack/Decode a binary frame into named tupleFrameContainercalibrate_frame: Convert a frame engineering units (counts) into scientific units (1/m for a and c)The classesBinReaderandConvertBinToCSVare an illustration of the usage of the ACS class to parse binary files recorded with Compass software (.bin).