Saravanan666/pypi-org huggingface dataset:
Package: pike-tasks
pikeIt'smake, but Python.ExampleSeeexamples/pikefile.pyfor an example file.$ pike -f ./examples/pikefile.py --help
usage: pike [-h] [--file FILE] [--list] [--validate] {do-thing,wrapped-task} ...

An example pikefile

optional arguments:
  -h, --help            show this help message and exit
  --file FILE, -f FILE  pikefile.py to use. If not provided, look in the current working directory and all its parents
  --list                List tasks
  --validate            Validate tasks

Tasks:
  Things to run

  {do-thing,wrapped-task}Each task also has a--help:$ pike -f ./examples/pikefile.py do-thing --help
usage: pike do-thing [-h] thing

Do a thing, and do it perfectly

positional arguments:
  thing       The thing to do

optional arguments:
  -h, --help  show this help message and exitIf a default value is provided, it's also shown:$ pike -f ./examples/pikefile.py wrapped-task --help
usage: pike wrapped-task [-h] [--thing THING]

optional arguments:
  -h, --help     show this help message and exit
  --thing THING  (default: Rap)If a type is provided, it should be cast automatically.
Package: pikiran-rakyat-scraper
Titlepikiran-rakyat ScraperDescrptionWith pikiran-rakyat Scraper you can scrape search results and extract the contents produced by the search result.In pikiran-rakyat scraper it will scrape the data present of the website and give json data which contains the details of the contents on the website.JSON sample data{"Scraper_repeat_data_0":[{"column_1":"Editor: Puput Akad Ningtyas Pratiwi"},{"column_1":"Sumber: YouTube Najwa Shihab"}],"Scraper_detail_data":{"name":"Jadi Bulan-bulanan Mahasiswa saat Hadir di Mata Najwa, Fadjroel Rachman: Ampun deh Ini! - Pikiran-Rakyat.com","photo_caption":"Staf Khusus Presiden bidang Komunikasi, Fadjroel Rachman /Antara Foto/Wahyu Putro A","read_info_author":"Eka Alisa Putri","read_title":"Jadi Bulan-bulanan Mahasiswa saat Hadir di Mata Najwa, Fadjroel Rachman: Ampun deh Ini!","time":"- 2 Oktober 2021, 08:53 WIB"},"Scraper_repeat_data_1":[{"column_4":""}Click Here for moreRun Scraperfrompikiran_rakyat_scraperimport*link="https://www.pikiran-rakyat.com/nasional/pr-012715353/tokoh-nu-sebut-mensos-risma-seperti-kesurupan-kerjanya-cuma-marah-marah-ganti-saja"data=run_pikiran_rakyat_scraper(link)How it works?It takes URL of pikiran-rakyat page with a search keyword to scrape the data.It generates the json data which contains the information of the pikiran-rakyat search result.It gives the every detail present inside website in the form of json data.ExamplesBelow are some of the examples of URLs using which you can scrape:Example 1Example2Queries/ FeedbackIf you have some queries or feedback please contact us at followingTelegramEmail
Package: pikl
piklREADMEThis package is an attempt to create a rehabilitated pickle module:GLOBAL and INST opcodes have been removed. The copyreg extension registry is
left as the only (opt-in) mechanism to dump or load custom classes.Protocol 0 and 1 support has been removed. Only binary pickles are accepted.Protocol 3 is the default protocol on both Python 2.x and Python 3.xpiklis derived fromzodbpickle, a uniform pickling interface for ZODB.Cautionpiklis ultimately derived from Python’spicklemodule.
Although efforts have been made to remove identified security vulnerabilities,
it is almost certain that more vulneravilities remain.Thepicklemodule is not intended to be secure against erroneous or
maliciously constructed data. Never unpickle data received from an
untrusted or unauthenticated source as arbitrary code might be executed.Also seehttps://docs.python.org/3.6/library/pickle.htmlGeneral UsageTo usepiklinstead of Python’s inbuiltpicklemodule, replace:import pickleby:import pikl.pickle as piklThis provides compatibility, but has the effect that you get the fast implementation
in Python 3, while Python 2 uses the slow version.To get a more deterministic choice of the implementation, use one of:import pikl.fastpickle as pikl # always C
import pikl.slowpickle as pikl # always PythonA bytestream produced bypicklecan by loaded bypiklprovided it
meets certain restrictions (e.g. protocol >= 2, no use of GLOBAL opcode):$ python3
>>> import pickle
>>> s = pickle.dumps({'abc': 2})
>>> from pikl import pickle as pikl
>>> pikl.loads(s)
{'abc': 2}Loading an earlier protocol will raiseUnpicklingError:>>> s = pickle.dumps({'abc': 2}, protocol=0)
>>> pikl.loads(s)
Traceback (most recent call last):
...
pikl.pickle_3.UnpicklingError: Only binary pickle protocols are supportedLoading an unregistered class or callable will raiseUnpicklingError:>>> s = pickle.dumps(complex(2, 1))
>>> pikl.loads(s)
Traceback (most recent call last):
...
pikl.pickle_3.UnpicklingError: GLOBAL opcode is not supportedExtension RegistryTo provide an opt-in mechanism for loading classes or callablespikluses
the extension registry in thecopyregmodule:>>> import copyreg
>>> copyreg.add_extension('builtins', 'complex', 240)
>>> s = pickle.dumps(complex(2, 1))
>>> pikl.loads(s)
(2+1j)Both the pickler and unpickler must agree on the same registry codes. A future
version of pikl will include a mechanism (e.g. defined profiles) to make this
assist.Changelog0.0.1 (2018-09-26)Forked from zodbpickle 1.0.3Remove support for pickle protocol 0 and 1Remove support for DUP opcodeRemove support for GLOBAL opcodeRemove support for INST opcodeAdd pickle.LOWEST_PROTOCOL and cPickle.LOWEST_PROTOCOL constants
Package: pikoder-ppm-encoder
# pikoder PPM EncoderSmall library to interact with the pikoder USB2PPM and UART2PPM interfaces.## Setup environmentTo setup a development environment and install all requirements run the following commands (example for windows):python -m venv venv
venv/Scripts/activate
python -m pip install -r requirements.txt## Build and deploy### Buildpython setup.py sdist bdist_wheel### DeployTestPyPI:python -m twine upload –repository-urlhttps://test.pypi.org/legacy/dist/*PyPi:python -m twine upload dist/*
Package: pikpak-cli
CLI for Pikpak(A web file driver)FeaturesList all file in a treeDownload a whole folderDownload files by file name or size matchingDownload resume(which will create a .part file before finished)Installpipinstall-Upikpak_cliUsagepikpak_cli
Current account: ******
Default download dir: ****
session file: .pikpak.session
try typing help
pikpak_cli>help
login
Login account
usage: login [-h] [--password PASSWORD] account [account ...]

exit
Exit cli
usage: exit [-h]

shell

usage: shell [-h]

ls
List current dir files
usage: ls [-h] [--without_audit] [--trash] [--recursion] name [name ...]

cd
Change directory
usage: cd [-h] name [name ...]

download
Download a file or many files in a directory
usage: download [-h] [--includes INCLUDES] [--excludes EXCLUDES] [--dir DIR] [--size SIZE] [--relative_path] [--new_file_name NEW_FILE_NAME] name [name ...]

pwd
Get current path
usage: pwd [-h]

du
Get files's total size
usage: du [-h] name [name ...]

help
Get help information
usage: help [-h]

config
Set default download dir or
usage: config [-h] [--downlaod_dir DOWNLAOD_DIR]

info
Print session info
usage: info [-h]

rm

usage: rm [-h] [--no_trash] name [name ...]tryhelp!exampleslspikpak_cli>ls.try--recursion!cdpikpak_cli>cdMovie
pikpak_cli>pwd
pikpak_cli>/Moviepikpak_cli>cd..
pikpak_cli>downloaddownload files only bigger than 500M to/mntwith a flat structure:pikpak_cli>downloadMovie--size500M--relative_path--dir/mntdownload all mp4 or mkv files to default download dir:pikpak_cli>downloadMovie--includes*.mp4,*.mkv
Package: pikpak-webdav
pikpak-webdav演示视频:https://youtu.be/Fkms3_qanZQpikpak的webdav的rust实现  还有很多问题不支持复制、上传等功能主要是视频播放新版本已经支持文件的上传、删除等功能，但是由于新加依赖，不确定是否可以支持更多的设备。代码质量极其低下，请尽量不要使用https://hub.docker.com/r/ykxvk8yl5l/pikpak-webdav群晖Docker可能会运行失败 请直接在命令行执行docker run命令 或去除Docker管理界面的path变量演示视频:https://youtu.be/M2OFB1gYU4w有网友反馈非邮箱登陆会登陆失败，请使用邮箱、密码方式登陆  google账号登陆的记得到pikpak后台设置密码映射端口:9867其它的貌似也没啥说的命令行格式[然后浏览器访问http://localhost:9867】 可选参数 --proxy-url xxxxxxxxpikpak-webdav --host 0.0.0.0 --pikpak-user xxxx --pikpak-password xxxx可用代理【未验证】https://api.13pikpak.cfhttps://api.14pikpak.cfhttps://api.15pikpak.cfhttps://api.16pikpak.cfhttps://api.17pikpak.cfhttps://api.18pikpak.cfhttps://cors.z7.workers.devhttps://cors.z13.workers.devhttps://cors.z14.workers.devhttps://cors.z15.workers.devhttps://cors.z16.workers.devhttps://cors.z17.workers.devhttps://cors.z18.workers.devhttps://pikpak.2509652494538.workers.dev安装可以从GitHub Releases页面下载预先构建的二进制包， 也可以使用 pip 从 PyPI 下载(python几乎不更新功能不是最新):pipinstallpikpak-webdavDocker示例命令【如需代理加入-e PROXY_URL='XXXXXXXXX'】:docker run --name pikpak-webdav --restart=unless-stopped -p 9867:9867 -e PIKPAK_USER='XXXXXXXX' -e PIKPAK_PASSWORD='XXXXXXX' ykxvk8yl5l/pikpak-webdav:latestopenwrtx86_64的安装代码:wget https://github.com/ykxVK8yL5L/pikpak-webdav/releases/download/v0.0.2/pikpak-webdav_0.0.2_x86_64.ipk
wget https://github.com/ykxVK8yL5L/pikpak-webdav/releases/download/v0.0.2/luci-app-pikpak-webdav_1.0.0_all.ipk
wget https://github.com/ykxVK8yL5L/pikpak-webdav/releases/download/v0.0.2/luci-i18n-pikpak-webdav-zh-cn_1.0.0-1_all.ipk
opkg install pikpak-webdav_0.0.2_x86_64.ipk
opkg install luci-app-pikpak-webdav_1.0.0_all.ipk
opkg install luci-i18n-pikpak-webdav-zh-cn_1.0.0-1_all.ipk其它 CPU 架构的路由器可在GitHub Releases页面中查找对应的架构的主程序 ipk 文件下载安装， 常见
OpenWrt 路由器 CPU 架构如下表（欢迎补充）：路由器CPU 架构nanopi r4saarch64_generic小米 AX3600aarch64_cortex-a53斐讯 N1 盒子aarch64_cortex-a53Newifi D2mipsel_24kcPogoplugarm_mpcoreTips: 不清楚 CPU 架构类型可通过运行opkg print-architecture命令查询。Koolshare 梅林固件GitHub Releases中有预编译包pikpakwebdav-merlin-arm*.tar.gz， 目前提供了旧的 arm380 和兼容 arm384/386 固件的版本，可在下载后在软件中心离线安装。参考项目为:https://github.com/messense/aliyundrive-webdav
Package: pikrellcam-python
PiKrellCam-PythonA Python3, async interface for PiKrellCamhttp://billw2.github.io/pikreFree software: MIT licenseDocumentation:https://pikrellcam-python.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-11-20)Internal Test.0.1.1 (2018-11-20)First release to PyPi.
Package: piksi-tools
Python tools for the Piksi GNSS receiver. This repository includes a a variety
of command line utilities (firmware bootloader, serial port data logging,
etc.).SetupIt is advised to installpiksi_toolsinside a conda environment to avoid modifying
global system state.  To setup a conda environment first install
Miniconda via your package manager if needed, and then run:conda create -n piksi_tools python=3.7
conda activate piksi_toolsRunpip install-e.[test]to set up a dev install in the local dev environment.Python version supportThe most important command line tools -bootload_v3.py,fileio.py,serial_link.py, andsettings.py- support Python 3.7 onward.TestingTo run the tests and check for coverage:$ PYTHONPATH=. toxThis by default attempts to run tests for all supported Python versions. To skip
those versions that you don’t have installed, run:$ PYTHONPATH=. tox --skip-missing-interpretersFinally, to runalltests for all supported Python versions:$ PYTHONPATH=. tox -e py37USB issues on OS XThe ftdi USB drivers are finicky on some versions of OS X. See theirdocsfor help debugging (tl;dr if you try to plug in multiple USB devices to the same port, the subsequent ones may not appear through ftdi even if they appear in the result ofsudo dmesg. Only restarting your machine will fix this.)LicenseCopyright (C) 2011-2023 Swift Navigation
Distributed under LGPLv3.0
Package: piktok
PiktokPiktok is a Python library for retrieving public data from TikTok.InstallationUse the package managerpipto install piktok.pipinstallpiktokUsagefrompiktokimportAppproxy=...# url str or Noneapp=App(proxy=proxy)# every functions are async - make sure to implement accordinglyawaitapp.discover.user()awaitapp.discover.music()awaitapp.suggested.fetch()awaitapp.info.user_by_name('fpgezekatz')awaitapp.tiktoks.from_user_id(6834564640216974341,total=200)awaitapp.suggested.crawl(7,3,user_id=143273922984189952,user_count=30)Documentationhttps://anh-chu.github.io/piktok/ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: pikudhaoref.py
PikudHaoref.pyDocumentationAn unofficial API wrapper for Pikud Haoref's rocket API written in python.The documentation is not done yet.CreditsHoshenKadoshfor pikudhaoref API help.FeaturesVery easy to use and user-friendly.Object Oriented.Detect sirens in real time.View city data (zone, name, countdown, location).Supports many languages (English, Russian, Hebrew, Spanish, Arabic).Both sync and async support.
(MORE COMING SOON)The pikudhaoref API is only accessible from Israel.InstallationInstalling pikudhaoref.py is very easy.python-mpipinstallpikudhaoref.pyExamplesSiren detector examplefromdatetimeimportdatetimeimportpikudhaorefclient=pikudhaoref.SyncClient(update_interval=2)history_range=client.get_history(date_range=pikudhaoref.Range(datetime(year=2014,month=7,day=24),datetime.now()))history_month=client.get_history(mode=pikudhaoref.HistoryMode.LAST_MONTH)print(history_month)print(history_range)# The get_history method does not create a city object as it might take a long time.# In case you need the city information, you can use the get_city method.print(client.current_sirens)# The current_sirens property returns the list of current sirens, and gets the city automatically.@client.event()defon_siren(sirens):print(f"Siren alert! started sirens:{sirens}")@client.event()defon_siren_end(sirens):print(f"Sirens{sirens}have ended.")whileTrue:pass# To make sure the script doesnt stopTODONoneKnown IssuesNoneIncase you do find bugs, please create an issue or a PR.SupportDocumentation
Package: pikvm-cli
pikvm-cliA command-line interface (CLI) for controlling PIKVM devices.InstallationYou can install thepikvm-clipackage from PyPI:$pipinstallpikvm-cliUsageTo use thepikvm-clitool, you must first configure it with the URL, username, and password of your PIKVM device:$pikvm-cliconfigure--urlhttps://example.com--usernameadmin--passwordpasswordNote:configuration file is located at~/.pikvm-cliOnce the tool is configured, you can use it to retrieve information about your device:$pikvm-cliinfoYou can also use it to control the power of your device:$pikvm-cliatxon
$pikvm-cliatxoff
$pikvm-cliatxoff_hard
$pikvm-cliatxresetNote:for the full list of available commands, runpikvm-cli --helpMultiple DevicesIf you have multiple PIKVM devices, you can configure the tool to use a specific device by passing the--nameflag:$pikvm-cliinfo--namepikvm-1Note:if--nameis not passed, "default" configuration will be used
Package: pikvm-mouse-wiggle
pikvm-mouse-wiggleMouse wiggler for the PiKVM.What?This is for where you have a system which you use via PiKVM which enacts a screen-saver, sleep or shutdown which you cannot change for whatever reason.pikvm-mouse-wigglewill connect to your PiKVM's API and simulate a mouse wiggle, just as if you'd uploaded a script via PiKVM's web console.You can get USB dongles that perform this wiggling for you, but for PiKVM users this option is cheaper.InstallationInstallation is via PyPI:pip install pikvm-mouse-wiggleThis will give you the main script,pikvm-mouse-wiggle, and thepikvm_mouse_wigglePython module.UsageTo start mouse-wiggling, specify the IP address (or hostname) of your PiKVM host, and the username and password you use to log into the web interface:pikvm-mouse-wiggle -H 192.168.0.10 -u admin -p MyPassw0rd123The script will now move the mouse by a few pixels every 120 seconds. Note that absolute positioning is currently used, so you may find the mouse movement annoying. To remedy this, increase the delay with--delay <seconds>.Full usage:usage: pikvm-mouse-wiggle [-h] -H HOSTNAME [-u USERNAME] [-p PASSWORD] [-d DELAY]

Mouse wiggler for PiKVM

options:
  -h, --help            show this help message and exit
  -H HOSTNAME, --hostname HOSTNAME
                        Hostname or IP address of the PiKVM device
  -u USERNAME, --username USERNAME
                        Username for PiKVM web interface
  -p PASSWORD, --password PASSWORD
                        Password for PiKVM web interface
  -d DELAY, --delay DELAY
                        Delay between mouse wigglesYou can also wiggle via Python directly if you so choose. Here's an example:frompikvm_mouse_wiggleimportwigglewiggle("hostname","admin","MyPassw0rd123",120,)LicenceMIT Licence
Package: pil2ansi
Pil2ANSILibrary for converting Pillow images to ANSI artGetting StartedInstallationpip install pil2ansiExamplesCheck out theConvert Image Example.convert_img.py [-h] [--palette {color,grayscale,grayscale_inverted,ascii}] [--width WIDTH] [--no-alpha] img_pathUsageConvert any PIL image to ANSI artfromPILimportImagefrompil2ansiimportconvert_img# Open the imageimg=Image.open("path/to/image.png")# Convert to ANSIansi_img=convert_img(img)# Print to screenprint(ansi_img)PalettesThere are a few palettes to choose from. To select a palette importPalettesand then pass the one you want into theconvert_imgfunction.fromPILimportImagefrompil2ansiimportconvert_img,Palettes# Open the imageimg=Image.open("path/to/image.png")# Convert to ANSIansi_img=convert_img(img,palette=Palettes.acsii)# Print to screenprint(ansi_img)The default palette iscolor. You can choose fromcolor,grayscale,grayscale_inverted, andascii.Resizing the imageBy default the image will crop to the width of your terminal widow. You can change the width of the output by passingwidthtoconvert_img. This width is the number of columns you want the image to fit in your terminal window. The aspect radio of the original image will be preserved.fromPILimportImagefrompil2ansiimportconvert_img# Open the imageimg=Image.open("path/to/image.png")# Convert to ANSIansi_img=convert_img(img,width=100)# Print to screenprint(ansi_img)TransparencyBy default any part of the image with an alpha of 0 will be converted to a, rendering it transparent. You can turn this off by settingalphatoFalseinconvert_img.fromPILimportImagefrompil2ansiimportconvert_img# Open the imageimg=Image.open("path/to/image.png")# Convert to ANSIansi_img=convert_img(img,alpha=False)# Print to screenprint(ansi_img)DevelopmentInstall all dependencies including dev dependencies by runningmake devRun tests withmake testRunmypyandblackchecks withmake lint
Package: pilab-binama
Binary Masks OperationsWelcome to the Binary Masks Operations's Github repository!DescriptionThis package contains helpful functions enabling a faster clean up of binary masks and other functionalities.Installing & importingOnline installThe BinaMa package is available throughpip installunder the namepilab-binama. Note that the online version might not always be up to date with the latest changes.pip install pilab-binamaTo upgrade the current version :pip install pilab-binama --upgrade.To install a specific version of the package usepip install pilab-binama==0.0.2All available versions are listed inPyPI. The package names follow the rules ofsemantic versioning.Local installIf you want to download the latest version directly from GitHub, you can clone this repositorygit clone https://github.com/PiLAB-Medical-Imaging/BinaryMasksFor a more frequent use of the library, you may wish to permanently add the package to your current Python environment. Navigate to the folder where this repository was cloned or downloaded (the folder containing thesetup.pyfile) and install the package as followscd binama
pip install .If you have an existing install, and want to ensure package and dependencies are updated use --upgradepip install --upgrade .ImportingAt the top of your Python scripts, import the library asimport binama.utils as bmChecking current version installedThe version of the TIME package installed can be displayed by typing the following command in your python environmentbinama.__version__Uninstallingpip uninstall pilab-binamaExample data and codeAn example use of the main methods and outputs of BinaMa is written in theexample.pyfile.
Package: pi-lab-jupyter-extension
pi_service调试调试安装# Clone the repo to your local environment# Change directory to the pi_lab_jupyter_extension directory# Install package in development modepipinstall-e.# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmrunbuild# Watch the source directory in one terminal, automatically rebuilding when neededjlpmrunwatch# Run JupyterLab in another terminaljupyterlab--ip0.0.0.0--port8888--watchWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm run buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=False卸载# 卸载对应的python包pipuninstallpi-lab-jupyter-extension# 删除 通过`jupyter labextension develop .` 命令创建的软连接, 可以通过 `jupyter labextension list` 命令查看jupyterlabextensionlist
rm<labextensionpath>发布 Pypi 包This extension can be distributed as Python
packages. All of the Python
packaging instructions in thepyproject.tomlfile to wrap your extension in a
Python package. Before generating a package, we first need to installbuild.# 安装 编译`build`工具, pypi上传工具`twine`python3-mpipinstallbuildtwine# 编译# To create a Python source package (`.tar.gz`) and the binary package (`.whl`) in the `dist/` directory, do:python-mbuild--wheel# 上传到 pypitwinecheckdist/*安装pipinstallpi-lab-jupyter-extension# 指定特定版本pipinstallpi-lab-jupyter-extension==0.0.1使用importpi_lab_jupyter_pi_servicepi_lab_jupyter_pi_service.auth卸载pipuninstallpi-lab-jupyter-extension
Package: pilab-regis
Registration OperationsWelcome to the Registration Operations's Github repository!DescriptionThis package contains helpful functions enabling an easier use of registration functions.Installing & importingOnline installThe BinaMa package is available throughpip installunder the namepilab-regis. Note that the online version might not always be up to date with the latest changes.pip install pilab-regisTo upgrade the current version :pip install pilab-regis --upgrade.To install a specific version of the package usepip install pilab-regis==0.0.1All available versions are listed inPyPI. The package names follow the rules ofsemantic versioning.Local installIf you want to download the latest version directly from GitHub, you can clone this repositorygit clone https://github.com/PiLAB-Medical-Imaging/registrationFor a more frequent use of the library, you may wish to permanently add the package to your current Python environment. Navigate to the folder where this repository was cloned or downloaded (the folder containing thesetup.pyfile) and install the package as followscd registration
pip install .If you have an existing install, and want to ensure package and dependencies are updated use --upgradepip install --upgrade .ImportingAt the top of your Python scripts, import the library asimport regis.core as rgChecking current version installedThe version of the TIME package installed can be displayed by typing the following command in your python environmentregis.__version__Uninstallingpip uninstall pilab-regis