Saravanan666/pypi-org huggingface dataset:
Package: pyIthoRFT
pyIthoRFTPython3 library for Itho RFTControls Itho ventilation boxes / Heat Recovery Units (HRU).This project was developed during my free time, and contributions are welcome.OverviewThis library emulates the Itho RFT AUTO (536-0150) remote using theevofw3 Gateway by ghoti57allowing the control of Itho ventilation / HRU units.The primary objective for this library is to be integrated with Home Assistant as a custom_component.The supported functionality includes:Pairing with the HRU using a randomly generatedremote_address.Saving and loading the pairedremote_addressandunit_address.Sending remote commands (auto,low,high, andtimer10/20/30).Parsing HRU data such asactive_speed_mode,temperature,fault_activeandfilter_dirty)Logging gateway data toremote.log.Upcoming steps:Integration of the library into Home Assistant or HACS (Home Assistant Community Store) -> work-in-progress.SetupThis project is compatible with anyevofw3-compatible gateway. While I've observed stability issues with gateways utilizing the green CC1101 wireless RF module, I've opted to create my own solution.The gateway I employ is a DIY homemade setup, comprising anArduino Pro Micro 3V3microcontroller and anEBYTE E07-900M10Swireless RF module.Make sure your software version is at leastv0.7.0or later.Please note that this implementation has only been tested on theItho HRU ECO300model.Feel free to let me know if you have any further questions or need assistance with anything else!Installpip3 install pyIthoRFTExample:TODO
Package: pyitm
pyitm: Longley-Rice Irregular Terrain ModelThis is a pure python implementation of the NTIA Longley-Rice Irregular Terrain Model.Documentation hosted onReadthedocs.Original NTIA Disclaimer:The ITM software was developed by NTIA. NTIA does not make any warranty of any kind, express, implied or
statutory, including, without limitation, the implied warranty of merchantability, fitness for a particular purpose,
non-infringement and data accuracy. NTIA does not warrant or make any representations regarding the use of the software
or the results thereof, including but not limited to the correctness, accuracy, reliability or usefulness of the
software or the results. You can use, copy, modify, and redistribute the NTIA-developed software upon your acceptance
of these terms and conditions and upon your express agreement to provide appropriate acknowledgments of NTIA's ownership
of and development of the software by keeping this exact text present in any copied or derivative works. By clicking the
links on this page to download the software, you acknowledge that you have read this disclaimer.
Package: py-itree
🌳 iTree - an Interval Tree libraryIn computer science, aninterval treeis a tree data structure to hold intervals. Every node initreehas astartand anendvalue.Installationitreesupports Linux, MacOS and Windows operating systems.Installation WithpipYou can installitreeby running:pipinstallpy-itreeBuild From Source Withcmake🍀 For MacOS with M1 Chip, some Windows OS, embedded systems, or different python versions where the method above doesn't work, please use the following workaround.Installcmake(version>3.4)Run the following command to build it locally:pipinstallhttps://github.com/juncongmoo/itree/archive/refs/tags/v0.0.18.tar.gzQuick StartSymbol For Node And Tree🟢  - normal node; 
  🔵  - zero interval node; 
  🍁  - leaf node, which means no child node
  🌳  - a treeCreate Some Nodes>>>importitree>>>itree.Node('fruit',0,40)[🍁n=fruit,s=0.00,e=40.00,x=0,c=0]>>>itree.Node('fruit')[🔵n=fruit]>>>a=itree.Node('fruit',0,200)>>>b=itree.Node('apple',10,20)>>>print(a)[🍁n=fruit,s=0.00,e=40.00,x=0,c=0]>>>a.append(b)>>>print(a)[🟢n=fruit,s=0.00,e=200.00,x=0,c=1]>>>print(b)[🍁n=apple,s=10.00,e=20.00,x=0,c=0]>>>print(a.nodes)[[🍁n=apple,s=10.00,e=20.00,x=0,c=0]]>>>Create And Render A Tree>>>fromitreeimportTree>>>defdemo_tree():t=Tree(tid="123",extra={"img":"1241241313.png"})t.start("root",1,{"name":"itree"})t.start("math",2,{"age":10})t.start("music",3,{"location":[1,2,3]})t.end("music",4,{"price":12.3})t.end("math",16284000,{"memory":(1,2,3)})t.start("music",122840057.8713503)t.end("music",1228400500)t.start("music",32840057.8713503)t.start("egg",3284.8713503)t.start("icecream",32843.8713503)t.start("pizza",32843.8713503)t.end("pizza",62845003)t.end("icecream",62845003)t.end("egg",6284500)t.end("music",628400500)t.start("piggy",3284.8713503)t.start("unicorn",32843.8713503)t.start("monkey",32843.8713503)t.end("monkey",62845003)t.end("unicorn",62845003)t.end("piggy",6284500)t.end("root",1628400570.8713503)print(f"{t.count},{t.depth}")t.consolidate()img_path=t.to_img()returnimg_path,t>>>img_path,t=demo_tree()>>>t(🌳id=123,c=11,x=1,d=6,m=0,o=1)Run thedemo_tree()function, a tree digraph will be generated:The green circle node is a virtual node. The yellow record box is the node with the longest interval.A virtual node is a conceptual node which could have many subnodes/subtrees.DevelopmentTurn on local build toONinitree/CMakeLists.txt:option(LOCAL_BUILD "build locally" OFF)Test$python-munittestdiscover
...............
----------------------------------------------------------------------
Ran15testsin1.209s

OKFormatfinditree-pathitree/pybind11-prune-o-iname*.h-o-iname*.cpp|xargsclang-format-i
black-S.--exclude'(\.history|\.vscode|\.git|\.VSCodeCounter|venv|workspace|pybind11)'Buildrm-fritree/build/&&./release.sh&&yes|cpitree/build/_itree.*itree/
pipinstall--editable.LicenseTree is licensed under the Apache 2.0 License.
Package: pyitt
pyittpyitt is a Python binding to Intel Instrumentation and Tracing Technology (ITT) API. It provides a convenient way
to mark up the Python code for further performance analysis using performance analyzers from Intel like Intel VTune
or others.pyitt supports following ITT APIs:Collection Control APIDomain APIString Handle APIId API(partial support)Task API(partial support)Thread Naming APIUsageThe main goal of the project is to provide the ability to instrument a Python code using ITT API in the Pythonic way.
pyitt provides wrappers that simplify markup of Python code.importpyitt@pyitt.taskdefworkload():passworkload()pyitt.taskcan be used as a decorator. In this case, the name of a callable object (workloadfunction in this
example) will be used as a name of the task and the task will be attributed to a default domain named 'pyitt'.
If you want to change the default name and/or other parameters for the task (e.g. task domain), you can pass
them as arguments topyitt.task:importpyitt@pyitt.task('My Task',domain='My Task Domain')defworkload():passworkload()Also,pyitt.taskreturns the object that can be used as a context manager:importpyittwithpyitt.task():# some code here...passIf the task name is not specified, thepyitt.taskuses call site information (filename and line number) to give
the name to the task. A custom name for the task and other task parameters can be specified via arguments
forpyitt.taskin the same way as for the decorator form.BuildThe native part of pyitt module is written using C++20 standard, therefore you need a compiler that supports this
standard, for example GCC-13 for Linux and Visual Studio 2022 for Windows.Ubuntu 22.04Install the compiler and Python utilities to build module:sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-13 g++-13 python3-pipGet ITT headers and static library:Option 1:Download and installIntel VTune for Linux.Option 2:Build Intel ITT fromsource.Clone the repository:git clone https://github.com/esuldin/pyitt.gitPrepare the build environment: specify the compiler and the path to ITT header and static library.export CC=`which gcc-13`
export CXX=`which g++-13`
export VTUNE_PROFILER_DIR=/opt/intel/oneapi/vtune/latestBuild and install pyitt:cd pyitt
pip install .Windows 10/11InstallPython 3.8+together with pip utility.InstallVisual Studio 2022.
Make sure that "Desktop development with C++" workload is selected.Get ITT headers and static library:Option 1:Download and installIntel VTune for Windows.Option 2:Build Intel ITT fromsource.Clone the repositorygit clone https://github.com/esuldin/pyitt.gitPrepare the build environment: specify the paths to Python and to ITT header and static library.set PATH=C:\Program Files\Python38;C:\Program Files\Python38\Scripts;%PATH%
set VTUNE_PROFILER_DIR=C:\Program Files (x86)\Intel\oneAPI\vtune\latestBuild and install pyittcd pyitt
pip install .ReferencesInstrumentation and Tracing Technology APIsIntel® VTune™ Profiler User Guide - Task Analysis
Package: pyitunes
A simple python wrapper for accessing the iTunes Store APIiTunes Store APIInstallationTo install withpip, just run this in your terminal:$ pip install pyitunesOr clone the code fromGithuband:$ python setup.py installCachingThis module caches responses from the iTunes API to speed up repeated queries
against the same resources. Note, however, that there’s no persistent caching
that happens between Python processes. Ie, once a python process exits, the
cache is cleared.ExamplesSearchfrom __future__ import print_function
import itunes

# Search band U2
artist = itunes.search_artist('u2')[0]
for album in artist.get_albums():
    for track in album.get_tracks():
        print(album.name, album.url, track.name, track.duration, track.preview_url)

# Search U2 videos
videos = itunes.search(query='u2', media='musicVideo')
for video in videos:
    print(video.name, video.preview_url, video.artwork)

# Search Volta album by Björk
album = itunes.search_album('Volta Björk')[0]

# Global Search 'Beatles'
items = itunes.search(query='beatles')
for item in items:
    print('[' + item.type + ']', item.artist, item.name, item.url, item.release_date)

# Search 'Angry Birds' game
item = itunes.search(query='angry birds', media='software')[0]
vars(item)

# Search 'Family Guy Season 1'
item = itunes.search_season('Family Guy Season 1')[0]
vars(item)

# Search 'Episode 5 of Family Guy Season 1'
items = itunes.search_episode('Family Guy Season 1')
for ep in items:
    if ep.episode_number == 5:
        vars(ep)Lookupimport itunes

# Lookup Achtung Baby album by U2
U2_ACHTUNGBABY_ID = 475390461
album = itunes.lookup(U2_ACHTUNGBABY_ID)

print(album.url)
print(album.artwork)

artist = album.artist
tracks = album.get_tracks()

# Lookup song One from Achtung Baby album by U2
U2_ONE_ID = 475391315
track = itunes.lookup(U2_ONE_ID)

artist = track.artist
album = track.get_album()Tests$ py.test tests
Package: pyiwe
InstallationPip:$pipinstallpyiweconda:$condainstall-canaconda-cconda-forge-calexander-pvpyiweThe package file from PyPi or conda does not include terminal TNT. To
install it, open python in terminal mode and importpyiwepackage.$python$>>>importpyiweFrom source:$gitclonegit@github.com:alexander-pv/pyiwe.git&&cdpyiwe$pipinstall.Terminal TNT will be installed automatically.Tutorialimplied_weighting_theory.ipynb, theory behind implied weighting
with fitting functions plots to play;pyiwe_example.ipynb, examples of reading TNT trees, plotting
trees, getting branch supports and concavity values distributions for
each clade in a tree based on TNT feature matrices;pyiwe_runner.py, terminal-based example for a quick start;Runpyiwe_runner.pyto see arguments help:$cd./pyiwe/tutorials&&pythonpyiwe_runner.py-hArgument parser for pyiwe_runner.py

positional arguments:
  feat_matrix           str, path to the feature matrix for TNT

optional arguments:
  -h, --help            show this help message and exit
  -k_start k_start      float, minimum value in a linear scale or a degree in a logarithmic scale, default=1e-2
  -k_stop k_stop        float, maximum value in a linear scale or a degree in a logarithmic scale, default=1.5
  -k_num k_num          int, number of samples to generate, default=100
  -k_scale k_scale      str, scale of concavity values, `log` or `linear`, default=`log`
  -n_runs n_runs        int, the number of repeated IW runs, default=3
  -cutoff cutoff        float, cutoff value between 0.0 and 1.0 for a final majority rule tree, default=0.5
  -xmult_hits xmult_hits
                        int, produce N hits to the best length and stop, default=5
  -xmult_level xmult_level
                        int, set level of search (0-10). Use 0-2 for easy data, default=3
  -xmult_drift xmult_drift
                        int, cycles of drifting;, default=5
  -hold hold            int, a tree buffer to keep up to specified number of trees, default=500
  -output_folder output_folder
                        str, path to store data, default=./output
  -log_base log_base    float, base for calculating a log space for concavity constants, default=10.0
  -float_prec float_prec
                        int, Floating point calculations precision, default=5
  -tnt_seed tnt_seed    str, random seed properties for TNT, default=`1`
  -seed seed            str, random seed for Python numpy, default=42
  -tnt_echo tnt_echo    str, `=`, echo each command, `-`, don`t echo, default=`-`
  -memory memory        float, Memory to be used by macro language, in KB, default=10240
  -c                    bool, clear temp *.tre files in output folder after processing
  -v                    bool, add processing verbosityBasic example:$cd./pyiwe/tutorials$pythonpyiwe_runner.py../pyiwe/tests/testdata/bryocorini/SI_4_Bryocorinae_matrix.tnt-cReferencesTNT source:http://www.lillo.org.ar/phylogeny/tnt(Goloboff, Farris,
& Nixon, 2003)Biopython:https://biopython.orgETE, Python Environment for Tree Exploration:http://etetoolkit.org
Package: pyixapi
pyixapiPython API client library forIX-API.Supported versions are:version 1version 2InstallationTo install runpip install pyixapi.Quick StartTo begin, import pyixapi and instantiate the API.importpyixapiixapi=pyixapi.api("https://api.de-cix.net/api/v1/","3LH3G72VH7H1SGogEsFeQOPsGjOQotMUZQRt2pK7YbH","cEtrt8s0vR0CsG0vpAmcaxtnolzZj7DEG0B7izvwPlV",)ixapi.authenticate()The first argument the.api()method takes is the IX-API URL. The second and
third arguments are the API key and secret used for authentication.Authenticating will generate a pair of access and refresh tokens that can be
passed as argument to the.api()method.QueriesThe pyixapi API is setup so that IX-API's endpoints are attributes of the.api()object. Each endpoint has a handful of methods available to carry out
actions on the endpoint. For example, in order to query all the objects in thenetwork-service-configsendpoint you would do the following:>>>nsc=ixapi.network_service_configs.all()>>>foriinnsc:...print(i)...DXDB:PAS:00001DXDB:PAS:00002DXDB:PAS:00003DXDB:PAS:00004DXDB:PAS:00005DXDB:PAS:00006DXDB:PAS:00007DXDB:PAS:00008>>>Write queries are not implemented yet.
Package: pyixexplorer
Python OO API for Ixia IxExplorer traffic generator.FunctionalityThe current version supports the following test flow:Build configuration -> Start/Stop traffic -> Get statistics.Supported operations:Load configuration - reserve ports and load configuration (prt or str)Basic operations - get/set attributes, get/create childrenStart/Stop - transmit, captureStatistics - ports, streams and packet groupsSave configuration (prt or str)DisconnectThe package also support Add/Remove objects so it supports the following test case:Load configuration -> Get/Set attributes -> Start/Stop traffic -> Get statistics.
But this is less elaborated and documented at this version.Prerequisite:Access to IxTclServer connected to IxServer. IxTclServer can run on any Windows machine as long as it can aceess the
IxServer of the requested chassis.Installation:pipinstallpyixexplorerGetting startedUnder ixexplorer.samples.ixe_samples you will find basic samples.Related works:The low level API of the package is based on python-ixia package -https://github.com/kontron/python-ixia.ContactFeel free to contact me with any question or feature request atyoram@ignissoft.com.
Package: pyixload
TGN - Traffic Generator
IXL - IxLoadThis package implements Python OO API for Ixia IxLoad traffic generator.Installation:
stable - pip instsll pyixloadFunctionality
The current version supports the following test flow:
Load configuration -> Get/Set attributes -> Start/Stop traffic -> Get statistics.
Supported operations:
- Basic operations - get/set attributes, get/create children.
- Load configuration - load configuration (rxf), select test, reserve ports and analyze the configuration
- Start/Stop - test
- Statistics - read views
- Save configuration
- DisconnectKnown limitations:
- When using remote IxLoad gateway, configurations with additional files (on top of the rxf itself) are not supported.Contact:
Feel free to contact me with any question or feature request atyoram@ignissoft.com
Package: pyixnetwork
TGN - Traffic Generator
IXN - IxNetworkThis package implements Python OO API for Ixia IxNetwork traffic generator.The package works on top of multiple low level APIs:IxnRestWrapper - a Python wrapper of IXN native REST API.Available for IXN versions that supports REST. Allows client-less operation of IXN scripts.IxnTclWrapper - a Python wrapper (using Python Tk package) over IXN native Tcl API (IxTclNetwork).Available for all IXN versions. More useful when developing and debugging.InstallationpipinstsllpyixnetworkPrerequisite:
When using Tcl - IxNetwork application installed.Getting startedUnderixnetwork.test.ixn_samplesyou will find some basic samples.
See inside for more info.FunctionalityThe current version supports the following test flow:Load configuration -> Get/Set attributes -> Start/Stop traffic -> Get statistics.Supported operations:Basic operations - get/set attributes, get/create children.Load configuration - load configuration (ixncfg), reserve ports and analyze the configurationStart/Stop - arp, ping, protocols, traffic itemsStatistics - read viewsSave configurationDisconnectThe package also support Add/Remove objects, so it supports the following test case:Build configuration -> Start/Stop traffic -> Get statistics.But this is less documented at this version.TestCenter and IxNetworkIxNetwork package and TestCenter extend the same base classes from TrafficGenerator.
In some future version we plan TrafficGenerator a complete abstract API so tests that work in the basic test flow will
be able to run over IxNetwork and TestCenter seamlessly.ContactFeel free to contact me with any question or feature request atyoram@ignissoft.com
Package: pyja3
JA3 provides fingerprinting services on SSL packets. This is a python wrapper around JA3 logic in order to produce valid JA3 fingerprints from an input PCAP file.Getting StartedInstall the pyja3 module:pip install pyja3orpython setup.py installTest with a PCAP file or download a sample:$(venv) ja3 –json /your/file.pcapExampleOutput from sample PCAP:[
    {
        "destination_ip": "192.168.1.3",
        "destination_port": 443,
        "ja3": "769,255-49162-49172-136-135-57-56-49167-49157-132-53-49159-49161-49169-49171-69-68-51-50-49164-49166-49154-49156-150-65-4-5-47-49160-49170-22-19-49165-49155-65279-10,0-10-11-35,23-24-25,0",
        "ja3_digest": "2aef69b4ba1938c3a400de4188743185",
        "source_ip": "192.168.1.4",
        "source_port": 2061,
        "timestamp": 1350802591.754299
    },
    {
        "destination_ip": "192.168.1.3",
        "destination_port": 443,
        "ja3": "769,255-49162-49172-136-135-57-56-49167-49157-132-53-49159-49161-49169-49171-69-68-51-50-49164-49166-49154-49156-150-65-4-5-47-49160-49170-22-19-49165-49155-65279-10,0-10-11-35,23-24-25,0",
        "ja3_digest": "2aef69b4ba1938c3a400de4188743185",
        "source_ip": "192.168.1.4",
        "source_port": 2068,
        "timestamp": 1350802597.517011
    }
]Changelog2018-02-05Change: Ported single script to valid Python PackageChange: Re-factored code to be cleaner and PEP8 compliantChange: Supported Python2 and Python3
Package: pyjab
Python implementation for Java application UI automation withJava Access Bridge.Thepyjabpackage enables run UI automation(selenium like) through with
Java UI application.
Package will invokeJava Access BridgeAPI to get information form
Java application.
And this package is only support for Windows.
Sources code referenced fromNVDA.InstallationOptional dependenciesUsageContactLicenseInstallationThepyjabpackage is available onPyPIwhich means installation should
be as simple as:$pipinstallpyjabThere’s actually a multitude of ways to install Python packages (e.g. theper
user site-packages directory,virtual environmentsor just installing
system wide) and I have no intention of getting into that discussion here, so
if this intimidates you then read up on your options before returning to these
instructions.Optional dependenciesAccess Bridge Exploreris a Windows application that allows exploring,
as well as interacting with, the Accessibility tree of any Java applications
that uses the Java Access Bridge to expose their accessibility features,
for example Android Studio and IntelliJ.UsageJRE, JDK or JAB standalone package is required.
Need setup environment variableJAVA_HOMEorJAB_HOMEbefore usage.Here’s an example of how easy it is to get started:frompyjab.jabdriverimportJABDriver# Create a JABDriver object.jabdriver=JABDriver("java app window title")# Find a JABElement by element namelogin_btn=jabdriver.find_element_by_name("Login")# Click a JABElementlogin_btn.click()# Some other examples.jabdriver.find_element_by_xpath("//push button[@name=contains('OK')]")jabdriver.wait_until_element_exist(by=By.NAME,value="Dashboard")login_btn.get_screenshot_as_file("./screenshot.png")You may also use a context manager approach to kill the Java Window after the JABDriver is cleared:frompyjab.jabdriverimportJABDriver# Create a JABDriver object.withJABDriver("java app window title")asjabdriver:# Find a JABElement by element namelogin_btn=jabdriver.find_element_by_name("Login")# Click a JABElementlogin_btn.click()You can also open the Java window process by specifying the file path which will launch the Java WebStart process for the given file :frompyjab.jabdriverimportJABDriver# Create a JABDriver object.withJABDriver(title="java app window title",file_path="C:\\jnlps\\test.jnlp")asjabdriver:# Find a JABElement by element namelogin_btn=jabdriver.find_element_by_name("Login")# Click a JABElementlogin_btn.click()ContactThe latest version ofpyjabis available onPyPIandGitHub.
For bug reports please create an issue onGitHub. If you have questions,
suggestions, etc. feel free to send me an e-mail atgaozhao89@qq.com.LicenseThis software is licensed under theGPLv2 license.© 2021 Gary Gao.