Saravanan666/pypi-org huggingface dataset:
Package: picopipe
picopipeA small pipeline framework built on top of functionsAn article describing development and use of picopipe:Towards Data Science: The Worlds Smallest Data Pipeline FrameworkInstallationpipinstallpicopipeExamplesdefadd1(value):returnvalue+1defadd2(value):returnvalue+2defadd3(value):returnvalue+3frompicopipeimportpipelinep=pipeline(add1,add2,add3)p([10,20,30])See tests for more examples.Visualizationwithopen("pipeline.mmd","w")asfp:fp.write(to_mermaid(p))Mermaid file (renders in github):flowchart
subgraph pipeline_98e33e0628b546268abb2af5f74e50f1 ["pipeline"]
end
subgraph pipeline_205813c806fd4b37b40309497768f7c1 ["pipeline"]
    node0["identity"]
    node1["is_not_none"]
    node2["identity"]
end
node0 --> node1
node1 --> node2
click node0 console.log "def&#8194;identity(value):<br/>&#8194;&#8194;&#8194;&#8194;return&#8194;value<br/>"
click node1 console.log "@pfilter<br/>def&#8194;is_not_none(v):<br/>&#8194;&#8194;&#8194;&#8194;return&#8194;v&#8194;is&#8194;not&#8194;None<br/>"
click node2 console.log "def&#8194;identity(value):<br/>&#8194;&#8194;&#8194;&#8194;return&#8194;value<br/>"
subgraph pipeline_d2f205ef957a428abbaa208241125819 ["pipeline"]
    node3["add1"]
    node4["[lambda]"]
end
node3 --> node4
click node3 console.log "def&#8194;add1(value):<br/>&#8194;&#8194;&#8194;&#8194;return&#8194;value&#8194;+&#8194;1<br/>"
click node4 console.log "lambda&#8194;...:&#8194;..."
pipeline_98e33e0628b546268abb2af5f74e50f1 --> pipeline_205813c806fd4b37b40309497768f7c1
pipeline_205813c806fd4b37b40309497768f7c1 --> pipeline_d2f205ef957a428abbaa208241125819
Package: pico-pt104
Class based interface to the Pico (Omega) PT-104 RTD DAQ ModuleDependencieslibusbpt104 (see installation)What is Workingdiscover units connected via USB (Ethernet untested)Configure the ChannelsReading of measured valuesWhat is not Working/MissingDocumentationConfigure the ethernet interfaceConnection via ethernetusage on WindowsInstallationLinux installation:
1. Install libusb104 followinghttps://www.picotech.com/downloads/linuxUbuntu 18.04:sudo bash -c 'echo "deb https://labs.picotech.com/debian/ picoscope main" >/etc/apt/sources.list.d/picoscope.list'
wget -O - https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install libusbpt104Install this package:sudo pip3 install https://github.com/trombastic/Pico_PT104/archive/master.zipUsagefrom PT104 import PT104, Channels, DataTypes, Wires
unit = PT104()
unit.connect('AY429/026')
unit.set_channel(Channels.CHANNEL_1, DataTypes.PT100, Wires.WIRES_4)
value = unit.get_value_channel_1
if value:
    print('CH1: %1.3f'%value)
unit.disconnect()ContributeIssue Tracker:https://github.com/trombastic/Pico_PT104/issuesSource Code:https://github.com/trombastic/Pico_PT104LicenseThe project is licensed under the _GNU General Public License v3 (GPLv3)_.
Package: picoraster
picorasterSmall Python library for processing large raster images.Currently a work in progress.Example usagesource=AWSLandsat8Source("LC08_L1TP_139045_20170304_20170316_01_T1",band="8")# Lazily create a band and build a description of processing stepsband=Band(source)\.and_then(Resize(extents))\.and_then(HistogramAdjust())\.and_then(Reproject(crs))# Forces computationarray=band.render_to_array()band.render_to_file("output.tif")InstallationInstalling GDAL is the most challenging part. Installing directly from PyPI is historically unlikely to work.First, install numpy:pip install numpyThen, choose one of the following:install with a system package managerUbuntu:sudo apt install libgdal-devMacOS:brew install gdalinstall from conda-forge:conda install -c conda-forge gdalcompile manuallyAfterwards, the correct Python bindings can be installed withpipinstallGDAL==$(gdal-config--version)--global-option=build_ext--global-option="-I/usr/include/gdal"Finally,pip install picorasterRunning testspython -m src.tests
Package: pico-rbgkeypad
A Python class for controlling thePimoroni RGB Keypadfor theRaspberry Pi Pico.Compatible with MicroPython and CircuitPython.keypad=RGBKeypad()# make all the keys redkeypad.color=(255,0,0)# turn a key blue when pressedwhileTrue:forkeyinkeypad.keys:ifkey.is_pressed():key.color=(0,0,255)
Package: pico-register
Pico RegisterMicropython library that provides a convenient and efficient way to interact with registers and individual bits of devices connected to the Serial Peripheral Interface (SPI).Access and control the values of registers, perform read and write operations, and manipulate specific bits within a register.The library abstracts the low-level details of SPI communication, allowing users to focus on working with registers and bits.Key FeaturesSimple and intuitive APIRead and write operations on registersBit-level manipulation and access within registersInstallationpipinstallpico-register## UsagefromregisterimportRegister,Bits# Address of the register as specified in the device datasheetWHO_AM_I=0x0FCTRL_REG=0x10PRESS_OUT_LSB=0x28PRESS_OUT_MSB=0x29# Create the registers objectsreg_device_id=Register(WHO_AM_I)reg_pressure=Register(PRESS_OUT_LSB,2)# or the bitsdata_ready=Bits(CTRL_REG,0)low_pass_filter=Bits(CTRL_REG,3,2)# write valueslow_pass_filter=3# Read the valuesifdata_ready:print(reg_pressure)ContributingContributions to this project are welcome. If you find any issues, have suggestions for improvements, or want to add new features, feel free to open an issue or submit a pull request.LicenseThis project is licensed under theMIT License. Feel free to use, modify, and distribute the code in accordance with the terms of the license.
Package: picorg
picorgA set of scripts to organize pictures. It is ideal if you save your images in different locations on your hard drives and manually backup your images from your phone.InstallationpipinstallpicorgUsage# Renames all images in the current working directory and its subdirectories. It tries to use the timestamp of when the image was taken from the EXIF data. If the script cannot find a suitable name for a file, it will be moved to a **NOK** folder and the filename will be printed to the console.picorg-arename# Checks all files in current working dir for files with the same content. If two files has the same content,# the one with the "biggest" name is moved to a *duplicates* folder. It then traverses all the files in# all the directories listed in pic_paths (in the settings file). If a file matches by name and content,# the file in current working dir will be moved to the *duplicates* folder.picorg-aduplicates# Finding new images in current working dir. Useful when syncing images from a mobile phone to a dir and# then copying the images to another place.picorg-afind-newConfigurationA settings file is created in <USER_HOME>/.picorg that stores the users settings.DevelopingInstall dependencies from the requirements.txt filepipinstall-rrequirements.txtCreate a package and install withpython-mbuildpipinstall-e.Before commitRun the commandpre-commit run --verbose --all-files --show-diff-on-failurebefore any commits on order to be consistent with formatting and having sorted imports.Creating a new version.Create a new tag and push. The publishing of the new version is done automagically.
Package: picorun
PicoRunPicoRun is a small collection of classes used by the default PicoFun
implementation at run time. These classes don't do a lot, but they help keep
the cost simple. Spinning the out into this package prevents lots of
duplication. These functions are baked into a common lambda layer so the
lambda functions stay small.For more information about PicoFun, check out theproject on
GitHub.
Package: picosapi
The Pico APIA python package to assist in testing and writing applications for persistent
compute objects (Picos).InstallationYou can install the module usingpip:pip install picosapiOn Linux systems, you have to use thesudocommand:sudo pip install picosapiYou can then import the module into your Python file:import picosapi as picosMore InformationLearn more about thepicosapiby visiting thewiki
Package: picosat-cffi
A cffi binding for PicoSAT[1], a SAT solver written in C. This binding
is designed to expose the whole PicoSAT API at a moderately low level.[1]http://fmv.jku.at/picosat/[2]http://fmv.jku.at/papers/Biere-JSAT08.pdf0.0.1Initial version
Package: pico-sdk
pico_sdkHigh performance, gap-free streaming from any Pico Technology oscilloscope.Note: This is not an official Pico Technology packageThis package wraps all current Pico oscilloscope drivers in a high-level, common
API written in Rust. This API is compiled to native code and exposed to Python
through simple C bindings.Supported platformsPython >= 3.6 on:Windows (32/64bit)macOS (64bit)Linux (64bit)frompico_sdkimportPicoDevice# List the available Pico devicesfound=PicoDevice.enumerate()fordeviceinfound:print("PicoScope "+device.variant+" with serial "+device.serial)# Open the only connected device using locally installed Pico SDKsdevice=PicoDevice.open()# Open a specific device by serial number using locally installed Pico SDKsdevice=PicoDevice.open("ABC/123")# Open a device by serial number and automatically download missing driversdevice=PicoDevice.open("ABC/123",True)# Get device detailsprint("Device Serial: "+device.get_serial())print("Device variant: "+device.get_variant())print("Valid ranges for channel A: "+", ".join(device.get_channel_ranges("A")))# String case and white space are ignoreddevice.enable_channel("A","200mV")device.enable_channel("b","20 v","dc")defcallback(data):# Callback data is a dictionary containing an entry for each channel# Channel data is via numpy.ndarray containing float values in voltsprint("Received streaming data...")forchannelindata:print("Channel "+channel+" has "+str(data[channel].size)+" samples")device.set_callback(callback)samples_per_second=device.start_streaming(1_000_000)print("Streaming started with "+str(samples_per_second)+" samples per second")input('Hit ENTER to stop and exit\n')
Package: picos-sphinx-theme
PICOS Sphinx Theme (picos-sphinx-theme) is aSphinxtheme forked from theFaculty Sphinx Themewhich in turn is based on
theRead the Docs Sphinx Theme.You can see the theme in action on thePICOS Documentation.Installationpipinstallpicos-sphinx-themeUsageLoad the"picos_sphinx_theme"extension and sethtml_themeto"picos". Additionally, you can set the following options viahtml_theme_options:"gitlab_ribbon": Whether to add theFork me on GitLabribbon."gitlab_ribbon_url": GitLab repository URL.
Package: picot
# picotPicot is a library to read, select and extract information from RSS feeds.## InstallationYou can install it using `pip install` as usual:```bashpip install picot```## Usage### As a modulePicot is intended to be used mostly as a module, providing with some RSS feed goodies.```pythonimport picot.feedentries = picot.feed.Feed(url)for entry in entries:print(entry['title'])```#### FilterIn order to make filtering easier, you can provide `Feed` with a function determining what entries are selected:```pythonentries = picot.feed.Feed(url, filter_func=lambda x: x['title'].startswith('How to'))```#### FormattingIt provides with a formatting function, defining how entries are represented:```pythonentries = picot.feed.Feed(url, format_func=lambda x: '{} {}'.format(x['title'], x['link']))```### As a commandWhile intended to be used as a library, Picot can be invoked as a command line tool to get the titles of the entries in an RSS:```bash$ picot <RSS URL>```
Package: picotalk
Install on DebianInstall prerequisites:sudoaptinstallpython3-pyaudiopython3-numpypython3-scipypython3-aiohttppython3-naclFor the server only the following is necessarysudoaptinstallpython3-numpypython3-naclOptionally installuvloopfor higher performance:sudoaptinstallpython3-uvloopRun the clientpython3picotalk-client.py-smy.server.com-rmySecretRoomRun the serverpython3picotalk-server.py# Use --uvloop to use uvloop.
Package: pico-up
pico-up-and-runningA template repository with some scripts and shared functionality to get up and running with RaspberryPi PicoThepico-upcommandpython pico-up

free    show the current free ram and rom space, requires a soft-reset
init    initialise a python pico project in the current directory
image   prepare a 128x128 sprite image for use with the pico
push    push local application code to a connected pico
wipe    remove all files from a connected pico
version show the version of pico-upThe.pico-up.inifileThis file configures how you want to communicate with and deploy code to the pico.[device]address='/dev/ttyACM0'# The device id, name or path from mpremote devs[push]ignores=# File extensions to ignore when pushing files to the device.jpg.rgb332.binmodules=# Code modules to push to the device in addition to your codepico_up_modules.msgpack_loadsFor more information on available commands and their effects seeCOMMANDS.
Package: picovoice
PicovoiceMade in Vancouver, Canada byPicovoicePicovoice is an end-to-end platform for building voice products on your terms. It enables creating voice experiences
similar to Alexa and Google. But it entirely runs 100% on-device. Picovoice isPrivate:Everything is processed offline. Intrinsically HIPAA and GDPR-compliant.Reliable:Runs without needing constant connectivity.Zero Latency:Edge-first architecture eliminates unpredictable network delay.Accurate:Resilient to noise and reverberation. It outperforms cloud-based alternatives by wide margins*.Cross-Platform:Design once, deploy anywhere. Build using familiar languages and frameworks.CompatibilityPython 3.7+Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson (Nano), and BeagleBone.Installationpip3 install picovoiceAccessKeyPicovoice requires a valid PicovoiceAccessKeyat initialization.AccessKeyacts as your credentials when using Picovoice SDKs.
You can get yourAccessKeyfor free. Make sure to keep yourAccessKeysecret.
Signup or Login toPicovoice Consoleto get yourAccessKey.UsageCreate a new instance of Picovoice runtime enginefrompicovoiceimportPicovoiceaccess_key="${ACCESS_KEY}"# AccessKey obtained from Picovoice Console (https://console.picovoice.ai/)keyword_path=...defwake_word_callback():passcontext_path=...definference_callback(inference):# `inference` exposes three immutable fields:# (1) `is_understood`# (2) `intent`# (3) `slots`passpicovoice=Picovoice(access_key=access_key,keyword_path=keyword_path,wake_word_callback=wake_word_callback,context_path=context_path,inference_callback=inference_callback)picovoiceis an instance of Picovoice runtime engine that detects utterances of wake phrase defined in the file located atkeyword_path. Upon detection of wake word it starts inferring user's intent from the follow-on voice command within
the context defined by the file located atcontext_path.keyword_pathis the absolute path toPorcupine wake word enginekeyword file (with.ppnsuffix).context_pathis the absolute path toRhino Speech-to-Intent enginecontext file
(with.rhnsuffix).wake_word_callbackis invoked upon the detection of wake phrase andinference_callbackis
invoked upon completion of follow-on voice command inference.When instantiated, valid sample rate can be obtained via.sample_rate. Expected number of audio samples per
frame is.frame_length. The engine accepts 16-bit linearly-encoded PCM and operates on single-channel audio.defget_next_audio_frame():passwhileTrue:picovoice.process(get_next_audio_frame())When done resources have to be released explicitlypicovoice.delete()Non-English ModelsIn order to detect wake words and run inference in other languages you need to use the corresponding model file. The model files for all supported languages are availablehereandhere.Demospicovoicedemoprovides command-line utilities for processing real-time
audio (i.e. microphone) and files using Picovoice platform.
Package: picpro
picpro a kitsrus PIC CLI programmerThis is complete rewrite of kitsrus_pic_programmer into Python 3 + bunch of fixes and features.Supported kitsrus programmers* K128
* K149-A
* K149-B
* K150 (Tested)Seehttp://www.kitsrus.com/pic.htmlInstallationPIP (pip3 on some distros)pip install picproRepositoryYou can also use these repositories maintained by meDebian and derivativesAdd repository by running these commands$ wget -O- https://repository.salamek.cz/deb/salamek.gpg | sudo tee /usr/share/keyrings/salamek-archive-keyring.gpg
$ echo "deb     [signed-by=/usr/share/keyrings/salamek-archive-keyring.gpg] https://repository.salamek.cz/deb/pub all main" | sudo tee /etc/apt/sources.list.d/salamek.cz.listAnd then you can install a package picpro$ apt update && apt install picproArchlinuxAdd repository by adding this at end of file /etc/pacman.conf[salamek]
Server = https://repository.salamek.cz/arch/pub/any
SigLevel = Optionaland then install by running$ pacman -Sy picproUsageCommand details:
    program             Program PIC chip.
    verify              Verify PIC flash.
    dump                Dump PIC data as binary.

Usage:
    picpro program -p PORT -i HEX_FILE -t PIC_TYPE [--id=PIC_ID] [--fuse=FUSE_NAME:FUSE_VALUE...] [--icsp]
    picpro verify -p PORT -i HEX_FILE -t PIC_TYPE [--icsp]
    picpro dump <mem_type> -p PORT -b BIN_FILE -t PIC_TYPE [--icsp]
    picpro (-h | --help)


Options:
    --icsp                           Enable ISCP programming.
    --fuse=FUSE_NAME:FUSE_VALUE      Set fuse value directly.
    --id=PIC_ID                      Set PIC id to be programmed in pic.
    -p PORT --port=PORT              Set serial port where programmer is connected.
    -t PIC_TYPE --pic_type=PIC_TYPE  Pic type you are programming/reading.
    -i HEX_FILE --hex_file=HEX_FILE  Hex file to flash or to read.
    -b BIN_FILE --bin_file=BIN_FILE  Bin file path.Program chippicproprogram-p/dev/ttyUSB0-iYOUR_HEX_FILE.hex-t12F675Verify chip programpicproverify-p/dev/ttyUSB0-iYOUR_HEX_FILE.hex-t12F675Dump ROM as bin filepicprodumprom-p/dev/ttyUSB0-bdump.rom-t12F675Dump EEPROM as bin filepicprodumpeeprom-p/dev/ttyUSB0-bdump.eeprom-t12F675Program chip via ISCPpicproprogram-p/dev/ttyUSB0-iYOUR_HEX_FILE.hex-t12F675--icspProgram chip and override fuses provided from HEX filepicproprogram-p/dev/ttyUSB0-iYOUR_HEX_FILE.hex-t12F675--fuse=FUSE_NAME:FUSE_VALUE--fuse=FUSE_NAME:FUSE_VALUE
Package: picpurify
picpurify-python-clientPython client library for accessing PicPurify moderation API.Before startingPlease make sure you have created an account onhttps://www.picpurify.com/signup.htmlto collect your personal API key.Your personnal API key can be found in your dashboard in the "API keys" tab:https://www.picpurify.com/apikey.htmlInstallationpipinstallpicpurifyUsagefrompicpurify.apiimportPicPurifyImage,PicPurifyExceptionimage_client=PicPurifyImage('YOUR_PERSONAL_API_KEY',['porn_moderation','gore_moderation','obscene_gesture_moderation'])try:response=image_client.analyse('https://s3-eu-west-1.amazonaws.com/site-picpurify/images/porn-accepted-example.jpg')ifresponse['final_decision']=='OK':print('Image Accepted')else:print('Image Rejected')print('Reject criteria:%s'%(','.join(response['reject_criteria'])))exceptPicPurifyExceptionase:print(e)DocumentationAPI documentation can be found athttps://www.picpurify.com/api-services.html.
Package: picraft
This package provides an alternate Python API forMinecraft Pi editionon
theRaspberry Pi, orRaspberry Juiceon the PC for Python 2.7 (or above),
or Python 3.2 (or above).LinksThe code is licensed under theBSD licenseThesource codecan be obtained from GitHub, which also hosts thebug
trackerThedocumentation(which includes installation, quick-start examples, and
lots of code recipes) can be read on ReadTheDocsPackages can be downloaded fromPyPI, but reading the installation
instructions is more likely to be useful
Package: pic-resizer
pic_resizerA image resizing tool.Installationpipinstallpic_resizerUsage~ ➜ pic_resizer --helpUsage: pic_resizer [OPTIONS] COMMAND [ARGS]...Options:--version  Show the version and exit.--help     Show this message and exit.Commands:cli  Operating from the command lineweb  Operating in the web appcliweb
Package: picross
Picross is a minimal and usablegemini://browser written in Python and tkinter.InstallationInstall from PyPI for releases:# do user install or grant privilegepipinstallpicross--useror install from source:gitclonehttps://git.sr.ht/~fkfd/picrosscdpicross
pipinstall-rrequirements.txt--user
pythonsetup.pyinstall--userUsageRunpicrossto open browser, andpicross -hto get a full list of CLI
arguments which modify appearance or behavior.The priority is CLI arg > config file > default.Keyboard shortcuts:HoldAltto see possible button shortcuts underlined. This is what Qt callsAccelerator Keys.Ctrl-r/F5: refresh page.Ctrl-l: jump to address bar.Ctrl-t: open new tab.Ctrl-w: close current tab.Ctrl-PgUp/PgDown: switch to tab above/below.DevelopmentTo get started:gitclonehttps://git.sr.ht/~fkfd/picrosscdpicross# you can set up virtualenv here if you want# install dependencies# escalate/limit privilege if necessarypipinstall-rrequirements.txt
python-mpicrossMailing list for sending patches and anything related to Picross:~fkfd/picross@lists.sr.htIf you're not familiar with the mailing list workflow, check outgit-send-email.ioandmailing list etiquette.useplaintext.emailalso has useful plaintext setup tips for various email clients.
Package: picross-solver
Picross SolverA python program that solves black and white nonogram (aka Picross, Paint by Numbers, Griddlers, Pic-a-Pix, Hanjie, and Japanese Crosswords) puzzles.Can solve medium to large puzzles within a second or less; solves small puzzles nearly instantly.InstallationThis program requires numpy and Python version 3.4 or higher to work correctly.To install, simply runpip install picross-solverUsageOnce the package is installed, import the package withfrom picross_solver import picross_solver. After that, you should have access to the solve() function.The solve() function takes in 3 arguments -- an array of arrays for the row clues/constraints, an array of arrays for the col clues/constraints, and a 2d numpy array representing the puzzle grid. In the puzzle grid, values -1, 0, and 1 represent a cell that is unknown, empty, or full, respectively. solve() will attempt to fill in the provided puzzle variable, overwriting the puzzle grid in the process. solve() will return True if a solution has been found, and the provided puzzle grid will be overwritten with a solution to the puzzle; it will return False if it couldn't find a solution.ExampleUsing py>>> from picross_solver import picross_solver
>>> import numpy as np
>>> rows = [[1, 1], [0], [3]]
>>> cols = [[1, 1], [1], [1, 1]]
>>> puzz = np.full((3, 3), -1)
>>> print(puzz)
[[-1 -1 -1]
 [-1 -1 -1]
 [-1 -1 -1]]
>>> picross_solver.solve(rows, cols, puzz)
True
>>> print(puzz)
[[1 0 1]
 [0 0 0]
 [1 1 1]]How it WorksThis solver works by attempting to fill in a single line at a time, iterating over all of the lines and keeping track of which ones have been updated. If no progress has been made with the linesolver, the program makes a guess and recursively runs the solver.More information about the line-solving algorithm can be found here:https://scc-forge.lancaster.ac.uk/open/nonogram/ls-fcomp