Saravanan666/pypi-org huggingface dataset:
Package: xcolumns
xConsistent Optimization of Label-wise Utilities in Multi-label classificatioNsxCOLUMNs is a small Python library aims to implement different methods for optimization of general family of label-wise utilities (performance metrics) in multi-label classification, which scale to large (extreme) datasets.InstallationThe library can be installed using pip:pipinstallxcolumnsIt should work on all major platforms (Linux, Windows, Mac) and with Python 3.8+.Repository structureThe repository is organized as follows:docs/- Sphinx documentation (work in progress)experiments/- a code for reproducing experiments from the papersxcolumns/- Python package with the libraryMethods, usage, and how to citeThe library implements the following methods:Block Coordinate Ascent/Descent (BCA/BCD)The method is described in the paper:Erik Schultheis, Marek Wydmuch, Wojciech Kotłowski, Rohit Babbar, Krzysztof Dembczyński. Generalized test utilities for long-tail performance in
extreme multi-label classification. NeurIPS 2023.Frank-Wolfe (FW)Description is work in progress.
Package: xcom-232i
xcom-232iPython library to access Studer-Innotec Xcom-232i device through RS-232 over a serial port.NOTE: This lib is still WiP, so functionality is still limited, but feel free to create apull requestif you want to contribute ;)DISCLAIMER: This library is NOT officially made by Studer-Innotec.The complete official documentation is available on:Studer-Innotec Download Center-> Software and Updates -> Communication protocol Xcom-232iGetting StartedRequirementsHardwareXcom-232i connected to your installationXcom-232i connected to PC using USB to RS-232 adapter (1)PC with at least USB2.0 or faster (works on Raspberry Pi 3/4 as well)(1) I personally am successfully using an adapter with the PL2303 chipset likethis oneSoftwareany Linux based OS (x86 / ARM)python3 >= 3.6python3-pipInstallationpip3installxcom-232iimportant: make sure you select the USB to RS-232 adapter as thesocket_device, usually on Linux it is/dev/ttyUSB[0-9]ExamplesReading valuesfromxcom_232iimportXcomRS232fromxcom_232iimportXcomCascIO=XcomRS232(socket_device='/dev/ttyUSB0',baudrate=115200)lademodus=IO.get_value(c.OPERATION_MODE)batt_phase=IO.get_value(c.BAT_CYCLE_PHASE)solarleistung=IO.get_value(c.PV_POWER)*1000# convert from kW to Wsonnenstunden=IO.get_value(c.NUM_SUN_HOURS_CURR_DAY)ladestand=IO.get_value(c.STATE_OF_CHARGE)# in %stromprod=IO.get_value(c.PROD_ENERGY_CURR_DAY)batt_strom=IO.get_value(c.BATT_CURRENT)batt_spann=IO.get_value(c.BATT_VOLTAGE)print(f"LModus:{lademodus}| Batt_Phase:{batt_phase}| Solar_P:{solarleistung}| SonnenH:{sonnenstunden}| Batt_V:{batt_spann}| SOC:{ladestand}")Writing valuesfromxcom_232iimportXcomRS232fromxcom_232iimportXcomCascIO=XcomRS232(socket_device='/dev/ttyUSB0',baudrate=115200)# write into RAMIO.set_value(c.SMART_BOOST_LIMIT,100)# set smart boost limitIO.set_value(c.FORCE_NEW_CYCLE,1,property_id=c.VALUE_QSP)# force new charge cycle# explanation for property_id:c.VALUE_QSP# write into Flash memory (important: you should write into flash only if you *really* need it!)c.UNSAVED_VALUE_QSP# write into RAM (default)
Package: xcom485i
Python library to access Studer-Innotec Xcom-485i device through Modbus RTU over a serial portPrerequisitesPlease read the complete documentation available on :Studer Innotec SA-> Support -> Download Center -> Software and Updates -> Communication protocols Xcom-CANGetting Started1. Package installation$pipinstallxcom485i2. Hardware installationConnect yourXcom-485i(Studer side) to your installation using the cable provided with the deviceConnect yourXcom-485i(External side) to your controller (personal computer, Raspberry Pi, etc.) using aUSBtoRS-485adapterPlease refer to theXcom-485imanual for more information about commissioning the device3. Serial configurationThis package rely onpyserialstandard package, in order to use thexcom485ipackage make sure to instantiate it like :importserialserial_port=serial.Serial(SERIAL_PORT_NAME,SERIAL_PORT_BAUDRATE,parity=serial.PARITY_EVEN,timeout=1)whereSERIAL_PORT_NAMEis your serial port interface, for example set it to‘COM4’(string argument) when usingWindowsotherwise you may set it to‘/dev/ttyUSB0/’onLinuxwhereSERIAL_PORT_BAUDRATEis the baudrate used by your serial port interface (must be set to 9600, 19200, 38400 or 115200 according toXcom-485idip-switches)Xcom-485i Dip switches baud rate selectionN° 7N° 8BaudrateOFFOFF9600   bpsOFFON19200  bpsONOFF38400  bpsONON115200 bps4. Address offsetSet the modbus offset corresponding to the internal dip-switches of yourXcom-485idevice, it must be set to 0, 32, 64 or 128.It is done when instantiate theXcom485iclass like :xcom485i=Xcom485i(serial_port,OFFSET,debug=True)whereserial_portis the previously created object withSerialwhereOFFSETis your actual modbus address offset set by the dip-switches inside yourXcom-485iwheredebugenables you to get some useful console information for debugging purposeXcom-485i Dip switches address offset selectionN° 1N° 2Address offsetAddress rangeOFFOFF01 to 63OFFON3233 to 95ONOFF6465 to 127ONON128129 to 1925. Run an example from/examplesfolderGo to/examplesfolder with a terminal and execute this script$pythonex_read_info.pyCheckclient fileto understand it.6. Open documentationOpen documentation fromRead The DocsWarningsPleasecheck carefully the serial configuration, theXcom-485idip-switches configuration as well as the jumper for D+, D- and GND signalsUsedevices addresses generated intoaddresses fileIt is strongly recommendedNOTto spam theXcom-485iwith multiple requests. The correct way to communicate with theXcom-485iis to send a request and towaitfor the response before sending the next request. If no response comes from theXcom-485iafter a delay of 1 second, we can consider that the timeout is over and another request can be send. It is also howModbus RTUis intended to work.AuthorsStuder Innotec SA-Initial work-Studer Innotec SALicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: xcomfort
xcomfort-pythonUnofficial python package for communicating with Eaton xComfort BridgeUsageimportasynciofromxcomfortimportBridgedefobserve_device(device):device.state.subscribe(lambdastate:print(f"Device state [{device.device_id}] '{device.name}':{state}"))asyncdefmain():bridge=Bridge(<ip_address>,<auth_key>)runTask=asyncio.create_task(bridge.run())devices=awaitbridge.get_devices()fordeviceindevices.values():observe_device(device)# Wait 50 seconds. Try flipping the light switch manually while you waitawaitasyncio.sleep(50)# Turn off all the lights.# for device in devices.values():#     await device.switch(False)## await asyncio.sleep(5)awaitbridge.close()awaitrunTaskasyncio.run(main())Testspython-mpytest
Package: xComfortMQTT
xComfortMQTTInstallingYou can installxComfortMQTTdirectly from PyPI:sudopip3install-UxComfortMQTTConfigInsert this snippet to the file /etc/xComfortMQTT.yml:---
shc:
  host: 192.168.0.2
  username: admin
  password: very-strong-password

mqtt:
  host: 192.168.0.1UsageUpdate /etc/xComfortMQTT.yml and runxComfortMQTT-c/etc/xComfortMQTT.ymlSystemdInsert this snippet to the file /etc/systemd/system/xComfortMQTT.service:[Unit]
Description=xComfortMQTT
After=network.target

[Service]
Type=simple
User=pi
ExecStart=/usr/local/bin/xComfortMQTT -c /etc/xComfortMQTT.yml
Restart=always
RestartSec=5
StartLimitIntervalSec=0

[Install]
WantedBy=multi-user.targetEnable the service start on boot:sudosystemctlenablexComfortMQTT.serviceStart the service:sudosystemctlstartxComfortMQTT.serviceView the service log:journalctl-uxComfortMQTT.service-fPM2pm2start/usr/bin/python3--name"xComfortMQTT"--/usr/local/bin/xComfortMQTT-c/etc/xComfortMQTT.yml
pm2saveDevelopmentgit clone git@github.com:blavka/xComfortMQTT.git
cd xComfortMQTT
./test.sh
sudo python3 setup.py develop
Package: xcommand
快速开始安装pipinstallxcommand使用xreportxreport--help
>>>Usage:xreport[OPTIONS]COMMAND[ARGS]...报告相关工具，可极大提高出报告或其他模板式word文档的效率

Options:--helpShowthismessageandexit.

Commands:genrpt根据word模板自动读取excel中指定数据生成报告文档xreportgenrpt--help
>>>Usage:xreportgenrpt[OPTIONS]根据word模板自动读取excel中指定数据生成报告文档

Options:-t,--templateFILE必要参数，指定word模板文件地址-f,--fileFILE指定excel数据文件地址，与-d参数必须二选一-d,--dirDIRECTORY指定excel数据文件夹地址，与-f参数必须二选一，此模式下最终的word输出文档名与excel数据文件名一致-o,--outPATH指定word输出文件或文件夹地址。当选择-f参数时，默认为“./out.docx”；当选择-d参数时，默认为“./out/”-h,--hide隐藏运行过程中office软件窗口--helpShowthismessageandexit.xpdfxpdf--help
>>>Usage:xpdf[OPTIONS]COMMAND[ARGS]...快速合并或拆分pdf文件

Options:--helpShowthismessageandexit.

Commands:toimg将单个pdf文件的每一页导出为图片topdf将指定图片及指定文件夹中图片合并为一个pdf文件，文件夹中图片顺序按照文件名升序排列xpdftoimg--help
>>>Usage:xpdftoimg[OPTIONS]PATH将单个pdf文件的每一页导出为图片

Options:-o,--outPATH指定图片输出文件夹地址[default:out/]-s,--scaleFLOAT指定输出图片的缩放比例[default:2]-p,--prefixTEXT每张图片的文件名前缀-f,--format[jpeg|png]每张图片的文件格式[default:jpeg]--helpShowthismessageandexit.xpdftopdf--help
>>>Usage:xpdftopdf[OPTIONS]PATH...将指定图片及指定文件夹中图片合并为一个pdf文件，文件夹中图片顺序按照文件名升序排列

Options:-o,--outPATH指定pdf输出文件地址[default:out.pdf]-s,--size[A3|A4|A5|B4|B5]指定pdf输出文件每一页的固定尺寸[default:A4]-r,--reverse反转页面的长和高，配合“--size”使用，添加该参数后页面为横向-f,--free自由尺寸，添加该参数后“--size”和“--reverse”无效，每一页保持源图片的形状和尺寸--helpShowthismessageandexit.
Package: xconf
xconf- Dataclasses and TOML for command configurationDemoAn example of how to usexconf.Command,xconf.field, andxconf.configis indemo.py. Run it to see its configuration keys.$ python demo.py demo_command -h
demo_command: Demo command
usage: demo.py demo_command [-c CONFIG_FILE] [-h] [-v] [--dump-config] [vars ...]

positional arguments:
  vars                  Config variables set with 'key.key.key=value' notation

optional arguments:
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        Path to config file (default: demo_command.conf.toml)
  -h, --help            Print usage information
  -v, --verbose         Enable debug logging
  --dump-config         Dump final configuration state as TOML and exit
configuration keys:
  collections
      dict[str, ExtendedThingie]
  collections.<str>.name
      str
  collections.<str>.extended
      bool
  either_one
      [int, str]
  should_bar
      bool
     (default: False)
  should_foo
      bool
    Whether demo should foo
  number_list
      list[int]
    List of favorite numbers
  sequence
      list[ExtendedThingie]Default config fileThe command name,demo_command, is generated from the class name and used to find a default configuration file (demo_command.conf.toml) in the current directory.Providing arguments at the command lineAny configuration key from the help output can be supplied on the command line in adotted.name=valueformat.For lists of primitive types (str,int,float), you can just use commas to separate the values on the right hand side of the=. Example:number_list=1,2,3.To override a single entry in a list, usesome_name[#]ordotted[#].name=valuewhere#is an integer index will work. Example:number_list[0]=99String values are bare (i.e. no quotation marks aroundvalue). Boolean values are case-insensitivetrue,t, or 1 for True,false,f, or 0 for False.Structuring the commandSeedemo.pyfor an example. Note that commands must subclassxconf.Commandandapply the@xconf.configdecorator. Options are defined by a hierarchy of dataclasses. (For uninteresting reasons, they aren'tstrictly speakingimport dataclassdataclasses.)LicenseAll code outsidexconf/vendor/is provided under the terms of theMIT License, except fordemo.pyanddemo_command.conf.toml, which are released into the public domain for you to build off of.Note that code underxconf/vendor/is used under the terms of the licenses listed there.
Package: xconfig
python-lib-templateconfig=Config('./ciao.yaml')# writes a new field in configconfig.write(f'cose.cosa','ciao')print(config['cose']['cosa'])# ciao# pushes a new obj in configconfig.push(f'arrays.array_id',1)config.push(f'arrays.array_id',2)print(config['arrays']['array_id'])# [1, 2]cose:cosa:ciaoarrays:array_id:-1-2
Package: xcope-daemon
PyXcope.DaemonHow to compile protobufThediagnose_daemon.protois a grpc protobuf file. It should keep consistent with the server endpoint.
Whenever it changes, we must regenerate with commands on linux(dont' use on windows):cdsrc
python3-mgrpc_tools.protoc-I=.--python_out=.--pyi_out=.--grpc_python_out=../xcope_daemon/*.proto
Package: xcore
Xcore is a crystallographic space group library written in Python.Usage>>> from xcore import UnitCell, SpaceGroup

>>> spgr = SpaceGroup("Pnma")
>>> spgr.info()
Space group Pnma

    Number       62
    Schoenflies  D2h^16
    Hall         -P 2ac 2n
    H-M symbol   Pnma

Laue  group  mmm
Point group  mmm
Orthorhombic
Centrosymmetric

Order     8
Order P   8

# +(0.0 0.0 0.0), Inversion Flag = 0
x,y,z
-x+1/2,-y,z+1/2
x+1/2,-y+1/2,-z+1/2
-x,y+1/2,-z
# +(0.0 0.0 0.0), Inversion Flag = 1
-x,-y,-z
x+1/2,y,-z+1/2
-x+1/2,y+1/2,z+1/2
x,-y+1/2,zor:>>> cell = UnitCell((19.9020, 10.1561, 24.6892, 105.88), "P21/c", name="SSO", composition="Si80 O163")
>>> cell.info()
Cell SSO (Si80 O163)
   a      19.9020       al        90.00
   b      10.1561       be       105.88
   c      24.6892       ga        90.00
Vol.    4799.90
Spgr P121/c1Installationpip install xcoreRequirementsPython2.7NumpyPandasInspired by (and built on)sginfo.
Package: xcoscmd
介绍腾讯云COS命令行工具, 目前可以支持Python2.6与Python2.7以及Python3.x。安装指南python setup.py install
cd dist
sudo easy_install coscmd-1.8.6.3-py3.6.egg # 提前安装easy_install
ln -s {{PYTHON_DIR}}/bin/coscmd xcoscmd # [可选]为避免和官方coscmd冲突，通过软链使用此版本改造上传命令，支持上传同名文件不覆盖，直接跳过命令:xcoscmd -rm ./app /app上传结果输出优化：上传失败的log红色显示，上传成功的log绿色显示，更加直观的显示上传结果使用方法使用coscmd，参照https://cloud.tencent.com/document/product/436/10976
Package: xcover-python
· xcover-python ·xcover-pythonis a Python API Client forXCover.Installationxcover-pythonis available on PyPI. To install the latest version run:pip install xcover-pythonorpoertry install xcover-pythonFeaturesAuthenticationSimple configuration using env variables(WIP) High-level API to perform partner operations on quotes and bookingsConfigurationConfig objectThe library providesXCoverConfigdataclass that can be used as shown:fromxcoverimportXCover,XCoverConfigclient=XCover(XCoverConfig(# minimal config, check autocomplete for more optionsbase_url="https://api.xcover.com/xcover",partner_code="--PARTNER_CODE--",auth_api_key="--API_KEY--",auth_api_secret="--API_SECRET--",))Env variablesAlternatively, it is possible to use env variables.The full list of configuration options:XC_BASE_URL(XCoverConfig.base_url): XCover base URL (e.g.https://api.xcover.com/api/v2/).XC_PARTNER_CODE(XCoverConfig.partner_code): Partner code (e.g.LLODT).XC_HTTP_TIMEOUT(XCoverConfig.http_timeout): HTTP timeout in seconds. Default value is10.XC_AUTH_API_KEY(XCoverConfig.auth_api_key): API key to use.XC_AUTH_API_SECRET(XCoverConfig.auth_api_secret): API secret to use.XC_AUTH_ALGORITHM(XCoverConfig.auth_algorithm): HMAC encoding algorithm to use. Default ishmac-sha512.XC_AUTH_HEADERS(XCoverConfig.auth_headers): Headers to sign. Default is(request-target) date.XC_RETRY_TOTAL(XCoverConfig.retry_total): Total number of retries. Default is5.XC_RETRY_BACKOFF_FACTOR(XCoverConfig.retry_backoff_factor): Backoff factor for retries timeout. Default is2.Usage exampleUsing low-levelcallmethodimportrequestsfromxcover.xcoverimportXCover# Env variables are usedclient=XCover()# Prepare payloadpayload={"request":[{"policy_type":"event_ticket_protection","policy_type_version":1,"policy_start_date":"2021-12-01T17:59:00.831+00:00","event_datetime":"2021-12-25T21:00:00+00:00","event_name":"Ariana Grande","event_location":"The O2","number_of_tickets":2,"tickets":[{"price":100},],"resale_ticket":False,"event_country":"GB",}],"currency":"GBP","customer_country":"GB","customer_region":"London","customer_language":"en",}# Calling XCover APIresponse:requests.Response=client.call(method="POST",url="partners/LLODT/quotes/",payload=payload,)quote=response.json()print(quote)RetriesThis client will automatically retry certain operations when it is considered safe to do this.
The retry number and intervals could be controlled via XC_RETRY_TOTAL and XC_RETRY_BACKOFF_FACTOR
environment variables ot the same config options.Auto retry logic can be enabled/disabled per operation. However, further fine-tuning is possible
via extending XCover class if required.
Package: xcpengine-container
functional connectivity after preprocessing with FMRIPREP.Home-page: https://github.com/pennbbl/xcpEngineAuthor:Author-email:Maintainer:Maintainer-email:License: 3-clause BSDDescription: This package is a basic wrapper for xcpEngine that generates the appropriateDocker commands, providing an intuitive interface to running xcpEngineworkflow in a Docker environment.Platform: UNKNOWNClassifier: Development Status :: 3 - AlphaClassifier: Intended Audience :: Science/ResearchClassifier: License :: OSI Approved :: BSD LicenseClassifier: Programming Language :: Python :: 3.6
Package: xcrun
xcrunThis is a Python wrapper around thexcrunutility that Apple provides for interacting with the various Xcode developer tools.simctlsimctlis the tool for interacting with the iOS simulator and is the main focus of this module. The syntax is designed to remain as close to that which would be used on the command line as possible. For example, to list all runtimes on the command line you would do:xcrun simctl list runtimesWith this module you can print the result of:xcrun.simctl.listall.runtimes()Most functions are on the item that they affect. So instead of running something on a device like:xcrun simctl do_thing <DEVICE_ID> arg1 arg2 ...You can do this:iPhone7 = xcrun.simctl.device.from_name("iPhone 7")
iPhone7.do_thing(arg1, arg2, ...)TestingTo run the tests, all you need to do is runpython3 -m tox(can be installed by runningpython3 -m pip install tox).
Package: xcs
Accuracy-based Learning Classifier Systems for Python 3LinksProject HomeTutorialSourceDistributionThe package is available for download under the permissiveRevised BSD
License.DescriptionXCS is a Python 3 implementation of the XCS algorithm as described in
the 2001 paper,An Algorithmic Description of
XCS, byMartin
ButzandStewart Wilson. XCS is a type
ofLearning Classifier System
(LCS), amachine learningalgorithm that utilizes agenetic
algorithmacting on
a rule-based system, to solve areinforcement
learningproblem.In its canonical form, XCS accepts a fixed-width string of bits as its
input, and attempts to select the best action from a predetermined list
of choices using an evolving set of rules that match inputs and offer
appropriate suggestions. It then receives a reward signal indicating the
quality of its decision, which it uses to adjust the rule set that was
used to make the decision. This process is subsequently repeated,
allowing the algorithm to evaluate the changes it has already made and
further refine the rule set.A key feature of XCS is that, unlike many other machine learning
algorithms, it not only learns the optimal input/output mapping, but
also produces a minimal set of rules for describing that mapping. This
is a big advantage over other learning algorithms such asneural
networkswhose models are largely opaque to human analysis, making XCS an
important tool in any data scientist’s tool belt.The XCS library provides not only an implementation of the standard XCS
algorithm, but a set of interfaces which together constitute a framework
for implementing and experimenting with other LCS variants. Future plans
for the XCS library include continued expansion of the tool set with
additional algorithms, and refinement of the interface to support
reinforcement learning algorithms in general.Related ProjectsPier Luca Lanzi’sXCS Library
(xcslib)(C++)Ryan J. Urbanowicz’sLCS Implementations for SNP
EnvironmentandExSTraCS(Python)Martin Butz’sJavaXCSF(Java)
Package: xcsf
XCSF learning classifier systemAn implementation of the XCSFlearning classifier systemthat can be built as a stand-alone binary or as a Python library. XCSF is an accuracy-basedonlineevolutionarymachine learningsystem with locally approximating functions that compute classifier payoff prediction directly from the input state. It can be seen as a generalisation of XCS where the prediction is a scalar value. XCSF attempts to find solutions that are accurate and maximally general over the global input space, similar to most machine learning techniques. However, it maintains the additional power to adaptively subdivide the input space into simpler local approximations.See the projectwikifor details on features, how to build, run, and use as a Python library.
Package: xcsoar
XCSoar flight analysis toolsContentsXCSoar python packageThe XCSoar python package contains a wrapper for compiling the xcsoar python
module.Import thexcsoarpackage to take advantage of the module. See the
source code and the test_xcsoar.py script in thexcsoar.submodule/python/test/directory.InstallationYou can install the XCSoar tools like any other python script by callingpython setup.py install. It will automatically compile the tools and
install them to an appropriate location.You will most likely need to install a few of XCSoar’s build dependencies.
On a standard Ubuntu machine callingapt-getinstall makelibcurl4-openssl-devshould get you started. Please read the XCSoar
documentation if there are more libraries missing.LicenseXCSoar Glide Computer - http://www.xcsoar.org/
Copyright (C) 2000-2013 The XCSoar Project
A detailed list of copyright holders can be found in the file "AUTHORS".

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.