Saravanan666/pypi-org huggingface dataset:
Package: osef
OSEF libraryLibrary containing utilities to read and parse a stream, live or recorded, retrieved fromShift.The stream is in theOSEFformat (OpenSErializationFormat):
it's an Outsight-defined serialisation binary format used to encode data streaming out of Shift.
It is based onTLV-encoding.For the full documentation, see:Developer documentation.You can contact us @https://support.outsight.aiInstallationInstall from PyPi using pip:pipinstallosefUsageOpen and parse an osef file or stream:importosefosef_path="path/to/my/file.osef"# or osef_path="tcp://192.168.2.2:11120"forframe_dictinosef.parse(osef_path):print(frame_dict)Additional parameters:first/last: the first and the last frame to parseauto_reconnect: enable parser auto_reconnection (default:True)real_frequency: If False, parse data as fast as your computer can. If True, process the data as the same pace as the real time stream from Shift (default:False)lazy: If lazy, the dict only unpack the values when they are accessed to save up resources (default:True)To find more code samples, seeOutsight Code Samples repository.
Package: osem
# OSEMOpen Source Energy Module: dedicated tools and methods for energy related models and applications## PresentationThe OSEM module collects different functions which are useful to energy planners. The functions contain in this module can be grouped infour types:* Functions to accesss usual data: This part is centered on the Swiss energy market and contain API to access databases about price, C02emissions and primary energy usage of various heating technology (also known as kbob). A database about the norm SIA 308/1and different swiss political objectives will also be developed.* Functions to estimate energy demands from buildings.* Models of different energy technology (production, distribution, storage, and conversion).* Functions to support GIS-based creation of gas/electricity-network.* Plotting functions for different energy indicators (primary energy, useful energy, etc.).OSEM is currently under developement and is expected to be ready for production in 2019.## Examplehttps://github.com/CREM-APP/OSEM-example/blob/master/get_meteo_data.ipynb#TODO write requirements## Getting StartedTo install OSEM, clone the repository and run the set-up:$ git clone https://gitlab.com/crem-repository/OSEF.git$ sudo python setup.py installYou test this module using Pytest (https://docs.pytest.org/en/latest/)## Authors* Albain Dufils* Lesly Houndole* Pablo Puerto* Jakob Rager* Diane von Gunten(by alphabetical order)## LicenseYou should have received a copy of the Apache License Version 2.0 along with this program.If not, see http://www.apache.org/licenses/LICENSE-2.0.#TODO write requirements#TODO how to intall osem
Package: osemclient
osem-python-clientosemclientis an async Python client with fully typed model classes for the OpenSenseMap REST API.
It is based on aiohttp and Pydantic.Usagepipinstallosemclientimportasynciofromosemclient.clientimportOpenSenseMapClientasyncdefget_recent_measurements(sensebox_id:str):"""downloads the latest 10_000 measurements for the given sensebox id"""client=OpenSenseMapClient()try:measurements=[xasyncforxinclient.get_measurements_with_sensor_metadata(sensebox_id=sensebox_id)]print(f"There are{len(measurements)}measurements available: "+", ".join(str(ms)formsinmeasurements[0:3])+" ...")assertany(mforminmeasurementsifm.unit=="°C")# there are temperature measurementsassertany(mforminmeasurementsifm.unit=="hPa")# there are air pressure measurements# and many morefinally:awaitclient.close_session()if__name__=="__main__":asyncio.run(get_recent_measurements(sensebox_id="621f53cdb527de001b06ad5e"))Methods that return measurement values are async generators.
This allows for kind of streaming the data from the OSeM API and avoids large bloating lists in memory.State of this ProjectThis project isvery alphaand more a proof of concept.
It only supports two GET API endpoints as of 2023-12-18 and even those are not covered completely.
If youreallywant to use it, there's still work to be done but this project might be a good foundation.DevelopmentCheck the instructions in ourPython Template Repository.
tl;dr: tox.ContributeYou are very welcome to contribute to this template repository by opening a pull request against the main branch.
Package: osensaimos
Python module for interfacing with the OSENSA IMOS.Refer tohttps://github.com/osensa/osensaimosfor source code and examples.HistoryRelease 0.2.4:Add write() methodRevise streaming logicAdd misc helper methodsRelease 0.2.3b1:Revise streaming logic to match updated firmware logicAdd logic to flush RX/TX buffers before read/write to workaround bug with minimalmodbusRelease 0.2.2b1:Remove dependence on IMOS class for the methods convert_binary_file(), update_crc() and __crc_table_init()Add logic to catch IO errors on IMOS readRelease 0.2.1b1:Improve unicode handling in stop_stream and dictionary()Fix timeout bug in dictionary()Add option to save flash settings in stop_stream()Add function to convert binary files to CSVRelease 0.2.0b2:Fix unicode decode handling in stop_stream()Release 0.2.0b1:Add saveToFlash option for start stream methodAdd method for saving calibration to fileAdd method for loading calibration from fileRelease 0.1.9b1:Revert back to Python 3 supportIntegrate start_stream() logic into osensaimos libraryRelease 0.1.8b1:Adjust code to support Python 2 instead of 3Add start_stream() method to hello_world.py exampleRelease 0.1.7b1:Fix ‘no atrribute’ bug when using update_crc()Fix bugs with set_baudrate() logicRelease 0.1.6b1:Add method to get device firmware versionAdjust dump_calibration() output formatRelease 0.1.5b1:Fix minor bugsRelease 0.1.4b1:Add new custom modbus actionsRelease 0.1.3b1:Add stream mode bug fixes and parse logicRelease 0.1.2b1:Restructure package and add example fileRelease 0.1.1b1:Initial releaseRelease 0.1.0b1:Test release
Package: osensanugrid
Python module for interfacing with the OSENSA’s Nugrid module.HistoryRelease 0.0.7:Updated TEC setting function again with newer hardware changesRelease 0.0.6:More minor bug fixes, re-uploadRelease 0.0.5:Updated TEC setpoint function based on experimentation, minor bug fixesRelease 0.0.4:Modified read_photodiode() to return the status bits instead of throw errorRelease 0.0.3:Remove debug messagesRelease 0.0.2:Changed globalsMoved DAC setup to initRelease 0.0.1:Initial release
Package: osensaplantiga
Python module for interfacing with the OSENSA-Plantiga pods.HistoryRelease 0.1.8:Add option to save record CSV with CRC flagsAdd option to save record CSV files with converted timestampAdd logs() method for viewing debugging logsAdd status() method for viewing device statusAdd custom modbus command to check flash integrityMove print outputs to logging objectRemove unnecessary whitespaceAdd sanity testRelease 0.1.7:Add logic to sort results in find_docks()Add debugging tools for erase_flash() and poll() methodsRelease 0.1.6:Revert default SYNC pin state to lowAdd logic to support software resetTweak erase_flash() debugging textRelease 0.1.5:Update erase function to support fast eraseUpdate default SYNC pin stateMinor tweaks to connect() logicRelease 0.1.4:Add convert_unixtime() methodRelease 0.1.3:Add method to test clock drift/accuracyRelease 0.1.2:Add methods to set device into bootloader and to upload new firmwareAdd custom exception to allow return of partially complete flash record readAdd 1.5Mbaud as a selectable baudrate optionOther misc bug fixesRelease 0.1.1:Update API to work with new pod and dock hardwareUpdate documentation detailing new pod operation modes and instructions on setting dock serial numberFix issue with serial port initialization causing communication issues between pods and docksAdd methods to get SYNC and RESET pin statesRevise connect() logic to improve pod detection speedFix bug with minimal modbus library causing errors when compiledAdd poll() method for continuous monitoring of a single parameterAdd speed_test() method for evaluating device read speedAdd placeholder battery_level() method that returns a hardcoded percentage value (0.98 = 98%)Release 0.1.0:Rename release version to fix install errorRelease 0.0.10:Time base in CSV file now based on unix time stamps + interpolationRelease 0.0.9:Fix bug in minimalmodbus that prevented reconnecting after disconnectingRelease 0.0.8:Revise Record logic to support new record format that includes record size and data rateRevise Record print() and tocsv() logic to include unix timestampRevise save_records() logic to allow option to save headersRelease 0.0.7:Add modbus CRC check in the read flash commandAdd option to adjust number of flash pages to read at a timeUpdate baudrate options to support faster baudratesFix find_docks() support for MacOSIncrease speed of Pod connection failure detectionRelease 0.0.6:Add logic to handle none type exceptions when finding docksAdd pyserial and python-dateutil as package dependenciesRelease 0.0.5:Add methods to improve accessibility for connecting to a dockAdd methods for pod time synchronizationRelease 0.0.4:Add method to read pod firmware versionRelease 0.0.3:Add methods to read and write from device flashAdd Record class to store 1 page of data from flashAdd methods to conveniently read disk page and usageAdd helper methods to convert flash data to a plot, a csv file and to a serial blobRelease 0.0.2:Add missing modbus libraryRelease 0.0.1:Test release
Package: osensaplantiga-dev
Python module for interfacing with the OSENSA-Plantiga pods.HistoryRelease 0.1.8:Add option to save record CSV with CRC flagsAdd option to save record CSV files with converted timestampAdd logs() method for viewing debugging logsAdd status() method for viewing device statusAdd custom modbus command to check flash integrityMove print outputs to logging objectRemove unnecessary whitespaceAdd sanity testRelease 0.1.7:Add logic to sort results in find_docks()Add debugging tools for erase_flash() and poll() methodsRelease 0.1.6:Revert default SYNC pin state to lowAdd logic to support software resetTweak erase_flash() debugging textRelease 0.1.5:Update erase function to support fast eraseUpdate default SYNC pin stateMinor tweaks to connect() logicRelease 0.1.4:Add convert_unixtime() methodRelease 0.1.3:Add method to test clock drift/accuracyRelease 0.1.2:Add methods to set device into bootloader and to upload new firmwareAdd custom exception to allow return of partially complete flash record readAdd 1.5Mbaud as a selectable baudrate optionOther misc bug fixesRelease 0.1.1:Update API to work with new pod and dock hardwareUpdate documentation detailing new pod operation modes and instructions on setting dock serial numberFix issue with serial port initialization causing communication issues between pods and docksAdd methods to get SYNC and RESET pin statesRevise connect() logic to improve pod detection speedFix bug with minimal modbus library causing errors when compiledAdd poll() method for continuous monitoring of a single parameterAdd speed_test() method for evaluating device read speedAdd placeholder battery_level() method that returns a hardcoded percentage value (0.98 = 98%)Release 0.1.0:Rename release version to fix install errorRelease 0.0.10:Time base in CSV file now based on unix time stamps + interpolationRelease 0.0.9:Fix bug in minimalmodbus that prevented reconnecting after disconnectingRelease 0.0.8:Revise Record logic to support new record format that includes record size and data rateRevise Record print() and tocsv() logic to include unix timestampRevise save_records() logic to allow option to save headersRelease 0.0.7:Add modbus CRC check in the read flash commandAdd option to adjust number of flash pages to read at a timeUpdate baudrate options to support faster baudratesFix find_docks() support for MacOSIncrease speed of Pod connection failure detectionRelease 0.0.6:Add logic to handle none type exceptions when finding docksAdd pyserial and python-dateutil as package dependenciesRelease 0.0.5:Add methods to improve accessibility for connecting to a dockAdd methods for pod time synchronizationRelease 0.0.4:Add method to read pod firmware versionRelease 0.0.3:Add methods to read and write from device flashAdd Record class to store 1 page of data from flashAdd methods to conveniently read disk page and usageAdd helper methods to convert flash data to a plot, a csv file and to a serial blobRelease 0.0.2:Add missing modbus libraryRelease 0.0.1:Test release
Package: osensapy
OsensaPyPython module for interfacing with the OSENSA transmitters.HistoryRelease 0.1.7 [2019-08-08]:Adjust constructor logic to apply baudrate, parity and timeout settings on port initializationRelease 0.1.6 [2019-08-08]:Add parameter to allow exclusive port accessRelease 0.1.5 [2019-06-19]:Add method to close transmitter serial portAdd method to check if serial port is openRelease 0.1.4 [2018-08-15]:Add logic to flush buffers on read/writeRelease 0.1.3 [2018-04-19]:Add init parameter to control closing serial port between callsRelease 0.1.2 [2018-03-29]:Fix bug with detecting serial ports in LinuxRelease 0.1.1 [2018-03-02]:Fix issue with internal library importRelease 0.1.0 [2018-03-01]:Initial release
Package: oset
osetSet that remembers original insertion order.Runs on Py2.5 or later (and runs on 3.0 or later without any modifications). For Python2.5, a local backport of ABC classes is also used.Implementation based on a doubly linked link and an internal dictionary. This design gives OrderedSet the same big-Oh running times as regular sets including O(1) adds, removes, and lookups as well as O(n) iteration.UsageImport and create ordered set.>>> from oset import oset
>>> os = oset()RequiresPython 2.5+ChangesVersion 0.1http://code.activestate.com/recipes/576694-orderedset/Raymond Hettinger, 19 Mar 2009ContributorsRaymond Hettinger, (All kudos to him :)Carlos Martin <inean.es@gmail.com>under thePython Software Foundation License.
License
=======Copyright (c) 2009, Raymond Hettinger, and others
All rights reserved.Package structured based on the one developed to odict
Copyright (c) 2010, BlueDynamics Alliance, AustriaRedistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.Neither the name of the BlueDynamics Alliance nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY BlueDynamics AllianceAS ISAND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL BlueDynamics Alliance BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: oseti
osetiDictionary based Sentiment Analysis for JapaneseINSTALLATION$ pip install osetiUSAGEimportosetianalyzer=oseti.Analyzer()analyzer.analyze('天国で待ってる。')# => [1.0]analyzer.analyze('遅刻したけど楽しかったし嬉しかった。すごく充実した！')# => [0.3333333333333333, 1.0]analyzer.count_polarity('遅刻したけど楽しかったし嬉しかった。すごく充実した！')# => [{'positive': 2, 'negative': 1}, {'positive': 1, 'negative': 0}])analyzer.count_polarity('そこにはいつもと変わらない日常があった。')# => [{'positive': 0, 'negative': 0}]analyzer.analyze_detail('お金も希望もない！')# => [{'positive': [], 'negative': ['お金-NEGATION', '希望-NEGATION'], 'score': -1.0}])analyzer.analyze_detail('お金がないわけではない')# => [{'positive': ['お金'], 'negative': [], 'score': 1.0}]# Applying user's dictionaryanalyzer=oseti.Analyzer(word_dict={'カワイイ':'p','ブサイク':'n'},wago_dict={'イカ する':'ポジ','まがまがしい':'ネガ'})analyzer.analyze_detail("カワイイ")# => [{'positive': ['カワイイ'], 'negative': [], 'score': 1.0}]analyzer.analyze_detail("ブサイクだ")# => [{'positive': [], 'negative': ['ブサイク'], 'score': -1.0}]analyzer.analyze_detail("まがまがしい")# => [{'positive': [], 'negative': ['まがまがしい'], 'score': -1.0}]analyzer.analyze_detail("イカすよ")# => [{'positive': ['イカ する'], 'negative': [], 'score': 1.0}]ACKNOWLEDGEMENTThis module uses 日本語評価極性辞書（用言編）ver.1.0 and 日本語評価極性辞書（名詞編）ver.1.0小林のぞみ，乾健太郎，松本裕治，立石健二，福島俊一. 意見抽出のための評価表現の収集. 自然言語処理，Vol.12, No.3, pp.203-222, 2005. / Nozomi Kobayashi, Kentaro Inui, Yuji Matsumoto, Kenji Tateishi. Collecting Evaluative Expressions for Opinion Extraction, Journal of Natural Language Processing 12(3), 203-222, 2005.東山昌彦, 乾健太郎, 松本裕治, 述語の選択選好性に着目した名詞評価極性の獲得, 言語処理学会第14回年次大会論文集, pp.584-587, 2008. / Masahiko Higashiyama, Kentaro Inui, Yuji Matsumoto. Learning Sentiment of Nouns from Selectional Preferences of Verbs and Adjectives, Proceedings of the 14th Annual Meeting of the Association for Natural Language Processing, pp.584-587, 2008.CHANGES0.4.2 (2023-02-19)Enable user’s dictionarySolve install issueSupport Python 3.11PEP80.3.1 (2022-08-17)Improve dictionariesUse Bunkai module instead of sengiri0.2 (2019-10-07)Add new methods count_polarity (thanks @yskn67) and analyze_detailDrop support Python 3.3Use sengiri packageSupport parallel negation (e.g. お金も希望もない is negative)Support “arujanai” expression (e.g. お金があるじゃない is positive)0.1.2 (2019-02-18)Fix missing CHANGES.rst0.1.1 (2019-02-13)Set install_requires0.1 (2019-02-12)First release
Package: osetifix
osetiDictionary based Sentiment Analysis for JapaneseINSTALLATION$ pip install osetiUSAGEimportosetianalyzer=oseti.Analyzer()analyzer.analyze('天国で待ってる。')# => [1.0]analyzer.analyze('遅刻したけど楽しかったし嬉しかった。すごく充実した！')# => [0.3333333333333333, 1.0]analyzer.count_polarity('遅刻したけど楽しかったし嬉しかった。すごく充実した！')# => [{'positive': 2, 'negative': 1}, {'positive': 1, 'negative': 0}])analyzer.count_polarity('そこにはいつもと変わらない日常があった。')# => [{'positive': 0, 'negative': 0}]analyzer.analyze_detail('お金も希望もない！')# => [{'positive': [], 'negative': ['お金-NEGATION', '希望-NEGATION'], 'score': -1.0}])analyzer.analyze_detail('お金がないわけではない')# => [{'positive': ['お金'], 'negative': [], 'score': 1.0}]ACKNOWLEDGEMENTThis module uses 日本語評価極性辞書（用言編）ver.1.0 and 日本語評価極性辞書（名詞編）ver.1.0小林のぞみ，乾健太郎，松本裕治，立石健二，福島俊一. 意見抽出のための評価表現の収集. 自然言語処理，Vol.12, No.3, pp.203-222, 2005. / Nozomi Kobayashi, Kentaro Inui, Yuji Matsumoto, Kenji Tateishi. Collecting Evaluative Expressions for Opinion Extraction, Journal of Natural Language Processing 12(3), 203-222, 2005.東山昌彦, 乾健太郎, 松本裕治, 述語の選択選好性に着目した名詞評価極性の獲得, 言語処理学会第14回年次大会論文集, pp.584-587, 2008. / Masahiko Higashiyama, Kentaro Inui, Yuji Matsumoto. Learning Sentiment of Nouns from Selectional Preferences of Verbs and Adjectives, Proceedings of the 14th Annual Meeting of the Association for Natural Language Processing, pp.584-587, 2008.CHANGES0.2 (2019-10-07)Add new methods count_polarity (thanks @yskn67) and analyze_detailDrop support Python 3.3Use sengiri packageSupport parallel negation (e.g. お金も希望もない is negative)Support “arujanai” expression (e.g. お金があるじゃない is positive)0.1.2 (2019-02-18)Fix missing CHANGES.rst0.1.1 (2019-02-13)Set install_requires0.1 (2019-02-12)First release
Package: ose-workbench-core
OSE Workbench CoreCore library common to allOpen Source Ecology (OSE)workbenches.ContributingSeeContributing Guidelines.LicenseLicensed under theGNU Lesser General Public License, version 2.1or LGPL v2.1. SeeLICENSEfor details.This is the same license asFreeCADto ensure this code could potentially be incorporated into future FreeCAD modules or FreeCAD source itself.Supported FreeCAD VersionsThis library supports FreeCAD 18.4.
Package: os-exitcodes
Exit CodesThis package is a cross-operating-system compatible version of theoslibrary's EX_* constants.If these constants are available, they will be re-exported directly fromos, otherwise the integer version will be provided from this library.This library also provides an enum version of the exit codes, if that is of value.Apologies for the weird PyPi name, they're a bit overly restrictive and don't point to what specifically is the conflicting package.Installationpython-mpipinstall-Uos-exitcodesUsageConstantsfromos_exitcodesimport(EX_OK,EX_USAGE,)fromrandomimportchoicedefis_valid_usage()->bool:# check if the user is using this properly# for a working example, this is randomreturnchoice([True,False])defmain()->None:invalid_usage=randomifnotis_valid_usage():raiseSystemExit(EX_USAGE)raiseSystemExit(EX_OK)if__name__=="__main__":main()Enumerationfromos_exitcodesimportExitCodefromrandomimportchoicedefis_valid_usage()->bool:# check if the user is using this properly# for a working example, this is randomreturnchoice([True,False])defmain()->None:invalid_usage=randomifnotis_valid_usage():raiseSystemExit(ExitCode.EX_USAGE)raiseSystemExit(ExitCode.EX_OK)if__name__=="__main__":main()
Package: os-fast-reservoir
# os-fast-reservoir[![Build Status](https://www.travis-ci.org/cfhamlet/os-fast-reservoir.svg?branch=master)](https://www.travis-ci.org/cfhamlet/os-fast-reservoir)[![codecov](https://codecov.io/gh/cfhamlet/os-fast-reservoir/branch/master/graph/badge.svg)](https://codecov.io/gh/cfhamlet/os-fast-reservoir)[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/os-fast-reservoir.svg)](https://pypi.python.org/pypi/os-fast-reservoir)[![PyPI](https://img.shields.io/pypi/v/os-fast-reservoir.svg)](https://pypi.python.org/pypi/os-fast-reservoir)Python implementation of fast approximation reservioir sampling.# Install`$ pip install os-fast-reservoir`# Usage* API```from os_fast_reservoir import ReservoirSamplingrs = ReservoirSampling(100)for i in range(1000):rs.sample(i)for i in rs:print i```* Command line```$ os-fast-reservoir -husage: os-fast-reservoir [-h] [-v] [-f INPUT_FILE] -n NUMReservoir sample tool.optional arguments:-h, --help            show this help message and exit-v, --version         show program's version number and exit-f INPUT_FILE, --file INPUT_FILEfile to be sampled (default: stdin)-n NUM, --num NUM     sample number```# Algorithm* [Reservoir sampling](https://en.wikipedia.org/wiki/Reservoir_sampling)* [Faster Random Samples With Gap Sampling](http://erikerlandson.github.io/blog/2014/09/11/faster-random-samples-with-gap-sampling/)* [Very Fast Reservoir Sampling](http://erikerlandson.github.io/blog/2015/11/20/very-fast-reservoir-sampling/)* Another implementation: [alexprengere/reservoir](https://github.com/alexprengere/reservoir)# Unit Tests`$ tox`# LicenseMIT licensed.
Package: os-flavor-selector
os-flavor-selector - A tool to filter OpenStack flavors based on resource criteriaAboutos-flavor-selector is a tool filter OpenStack flavors. When there are many flavors available,
it is sometimes dificult to find the correct one that fills our requirements.
The os-flavor-selector helps to navigate and filter the flavors.Example$os-flavor-selector--help
$os-flavor-selector
$os-flavor-selector--vcpus-min4--vcpus-max8$os-flavor-selector--vcpus-min4--vcpus-max8--outputjson
$os-flavor-selector--vcpus-min4--memory-max16--outputtextInstallation$pipinstallos-flavor-selectorDevelopment mode$pipinstall-e.