Saravanan666/pypi-org huggingface dataset:
Package: pylabianca
pylabiancaPython tools for spike analysis.pylabianca:allows to read, analyse spike rate and statistically compare conditions in just a few stepsfollows the convenient API of mne-pythonprovides two straightforward objects for storing spiking data:SpikesandSpikeEpochsallow storing trial-level metadata in these object (just like mne-python) and selecting trials based on these metadatareturns xarrays (arrays with labeled dimensions and coordinates) as output from operations like cross-correlation, spiking rate calculation or decoding analysisthese xarrays inherit all the trial-level metadata and can be visualised splitting by conditions usingpylabianca.viz.plot_shadedor native xarray plottingthe xarrays can be statistically tested with cluster based permutation test comparing condition metadatainstallationpylabiancacan be installed usingpip:pip install pylabiancaTo get most up-to-date version you can also install directly from github:pip install git+https://github.com/labianca/pylabiancawhat's new?Seewhats_new.mdfor documentation of recent changes in pylabianca.docsOnline docs are currently under construction.Below you can find jupyter notebook examples showcasingpylabiancafeatures.introductory notebook- a general overview using human intracranial spike data (sorted with Osort).FiedTrip data example notebook- another broad overview using fieldtrip sample spike data from non-human primates.decoding example- overview of decoding with pylabiancaspike-triggered LFP analysis- use pylabianca andMNE-Pythonto perform spike-triggered analysis of LFPworking with spiketools- example of howspiketoolsand pylabianca can be used togetherTo better understand the data formats read natively by pylabianca (and how to read other formats) seedata formats page.sample dataYou can get example human data that are used in the exampleshere.The preprocessed FieldTrip data used in the examples are availablehere.
Package: pylabinstrument
pylabinstrumentTools for optics focusing on experimental stuff for now.Note: Still work in progress. Contact me if interested or having questions.Thorlab modules provide a easy-to-use way to control most modern Thorlabs controllers' in the Kinesis series. This work is inspired by this repository:https://github.com/ekarademir/thorlabs-kinesis). A low-level dll-binder module is defined and utilized for high-level usage.
Package: pylablib
OverviewPyLabLib aims to provide support for device control and experiment automation. It interfaces with lots of different ofdevices, including several differentcamera interfaces,translational stages,oscilloscopes,AWGs,sensors, and more. The interface is implemented in a natural way through Python objects, and is easy to understand. For example, here is a complete script which steps Thorlabs KDC101 stage by 10000 steps ten times, and each time grabs a frame with Andor iXon camera:frompylablib.devicesimportThorlabs,Andor# import the device librariesimportnumpyasnp# import numpy for saving# connect to the deviceswithThorlabs.KinesisMotor("27000000")asstage,Andor.AndorSDK2Camera()ascam:# change some camera parameterscam.set_exposure(50E-3)cam.set_roi(0,128,0,128,hbin=2,vbin=2)# start the stepping loopimages=[]for_inrange(10):stage.move_by(10000)# initiate a movestage.wait_move()# wait until it's doneimg=cam.snap()# grab a single frameimages.append(img)np.array(images).astype("<u2").tofile("frames.bin")# save frames as raw binaryThe list of the devices is constantly expanding.Additional utilities are added to simplify data acquisition, storage, and processing:Simplified data processing utilities: convenientfitting,filtering,feature detection,FFT(mostly wrappers around NumPy and SciPy).Universal multi-leveldictionarieswhich are convenient forstoringheterogeneous data and settings in human-readable format.Assorted functions for dealing withfile system(creating, moving and removing folders, zipping/unzipping, path normalization),network(simplified interface for client and server sockets),strings(conversion of various Python objects to and from string), and more.The most recent version of the library is available on GitHub (https://github.com/AlexShkarin/pyLabLib), and the documentation can be found athttps://pylablib.readthedocs.io/.RequirementsPython 3 (tested with 3.6+)Most extensively tested with Windows 10 and 64-bit Python. Linux is, in principle, supported, but devices which require manufacturer-provided DLLs (mostly cameras) might, potentially, have problems.Basic version only needs numpy, SciPy and pandas. Advanced device communication packages (such asPyVISAandpySerial) are automatically installed, but can be avoided if necessary.Some devices might requireadditional software. If this is the case, the requirements are mentioned on the corresponding page.InstallationYou can install the library from PyPi:pip install pylablibMore options are described in thedocumentation.Related projectsPylablib cam-control- software for universal camera control and frames acquisition.
Package: pylablib-lightweight
OverviewPyLabLib aims to provide support for device control and experiment automation. It interfaces with lots of different ofdevices, including several differentcamera interfaces,translational stages,oscilloscopes,AWGs,sensors, and more. The interface is implemented in a natural way through Python objects, and is easy to understand. For example, here is a complete script which steps Thorlabs KDC101 stage by 10000 steps ten times, and each time grabs a frame with Andor iXon camera:frompylablib.devicesimportThorlabs,Andor# import the device librariesimportnumpyasnp# import numpy for saving# connect to the deviceswithThorlabs.KinesisMotor("27000000")asstage,Andor.AndorSDK2Camera()ascam:# change some camera parameterscam.set_exposure(50E-3)cam.set_roi(0,128,0,128,hbin=2,vbin=2)# start the stepping loopimages=[]for_inrange(10):stage.move_by(10000)# initiate a movestage.wait_move()# wait until it's doneimg=cam.snap()# grab a single frameimages.append(img)np.array(images).astype("<u2").tofile("frames.bin")# save frames as raw binaryThe list of the devices is constantly expanding.Additional utilities are added to simplify data acquisition, storage, and processing:Simplified data processing utilities: convenientfitting,filtering,feature detection,FFT(mostly wrappers around NumPy and SciPy).Universal multi-leveldictionarieswhich are convenient forstoringheterogeneous data and settings in human-readable format.Assorted functions for dealing withfile system(creating, moving and removing folders, zipping/unzipping, path normalization),network(simplified interface for client and server sockets),strings(conversion of various Python objects to and from string), and more.The most recent version of the library is available on GitHub (https://github.com/AlexShkarin/pyLabLib), and the documentation can be found athttps://pylablib.readthedocs.io/.RequirementsPython 3 (tested with 3.6+)Most extensively tested with Windows 10 and 64-bit Python. Linux is, in principle, supported, but devices which require manufacturer-provided DLLs (mostly cameras) might, potentially, have problems.Basic version only needs numpy, SciPy and pandas. Advanced device communication packages (such asPyVISAandpySerial) are automatically installed, but can be avoided if necessary.Some devices might requireadditional software. If this is the case, the requirements are mentioned on the corresponding page.InstallationYou can install the library from PyPi:pip install pylablibMore options are described in thedocumentation.Related projectsPylablib cam-control- software for universal camera control and frames acquisition.
Package: pylab-sdk
pylab-sdkA development kit that collects simple utilities.Installationpipinstallpylab-sdkExampleimport pylab_sdk


# Get your public IP
ip = pylab_sdk.get_ip()

# Get latest user agent of modern browser
agents = pylab_sdk.get_latest_agents()
assert agents['macOS'] == pylab_sdk.get_latest_agents('macOS')

# Similar to netcat, webcat running over the http protocol helps you keep a log that you can check anywhere.
pylab_sdk.wc('hello world', source='discord-bot')
Package: pylabtools
pylabtoolspylabtoolsis a Python utility library that provides various helper functions:InstallationYou can install pylabtools using pip:pipinstallpylabtoolsTestingYou can run the unit tests using the following commands:python-munittestdiscovertests

orpytesttestsContributingIf you find a bug or have an idea for a new feature, please open an issue on the GitHub repository. Pull requests are welcome!
Package: pylabutils
pylabutilspylabutilsis a small, experimental python package that aims to provide some
aid in the making of simple data analysis reports in a lighter, more ergonomic
and more streamlined manner.It currently offers 5 main methods (and an additional utility):fit: the process of defining a function and setting up the optimization
method all in one line, with added functionalities for immediate graphical
representation.read_data: an easy way to read your data from most table-like files
and have it stored in a convenientpandas.DataFrame.tex_table: prints your data into a fancy, common LaTeX table, with an
added bit of customization included.multisort: allows you to sort all of your data based on any of the
variables stored, in case they don't all follow a monotonic progression.wdir: a manager that yields a path, useful for when your data is stored
externally.Interval: a small class that lets you createRealnumber intervals,
letting you check belongings using theinoperator.They all do have detailed__doc__attributes that explain all of their
arguments and keyword arguments, which you can view, and I encourage so,
by using eitherhelp(<method>)or<method>.__doc__.There are, in addition, some "private" methods that can give some
functionalities that are included in some of the "main" methods, but these
are not really intended for active use and do not have a detailed description
accompanying them.
Package: pylabview-helpers
pylabview-helpersHelpers for using the pylabview library programatically.pylabview was mostly designed for use through its entrypoints and I want to use it programatically.  Most of this stuff can probably be mainlined to pylabview once I come to a stable API.pylabview-helpers may use internal APIs of pylabview and accepts that pylabview changes might break it.  This library can lock down on versions if needed.ContributingFeel free to post PRs to improve this.
Package: pylace
pylacePython bindings to laceInstallInstall latest from PyPI$python3-mpipinstallpylaceInstall latest from GitHubBuilding from source requires the Rust compiler (git ithere).$python3-mpipinstallgit+https://git@github.com/promised-ai/lace.git#egg=pylace&subdirectory=pylaceUseNote that the engine currently only supports loading from an existing metadata
file. The following lace functions are supported:rowsimdepprobpredictlogpsimulateappend_rowsupdateimportpolarsasplimportlace# The required files can be found here: https://github.com/promised-ai/lace/tree/master/pylace/lace/resources/datasets/satellitesdf=pl.read_csv("./data.csv")engine=lace.Engine.from_df(df,codebook="codebook.yaml")# Train the model for 10_000 stepsengine.update(10_000)# Predict the orbit's class based on the orbit's period.engine.predict('Class_of_Orbit',given={'Period_minutes':1436.0})# ('GEO', 0.13583714831550336)TestsTo run tests, usepytest$pytest-xTo run doctets:$pythontests/test_docs.pyTo prevent plotly from displaying$LACE_DOCTEST_NOPLOT=1pythontests/test_docs.py
Package: pyLaCentrale
Vinted-Api-WrapperSimple python package that uses the Vinted API to search new posts.InstallSimpely install package using pip :pip install pyVintedExamplefrompyVintedimportVintedvinted=Vinted()# search(url, number_of_items, page_number)items=vinted.items.search("https://www.vinted.fr/vetement?order=newest_first&price_to=60&currency=EUR",10,1)#returns a list of objects: itemYou can access Item attributes as shown here:item1=items[0]#titleitem1.title#iditem1.id#photo urlitem1.photo#branditem1.brand_title#priceitem1.price#urlitem1.url#currencyitem1.currency
Package: pyLaCroix
A python color palette for those that love sparkled beverages.pip install pyLaCroixInterface# example use-casefrompyLaCroiximportpyLaCroixpalette=pyLaCroix(n_points=5)palette.apricotCreate a gradient with a flexible number of colors with any choice of beverage via thecolourpackage (the only dependency).NotesInspired by theR implementation.Color choices a laLaCroix Flavors
Package: pylacrosse
RequirementsThis libray works with theJeelinkUSB RF adapter and the arduinosketchhosted on theFHEMwebsite.Tested DevicesTechnoline TX 29ITTechnoline TX 29DTH-ITCommand Line Tool# pylacrosse -husage:LaCrossesensorCLItool.[-h][-v][-dDEVICE][-fFREQUENCY_RFM1][-FFREQUENCY_RFM2][-tTOGGLE_INTERVAL_RFM1][-TTOGGLE_INTERVAL_RFM2][-mTOGGLE_MASK_RFM1][-MTOGGLE_MASK_RFM2][-rDATARATE_RFM1][-RDATARATE_RFM2]{scan,info,led}...optionalarguments:-h,--helpshowthishelpmessageandexit-vbemoreverbose-dDEVICE,--deviceDEVICEsetlocaldevicee.g.'/dev/ttyUSB0'orsetremotedevicee.g.'rfc2217://[IP]:[PORT]'default:'/dev/ttyUSB0'-fFREQUENCY_RFM1setthefrequencyforRFM1-FFREQUENCY_RFM2setthefrequencyforRFM2-tTOGGLE_INTERVAL_RFM1setthetoggleintervalforRFM1-TTOGGLE_INTERVAL_RFM2setthetoggleintervalforRFM2-mTOGGLE_MASK_RFM1setthetogglemaskforRFM1-MTOGGLE_MASK_RFM2setthetogglemaskforRFM2-rDATARATE_RFM1setthedatarateforRFM1-RDATARATE_RFM2setthedatarateforRFM2Commands:{scan,info,led}scanShowallreceivedsensorsinfoGetconfigurationinfoledSettrafficLEDstateThe LaCrosse sensor generates the ID every time the battery is changed.Use the cli tool pylacrosse to find your device:# pylacrosse -d /dev/ttyUSB0 scanid=40t=16.000000h=69nbat=0name=unknownid=16t=18.700000h=60nbat=0name=unknownid=0t=17.400000h=65nbat=0name=unknownYou can generate a file with know devices at ~/.lacrosse/known_devices.ini[0]name=Kitchen[16]name=Livingroom[40]name=Bedroomthen the tool will print the defined names# pylacrosse -d /dev/ttyUSB0 scanid=40t=16.000000h=69nbat=0name=Bedroomid=16t=18.700000h=60nbat=0name=Livingroomid=0t=17.400000h=65nbat=0name=KitchenUsing remote serial port with ser2netYou can also use ser2net to connect to a remote JeeLink Adapter. This can be useful, if you use
a docker container or if you can not attach a JeeLink adapter to your host running pylacrosse. On your
remote device install ser2net and add the following line to your ser2net.conf:20001:telnet:0:/dev/ttyUSB0:57600remctlbannerRestart the ser2net daemon and connect to your remote host using pylacrosse command line tool:# pylacrosse -d rfc2217://[REMOTE_IP]]:20001 scanid=40t=16.000000h=69nbat=0name=Bedroomid=16t=18.700000h=60nbat=0name=Livingroomid=0t=17.400000h=65nbat=0name=Kitchen
Package: pylacrosse-ha
RequirementsThis library works with theJeelinkUSB RF adapter and the Arduinosketchhosted on theFHEMwebsite.Tested DevicesTechnoline TX 29ITTechnoline TX 29DTH-ITCommand Line Tool# pylacrosse_ha -husage:LaCrossesensorCLItool.[-h][-v][-dDEVICE][-fFREQUENCY_RFM1][-FFREQUENCY_RFM2][-tTOGGLE_INTERVAL_RFM1][-TTOGGLE_INTERVAL_RFM2][-mTOGGLE_MASK_RFM1][-MTOGGLE_MASK_RFM2][-rDATARATE_RFM1][-RDATARATE_RFM2]{scan,info,led}...optionalarguments:-h,--helpshowthishelpmessageandexit-vbemoreverbose-dDEVICE,--deviceDEVICEsetlocaldevicee.g.'/dev/ttyUSB0'orsetremotedevicee.g.'rfc2217://[IP]:[PORT]'default:'/dev/ttyUSB0'-fFREQUENCY_RFM1setthefrequencyforRFM1-FFREQUENCY_RFM2setthefrequencyforRFM2-tTOGGLE_INTERVAL_RFM1setthetoggleintervalforRFM1-TTOGGLE_INTERVAL_RFM2setthetoggleintervalforRFM2-mTOGGLE_MASK_RFM1setthetogglemaskforRFM1-MTOGGLE_MASK_RFM2setthetogglemaskforRFM2-rDATARATE_RFM1setthedatarateforRFM1-RDATARATE_RFM2setthedatarateforRFM2Commands:{scan,info,led}scanShowallreceivedsensorsinfoGetconfigurationinfoledSettrafficLEDstateThe LaCrosse sensor generates the ID every time the battery is changed.Use the cli toolpylacrosse_hato find your device:# pylacrosse_ha -d /dev/ttyUSB0 scanid=40t=16.000000h=69nbat=0name=unknownid=16t=18.700000h=60nbat=0name=unknownid=0t=17.400000h=65nbat=0name=unknownYou can generate a file with know devices at~/.lacrosse_ha/known_sensors.ini[0]name=Kitchen[16]name=Livingroom[40]name=Bedroomthen the tool will print the defined names# pylacrosse_ha -d /dev/ttyUSB0 scanid=40t=16.000000h=69nbat=0name=Bedroomid=16t=18.700000h=60nbat=0name=Livingroomid=0t=17.400000h=65nbat=0name=KitchenUsing remote serial port with ser2netYou can also useser2netto connect to a remote JeeLink Adapter. This can be useful, if you use
a Docker container or if you can not attach a JeeLink adapter to your host runningpylacrosse. On your
remote device installser2netand add the following line to yourser2net.conffile:20001:telnet:0:/dev/ttyUSB0:57600remctlbannerRestart theser2netdaemon and connect to your remote host usingpylacrossecommand line tool:# pylacrosse_ha -d rfc2217://[REMOTE_IP]]:20001 scanid=40t=16.000000h=69nbat=0name=Bedroomid=16t=18.700000h=60nbat=0name=Livingroomid=0t=17.400000h=65nbat=0name=Kitchen
Package: pylacrosseview
pylacrosseviewpylacrosseviewis a python library that allows you to use La Crosse devices that connect with La Crosse View in your python scripts.Designed for Home Assistant.See an example below:fromloggingimportINFO,basicConfigfromosimportenvironfrompylacrosseviewimport*if__name__=="__main__":basicConfig(level=INFO)ws:WeatherStation=WeatherStation()ws.start(environ["LACROSSE_EMAIL"],environ["LACROSSE_PASSWORD"])fordeviceinws.devices:forfield,valuesindevice.states().items():print(f"Value of{field}on{device}is{values[-1].value}{field.unit}")
Package: pylacus
Python client and module for LacusUse this module to interact with aLacusinstance.InstallationpipinstallpylacusUsageCommand lineYou can use thepylacuscommand:$pylacus-h
usage:pylacus[-h]--url-instanceURL_INSTANCE[--redis_up]{enqueue,status,result}...

QueryaLacusinstance.

positionalarguments:{enqueue,status,result}AvailablecommandsenqueueEnqueueaurlforcapturestatusGetstatusofacaptureresultGetresultofacapture.

options:-h,--helpshowthishelpmessageandexit--url-instanceURL_INSTANCEURLoftheinstance.--redis_upCheckifredisisup.LibrarySeeAPI ReferenceExampleEnqueuefromredisimportRedisfromlacuscoreimportLacusCoreredis=Redis()lacus=lacus=PyLacus("http://127.0.0.1:7100")uuid=lacus.enqueue('google.fr')Status of a capturestatus=lacus.get_capture_status(uuid)Capture resultresult=lacus.get_capture(uuid)
Package: pyladies
PyLadies KitThis kit contains the PyLadies Handbook (nicely viewable athttp://kit.pyladies.com) as well as other useful materials for organizing your own PyLadies group.To try out:`bash $ pip install pyladies $ pyladies handbook `CHANGES#### v2.0.4Removed the use ofchapter(implies certain legalities for certain types non-profits, which we don’t fall under)#### v2.0.2Fixed entry point, thanks toKyle KelleyAdded newsletter information, thanks toEsther Nam#### v2.0 PyPI ReleaseReleased on PyPIAdded:Checklists on local group and event setupMore advice on events and local group organizationSetup for pip installationIncluded CoCUpdated:SphinxSphinx/RTD themeReorganized information from originalpyladies kit#### v1.0 Initial ReleaseInitial release of the pyladies-kit.
Package: pyladies-digest
chicago-pyladies-digestPython project to scrape data from MeetUp and Lanyard for generating a MailChimp template for a PyLadies email digest.Setup:To use will need to first setup config with API keys:pyladies-digest –option config –meetup_key very_secret –mailchimp_key much_more_secretScraping Event Data:To scrape MeetUp for events in a location, need to provide a category -http://www.meetup.com/meetup_api/docs/2/categories/-and text to look for in an event’s description.pyladies-digest –option scrape_events –location Chicago –text python –category 34Scraping Conference Data:To scrape Lanyard for upcoming conferences and conference CFPs you can provide a query for both conference topics and conference calls.pyladies-digest –option scrape_confs –calls python –topic pythonGenerating Templates:To generate and post a template to MailChimp will need to provide a month, year. By default an email digest will include the following categories - career, conference, events, miscellaneous, and volunteer. If you want to update the data (notes on data format below) used in the digest, provide a location of the new data file for the respective type (e.g. –career /Users/lm/desktop/career.csv).Examples:pyladies-digest –option template –template-name feb_digest –month Feb. –year 2016 –city Chicago –fbhttps://www.facebook.com/Chicago-PyLadies-303889346486875/?ref=aymt_homepage_panelpyladies-digest –option template –template-name feb_digest –month Feb. –year 2016 –city Chicago –data career conferences –fbhttps://www.facebook.com/Chicago-PyLadies-303889346486875/?ref=aymt_homepage_panel–twhttp://www.twitter.com/pyladieschicagopyladies-digest –option template –template-name feb_digest –month Feb. –year 2016 –city Chicago –career /Users/lm/desktop/career.csv –misc /Users/lm/desktop/misceallaneous.csv –volunteer /Users/lm/desktop/volunteer.csvData Format:Career: title,description,contact_url,contact_text Conferences: date,name,location,url,cfp,cfp_url,cfp_deadline,fa,fa_url,fa_deadline Events: date,event_url,group,name Miscellaneous: text,contact_url,contact_text Volunteer: text,contact_url,contact_text
Package: pylaia
PyLaiaPyLaia is a device agnostic, PyTorch based, deep learning toolkit for handwritten document analysis.It is also a successor toLaia.Get started by having a look at ourDocumentation!InstallationTo install PyLaia from PyPi:pipinstallpylaiaPlease note that the CUDA version of nnutils (nnutils-pytorch-cuda) is installed by default. If you do not have a GPU, you should install the CPU version (nnutils-pytorch).The following Python scripts will be installed in your system:pylaia-htr-create-model: Create a VGG-like model with BLSTMs on top for handwriting text recognition. The script has different options to customize the model. The architecture is based on the paper"Are Multidimensional Recurrent Layers Really Necessary for Handwritten Text Recognition?"(2017) by J. Puigcerver.pylaia-htr-train-ctc: Train a model using the CTC algorithm and a set of text-line images and their transcripts.pylaia-htr-decode-ctc: Decode text line images using a trained model and the CTC algorithm. It can also output the char/word segmentation boundaries of the symbols recognized.pylaia-htr-netout: Dump the output of the model for a set of text-line images in order to decode using an external language model.ContributingIf you want to contribute new feature or found a text that is incorrectly segmented using pySBD, then please head toCONTRIBUTING.mdto know more and follow these steps.Fork it (https://gitlab.teklia.com/atr/pylaia/-/forks/new)Create your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Create a new Merge Request (https://gitlab.teklia.com/atr/pylaia/-/merge_requests/new)Code of conductWe are committed to providing a friendly, safe and welcoming environment for all. Please read and
respect thePyLaia Code of Conduct.AcknowledgmentsWork in this toolkit was financially supported by thePattern Recognition and Human Language Technology (PRHLT) Research Center.BibTeX@misc{puigcerver2018pylaia,
  author = {Joan Puigcerver and Carlos Mocholí},
  title = {PyLaia},
  year = {2018},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/jpuigcerver/PyLaia}},
  commit = {commit SHA}
}