Saravanan666/pypi-org huggingface dataset:
Package: i2cx
I²Cx Graphical User InterfaceCode source is available on GitHubhttps://github.com/I2Cx-Cyber-Range/i2cx-guiI²Cx Scanner LitePort A => can drive 4 mA (needed for SWD)Port B => can drive 16 mA (useful to force logic level on bus like I2C and SPI and avoid reset master)Install I²Cx Cyber Range graphical user interfacepip3 install i2cxTo start Graphical Interface of I²Cx Cyber Rangei2cxI²Cx Cyber range can be used with OpenOCD (destination path need to adapted)To use I²Cx Scanner Lite with openOCD you need to add a config file (available in tools folder)wget https://github.com/I2Cx-Cyber-Range/i2cx-gui/tools/ftdi/conf_i2cx_scanner_-lite_lootus_pid.xml  -P /usr/local/share/openocd/scripts/interface/i2cx-scanner-lite.cfgopenocd -f interface/i2cx-scanner-lite.cfg -f target/stm32f7x.cfg  -c "adapter speed 4000;init;reset;"In another consoletelnet 127.0.0.1 4444To read firmwareflash read_bank 0 firmware.binOn Ubuntu 20.04Allow I2Cx Scanner Lite to non root user and Load FTDI driver to I2CX Scanner Litewget https://github.com/I2Cx-Cyber-Range/i2cx-gui/tools/openocd/i2cx-scanner-lite.cfg -P /etc/udev/rules.d/35-i2cx-cyber-range.rulesor add manually both line to a new file for example: /etc/udev/rules.d/35-i2cx-cyber-range.rulesSUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6E50", GROUP="plugdev"ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6e50", RUN+="/sbin/modprobe ftdi_sio" RUN+="/bin/sh -c 'echo 0403 6e50 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'"In case of OpenGl issueImportError: libOpenGL.so.0: cannot open shared object file: No such file or directorysudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt-get install -y libopengl0I2CX on windowsThe probably easiest way to deal with libusb on Windows is to use ZadigStart up the Zadig utilitySelect Options/List All Devices, then select the FTDI devices you want to communicate with. Its names depends on your hardware, i.e. the name stored in the FTDI EEPROM.With FTDI devices with multiple channels, such as FT2232 (2 channels) and FT4232 (4 channels), you must install the driver for the composite parent, not for the individual interfaces. If you install the driver for each interface, each interface will be presented as a unique FTDI device and you may have difficulties to select a specific FTDI device port once the installation is completed. To make the composite parents to appear in the device list, uncheck the Options/Ignore Hubs or Composite Parents menu item.Be sure to select the parent device, i.e. the device name should not end with (Interface N), where N is the channel number.for example Dual RS232-HS represents the composite parent, while Dual RS232-HS (Interface 0) represents a single channel of the FTDI device. Always select the former.Select libusb-win32 (not WinUSB) in the driver list.Click on Replace Driver
Package: i2cylib
主要包含ICCodei2cy常用的混淆算法Dynkey动态验证密匙生成/验证工具SQLiteDBSQLite3数据库面向对象式APIICFat64类FAT虚拟文件系统I2TCP高度封装的用户层通讯协议PID异步PID模组Serial封装的串口通讯模组utils各种常用的小工具安装方法pip install i2cylib内嵌命令行工具icen基于ICCode混淆算法的文件加密工具i2cydbserver基于SQLite的数据库服务端i2scan端口扫描、系统推断工具环境需求Python3.6+API文档Project Wiki
Package: i2ftps
介绍本项目为一款基于I2TCP通讯协议
的文件传输服务器， 有效密钥长度达到512bit，同时嵌有类Google双重认证机制，
确保服务能在公网环境下安全存活。特性支持文件断点续传支持文件哈希校验仅允许访问设定目录下的文件可设置只读模式512 bits有效密钥长度动态token身份认证可选TLS加 密安装方法pip install i2ftp-server环境需求Python3.6+i2cylib >= 1.8.14集成命令i2ftps-setup服务器配置向导i2ftps服务器启动/停止默认配置文件路径/usr/share/i2ftp/server_conf.json附：通讯协议说明通讯流程：客户端与服务器建立TCP连接客户端与服务器建立I2TCP连接服务器发送版本号b"I2FTP x.x"客户端发送User指令服务器响应User指令协议结构：底层TCP/IP←I2TCP←User顶层User层数据包：客户端命令 - “查询”：LIST,<PATH>返回：<bool 路径是否存在>,{'文件1':{is_dir:<bool 是否是文件夹>  size:<int 大小>, time:<float 文件修改时间戳>}}客户端命令 - “请求下载”：GETF,<PATH>返回：<bool 请求是否接受>,[16 bytes 下载会话ID]客户端命令 - “通过会话ID下载”：DOWN,<16 bytes 下载会话ID>,<uint64 文件指针偏移量>,<uint64 截止文件指针偏移量>若单个返回包无法一次传输请求的长度，服务器会依次发送多个数据包，直到满足请求的长度为止。若截止文件指针偏移量≤文件指针偏移量，则服务器会认为是请求了从文件指针偏移量开始到文件末尾的数据。返回：<bool 操作是否有效>,[uint64 文件指针偏移量],[bytes 数据内容 最大长度524128 Bytes]（单个或序列）客户端命令 - “请求上传”：PULF,<PATH>,<str_hex 文件哈希校验值>返回：<bool 操作是否有效>,[16 bytes 上传会话ID]客户端命令 - “通过会话ID上传”：UPLD,<16 bytes 上传会话ID>,<uint64 文件指针偏移量>,<bytes 数据内容 最大长度524128 Bytes>返回：<bool 上传是否成功>,[int 当前文件指针偏移量]客户端命令 - “关闭会话”：CLOZ,<16 bytes 会话ID>返回：<bool 操作是否成功>,[hex_str 若会话为下载会话，则会同时返回文件的MD5校验值]客户端命令 - “文件/文件夹操作”：FIOP,<int 命令：0-重命名，1-移动，2-复制，3-删除，4-创建目录>,<str 路径1>,[str 路径2]返回：<bool 操作是否成功>管理员命令 - “进程控制”：PCTL,[raw 保留字段]返回：<bool 操作是否成功>,<int 进程PID>
Package: i2llserver
ESP32S3 LockingLock ServerThis repo is the server part of LockingLock project.Github LinkInstallationpip install i2llserverSetupi2llsrv setupThis command will help you to edit a configuration file and
add startup scripts on boot in systemdAuto-Startup on LinuxBy runningi2llsrv setupcommand, setup wizard will ask you in the end
of setup sequence for choosing whether should it register a systemd
service. Choose yes to generate service file and register which requires
root permission or sudo permission.However, if the setup wizard failed to register startup service, it will generate
a one-script-done shell script at your home directory which named as:enable_auto-startup_for_i2ll.shBy executing this shell scripts by root or sudo, the automatic startup
service will be registered which named asi2llserver.serviceUseservice i2llserver start|stop|restartto control server
Package: i2p
This repo exists to providean example setup.pyfile, that can be used to bootstrap your next Python project. It includes some advanced patterns and best practices forsetup.py, as well as some commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py publishcommand, which creates auniversal wheel(andsdist) and uploads your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile.In short,setup.pyfiles can be daunting to approach, when first starting out — even Guido has been heard saying, “everyone cargo cults thems”. It’s true — so, I want this repo to be the best place to copy–paste from :)Check out the example!✨🍰✨To DoTests via$ setup.py test(if it’s concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowThe Hitchhiker’s Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
Package: i2plib
i2plib is a modern asynchronous library for building I2P applications.Installingpip install i2plibRequirements:Python version >= 3.5I2P router with SAM API enabledConnecting to a remote I2P destinationimportasyncioimporti2plibasyncdefconnect_test(destination):session_name="test-connect"# create a SAM stream sessionawaiti2plib.create_session(session_name)# connect to a destinationreader,writer=awaiti2plib.stream_connect(session_name,destination)# write data to a socketwriter.write(b"PING")# asynchronously receive datadata=awaitreader.read(4096)print(data.decode())# close the connectionwriter.close()# run event looploop=asyncio.get_event_loop()loop.run_until_complete(connect_test("dummy.i2p"))loop.stop()Accept connections in I2Pimportasyncioimporti2plibasyncdefaccept_test():session_name="test-accept"# create a SAM stream sessionawaiti2plib.create_session(session_name)# accept a connectionreader,writer=awaiti2plib.stream_accept(session_name)# first string on a client connection always contains clients I2P destinationdest=awaitreader.readline()remote_destination=i2plib.Destination(dest.decode().strip())# read for the actual incoming data from the clientdata=awaitreader.read(4096)print(data.decode())# send data backwriter.write(b"PONG")# close the connectionwriter.close()# run event looploop=asyncio.get_event_loop()loop.run_until_complete(accept_test())loop.stop()Server tunnelExpose a local service to I2P like that:importasyncioimporti2plibloop=asyncio.get_event_loop()# making your local web server available in the I2P networktunnel=i2plib.ServerTunnel(("127.0.0.1",80))asyncio.ensure_future(tunnel.run())try:loop.run_forever()exceptKeyboardInterrupt:passfinally:loop.close()Client tunnelBind a remote I2P destination to a port on your local host:importasyncioimporti2plibloop=asyncio.get_event_loop()# bind irc.echelon.i2p to 127.0.0.1:6669tunnel=i2plib.ClientTunnel("irc.echelon.i2p",("127.0.0.1",6669))asyncio.ensure_future(tunnel.run())try:loop.run_forever()exceptKeyboardInterrupt:passfinally:loop.close()More examplesYou can see more demo applications indocs/examplesdirectory of the source repository.Resourcesi2plib online documentationInvisible Internet ProjectSAM API documentationPython asyncio documentationAknowledgmentsi2p.socket, drop in python socket module that uses i2ptxi2p, I2P bindings for Twistedleaflet, Dead simple I2P SAM library, written in Python 3
Package: i2p.socket
Requirements:Python 2.7 or >= 3.4Java I2P 0.9.14 and higher or i2pd 2.17.0 and higherInstalling:pypi:pipinstalli2p.socketgit:gitclonehttps://github.com/majestrate/i2p.socket/cdi2p.socketpythonsetup.pyinstallUsage:fromi2pimportsocket# i2p socketsock=socket.socket()sock.connect(("i2p-projekt.i2p",80))sock.send(b"GET /\r\n\r\n")print(sock.recv(1024))sock.close()# also works as 'regular' socketsock=socket.socket(socket.AF_INET)sock.connect(("geti2p.net",80))sock.send(b"GET /\r\n\r\n")print(sock.recv(1024))sock.close()Caveats:Probably contains bugs
Package: i2ssh
ssh into to a cluster of machines usingiTerm 2split panes on OSX.Installation$ pip install i2sshUsage$ cat ~/.i2sshrc
---
mycluster:
  hosts:
    - host1.domain.net
    - host2.domain.net
    - host3.domain.net
    - host4.domain.net

$ i2ssh myclusterCommand-line arguments$ i2ssh -h
usage: i2ssh [-h] [-c CONFIG] [-v] cluster

positional arguments:
  cluster               the cluster to connect to.

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        the config file to use (default "~/.i2sshrc").
  -v, --verbose         increases log verbosity.
  -l, --list            list the clusters in the config file.Config file---
# the name of the cluster.
mycluster:

  # the command to execute in every pane, defaults to 'ssh'.
  # the hostname for that pane will be appended to the
  # command before being executed, resulting in something
  # like 'ssh host1.domain.net'.
  cmd: 'ssh'

  # the remote user to log into as, defaults to the local user.
  user: 'username'

  # how to split the window, defaults to 'sqrt(n) x (n/cols)'.
  layout: '2x2'

  # position and size for the new window, defaults to
  # maximize within the available space on screen. the format
  # is (x, y, width, height).
  window: '0, 0, 1440, 900'

  # the time to wait between scripting commands, in seconds.
  # defaults to 0.1
  delay: 0.1

  # the list of hosts to execute the command for.
  hosts:
    - host1.domain.net
    - host2.domain.net
    - host3.domain.net
    - host4.domain.net
Package: i2x
Interconnection Innovation e-Xchange (i2x) Open Test SystemsThis repository contains open grid network models and modeling scripts to
test and compare different factors/measures (e.g., technoeconomic, social,
equity, and engineering) that examine practices and policies for
interconnection queue management and cost allocation.  This repository is
used for engineering training bootcamps, interconnection study guides, and
an interconnection roadmap for thei2x project.Documentation for Users and Developers.Python Package.Directories in this Repositorydocs; source files for building the documentation on ReadTheDocs for users and developershca; source files for DER hosting capacity analysishubdata; data files for interconnection metrics in the i2x data portalsoco; source and data files for socio-grid co-simulation examplesrc/i2x; source and data files for thei2xPython package for DER analysis, including the GUItest; supporting Python scripts that build and test circuit modelsLicenseSeeLicenseNoticeThis material was prepared as an account of work sponsored by an agency of the United States Government.  Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.
Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.PACIFIC NORTHWEST NATIONAL LABORATORY
            operated by
             BATTELLE
             for the
 UNITED STATES DEPARTMENT OF ENERGY
  under Contract DE-AC05-76RL01830Copyright 2022-2023, Battelle Memorial Institute
Package: i3a
i3ai3a is a set of scripts used for automation of i3 and sway window manager
layouts.Automation listi3a-master-stackProvides automatic master-stack layout, which is known from e.g. DWM. The
following kinds of the layout are possible:master-stack area with DWM-like stack (stack windows are split)master-stack area with i3-like stack (stack windows are actual stack)To use, runi3a-master-stackwith selected options (i3a-master-stack --helpfor details). One way to run it automatically is via a systemd
user service.Create the following file in~/.config/systemd/user/i3a-master-stack:[Unit]
Description=i3a-master-stack

[Service]
ExecStart=%h/.local/bin/i3a-master-stack --stack=dwm --stack-size=35
Restart=on-failureAdd the following entry to your i3 or sway configuration file:exec "systemctl --user restart i3a-master-stack.service"i3a-swapSwap currently focused window between master and stack areas from
i3a-master-stack (technically it doesn't require running i3-master-stack).To use it, add the following binding to your i3 or sway configuration file:bindsym $mod+f exec i3a-swapi3a-swallowProvides automatic "swallowing": when a program runs a child process, the
parent is automatically hidden (moved to the scratchpad), which looks like if
it was replaced, or "swallowed" by the child window. It is especially useful
for graphical programs (video player, document viewer etc.) run from the
terminal.Provides a means of filtering both parent programs which can be swallowed and
child programs which can trigger swallowing.To use it, runi3a-swallowwith selected options. One way to run it
automatically is via a systemd user service.Create the following file in~/.config/systemd/user/i3a-swallow:[Unit]
Description=i3a-swallow

[Service]
ExecStart=%h/.local/bin/i3a-swallow
Restart=on-failureAdd the following entry to your i3 or sway configuration file:exec "systemctl --user restart i3a-swallow.service"i3a-move-to-emptyMoves currently focused container to the first empty workspace. Keep in mind
that this script relies on numbering of the workspaces.To use it, add the following binding to your i3 or sway configuration file:bindsym $mod+w exec i3a-move-to-emptyi3a-resize-compassExtension ofresizecommand. Currently focused window will automatically
grow or shrink in a direction passed to i3a-resize-compass.bindsym $mod+Up exec i3a-resize-compass up 2ppt
bindsym $mod+Down exec i3a-resize-compass down 2ppt
bindsym $mod+Right exec i3a-resize-compass right 2ppt
bindsym $mod+Left exec i3a-resize-compass left 2pptInstallationPyPIAUR(Arch Linux - unofficial)
Package: i3altlayout
I3ALTLAYOUTi3altlayouthelps you handle more efficiently your screen real estate ini3wmby auto-splitting windows on their longest side.If you open 4 windows, your workspace would looklike this                               instead of this

+-----------------------------------+        +---------------------------------+
| +--------------+ +--------------+ |        | +-----+ +-----+ +-----+ +-----+ |
| |              | |              | |        | |     | |     | |     | |     | |
| |              | |      2       | |        | |     | |     | |     | |     | |
| |              | |              | |        | |     | |     | |     | |     | |
| |      1       | +--------------+ |        | |  1  | |  2  | |  3  | |  4  | |
| |              | +--------------+ |        | |     | |     | |     | |     | |
| |              | |      ||      | |        | |     | |     | |     | |     | |
| |              | |   3  ||  4   | |        | |     | |     | |     | |     | |
| +--------------+ +--------------+ |        | +-----+ +-----+ +-----+ +-----+ |
+-----------------------------------+        +---------------------------------+InstallationInstall the script frompypi$sudopip3installi3altlayoutOffline installationEither install the dependencies and copy
thei3altlayout.py file:i3ipc (python3-i3ipcon debian/fedora)docopt (python3-docopton debian/fedora)Or package the pypi package:## on online host$mkdir-p/tmp/i3altlayout&&pip3download-d/tmp/i3altlayouti3altlayout## move the /tmp/i3altlayout directory to the offline host## on offline host$sudopip3install--no-index--find-links=/tmp/i3altlayouti3altlayoutUsageStart the script directly withi3by adding it to your config file
(usually under~/.config/i3/config):exec --no-startup-id "i3altlayout"Or test it by running it from the command line (i3altlayout) and
open a few windows.Related projectsThis project is similar toi3-alternating-layoutbut uses thei3ipc libraryinstead of the unmaintainedi3-py library.ContributionIf you are having trouble installing or usingi3altlayout, open an issue.If you want to contribute, feel free to do a PR (please follow PEP8).LicenseThis project is licensed under the terms of the GPLv3 license.
Package: i3-balance-workspace
i3-balance-workspaceBalance windows and workspaces in i3wm. Functionality is similar to theEmacscommandM-x balance-windows.InstallationFollowing are available options to installi3-balance-workspace:Install from PyPi (Python Package Index) usingpip:$pipinstalli3-balance-workspaceFor Arch-Linux users, installi3-balance-workspacevia theAUR.To install locally, ensurepoetryandpipare installed on your system. Then execute:$makeinstallUsageusage: i3_balance_workspace [-h] [--scope {workspace,focus}] [--timeout <int>]

options:
  --scope     {workspace,focus}
              scope of resizing containers (default: workspace)
  --timeout   <int>
              timeout in seconds for resizing (default: 1)
  -h, --help  <flag>
              show this help message and exitIn order to balance all windows in the current workspace, simply execute:$i3_balance_workspaceAlternatively, it is possible to only balance the windows that are in focus. For this, execute the following:$i3_balance_workspace--scopefocusIn order to get the full benefit of this routine, it is recommended to initialize i3 persistent keybindings. Below are example keybindings which can be appended to your i3configfile.bindsym$mod+bexec"i3_balance_workspace --scope focus"bindsym$mod+Shift+bexec"i3_balance_workspace"Examplesi3-balance-workspacehas been tested and shows good performance on both simple and complex workspace layouts. Take a look at some examples:Scope: WorkspaceScope: Focused windowsBugsIn case of any bugs, feel free to open a GitHub issue.DevelopmentsFurther developments to this repository are summarized in our developmentlog.
Package: i3-battery-block-vgg
An i3 wm status block for showing the battery status in i3 blocks. It’s output uses pango to format the text. Loosely based on battery2 from James Murphy.https://github.com/vivien/i3blocks-contrib]Free software: BSD 2-Clause LicenseInstallationpip install i3-battery-block-vggYou can also install the in-development version with:pip install https://github.com/vgoehler/python-i3-battery-block/archive/master.zipCommand Line Optionsusage:i3-battery-block-vgg[-h][-c][-b][-l{debug,info,warning,error,critical}]CLIfori3wmblockbatteryoptionalarguments:-h,--helpshowthishelpmessageandexit-c,--compactflagforcompactmode,truncatesallbatteriesintoone-b,--show_bugThiswillshowamarkeriftheacpibughasoccurred.-l{debug,info,warning,error,critical},--loglevel{debug,info,warning,error,critical}loglevelDocumentationhttps://python-i3-battery-block.readthedocs.io/DevelopmentTo run all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.0 (2020-01-21)First release on PyPI.
Package: i3-config-builder
Python based configuration assembler. This project takes several separate configuration files and combines them together into the config to be used by i3.This is to help with managing different i3 configurations for different computers. This project allows for separate config files for different hostnames.This project can be found athttps://github.com/brileb73/i3-config-builderand is based on the work done by simpss over athttps://github.com/simpss/i3_config.UsageCommand line arguments:usage: i3-config-builder [-h] [-r] [-c] [-b BASE_DIR] [-d OUTPUT_DIR]

Command line i3 config file builder

optional arguments:
  -h, --help            show this help message and exit
  -r, --restart         Make i3 restart to load config
  -c, --reload          Make i3 to reload config
  -b BASE_DIR, --base-dir BASE_DIR
                        Directory containing input configuration files
  -d OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Directory to output built configHere is an example call to i3cfgbuild:i3cfgbuild -b ~/i3-config-builder/examples -d ~/.i3 -cThis command uses the .i3conf files in ~/i3-config-builder/examples to create the config file ~/.i3/config and reloads i3 after the new config file is in place.Input file name formatAll input files must start with a number followed by ‘-all-’ or ‘-hostname-’ to specify any computer or just a specific computer to add the config files. Make sure to make all input files have the .i3conf extension.Examples:1-all-mod-key.i3conf12-chaos-raptor-workspaces.i3conf12-ghost-workspaces.i3conf2-chaos-raptor-laptop-keys.i3conf3-all-restart-reload-i3.i3confIn the above examples, the files that would be used for the hostname ghost are:1-all-mod-key.i3conf12-ghost-workspaces.i3conf3-all-restart-reload-i3.i3confOutput file formatThe output file created is going to be called ‘config’ and placed in the output directory specified (default is ~/.i3). The contents of each input file is appended to the output file with a comment of what the input file name was.ExamplesThere are some example files in the examples directory of the repository which should generate a file that operates in the same way as the default i3 config file for using the super (Mod4) modifier.