Saravanan666/pypi-org huggingface dataset:
Package: pylibjpeg-libjpeg
pylibjpeg-libjpegA Python 3.8+ wrapper for Thomas Richter'slibjpeg, with a focus on use as a
plugin forpylibjpeg.Linux, MacOS and Windows are all supported.InstallationDependenciesNumPyInstalling the current releasepipinstallpylibjpeg-libjpegInstalling the development versionMake surePythonandGitare installed. For Windows, you also need to installMicrosoft's C++ Build Tools.gitclone--recurse-submoduleshttps://github.com/pydicom/pylibjpeg-libjpeg
python-mpipinstallpylibjpeg-libjpegSupported JPEG FormatsDecodingISO/IEC StandardITU EquivalentJPEG Format10918T.81JPEG14495T.87JPEG-LS18477JPEG XTEncodingEncoding of JPEG images is not currently supportedSupported Transfer SyntaxesDecodingUIDDescription1.2.840.10008.1.2.4.50JPEG Baseline (Process 1)1.2.840.10008.1.2.4.51JPEG Extended (Process 2 and 4)1.2.840.10008.1.2.4.57JPEG Lossless, Non-Hierarchical (Process 14)1.2.840.10008.1.2.4.70JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1])1.2.840.10008.1.2.4.80JPEG-LS Lossless1.2.840.10008.1.2.4.81JPEG-LS Lossy (Near-Lossless) Image CompressionUsageWith pylibjpeg and pydicomfrompydicomimportdcmreadfrompydicom.dataimportget_testdata_fileds=dcmread(get_testdata_file('JPEG-LL.dcm'))arr=ds.pixel_arrayStandalone JPEG decodingYou can also decode JPEG images to anumpy ndarray:fromlibjpegimportdecodewithopen('filename.jpg','rb')asf:# Returns a numpy arrayarr=decode(f.read())# Or simply...arr=decode('filename.jpg')
Package: pylibjpeg-openjpeg
pylibjpeg-openjpegA Python 3.8+ wrapper foropenjpeg, with a focus on use as a plugin forpylibjpeg.Linux, OSX and Windows are all supported.InstallationDependenciesNumPyInstalling the current releasepython-mpipinstall-Upylibjpeg-openjpegInstalling the development versionMake surePython,GitandCMakeare installed. For Windows, you also need to installMicrosoft's C++ Build Tools.gitclone--recurse-submoduleshttps://github.com/pydicom/pylibjpeg-openjpeg
python-mpipinstallpylibjpeg-openjpegSupported JPEG FormatsDecodingISO/IEC StandardITU EquivalentJPEG Format15444-1T.800JPEG 2000EncodingEncoding of NumPy ndarrays is supported for the following:Array dtype: bool, uint8, int8, uint16, int16, uint32 and int32 (1-24 bit-depth only)Array shape: (rows, columns) and (rows, columns, planes)Number of rows/columns: up to 65535Number of planes: 1, 3 or 4Transfer SyntaxesUIDDescription1.2.840.10008.1.2.4.90JPEG 2000 Image Compression (Lossless Only)1.2.840.10008.1.2.4.91JPEG 2000 Image Compression1.2.840.10008.1.2.4.201High-Throughput JPEG 2000 Image Compression (Lossless Only)1.2.840.10008.1.2.4.202High-Throughput JPEG 2000 with RPCL Options Image Compression (Lossless Only)1.2.840.10008.1.2.4.203High-Throughput JPEG 2000 Image CompressionUsageWith pylibjpeg and pydicomfrompydicomimportdcmreadfrompydicom.dataimportget_testdata_fileds=dcmread(get_testdata_file('JPEG2000.dcm'))arr=ds.pixel_arrayStandalone JPEG decodingYou can also decode JPEG 2000 images to anumpy ndarray:fromopenjpegimportdecodewithopen('filename.j2k','rb')asf:# Returns a numpy arrayarr=decode(f)# Or simply...arr=decode('filename.j2k')Standalone JPEG encodingLossless encoding of RGB with multiple-component transformation:importnumpyasnpfromopenjpegimportencodearr=np.random.randint(low=0,high=65535,size=(100,100,3),dtype="uint8")encode(arr,photometric_interpretation=1)# 1: sRGBLossy encoding of a monochrome image using compression ratios:importnumpyasnpfromopenjpegimportencodearr=np.random.randint(low=-2**15,high=2**15-1,size=(100,100),dtype="int8")# You must determine your own values for `compression_ratios`#   as these are for illustration purposes onlyencode(arr,compression_ratios=[2,4,6])Lossy encoding of a monochrome image using peak signal-to-noise ratios:importnumpyasnpfromopenjpegimportencodearr=np.random.randint(low=-2**15,high=2**15-1,size=(100,100),dtype="int8")# You must determine your own values for `signal_noise_ratios`#   as these are for illustration purposes onlyencode(arr,signal_noise_ratios=[50,80,100])See the docstring for theencode() functionfor full details.
Package: pylibjpeg-rle
pylibjpeg-rleA fast DICOM (PackBits) RLE plugin forpylibjpeg, written in Rust with a Python 3.7+ wrapper.Linux, MacOS and Windows are all supported.InstallationInstalling the current releasepipinstallpylibjpeg-rleInstalling the development versionMake surePython,GitandRustare installed. For Windows, you also need to installMicrosoft's C++ Build Tools.gitclonehttps://github.com/pydicom/pylibjpeg-rlecdpylibjpeg-rle
python-mpipinstall.Supported Transfer SyntaxesUIDDescriptionDecodingEncoding1.2.840.10008.1.2.5RLE LosslessYesYesUsageDecodingWith pylibjpegfrompydicomimportdcmreadfrompydicom.dataimportget_testdata_fileds=dcmread(get_testdata_file("OBXXXX1A_rle.dcm"))arr=ds.pixel_arrayStandalone with pydicomAlternatively you can use the included functions to decode a given dataset:fromrleimportpixel_array,generate_frames# Return the entire Pixel Data as an ndarrayarr=pixel_array(ds)# Generator function that only processes 1 frame at a time,# may help reduce memory usage when dealing with large Pixel Dataforarringenerate_frames(ds):print(arr.shape)EncodingStandalone with pydicomConvert uncompressed pixel data to RLE encoding and save:frompydicomimportdcmreadfrompydicom.dataimportget_testdata_filefrompydicom.uidimportRLELosslessfromrleimportpixel_data# Get the uncompressed pixel datads=dcmread(get_testdata_file("OBXXXX1A.dcm"))arr=ds.pixel_array# RLE encode and encapsulate `arr`ds.PixelData=pixel_data(arr,ds)# Set the correct *Transfer Syntax UID*ds.file_meta.TransferSyntaxUID=RLELosslessds.save_as('as_rle.dcm')BenchmarksDecodingTime per 1000 decodes, pydicom's default RLE handler vs. pylibjpeg-rleDatasetPixelsBytespydicompylibjpeg-rleOBXXXX1A_rle.dcm480,000480,0004.89 s0.79 sOBXXXX1A_rle_2frame.dcm960,000960,0009.89 s1.65 sSC_rgb_rle.dcm10,00030,0000.20 s0.15 sSC_rgb_rle_2frame.dcm20,00060,0000.32 s0.18 sMR_small_RLE.dcm4,0968,1920.35 s0.13 semri_small_RLE.dcm40,96081,9201.13 s0.28 sSC_rgb_rle_16bit.dcm10,00060,0000.33 s0.17 sSC_rgb_rle_16bit_2frame.dcm20,000120,0000.56 s0.21 srtdose_rle_1frame.dcm1004000.12 s0.13 srtdose_rle.dcm1,5006,0000.53 s0.26 sSC_rgb_rle_32bit.dcm10,000120,0000.56 s0.19 sSC_rgb_rle_32bit_2frame.dcm20,000240,0001.03 s0.28 sEncodingTime per 1000 encodes, pydicom's default RLE handler vs. pylibjpeg-rleDatasetPixelsBytespydicompylibjpeg-rleOBXXXX1A.dcm480,000480,00030.7 s1.36 sSC_rgb.dcm10,00030,0001.80 s0.09 sMR_small.dcm4,0968,1922.29 s0.04 sSC_rgb_16bit.dcm10,00060,0003.57 s0.17 srtdose_1frame.dcm1004000.19 s0.003 sSC_rgb_32bit.dcm10,000120,0007.20 s0.33 s
Package: pyliblinear
pyliblinearis an API forliblinearwithout using ctypes. It
aims for more pythonic access to liblinear’s features, especially
featuring streams of data and lazy evaluations whereever possible.Supported python versions are Python 2.7 and Python 3.6+.Development StatusBeta.
The API is not stabilized yet. There also may be a few kinks here and
there. But generally it works as expected.Copyright and LicenseCopyright 2015 - 2023
André Malo or his licensors, as applicable.The whole package is distributed under the Apache License Version 2.0.
You’ll find a copy in the root directory of the distribution or online
at: <http://www.apache.org/licenses/LICENSE-2.0>.pyliblinear ships with a copy ofliblinear, which is licensed under
the terms of the3-clause BSD license.BugsNo bugs, of course. ;-)
But if you’ve found one or have an idea how to improve pyliblinear, feel
free to send a pull request ongithubor send a mail to
<pyliblinear-bugs@perlig.de>.Author InformationAndré “nd” Malo <nd perlig.de>GPG: 0x029C942244325167If God intended people to be naked, they would be born that way.
– Oscar Wilde
Package: pyliblo
pyliblo - Python bindings for the liblo OSC libraryCopyright (C) 2007-2015  Dominic Sacré  <dominic.sacre@gmx.de>http://das.nasophon.de/pyliblo/Requirements:Python >= 2.6 (also works with 3.x) [http://www.python.org/]Cython [http://www.cython.org/]liblo >= 0.27 [http://liblo.sourceforge.net/]Installation:./setup.py build
./setup.py installThis will install both the python module and the send_osc/dump_osc scripts.Documentation:Seehttp://dsacre.github.io/pyliblo/doc/for API documentation.
The ‘examples’ directory in the source tree contains some example code.
Package: pyliblo3
pyliblo3This is a fork of the original bindings for liblo, making it pip installableExampleSimple Serverimportlibloserver=liblo.Server(8080)deftest_handler(path,args,types,src):print(args)server.add_method("/test",None,test_handler)whileTrue:server.recv(100)Dependenciesliblo >= 0.28Installation1. Install libloliblomust be installed previouslyLinuxsudo apt install liblo-devmacOSbrew install libloWindowsSeehttp://liblo.sourceforge.net/README-platforms.html2. Install pyliblo3pip install pyliblo3Original READMEpyliblo - Python bindings for the liblo OSC library

Copyright (C) 2007-2011  Dominic Sacré  <dominic.sacre@gmx.de>

http://das.nasophon.de/pyliblo/


To install, run "./setup.py build", followed by "./setup.py install". This
will install both the python module and the send_osc/dump_osc scripts.

See doc/API.html and doc/examples.html for API documentation and some
example code.
Package: pyliblorawan
pyLibLoRaWAN - Python library to interface with LoRaWAN devices and network serversIntroductionThis library aims to enable LoRaWAN theHome Assistantintegration to interact with LoRaWAN network servers and devices, but can be reused for other purposes.Compatibility listNetwork serversHelium, either from thethe foundationor self hostedOrange Live Objects, a French operatorThe Things Stack:TTN,TTIor self hostedDevicesBrowan TBMS100: PIR motion sensorUsageUsage - Network serversImport the network server object then call the input normalization formatter function:frompyliblorawan.network_servers.ttnimportTTNns=TTN(**kwargs)uplink=ns.normalize_uplink(ttn_uplink_dict)Some other functions are available:list_devices: List devices in the authorized scopeUsage - DevicesImport the device object then call the payload parser function:frompyliblorawan.devices.browan.tbms100importTBMS100device=TBMS100()awaittbms100.parse_uplink(uplink_object)TestInstallrequirements.txtandrequirements-dev.txtthen:python3-mpytest-vv--cov=.--cov-config=tests/.coveragerctests/
Package: pyliblzfse
_ _ _     _        ___           
            | (_) |   | |      / __)          
 ____  _   _| |_| | _ | |_____| |__ ___  ____ 
|  _ \| | | | | | || \| (___  )  __)___)/ _  )
| | | | |_| | | | |_) ) |/ __/| | |___ ( (/ / 
| ||_/ \__  |_|_|____/|_(_____)_| (___/ \____)
|_|   (____/                                  

Overview
========

pyliblzfse is a Python (https://www.python.org/) module that provides LZFSE 
and LZVN compression and decompression through the reference implementation 
provided by Apple (https://github.com/lzfse/lzfse).

Installation
============

  pip3 install pyliblzfse

If you are using python 3.7 or higher, you don't need a dev environment to
install on macOS or Windows.

Building
========

  $ git clone --recursive https://github.com/ydkhatri/pyliblzfse
  $ python setup.py build

Usage
=====

  import liblzfse
  try:
    decrypted_data = liblzfse.decompress(encrypted_data)
  except liblzfse.error:
    print('liblzfse had an error!')

The library expects encrypted_data to be of the form b'bvx*......bvx$'.

Notes
=====

This is a fork of pylzfse project, which incorporates certain improvements and
provides python wheel builds (for 3.7+) so end users do not need to compile it.

Credits and Legal Information
=============================

pyliblzfse is free and unencumbered software released under the terms of the MIT
license; see COPYING for the license text. For a list of its authors and
contributors, see AUTHORS.

The ASCII art logo at the top was made using 
http://manytools.org/hacker-tools/ascii-banner
Package: pylibmagic
A lightweight, minimal python package that shipsmagiclibraries
using automake, CMake, scikit-build, and cibuildwheel.Why?If you usepython-magic, you typically get an error like this>>>importmagicTraceback (most recent call last):File"<stdin>", line1, in<module>File"/Users/kratsg/.pyenv/versions/venv/lib/python3.7/site-packages/magic/__init__.py", line209, in<module>libmagic=loader.load_lib()File"/Users/kratsg/.pyenv/versions/venv/lib/python3.7/site-packages/magic/loader.py", line49, inload_libraiseImportError('failed to find libmagic.  Check your installation')ImportError:failed to find libmagic.  Check your installationwhich is frustrating because they don’t ship shared lib with their
python distribution.pylibmagichelps fill in the missing gap by
shipping the requiredmagiclibrary and adding it to your path, so
you can just do:>>>importpylibmagic>>>importmagicand be on your way.pylibmagicis designed to be very minimal and
lightweight.Compiling$dockerrun-it--rm-v$PWD:/home/root-w/home/rootubuntu# apt install cmake autoconf automake libtool build-essential git python3-dev python3-pip
# cmake -S . -B build
# cmake --build buildInstalling$python3-mpipinstallpylibmagicand the libraries are installed at$python-c"import pylibmagic; print(pylibmagic.data)"ReleasingTo release, due to concurrency issues, we need to push the tag after Cirrus CI finishes with the building for pushing to the main branch. So the order is typically:tbump0.5.0--no-tag-push# wait until Cirrus CI finishesgitpushoriginv0.5.0# wait until Cirrus CI finishesghreleasecreateSee [cirruslabs/cirrus-ci-docs#1167](https://github.com/cirruslabs/cirrus-ci-docs/issues/1167) for more details.
Package: pylibmc
pylibmcis a Python client formemcachedwritten in C.Seethe documentation at sendapatch.se/projects/pylibmc/for more information.New in version 1.6.0Though no major feature overhauls have taken place, this release is partially
incompatible with 1.5.0. This stems from the fact that python-memcached is now
using a flag that pylibmc has been using for some years. python-memcached uses
it for a different purpose, and an incompatible one. We deemed that it would be
better to support this interoperability. The change also means that Unicode
strings are now stored as UTF-8 rather than pickled, which may or may not
result in a slight performance improvement for this type of data.We have also introduced apickle_protocolbehavior to enable seamless
interoperability between Python 2.x and 3.x. Also, this release introduces a
ManyLinux wheel, making installation a breeze on ManyLinux systems (which I
suppose is many linuxes.)New in version 1.5.0This release fixes critical memory leaks in common code paths introduced in
1.4.2. Also fixes a critical bug in a corner of the zlib inflation code, where
prior memory errors would trigger a double free. Thank you to everybody
involved in the making of this release, and especiallyEau de Web, without
their contributions, this release and the bug fixes it contains wouldn’t have
been so expedient.New in version 1.4.0Brace yourself, Python 3.x support has come!Thanks to everybody involved in this project; this release involves less
authors buta lotmore work per person. Thanks especially to Harvey Falcic
for the work he put in, without which there wouldn’t be any Python 3.x support.
Also thanks to Sergey Pashinin for the initial stab at the problem.Other than that, we had miscellaneous bug fixes, testing improvements, and
documentation updates.Last but not least I would like to ask for your support in this project, either
by helping out with development, testing, documentation or anything at all; or
simply by donating somemagic internet moneyto the project’s Bitcoin
address12dveKhqiJWCY8zXT4kaHdHELXPeGAUo9h.LicenseReleased under the BSD 3-clause license; seeLICENSEfor details.MaintainerWebsite:sendapatch.se/Github:github.com/lericsonIRC:lericsonin#sendapatchonchat.freenode.netE-mail:ludvigatsendapatch.se
Package: pylibmodbus
pylibmodbusPython Interface for libmodbus written with CFFI.
This libmodbus wrapper is compatible with Python 2 and Python 3.This wrapper is only compatible with libmodbus v3.1.2 and above.Required packages:python-dev and libffi-devlibmodbus and libmodbus-devLicensed under BSD 3-Clause (see LICENSE file for details).TestsBefore running the test suite, you need to launch a TCP server.
You can use the server provided by libmodbus intestsdirectory:./tests/bandwidth-server-many-upOnce this server is running, you can launch the Python tests with:python-mtests
Package: py-libnuma
py-libnumapy-libnuma is python3 interface to numa Linux library so that you can set task affinity and memory affinity in python
level for your process which can help you to improve your code's performence.Installationpip install py-libnumaUsagepy-libnuma categorize libnuma's apis into 3 groups :memory,scheduleandinfo. You can set your tasks' cpu affinity, memory affinity and get information about your
systems's hardware with these 3 modules respectively. For more information about APIs, you can refer toAPI.mdin githubschedulenuma.schedulehelps you to set cpu affinity for your process, if you have multiple numa nodes, and you want your process to be scheduled on cpus from node1 and node2, you can usenuma.schedulelike thisfrom numa import schedule
schedule.run_on_nodes(1,2)If you want a certain process withpidto run on specific cpus, you can usenuma.schedulelike thisfrom numa import schedule
schedule.run_on_cpus(pid, 1,3,4,6)memorynuma.memoryhelps you to set memory policy for your process, if you want your current process to allocate memory from multiple numa nodes
to balance local and remote memory access, you can usenuma.memorylike this:from numa import memory    
memory.set_interleave_nodes(0,1)or you can make your process to allocate from certain nodes byfrom numa import memory    
memory.set_membind_nodes(1)Infonuma.infohelps you to get information about your numa hardware, you can check hardware information by:from numa import info    
info.numa_hardware_info()This will tell you distance between different numa nodes and node-cpu relation. You can also check cpu set for certain nodes by:from numa import info    
info.node_to_cpus(1)or check which node is a certain cpu belongs to by:from numa import info    
info.cpu_to_node(1)For more information about APIs, you can refer toAPI.mdin githubFeedbackIf you have any problems with using this package, feel free to create issues and you will get answered in no more than 24 hours
Package: pylibob
pylibob另一个 LibOneBot Python 库，旨在帮助开发者实现OneBot 12标准。这是什么？这是一个 Python 的LibOneBot，旨在帮助开发者快速实现 OneBot 12 标准。LibOneBot 对OneBot Connect和动作、事件、消息段进行了包装，便于开发者使用。下文涉及的 OneBot 概念请参考OneBot 术语表安装pipinstallpylibob快速上手from__future__importannotations# from typing_extensions import Annotated  # python<3.9fromtypingimportAnnotated# python>=3.9frompylibobimport(HTTP,Bot,Event,HTTPWebhook,OneBotImpl,WebSocket,WebSocketReverse,)impl=OneBotImpl("test",# 实现名称"1.0.0",# 实现版本[HTTP(host="0.0.0.0",# HTTP 服务器监听 IPport=8080,# HTTP 服务器监听端口event_enabled=True,# 是否启用 get_latest_events 元动作event_buffer_size=20,# 事件缓冲区大小access_token="access_token",# 访问令牌),HTTPWebhook(url="http://127.0.0.1:8080/onebot/v12/http/",# Webhook 上报地址),# WebSocket 均存在 enable_heartbeat 和 heartbeat_intervalWebSocket(enable_heartbeat=True,# 启用心跳heartbeat_interval=5000,# 心跳间隔),WebSocketReverse(url="ws://127.0.0.1:8081/onebot/v12/ws/"),],Bot(platform="qq",user_id="1",online=True),# 任意个数 Bot 实例)@impl.action("hello")asyncdef_(# 采用类型注解的方式声明参数及类型a:str,# 扩展参数使用 Annotated，第一个 metadata 会被视为参数名b:Annotated[int,"extra.param"],# 注解为 Bot 的参数不计入动作需要的参数，会内部处理传入 Bot 实例c:Bot,# 允许默认值d:int=5,):# 此动作 `hello` 需要必须参数:#     a (string)#     extra.param (int)# 可选参数:#     d (int) (default = 5)# 向应用推送事件awaitimpl.emit(Event(...))returna,b,c,d# 返回的内容会传入到响应的 data# 机器人准备好后（一般指机器人登录完成）# 实现良好状态默认为 False，准备好需手动调整为 True# impl.is_good = True# 还要调用此方法去更新状态# await impl.update_status()impl.run()# 运行许可证MIT
Package: pylibpostal
pylibpostalParse street addresses around the world.This is a Python binding forlibpostal, a C library for parsing/normalizing street addresses around the world using statistical NLP and open data. The goal of this project is to understand location-based strings in every language, everywhere.InstallationYou can install the latest stable version via:$ pip install pylibpostalDatalibpostalneeds to download some data files and models from S3. The basic files are on-disk representations of the data structures necessary to perform expansion. Please refer to thedocumentationhow to download the files.Export the path to the data folder as environment variable:exportLIBPOSTAL_DATA_DIR="data-folder"Usage>>>frompylibpostal.expandimportexpand_address>>>expand_address('Quatre vingt douze Ave des Champs-Élysées')['92 avenue des champs-elysees','92 avenue des champs elysees','92 avenue des champselysees']>>>frompylibpostal.parserimportparse_address>>>parse_address('The Book Club 100-106 Leonard St, Shoreditch, London,EC2A 4RH, UK')[('the book club','house'),('100-106','house_number'),('leonard st','road'),('shoreditch','suburb'),('london','city'),('ec2a 4rh','postcode'),('uk','country')]
Package: pylibrabbitmq
Version:0.5.0Download:http://pypi.python.org/pypi/pylibrabbitmq/Code:http://github.com/ask/pylibrabbitmq/Keywords:rabbitmq, amqp, messaging, librabbitmq, rabbitmq-c, pythonInstallationExamplesProduceConsumePollOtherLicenseExperimental Python bindings to the RabbitMQ C-librarylibrabbitmq.You should probably useamqplibinstead, but when needed you can
come back to this if the extra performance is needed.InstallationTo install you need to compilelibrabbitmq:$ mkdir -p /opt/Build/rabbit
$ cd /opt/Build/rabbit
$ hg clone http://hg.rabbitmq.com/rabbitmq-codegen/
$ hg clone http://hg.rabbitmq.com/rabbitmq-c/
$ cd rabbitmq-c
$ autoreconf -i
$ ./configure
$ make
$ make installThen you can install this package:$ cd pylibrabbitmq-x.x.x
$ python setup.py installExamples>>> from pylibrabbitmq import Connection, Message>>> conn = Connection(host="localhost", userid="guest",
...                   password="guest", virtual_host="/")>>> channel = conn.channel()
>>> channel.exchange_declare(exchange, type, ...)
>>> channel.queue_declare(queue, ...)
>>> channel.queue_bind(queue, exchange, routing_key)Produce>>> m = Message(body, content_type=None, content_encoding=None,
...             delivery_mode=1)
>>> channel.basic_publish(m, exchange, routing_key, ...)Consume>>> def dump_message(message):
...     print("Body:'%s', Proeprties:'%s', DeliveryInfo:'%s'" % (
...         message.body, message.properties, message.delivery_info))
...     message.ack()>>> channel.basic_consume(queue, ..., callback=dump_message)>>> while True:
...    connection.drain_events()Poll>>> message = channel.basic_get(queue, ...)
>>> if message:
...     dump_message(message)
...     print("Body:'%s' Properties:'%s' DeliveryInfo:'%s'" % (
...         message.body, message.properties, message.delivery_info))Other>>> channel.queue_unbind(queue, ...)
>>> channel.close()
>>> connection.close()LicenseThis software is licensed under theMozilla Public License.
See theLICENSE-MPL-RabbitMQfile in the top distribution directory
for the full license text.
Package: pylibratometrics
pylibratometrics================Simple script to send psutil (host network/cpu/disk) stats into Librato.Install-------sudo apt-get install python-pip python-dev -ysudo pip install pylibratometricsSetup-------export LIBRATO_USER=your@email.comexport LIBRATO_API=<your api key>Usage-------This will push all metrics to librato. Run this periodically.$ pylibratometricsA sample crontab config:LIBRATO_USER=your@email.comLIBRATO_API=de730dcd010d8cs2577cdeaffefdc9e2dc55f68cbca5d3aeca40cc92b2cec73f*/5 * * * * pylibratometrics