Saravanan666/pypi-org huggingface dataset:
Package: zaber-device
This Python package (zaber_device) creates a class named ZaberDevice,
which contains an instance of serial_interface.SerialInterface and adds
methods to it to interface to Zaber motorized linear slides.Authors:Peter Polidoro <peterpolidoro@gmail.com>License:BSDExample Usage:from zaber_device import ZaberDevice
dev = ZaberDevice() # Might automatically find device if one available
# if it is not found automatically, specify port directly
dev = ZaberDevice(port='/dev/ttyUSB0') # Linux
dev = ZaberDevice(port='/dev/tty.usbmodem262471') # Mac OS X
dev = ZaberDevice(port='COM3') # Windows
dev.get_actuator_count()
2
dev.get_position()
[130000, 160000]
dev.home()
dev.moving()
[True, True]
dev.moving()
[False, False]
dev.get_position()
[0, 0]
dev.move_relative(10000)
dev.get_position()
[10000, 10000]
dev.move_relative(10000,0)
dev.moving()
[True, False]
dev.get_position()
[20000, 10000]
dev.store_position(0)
dev.get_stored_position(0)
[20000, 10000]
dev.move_at_speed(1000)
dev.stop()
dev.get_position()
[61679, 51679]
dev.move_to_stored_position(0)
dev.get_position()
[20000, 10000]
from zaber_device import ZaberDevices
devs = ZaberDevices()  # Might automatically find all available devices
# if they are not found automatically, specify ports to use
devs = ZaberDevices(use_ports=['/dev/ttyUSB0','/dev/ttyUSB1']) # Linux
devs = ZaberDevices(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS X
devs = ZaberDevices(use_ports=['COM3','COM4']) # Windows
devs.keys()
dev = devs[serial_number]
from zaber_device import ZaberStage
stage = ZaberStage()  # Might automatically find all available devices
# if they are not found automatically, specify ports to use
stage = ZaberStage(use_ports=['/dev/ttyUSB0','/dev/ttyUSB1']) # Linux
stage = ZaberStage(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS X
stage = ZaberStage(use_ports=['COM3','COM4']) # Windows
stage.get_aliases()
{123: [10, 11]}
serial_number = 123
alias = 10
stage.set_x_axis(serial_number,alias)
alias = 11
stage.set_y_axis(serial_number,alias)
# Lookup microstep_size on Zaber website
stage.set_x_microstep_size(0.49609375e-3)
stage.get_x_microstep_size()
0.00049609375
stage.set_y_microstep_size(0.49609375e-3)
stage.home()
stage.moving()
(True, True, False)
stage.moving()
(False, False, False)
stage.get_positions()
[0.0, 0.0, 0.0]
stage.move_x_at_speed(5)
stage.moving()
(True, False, False)
stage.get_positions()
[76.4619375, 0.0, 0.0]
stage.stop_x()
stage.moving()
(False, False, False)
stage.get_positions()
[94.38133984375, 0.0, 0.0]
stage.move_y_relative(125)
stage.moving()
(False, True, False)
stage.moving()
(False, False, False)
stage.get_positions()
[94.38133984375, 124.99975, 0.0]
stage.move_x_absolute(50)
stage.move_y_absolute(75)
stage.moving()
(False, False, False)
stage.store_x_position(0)
stage.get_stored_x_position(0)
49.99980078125
stage.move_x_relative(50)
stage.get_positions()
[99.9996015625, 74.99994921875, 0.0]
stage.move_to_stored_x_position(0)
stage.get_positions()
[49.99980078125, 74.99994921875, 0.0]
Package: zabgrab
ZabgrabCommand line tool for Zabbix data retrieval.InstallationZabgrab can be installed using your favourite Python package manager, e.g.pip:$pipinstallzabgrabThis should automatically install the latest version of Zabgrab and its dependencies.
There should then be azabgrabcommand available in your terminal or console.Zabgrab can be updated later by appending the--upgradeoption to thepip installcommand above. The current version can be checked withzabgrab --version.UsageA common use for Zabgrab is to retrieve a timeseries between a start and end time from
a remote server. This can be done with e.g.$zabgrab-oserver.host="http://zabbix.example.org/"-oserver.api_token="xyz"--itemid1230--from"1 hour ago"--to"now"The-oflags set configuration options. At leastserver.hostandserver.api_tokenare required if Zabgrab cannot find a local user configuration file (see below). The--itemidoption tells Zabgrab to retrieve the Zabbix item; it requires two values, the
Zabbix item ID and the history type (see below). The--fromand--tooptions specify
the dates between which to retrieve data, and support natural language queries as well
as standard date formats.The data can be output as text to the terminal by specifying--print. It can also
be saved to file by specifying--outputfollowed by a path. The following extensions
are supported:.mat: MATLAB mat.txt(or anything else): tab separated valuesTypezabgrab --helpfor full usage details.History typesZabbix has various internal data types. The correct data type must be specified in calls
to the API via Zabgrab. TheZabbix API
documentationlists the available data types. Most timeseries are either "0" (numerical float) or "3"
(numeric unsigned).ConfigurationZabgrab supports configuration files to define common options such as the Zabbix server
and API key. It can also be used to specify templates, which are groups of items with
an associated name that can be retrieved via Zabgrab using the--template(or-t)
option.The configuration file is stored in a file calledzabgrab.confin a directory calledzabgrabin the operating system specific user configuration directory. For example, on
Linux this file should be located at~/.config/zabgrab/zabgrab.confand on Windows atC:\Users\<user>\AppData\Roaming\zabgrab\zabgrab.conf.The location of the configuration file can be overridden using the environment variableZABGRAB_CONFIG.The configuration is expected to be inTOMLformat.CreditsSean Leaveysean.leavey@stfc.ac.uk
Package: zabier-cli
Zabier CLIDescriptionA CLI tool to automate Zabbix configurations.RequirementsPython 3.7 or higherSupported versions of Zabbix Server3.0 LTSInstallationpipinstallzabier-cliorgitclonegit@github.com:serverworks/zabier-cli.gitcdzabier-cli
pythonsetup.pyinstallUpgradepipinstallzabier-cli--upgradeUsagezabier--help
Package: zack-puc-ia-csv-converter
Arquivo ConverterCSVpara conversorJSON.JSONpara conversorCSV.IntroduçãoO que este projeto pode fazerLeia um arquivoCSVou uma pasta comCSVe converta-os emJSON.Leia um arquivoJSONou uma pasta comJSONe converta-os emCSV.Este projeto é um programa em execução no terminal, de preferência instalado com pipx:` pipx install zack-puc-ia-csv-converter`Para usar, basta digitar:` $ converter --help`Isso listará todas as opções disponíveis.Converta um único arquivo ou lista de arquivosCSVparaJSONou arquivosJSONpara arquivosCSV.Opcoes:-t, --type TEXT                     Tipo de arquivo que será lido é convertido(CSV ou JSON).-i, --input TEXT                    Caminho onde os arquivos serão carregados para conversão.-o, --output TEXT                   Caminho onde os arquivos convertidos serão salvos.-d, --delimiter [','|';'|':'|'\t']  Separador usado para dividir os arquivos.-p, --prefix TEXT                   Prefixo de TEXTO usado para preceder ao nome do convertido
arquivo salvo no disco. O sufixo será um número
começando de 1 a N.Caso nao seja passado nenhum prefixo será utilizado o file_.--help                              Mostra esta mensagem e sai.
Package: zacks-earnings
zacks-earningsGet earnings releases from zacks.com/earnings/earnings-reports by date>>>ZacksEarnings.earnings_by_date(parser.parse('Aug 12, 2017'))SymbolCompanyReportTimeEstimateReportedSurpriseCurrentPricePrice%ChangeUnnamed:80ABCPAmBaseCorp.15:41NaN-0.03NaN0.320.00NaN1ADMAADMABiologicsInc16:22-0.42-0.55-30.952.122.42NaN2AIKIAIkidoPharmaInc.18:00NaN-1.61NaN1.388.66NaN3AITAppliedIndustrialTechnologies,Inc.06:350.770.781.3093.161.43NaN4ARCTArcturusTherapeuticsHoldingsInc.08:05-0.91-0.91NaN46.40-4.01NaN.............................94VLRXQValeritasHoldings,Inc.08:01-33.40-36.60-9.580.020.00NaN95VRDNViridianTherapeutics,Inc.16:11-7.05-5.1027.6617.980.22NaN96XAIRBeyondAir,Inc.16:07NaN-0.46NaN5.88-2.33NaN97XINXinyuanRealEstateCoLtd06:10NaN0.14NaN2.97-0.67NaN98ZNOGZionOil&GasInc05:03NaN-0.10NaN0.731.37NaN[99rowsx9columns]Get the zacks estimated next earnings date for a symbol>>>ZacksEarnings.get_next_earnings_estimate('aapl')[datetime.datetime(2021,4,29,0,0)]
Package: zacktools
zacktoolsUseful tools created by zackdaiinstallpip install zacktoolsor from gitpip3 install git+https://github.com/ZackAnalysis/zacktools.gitpageparserA tool for parse address,phone, email, facebook, twitter, linkedin, contact link, about us link from a webpageusagefrom zacktools import pageparser
import requests
res = requests.get('http://rel8ed.to')
result = pageparser.parse(res.content)
print(result){
  "facebook": "https://www.facebook.com/rel8edto/",
  "twitter": "https://twitter.com/rel8edto",
  "instagram": "",
  "linkedin": "https://www.linkedin.com/company/rel8ed-to",
  "contactlink": "http://www.rel8ed.to/contact-us/",
  "aboutlink": "http://www.rel8ed.to/about-us/",
  "title": "Big Data Analysis Data Mining Predictive Analytics",
  "email": "info@rel8ed.to",
  "phone": "905.321.0466",
  "Mainaddress": "1 St. Paul St., Unit A303, St. Catharines, ON L2R 7L2",
  "addresses": [
    "1 St. Paul St., Unit A303, St. Catharines, ON L2R 7L2"
  ]
}Test itmultithreadfrom zacktools.multiThread import scrapeurls
import asyncio
urls = ['ibm.com','idc.com']
asyncio.run(scrapeurls(urls))
Package: zac-pyutils
Python package, which you can use to generate and drawing trees, realistic or fractal ones.Usage$pipinstallzac-pyutils--upgrade-ihttps://pypi.python.org/pypifromzac_pyutilsimportExqUtils# log to filelogger=ExqUtils.get_logger("tmp.log")ExqUtils.log2file(message="new message",logger=logger)# load file as iterfileIter=ExqUtils.load_file_as_iter("./data/nlp/sample_data.txt")
Package: zadarest
zadarest========python client library for accessing Zadara API* Free software: Apache license* Github: https://github.com/harvard-dce/zadarest.pyinstallation------------pip install zadarestusage-----see example of volume cloning at https://github.com/harvard-dce/mh-backuplicense-------apache 2.0contributors------------* nmaekawa \<<nmaekawa@g.harvard.edu>\> [@nmaekawa](http://github.com/nmaekawa), maintainercopyright---------2015-2016 President and Fellows of Harvard Collegehistory-------0.2.2 (2016-03-17:nmaekawa)---------------------* fix dynamic default arguments in funcs0.2.0 (2015-12-11:nmaekawa)---------------------* refactor boilerplate code0.1.0 (2015-01-11:nmaekawa)---------------------* birth
Package: zadeh
zadehPython package to build fuzzy inference systemsInstallationAssuming you have aPython3distribution withpip, the latest pypi release can be installed with:pip3 install zadehTo install the recommended optional dependencies you can runpip3 install 'zadeh[extras]'Mind the quotes.Developer informationDevelopment installationTo install a development version, clone the repo, cd to the directory with this file and:pip3 install -e '.[test]'Consider using a virtualenv if needed:# Prepare a clean virtualenv and activate it
virtualenv venv
source venv/bin/activate
# Install the package
pip3 install -e '.[test]'DocumentationTo generate the documentation, thedocsextra dependencies must be installed.To generate an html documentation with sphinx run:make docsTo generate a PDF documentation using LaTeX:make pdfTestTo run the unitary tests:make test
Package: zadnegoale
zadnegoalePython wrapper for getting allergen concentration data fromŻadnego AleHow to use packageimportasyncioimportloggingfromaiohttpimportClientError,ClientSessionfromzadnegoaleimportApiError,InvalidRegionError,ZadnegoAleREGION=2logging.basicConfig(level=logging.DEBUG)asyncdefmain():asyncwithClientSession()aswebsession:try:zadnegoale=ZadnegoAle(websession,REGION)data=awaitzadnegoale.async_update(alerts=True)except(ApiError,ClientError,InvalidRegionError)aserror:print(f"Error:{error}")else:print(f"Region:{zadnegoale.region_name}")print(f"Data:{data}")loop=asyncio.new_event_loop()loop.run_until_complete(main())loop.close()
Package: zafkiel
ZafkielA cross-platform UI automation framework based onAirtestandStarRailCopilot.基于Airtest和StarRailCopilot的跨平台UI自动化框架。OverviewZafkiel is a secondary encapsulation of Airtest, integrating the page logic, OCR capabilities and other advanced features of StarRailCopilot, aiming to provide more powerful and flexible automated testing capabilities.ExamplesHonkaiHelper, Honkai Impact 3rd automation script.LicenseThis project is licensed underGPL-3.0.In addition, this project uses the following open source libraries:-Airtest, the license can be viewedhere-StarRailCopilot, the license can be viewedhere
Package: zage
Official Zage Bindings for PythonA Python library for Zage's API.InstallationYou can install this package using pip:python-mpipinstallzageUsageThis library must be initialized by specifying your credentials for the desired environment (sandbox or prod).This is as simple as settingzage.public_keyandzage.private_keyto the requisite values before making an API call:importzagezage.public_key="test_..."zage.secret_key="test_..."# create a payment tokenpayment_token=zage.Payments.create_token(amount=1000,# in centswebhook="https://zage.app/on_success",metadata={},)print(payment_token)
Package: zaggregator
# ZaggregatorZaggregator - is a non-envasive per-process data collector for Zabbix.It consists of two parts:zaggregator (daemon) which fetches and caches process table each zaggregator.daemon.delay (30) seconds, groups processes and stores statistics into sqlite database.zcheck script for integrating with zabbix-agent fetches data from sqlite databaseThere is systemd service file for zaggregator-daemon, but for security reasons pip cannot install files into /etc, so you will need to do it manually. See [Install](#install) section for details.# Requirements
python3# InstallRecommended:`bash pip install zaggregator cp /usr/local/share/zaggregator/zaggregator.service /etc/systemd/system/ systemctl enable zaggregator systemctl start zaggregator cp /usr/local/share/zaggregator/zaggregator.conf /etc/zabbix/zabbix_agentd.d/ servicezabbix-agentrestart `
Package: zahlabut
LogTool is used to extract allUnique Errors messagesfrom log files that took place in the past.GeneralAs the user, you can provide the "since time" and debug level to be used for extraction of Errors/Warnings.
For example, if something went wrong in the past, you're be able to extract Error/Warnings messages
for just that time period.
Let's say that you have all relevant log files located in:/var/log/containersand that the problem you are
trying to debug, happened after:2020-08-25 12:00:00If so, you'll need to set the following values in".ini"configuration file and to provide:time_grep=2020-08-25 12:00:00
log_root_dir=['var/log/containers']
string_for_grep = ERRORInstallationpip3 install zahlabutConfiguration filePrior to starting analyze process, you'll need to create and load the configuration file.
Configuration file could be any *.ini file and you can find the example/template on GitHub:https://github.com/zahlabut/LogToolPyPi/blob/master/conf.iniNote:change the configuration according to your needs.Usage - Python code example#!/usr/bin/python3    
from zahlabut.LogTool import *               # To import all from zahlabut LogTool package
load_conf_file('conf.ini')                   # To load the cofiguration file (conf.ini).
result=start_analyzing()                     # Start analyzing log files.
print(result['Standard_Log_Results'][0])     # First item in result list (raw data) for Standard logs.
print(result['Not_Standard_Log_Results'][0]) # First item in result list (raw data) for Not Standard logs.Generated result filesLogTool result files will be generated according to the settings provided in"conf.ini"file.create_logtool_result_file=yes
log_tool_result_file = ResultFile.log
save_standard_logs_raw_data_file='Standard_Logs_Output.log'
save_not_standard_logs_raw_data_file='Not_Standard_Logs_Output.log'Once"log_tool_result_file = ResultFile.log"is generated you'll be able to find all the statistics + exported
unique Error blocks in this file. Created file is generated with some simple logic (its content is divided into the sections) see
the description on the top of created result file.
Package: zahlwort2num
ZahlWort2num (v.0.4.2):de: :de: :de:
A small but useful (due shortage of/low quality support forlang_de) package for handy conversion of german numerals (incl. ordinal number) written as string to the from numbers.To put it differently:It allows reverse text normalization for numbers.This package might be a good complementary lib tohttps://github.com/savoirfairelinux/num2words:crying_cat_face:Currently is doesn't support swiss variant. TBD:switzerland:PyPi direct page of projecthttps://pypi.org/project/zahlwort2num/Installationpip2 install zahlwort2numUsageDefinition:importzahlwort2numasw2nFew examples:w2n.convert('Zweihundertfünfundzwanzig')# => 225w2n.convert('neunte')# => '9.'w2n.convert('minus siebenhundert Millionen achtundsiebzig')# => -700000078or even stuff like::see_no_evil:w2n.convert('sechshundertdreiundfünfzigtausendfünfhunderteinundzwanzig')# => 653521Command line:(Obviously it is better to use a parameter enclosed with apostrophs due to possible spaces)bin/zahlwort2num-convert 'eine Million siebenhunderteinundzwanzig'DevelopmentBefore doing anything. Install flake8 locally bypython3-mpipinstall-rrequirements.txtMake sure tests are passingpython3-munittestand you locally run linter viaflake8./zahlwort2num/*.py--count--exit-zero--max-complexity=10--max-line-length=127--statisticsWIKITBDAlready implemented features :sunglasses:Theoretically it works for any numbers from range 0 upto 999 * 10^27 [big numbers]Command-line mode (seeabove)Supported with ordinal numerals (incl. inflections [sufficies like'ste', 'ten'etc. ])In this case it returns coercedStringtype value e.g '15.' instead ofInteger:point_up:Relative mild rules in terms of trailing whitespaces, lower/upper-case (unification).Handling of signed numerals (also ordinal ones) e.g'minus zehn'TODO / Known issuesMake POC, functional for all common casesOrdinal number supportTake care for exceptions / trailing whitespaces etc.Make structure + publish as PyPI packageCommand line support :computer:Added support for both non-direct usage e.g einhundert / hundertSimplify/refactor POC code, add better documentationZwo variantAdded linter with Test Suite as hookMore comprehensible testsSwiss variantMore fault tolerant (ß -> ss) etcLarger scale than 10^60Ordinal with very large numbers (without addons) e.gMillionsteFew benchmark improvements (e.g tail recursion etc)Better error handling + validation for idiotical cases (e.gminus null Miliarde)Support for fractions?Thanks@warichet for addressing problem@spatialbitz for writing simple fix :+1:@psawa - adding support forzwocase... lastly to any of you who uses this package ;-)
Package: zahner-potentiostat
zahner_potentiostatzahner_potentiostat is a library to control externalZahner PotentiostatslikePP212, PP222, PP242, XPOT2 or EL1002.It was developed toeasily integrateexternal Zahner Potentiostats into Python scripts for morecomplex measurementtasks and forautomation purposes.The control concept is that there are different primitives which can be combined for different electrochemical measurement methods.These primitives can all be configured differently to match the application. In the documentation in the respective function all possible configuration setter methods are listed. The complete documentation of the functions can be found on theAPI documentation website.The followingprimitivesare available to compose methods with:Potentiostatic or galvanostatic polarizationmeasurePolarization()Open circuit voltage/potential scanmeasureOCV()measureOCVScan()Ramps potentiostatic or galvanostaticmeasureRampValueInTime()measureRampValueInScanRate()measureRampScanRateForTime()Staircase potentiostatic or galvanostaticmeasureIEStairs()And as an example, the following methods were developed from the primitives:Charge or discharge somethingmeasureCharge()measureDischarge()Output potentiostatic or galvanostatic profile as potentiostatic or galvanostatic polarizations or rampsmeasureProfile()PITT Potentiostatic Intermittent Titration TechniquemeasurePITT()GITT Galvanostatic Intermittent Titration TechniquemeasureGITT()Further measurements like EIS and CV can be done in connection with a Zennium with the packagethales_remote.🔧 InstallationThe package can be installed via pip.pip install zahner_potentiostat🔨 Basic Usage'''Search the Zahner Potentiostat'''deviceSearcher=SCPIDeviceSearcher()deviceSearcher.searchZahnerDevices()commandSerial,dataSerial=deviceSearcher.selectDevice("35000")'''Connect to the Potentiostat'''ZahnerPP2x2=SCPIDevice(SerialCommandInterface(commandSerial),SerialDataInterface(dataSerial))'''Setup measurement'''ZahnerPP2x2.setSamplingFrequency(25)ZahnerPP2x2.setCoupling(COUPLING.POTENTIOSTATIC)ZahnerPP2x2.setMaximumTimeParameter(15)'''Start measurement'''ZahnerPP2x2.setVoltageParameter(0)ZahnerPP2x2.measurePolarization()📖 ExamplesThe application of the library is shown in the example repositoryZahner-Remote-Python.📧 Haveing a question?Send ane-mailto our support team.⁉️ Found a bug or missing a specific feature?Feel free tocreate a new issuewith a respective title and description on the theZahner-Remote-Pythonrepository. If you already found a solution to your problem,we would love to review your pull request!✅ RequirementsProgramming is done with the latest python version at the time of commit.The only mandatory library is thepySeriallibrary. Also numpy and matplotlib are needed if you want to plot the data.
Package: zaiclient
Z.Ai REST Client for PythonZ.Ai API를 Python 환경에서 간편하게 이용할 수 있는 REST client SDK입니다.Python 3.8 이상을 사용하는 것을 권장합니다.DocumentationSDK에 대한 documentation은ZAiDocs에서 확인 가능합니다.Installation이 SDK는PyPI를 통해 배포되어 있습니다.pip를 이용해 설치하실 수 있습니다.pipinstallzaiclient
Package: zaidan
Zaidan utilities (python)Zaidan common utility classes/functions for the Zaidan system in python.ExportsClasses/functions exported byzaidan(PyPi package).Logger(base class)A simple logger class that outputs a standardized JSON format.Constructordef__init__(self,name:str,level:str)->LoggerCreate a new logger. Provide anamefor the underlyinglogging.loggerinstance, and a level, for which messages below that level will be ignored.Accepted levels are (correspond to levels from standard libraryloggingmodule):"debug"- More verbose, specific state information."info"- General, normal-operation information."warn"- Warnings about extreme cases, etc."error"- Standard errors.No levels less than "debug" or higher than "error" (critical, etc.) are supported at this time.logger.debugdefdebug(self,message:str,extra:object)->NoneLog andebuglevel message. Currently,extrafields must be provided, along with amessagestring.logger.infodefinfo(self,message:str,extra:object)->NoneLog aninfolevel message. Currently,extrafields must be provided, along with amessagestring.logger.warndefwarn(self,message:str,extra:object)->NoneLog anwarnlevel message. Currently,extrafields must be provided, along with amessagestring.logger.errordeferror(self,message:str,extra:object)->NoneLog anerrorlevel message. Currently,extrafields must be provided, along with amessagestring.FlaskLogger(Logger)For use with Flask web-applications. Extends theLoggerclass, so all log methods are the same.Constructordef__init__(self,app:flask.App,name:str,level:str,suppress_app_logs:bool)->FlaskLoggerCreate a new Flask logger. Required parameters:app- The Flask application instance.name- The name of the application or logger.level- Log level (seeLogger).suppress_app_logs- Set toTrueto suppress all flask request and werkzug logs.