Saravanan666/pypi-org huggingface dataset:
Package: pixelblaze-client
pixelblaze-clientA Python library that presents a simple, synchronous interface for communicating with and
controlling one or more Pixelblaze LED controllers.RequirementsPython 3.9-3.10websocket-client (installable viapip install websocket-client, or fromhttps://github.com/websocket-client/websocket-client)requests (installable viapip install requests, or fromhttps://github.com/psf/requests)pytz (installable viapip install pytz, or fromhttps://github.com/stub42/pytz)py-mini-racer (installable viapip install py-mini-racer, or fromhttps://github.com/sqreen/PyMiniRacer)InstallationInstall pixelblaze-client with all required packages using pip:pip install pixelblaze-clientOr, if you prefer, drop a copy ofpixelblaze.pyinto your project directory and reference it within your project:from pixelblaze import *DocumentationAPI and other documention is available inMarkdownandHTML.Sample code illustrating usage is provided in theexamples directory.Please note that version 1.0.0 was a major refactoring and enhancement of the library, with many new features and significant changes.The API surface is completely new. See the theAPI documentationfor details.Current Version [v1.1.2] - 2023-2-22Bug fix for long-lived connectionsAddednew methods setMapFunction() and compilePattern() for compiling pixelmaps and patterns.Older VersionsSeeCHANGELOG.mdfor complete version history.Known IssuesNone at the moment; if you find something,let us know!
Package: pixel-collect
pixel collectPixel collect is a simple google image scrapper for your computer vision tasksInstallationQuickpipinstallpixel_collectLongStep 1gitclonehttps://github.com/charleslf2/pixel_collectStep 2cdpixel_collectStep 3pysetup.pyinstallUsage>>>frompixel_collectimportpixel_scrap>>>pixel_scrap(keyword="cats photos",save_folder="cats",limit=50,logs=True)
Package: pixel-console-image
Pixel Console Image Renderer, Editor & ModuleA simple renderer for images in the terminal using the .pci file formatInstallation & UsageInstalling Via PyPIRun this command to install PCI$ pip install pciThen to run PCI, run the following in your terminal$ pciInstalling Via GitHub$ git clone https://github.com/El1teWatermelonGames/pci.git
$ cd pci
$ python setup.py installThen to run PCI, run the following in your terminal$ pciUsage in codeRendering an image fileTo render an existing image file you have to use the renderImage() functionimage.pciFFF000FFF00FFF
F0F00F000000F0
FFF00F000000F0
F0000F000000F0
F00000FFF00FFFexample.pyfrom pci.rem import renderImage

renderImage("image.pci")Rendering image dataThis time you reformat the image yourself as a list in python & put it through a seperate function, renderData()example.pyfrom pci.rem import renderData

image = [
    "FFF000FFF00FFF",
    "F0F00F000000F0",
    "FFF00F000000F0",
    "F0000F000000F0",
    "F00000FFF00FFF"
]

renderData(image)
Package: pixeldifference
PixelDifference - Pixel differences between two imagesIntroThis package is for comparing pixel differences between two images. It will check the same pixel positions on both images. This can be used to compare how different an image is to the original after compression or editing.If one image is cropped, for example, you can use ignoreSize=True to only compare the area which is present in both images.RequirementsYou need python3 and pillow to use this package.pip install pillowInstallationpip install pixeldifferenceUsage# Import packagesfrompixeldifferenceimportPixelDifferencefromPILimportImage# Load two images from your device# You need to change the image paths to your imagesimageOne=Image.open('/path/to/imageOne.jpg','r')imageTwo=Image.open('/path/to/imageTwo.jpg','r')# Initialisepd=PixelDifference(imageOne,imageTwo)# The total number of pixels checkedtotalpixels=pd.total# The percentage of different pixels compared to the total checked areapercentdifferent=pd.percent# The total number of different pixels in the checked areapixelsdifferent=pd.pixelsAdvanced SettingsImages of Different SizeThis will compare an area which exists in both images. Use this if one image is cropped, for example.# Use ignoreSize=Truepd=PixelDifference(imageOne,imageTwo,ignoreSize=True)Compare Pixels in Hexadecimal (eg. #FFFFFF)This will convert all the pixels to hexadecimal values, like #FFFFFF, before comparison. The default compares the RGB values.# Use convert2Hex=Truepd=PixelDifference(imageOne,imageTwo,convert2Hex=True)FeaturesCompare two images for differences, pixel by pixelCompare pixels in RGB or hexadecimal valuesUse different sized imagesImage difference in pixels, and percentage of total areaTo DoAdd image file size comparisonImprove ReadmeCommand line argumentsMore testsHandle images from string pathsPerformance tests/improvementsAllow for more than 2 imagesChanges-v1.0.0 (June 12th, 2021)Initial release
Package: pixeldrain-reloaded
Pixeldrain ReloadedThis is a Python library for interacting with Pixeldrain, a simple file sharing service. It provides synchronous and asynchronous functions for uploading, downloading, and retrieving information about files on Pixeldrain; anonymously and with an API key.Installationpipinstallpixeldrain-reloadedDocumentationget_info(file_id)Get information about a file on Pixeldrain.Parameters:file_id(str): The ID of the file.Returns:dict: A dictionary containing file information.upload_file(file_path, returns=None, filename=None, api_key=None)Upload a file to Pixeldrain synchronously.Parameters:file_path(str): The path to the file to be uploaded.returns(str, optional): Specifies what to return.filename(str, optional): Name of the file to upload.api_key(str, optional): Pixeldrain API key for authorized uploads.Returns:dictorstr: Depending on the 'returns' parameter, returns a dictionary or a string.download_file(file_id, path, filename=None)Download a file from Pixeldrain synchronously.Parameters:file_id(str): The ID of the file or a Pixeldrain URL.path(str): The local path to save the downloaded file.filename(str, optional): Name to save the file as (default is Pixeldrain filename).Returns:str: The path to the downloaded file.Asynchronous functionsThe asynchronous version of the library provides the same functionality but is designed for use withasyncioandaiohttpfor non-blocking asynchronous operations.UsageSynchronous VersionImport the libraryimportpixeldrain_reloadedaspixeldrainGet Information about a Filefile_info=pixeldrain.Sync.get_info(file_id="your_file_id")print(file_info)Upload a Filefile_path="path/to/your/file.txt"response=pixeldrain.Sync.upload_file(file_path,returns="dict",filename="custom_filename",api_key="your_api_key")print(response)Download a Filefile_id="your_file_id"download_path="path/to/download"downloaded_file=pixeldrain.Sync.download_file(file_id,download_path,filename="custom_filename")print(f"File downloaded to:{downloaded_file}")Asynchronous VersionImport the libraryimportpixeldrain_reloadedaspixeldrainGet Information about a File (Async)file_info=awaitpixeldrain.Async.get_info(file_id="your_file_id")print(file_info)Upload a File (Async)file_path="path/to/your/file.txt"response=awaitpixeldrain.Async.upload_file(file_path,returns="dict",filename="custom_filename",api_key="your_api_key")print(response)Download a File (Async)file_id="your_file_id"download_path="path/to/download"downloaded_file=awaitpixeldrain.Async.download_file(file_id,download_path,filename="custom_filename")print(f"File downloaded to:{downloaded_file}")Special ThanksFayasNoushad for the original libraryLicenseThis library is licensed under the MIT License - see theLICENSEfile for details.
Package: pixelfed-python-api
Pixelfed Python APIA limited Python library for Pixelfed (https://pixelfed.org). Only few methods are implemented.AuthenticationYou need a token from a Pixelfed instance. Navigate to /settings/applications on the Pixelfed instance and generate a new Personal Access Tokens. Use that token for authentication.
The token must be available in the environment variable PIXELFED_API_TOKEN.Pixelfed DomainThe domain can be stored in the environment variable PIXELFED_DOMAIN_URI or passed as a parameter to thePixelfed()constructor.Installingpipinstallpixelfed-python-apiUsage>>>frompixelfed_python_apiimportPixelfed>>>pfi=Pixelfed().instance()>>>print(pfi['version'])'2.7.2 (compatible; Pixelfed 0.11.4)'
Package: pixelfields_smart_selects
=====pixelfields smart selects=====Smart selects for django.Forked from https://github.com/digi604/django-smart-selects and fixed for Django >= 1.7.Quick start-----------1. Install it by pip:pip install https://bitbucket.org/pixelfields/smart-selects/get/v0.1.5.tar.gz1. Add "pixelfields_smart_selects" to INSTALLED_APPS:INSTALLED_APPS = {...'pixelfields_smart_selects'}2. Bind the smart_selects urls.py into your main urls.py with something like: url(r'^chaining/', include('pixelfields_smart_selects.urls')), This is needed for the chained-selects.3. Profit
Package: pixel-font-builder
Pixel Font BuilderA library that helps create pixel style fonts.Installationpipinstallpixel-font-builderUsageimportloggingimportosimportshutilfromexamplesimportbuild_dirfrompixel_font_builderimportFontBuilder,StyleName,SerifMode,WidthMode,Glyph,opentypelogging.basicConfig(level=logging.DEBUG)defmain():outputs_dir=os.path.join(build_dir,'create')ifos.path.exists(outputs_dir):shutil.rmtree(outputs_dir)os.makedirs(outputs_dir)builder=FontBuilder(12)builder.meta_info.version='1.0.0'builder.meta_info.family_name='My Pixel'builder.meta_info.style_name=StyleName.REGULARbuilder.meta_info.serif_mode=SerifMode.SANS_SERIFbuilder.meta_info.width_mode=WidthMode.MONOSPACEDbuilder.meta_info.manufacturer='Pixel Font Studio'builder.meta_info.designer='TakWolf'builder.meta_info.description='A demo pixel font.'builder.meta_info.copyright_info='Copyright (c) TakWolf'builder.meta_info.license_info='This Font Software is licensed under the SIL Open Font License, Version 1.1.'builder.meta_info.vendor_url='https://github.com/TakWolf/pixel-font-builder'builder.meta_info.designer_url='https://takwolf.com'builder.meta_info.license_url='https://scripts.sil.org/OFL'builder.meta_info.sample_text='Hello World!'builder.horizontal_header.ascent=10builder.horizontal_header.descent=-2builder.vertical_header.ascent=10builder.vertical_header.descent=-2builder.os2_config.x_height=5builder.os2_config.cap_height=7builder.character_mapping.update({ord('A'):'CAP_LETTER_A',})builder.glyphs.append(Glyph(name='.notdef',advance_width=8,advance_height=12,horizontal_origin=(0,-2),vertical_origin_y=0,data=[[1,1,1,1,1,1,1,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,1,1,1,1,1,1,1],],))builder.glyphs.append(Glyph(name='CAP_LETTER_A',advance_width=8,advance_height=12,horizontal_origin=(0,-2),vertical_origin_y=0,data=[[0,0,0,1,1,0,0,0],[0,0,1,0,0,1,0,0],[0,0,1,0,0,1,0,0],[0,1,0,0,0,0,1,0],[0,1,0,0,0,0,1,0],[0,1,1,1,1,1,1,0],[0,1,0,0,0,0,1,0],[0,1,0,0,0,0,1,0],[0,1,0,0,0,0,1,0],[0,1,0,0,0,0,1,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],],))builder.save_otf(os.path.join(outputs_dir,'my-pixel.otf'))builder.save_otf(os.path.join(outputs_dir,'my-pixel.woff2'),flavor=opentype.Flavor.WOFF2)builder.save_ttf(os.path.join(outputs_dir,'my-font.ttf'))builder.save_bdf(os.path.join(outputs_dir,'my-font.bdf'))if__name__=='__main__':main()DependenciesFontToolsBrotliBdfFontLicenseUnder theMIT license.
Package: pixelforest-drf
PixelForest DRFThis repository host the code of the PixelForest DRF package.
This package will host most of the reusable applications/code we use on a project basis as the PixelForest Dev Team.NoteThis package is under public licensing because we figured it might be useful for other as it is.Current subpackagesutils: A subpackage with useful tools for Django applications. Not an application itself (but used as one for testing), no need to add it to your installed appscountries: A django application to handle some location data, based on 3 levels: Country, SubRegion and Regioncompanies: A django application to handle companies structure, based on 4 levels: CompanyGroup, Company, Subsidiary and Serviceusers: A django application to handle usersrest: A collection of basic apis for the applications subpackagesGetting startedRequirementsThe following requirements will need to be installed and configuredPython 3.6DjangoDjango Rest FrameworkPostgreSQLInstallationYou can install the package using pip:pipinstallpixelforest_drfAdd the wanted application(s) to yourINSTALLED_APPS:INSTALLED_APPS=(...,'rest_framework',# necessary to use pixelforest_drf.rest'phonenumber_field',# necessary to use pixelforest_drf.users'pixelforest_drf.companies','pixelforest_drf.countries','pixelforest_drf.users',...,)If you use the pixelforest_drf.users subpackage, define the user in your settings:AUTH_USER_MODEL="users.PFUser"Run the included migrations:python3manage.pymigrateRest EndpointsAdd the wanted URL patterns:frompixelforest_drf.restimportapi_urlsurlpatterns=[...,path('',include(api_urls)),...,]Or, if you are not using all subpackages, you can nitpick:frompixelforest_drf.rest.countriesimportapi_urlsascountries_urlsfrompixelforest_drf.rest.companiesimportapi_urlsascompanies_urlsfrompixelforest_drf.rest.usersimportapi_urlsasusers_urlsurlpatterns=[...,path('',include(countries_urls)),path('',include(companies_urls)),path('',include(users_urls)),...,]ContributingGuidelinesPlease contact thePixelForest Dev Teamfor any bug report or feature request.CreditCountriescountries_objects.csv: Merge of theWikipedia ISO 3166-1 article, and data from theUN Statistics sitefor regions and sub-regions.
Work inpired bylukes ISO-3166 Githubbut redone to allow for MIT Licensing.flags.zip:Country Flags- (Public Domain)ContributorsJean-Xavier Raynaud-email- Product Owner / System Architect / DeveloperMilo Parigi-email- Scrum Master / DeveloperVictor Duvernois-email-  Developer
Package: pixelink
A Python driver for the PixeLINK camera.CompatibilityTested and developed with the following environment,PixeLINK camera model: PixeLINK GigE PL-B781GPixeLINK Software Development Kit 4.2 - Release 8.7.1 (~2014 including the 2017 version)Window 7 Pro (32 and 64 bit)Linux Ubuntu 16.04 (64bit) (libPxLApi.so.4.2.1.11)Python 2.7 (32 and 64 bit) and Python 3.6 (64bit)InstallationUse Python’s pip tool to install this package:pip install pixelinkThere are several dependencies,decorator (required)numpy (optional)pillow (optional - used to save the images)For Window’s users use the following binary repository to install numpy,http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpyOnce the Numpy+MKL wheel file is downloaded, then execute the following
command (assuming numpy‑1.13.2+mkl‑cp36‑cp36m‑win_amd64.whl):pip install numpy‑1.13.2+mkl‑cp36‑cp36m‑win_amd64.whlLinux O/SFor Linux Debian based O/S you will need to install the following dependencies:sudo apt-get install libsdl2-2.0-0
sudo apt-get install libavcodec-ffmpeg56And you will need to export the following setting (use your location
the pixelink lib directory):export LD_LIBRARY_PATH=~/Downloads/pixelink/libExamplesFrame grabbing with numpy installed,>>>frompixelinkimportPixeLINK>>>cam=PixeLINK()>>>cam.shutter=0.002>>>cam.grab()array([[17,18,17,...,18,16,17],[16,17,17,...,18,17,17],[17,17,16,...,17,17,17],...,[20,20,21,...,20,20,20],[21,18,20,...,21,20,21],[22,21,20,...,20,21,20]],dtype=uint8)>>>raw_data=cam.grab()>>>raw_data.mean()21.016006038647344>>>cam.shutter=0.003>>>raw_data=cam.grab()>>>raw_data.mean()29.30297418478261>>>cam.close()>>>>>>fromPILimportImage>>>im=Image.fromarray(raw_data)>>>im.save('test1.png')Frame grabbing without numpy installed,>>>frompixelinkimportPixeLINK>>>fromPILimportImage>>>cam=PixeLINK()>>>cam.shutter=0.004>>>data=cam.grab()>>>data<ctypes.c_char_Array_6624000objectat0x00000000039EF448>>>>cam.size(2208,3000)>>>cam.pixel_size1>>>im=Image.frombuffer('L',cam.size,data)__main__:1:RuntimeWarning:thefrombufferdefaultsmaychangeinafuturerelease;forportability,changethecalltoread:frombuffer(mode,size,data,'raw',mode,0,1)>>>im.save('test2.png')>>>cam.close()Continuous frame grabbing in a thread,importthreadingimporttimefrompixelinkimportPixeLINK,PxLerrordefgrab_frames(cam):frame_num=0time_start=time.time()print('Continuous frame grabbing started...')whilecam.is_open():frame_num+=1try:data=cam.grab()# TODO: do something with the data...exceptPxLerrorasexc:print('ERROR: grab_frames:',str(exc))continuet_total=time.time()-time_startifframe_num%10==0:frame_rate=float(frame_num)/t_totalprint('#%04dFPS:%0.3fframes/sec'%(frame_num,frame_rate))defmain():cam=PixeLINK()cam.shutter=0.002# exposure time in secondsth=threading.Thread(target=grab_frames,args=[cam])th.start()try:whileTrue:time.sleep(1.0)exceptKeyboardInterrupt:print('Caught CTRL+C')finally:print('Closing camera...')cam.close()print('Waiting for thread...')th.join()print('Done.')if__name__=='__main__':main()LinksDocumentation:https://hsmit.gitlab.io/pixelink/Repository:https://gitlab.com/hsmit/pixelinkPyPi Location:https://pypi.python.org/pypi/pixelinkPyPi Test Location:https://test.pypi.org/project/pixelink/
Package: pixelinkds
PixeLINKds: PixeLINK Data Steam Files in PythonPixeLINK Data Steam (PDS) is a file format used by PixeLINK software.It is extremely easy to use>>>importpixelinkdsaspds>>>timestamps,stack=pds.read('myfile.pds')You can also iterate over each frame:>>>withpds.Reader('myfile.pds')asreader:...fortimestamp,imginreader:...print(timestamp)...# do something with your imageOr you can convert into another format:>>>pds.convert('myfile.pds','myfile.tif')Current supported formats are tif (Multipage tif), npz (Numpy), mat (Matlab), avi (PIM1 encoded)
For tif an avi files you will get an extra file with .txt appended to the name with the timestamps.You can also convert or get info form the command line:$python-mpixelinkdsconvertmyfile.pdsmyfile.tif$python-mpixelinkdsinfomyfile.pdsQuick InstallationTo install PixeLINKds, simply:$pipinstallpixelinkdsDependenciesNumpySciPy (optional, to export mat files)tifffile (optional, to export tif files)OpenCV2 (optional, to export avi files)PixeLINKds is written and maintained by Hernan E. Grecco <hernan.grecco@gmail.com>.Other contributors, listed alphabetically, are:No one yet.(If you think that your name belongs here, please let the maintainer know)PixeLINKds Changelog0.1 (2016-08-25)First public release.Implemented a Reader for homogeneous Pixelink Data Stream file.Implemented Frame Descriptor based on ctypes structure.
Package: pixeljump
NUS Orbital 21/22 Team PixelJump (5215)Game InstructionsAandDto move left/rightspaceto jump/double-jumpIn Act 2 & 3 press and holdspaceafter a double jump to activate rocket boots 🚀In Act 3 pressPto shoot projectiles to kill enemies 🔫M to mute all sounds and music 🔇Escape to pause the game ⏸️In the main menu, in addition toenteryou can press the buttons1,2or3to go straight to acts 1, 2 and 3 respectively if you don't feel like beating the game normally 💀Running the gameOption 1: Run the packaged executable (reccomended for windows users)Go toreleasesand follow the instructions for your OS.The packaged executables are only tested on limited hardware so there may be some problems that we have not faced.If the executable packages do not work, then the most reliable way is to run the program from source, which will be explained below.Option 2: Install using pip (reccomended in general if you have python >= 3.10 installed)executepip install pixeljumpfor the stable release orpip install git+https://github.com/WilsonOh/Orbital21-22-PixelJump-5215.gitfor the nightly releaserun the game withpixeljumpOption 3.a: Running from source usingpip(not reccomended)Make sure you havepython3.10installed. You can download and install it fromhttps://www.python.org/downloads/Clone the repo andcdinto itCreate a pythonvenv[1]runpip install pygame pygame-widgetsandpip install -e .cd src/pixeljumpandpython3 main.pyOption 3.b: Running from source usingpoetryIf you havepoetryinstalled, it will be easier since this project uses poetrycd pixeljumpand runpoetry installcd src/pixeljumpand runpoetry shellRun the game withpython main.py[1] Create avenvby runningpython3 -m venv venvConfiguring Game SettingsAll the configurable settings are stored in thesettings/settings.jsonfile in the game folder.Since the current version ofPIXELJUMPdoes not support in-game settings configuration yet, the only way to adjust the game settings is to edit thesettings.jsonfile.Screen ResolutionThe game is in1920x1080by default as it was the resolution we had in mind when designing the game but you can change it to your liking.The screen resolution of the game can be changed by adjusting thescreen_widthandscreen_heightkeys insettings.jsonFPSIt is not reccomended to change the FPS as it may cause some unwanted behavioursPlayer velocity and gravityFeel free to mess around with the velocity and gravity of the player :smile:Project Poster
Package: pixelmagic
pixelmagicpixelmagicis a Python package for creating pixelated GIFs from image files.InstallationTo install the package, run the following command:pip install pixelmagicCheck if required packages are installed and install them if necessary:importosimportsubprocessdefinstall(package):subprocess.check_call(['pip','install',package])# Check if required packages are installed and install them if necessarytry:importimageioexceptImportError:install('imageio')importimageiotry:fromPILimportImageexceptImportError:install('Pillow')fromPILimportImageUsageHere's an example of how to create a pixelated GIF usingpixelmagic:frompixelmagic.pixelmagicimportcreate_pixelated_gifimage_path='path/to/image.jpg'duration=0.1loops=0start_pixel_size=20output_path='path/to/output.gif'reverse=False# Optionalcreate_pixelated_gif(image_path,duration,loops,start_pixel_size,output_path,reverse)Function Referencedefcreate_pixelated_gif(image_path:str,duration:float,loops:int,start_pixel_size:int=20,output_path:str='',reverse:bool=False)->str:"""Create a pixelated GIF from an image file and save it to disk.Args:image_path (str): The path to the image file.duration (float): The duration of each frame in the GIF.loops (int): The number of times the GIF should loop. Use 0 for infinite loops.start_pixel_size (int): The starting pixel size of the pixelation effect. Default is 20.output_path (str): The path to the output file. If not specified, the GIF will be saved to the root directory.reverse (bool): If True, the function will create a GIF that transitions from the pixelated image to theoriginal image.Returns:str: The path to the output file. The pixelated GIF is saved to disk.Raises:FileNotFoundError: If the image file does not exist.ZeroDivisionError: If the start_pixel_size is less than or equal to the end_pixel_size."""Licensepixelmagicis licensed under the MIT License - see theLICENSEfile for details.Error Handlingcreate_pixelated_gifraises aFileNotFoundErrorif the image file does not exist, and aZeroDivisionErrorif thestart_pixel_sizeis less than or equal to theend_pixel_size.
Package: pixelpay-sdk
Python PixelPay SDK¿Como instalar?Si se quiere utilizar un ambiente virtual, referirse al siguienteenlace:python3-mvenvenvsource./env/bin/activatePor medio de PIP, agregue el SDK de PixelPay# MacOS / Linuxpython3-mpipinstallpixelpay_sdk# Windowspy-mpipinstallpixelpay_sdk