Saravanan666/pypi-org huggingface dataset:
Package: lifetimer
LifetimerThis is a lifespan timer that allows you to watch the seconds tick down to the time you set for yourself.It's for anyone who wants to feel the time dwindle, push themselves to get up to speed on their studies and work.InstallationpipinstalllifetimerUsageWhen installed, you have to set your last date and time of your life throughlifetimerorlifetimer initcommands.If you want to change the settings, uselifetimer initcommand.$lifetimerinit
Please,enteryourlastdateandtimeofyourlife.
Year:2100Month[12]:3Day[31]:6Hour[23]:17Minute[59]:58Second[59]:50After settings, when you want to check your lifespan, just typelifetimercommand.$lifetimer
🕛Youhave2,455,857,087secondstolive.
Package: lifetime-value
lifetime-valueA library to help finding the lifetime value of a group of subjects
by calculating the average values through time.InstallationYou can installlifetime-valuefromPyPIusingpiplike this:pip install lifetime-valueUsageThe following example code:importdatetimeimportpandasaspdimportlifetime_valueasltvevent_log_df=pd.DataFrame({'subject_id':['user_a','user_a','user_a','user_b','user_b','user_a'],'date':['2021-01-04','2021-01-04','2021-01-10','2021-01-05','2021-01-07','2021-01-07'],'type':['registration','conversion','conversion','registration','conversion','conversion'],'value':[0,10,5,0,7,1],})event_log_df['date']=[datetime.datetime.strptime(item,"%Y-%m-%d").date()foriteminevent_log_df.date]df_result=ltv.from_event_log(event_log_df,confidence_level=0.8)print(df_result)Will return:time  value  confidence_interval_left_bound  confidence_interval_right_bound
0     0    5.0                             0.0                             10.0
1     1    5.0                             0.0                             10.0
2     2    8.5                             7.0                             10.0
3     3    9.0                             7.0                             11.0
4     4    9.0                             7.0                             11.0
5     5    9.0                             7.0                             11.0Note that the results of the confidence intervals could vary, because they
are estimated with a probabilistic resampling technique.
Package: life-web-ui
Web UI for Conway Game of LifeThis package is a Web interface for packageconway-life.InstallationUse PyPi packagelife-web-uipython3-mpipinstall--upgradelife-web-uiUsagePackage installs an executable scriptlife-start(via commonentry_pointsconfiguration option,
so depending on your local settings it may or may not be in your$PATH)Running this command will start a local server and open it in the default browser. To exit,
pressCtrl-Cto quit the server and close the browser tab.life-start [-h] [--log {debug,info,warning,error,critical}] [-p PORT]
           [--cell PIXELS] [--space PIXELS] [--padding PIXELS] [-d]

Run Web UI for Game of Life

optional arguments:
  -h, --help            show this help message and exit
  --log {debug,info,warning,error,critical}, --log_level {debug,info,warning,error,critical}
                        Logging level (default = debug)
  -p PORT, --port PORT  Port (default = 13882)
  --cell PIXELS, --size PIXELS
                        Size of cell in pixels (default = 20)
  --space PIXELS        Spacing between cells in pixels
  --padding PIXELS      Canvas padding in pixelsImplementation noteslife-startwill run a local Flask server. All computations are done in the server
(not in the browser), synchronously on theStepcommand and asynchronously onWalkorRun.
Asynchronous execution is done with a background Python thread with results polled by the browser.
(Walkis different fromRunin the background thread being suspended between polls).There is also a short-lived background thread on startup to open Web browser (after a short delay
to make sure server has had time to start). This won't happen if-d/--devoption is used (see below).DevelopmentFor testing purposes, start the server with this command:FLASK_ENV=development<VENV_ROOT>/bin/python3<GIT_ROOT>/py-web/src/life_web_ui/__init__.py-d--logdebugVirtual environment installed underVENV_ROOTmust have all dependencies listed insetup.cfgconfiguration file for the package (install_requires).
Package: liffpy
liffpyIt is a package that allows you to manipulate LIFF(Line Frontend Framework) by Python.Caution■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■
This branch is forAlpha Version.This package has little or no testing
□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□How to useExample# -*- coding:utf-8 -*-fromliffpyimport(LineFrontendFrameworkasLIFF,ErrorResponse)defmain():liff_api=LIFF("YOUR_CHANNEL_ACCESS_TOKEN")try:# If you want to add LIFF appliff_id=liff_api.add(view_type="compact",view_url="https://{YOUR LIFF-SITE}")# 400 Error or 401 Errortry:# If you want to update LIFF appliff_api.update(liff_id,view_type="full",view_url="https://{YOUR LIFF-SITE}")exceptErrorResponseaserr:# 401 Error or 404 Errorprint(err.message)returnexceptErrorResponseaserr:# 401 Error or 404 Errorprint(err.message)returntry:# If you want to get all LIFF appsapps_info=liff_api.get()forapp_infoinapps_info:try:# If you want to delete LIFF appliff_api.delete(app_info["liffId"])exceptErrorResponseaserr:# 401 Error or 404 Errorprint(err.message)returnexceptErrorResponseaserr:# 401 Error or 404 Errorprint(err.message)returnif__name__=='__main__':main()APILineFrontendFramework__init__(self, channel_access_token)Create a new LineFrontendFramework instance.liff_api=add(view_type="compact",view_url="https://{YOUR LIFF-SITE}")add(self, view_type, view_url)Adds an app to LIFF. You can add up to 30 LIFF apps on one channel.liff_id=LineFrontendFramework('YOUR_CHANNEL_ACCESS_TOKEN')view_typenamemean"compact"50% of the screen height of the device"tall"80% of the screen height of the device."full"100% of the screen height of the device."Add LIFF app" inhttps://developers.line.me/ja/reference/liff/update(self, liff_id, view_type, view_url)Updates LIFF app settings.liff_api.update(liff_id,view_type="full",view_url="https://{YOUR LIFF-SITE}")view_typenamemean"compact"50% of the screen height of the device"tall"80% of the screen height of the device."full"100% of the screen height of the device."Update LIFF app" inhttps://developers.line.me/ja/reference/liff/get(self)Gets information on all the LIFF apps registered in the channel.liff_api.get()"Get all LIFF apps" inhttps://developers.line.me/ja/reference/liff/delete(self, liff_id)Deletes a LIFF app.liff_api.delete(liff_id)"Delete LIFF app" inhttps://developers.line.me/ja/reference/liff/
Package: lift
Lift Integration-Functional Testing - A meta test frameworkUsually, there is not much to discuss when writing unit tests.They have to use the same programming language as the code they are testing
and most languages have a set of dedicated test frameworks that you may chose from.However, functional and integration tests are more often a bunch of
scripts/executables written in different languages.For example, you may prefer to use shell scripts to test a web-service
(eg. viacurl) and a Python program to interact with Python modules.And if C/Ruby/Perl/PHP/whatever is more suited to some of your test cases,
you want to use these languages too without having to write the full test suite with it.Currently, most projects seem to have either multiple functional/integration
test suites (re-using different unit testing frameworks) or internal solutions
to group all the tests executable together in a more or less clean way.Lift provides an integration/functional test platform which handlesexecutabletests easily and generically.FeaturesLift only deals withexecutablesand their return code→ A particular test can be written in the language that fit it the mostTest declaration in a simple YAML syntax→ No need to learn a programming language to integrate a test in a suiteEasily declare a test as running locally or on a remote machineRemote tests: upload needed assets automatically and cleanup afterwardNaturally organize a test suite in multiple sub-folders/sub-test suitesEasily run a sub-test suite or specific tests from the command linePass environment variables to testsInheritance of remotes and environment across sub-test suites→ For example, remotes can be defined in the top folder and used belowOnly one command to run all or specific tests:liftExport XUnit reports, for easy integration with Jenkins & friendsDocumentationThedocfolder contains man pages.ExampleFor a fully commented example of a lift test suite (which can also be seen as
a functional test suite for Lift itself), see theexamplefolder.InstallationUsesudo python3 setup.py installIf you want to build and install the man pages, run:sudo rst2man doc/lift.rst /usr/share/man/man1/lift.1
sudo rst2man doc/lift.yaml.rst /usr/share/man/man1/lift.yaml.1DependenciesPython 3 (>= 3.4)python3-yamlpython3-paramikopython3-docutils (for man pages)python3-junit.xmlHome pagehttps://github.com/Malizor/liftLicenseGNU General Public License (GPL) version 2+Please refer to the COPYING file.
Package: lifter-api-wrapper
Lifter API WrapperThis is a wrapper for making calls toLifter API.Getting StartedYou can install this package usingpipor your favourite package manager, e.g.pipenv,poetry.pipinstalllifter-api-wrapper# example using pipenvpipenvinstalllifter-api-wrapperYou will also need an API key to have complete functionality. I suggest storing this as a.envfile, and remember to add this to your.gitignoreso you don't share this to a public repository by accident.# .envAPI_TOKEN=KeyGoesHereIf you usepipenv, then the key is loaded as a environment variableAPI_TOKENautomatically. Otherwise you might have to use a library likedotenv.You can simple create an object like so:fromlifter_apiimportLifterAPIimportoslifter_api=LifterAPI(auth_token=os.getenv("API_TOKEN"))# this will use default version, v1# you can specify the versionlifter_api_version1=LifterAPI(version="v1",auth_token=os.getenv("API_TOKEN"))DocumentationComprehensive documentation can be found here.For Local DevelopmentFor local development, you will need to clone theAPI from here.You will need to set a environment variable,LOCAL_DEVELOPMENT=1and it's a good idea to put this in the.envfile. This will ensure the locally hosted API will be used and not the live API.The default URL for the locally hosted API ishttp://localhost:8000. Alternatively, you can define the url to your liking:LifterAPI(url="http://localhost:8001").gitclonehttps://github.com/WeightliftingNZ/lifter-apicdlifter-api

makerunThis will run a server and allow you to run tests for this wrapper.ContributionPlease checkout CONTRIBUTING.mdif you interested in contributing.
Package: liftover
python liftover utilityConverts point coordinates between genome assemblies.
Inspired bypyliftover, this
offers a few advantages:~5X faster, and lower memory requirements, as loading the chain file and
converting coordinates is implemented in c++.dictionary style conversion, as in access converted coordinates viaconverter[chrom][pos]InstallationInstall via pip:pip install liftoverUsagefromliftoverimportget_lifterconverter=get_lifter('hg19','hg38')chrom='1'pos=103786442converter[chrom][pos]# other synonyms for the lift callconverter.convert_coordinate(chrom,pos)converter.query(chrom,pos)# alternatively create a converter directly from a chainfilefromliftoverimportChainFileconverter=ChainFile('/home/user/hg18ToHg38.over.chain.gz','hg18','hg38')converter[chrom][pos]
Package: liftover-bam
Lifting over bamSometimes for amplicon sequencings, we would like to map reads to the amplicon sequence only but bringing them back to genomic coordinates for easy variant calling and viewing.Let's say we have a gene inchr1:100-1000, and we would first extract this locus from the genome fasta file to make a new fasta record with name>chr1:100-1000, this can be done with:echo "chr1:100-1000" | samtools faidx -r - genome.fa > gene.faand map the reads to this single gene fasta file withbwaorbowtie2to make a bam alignment file:bwa mem gene.fa query.fq | samtools view -b > gene.bamSo what if you want to put these alignments back to the genomic coordinates after that?Theliftover_bam.liftoverfunction is trying to solve this problem in pure python!gene_bam="gene.bam"
genome_bam="any.bam_file_that_maps_to_the_genome"
out_bam="where_you_want_your_output_bam_file_to_be"
liftover(gene_bam, genome_bam, out_bam)
Package: lifx-cli
The Unofficial LIFX CLI██      ██ ███████ ██   ██      ██████ ██      ██
██      ██ ██       ██ ██      ██      ██      ██
██      ██ █████     ███       ██      ██      ██
██      ██ ██       ██ ██      ██      ██      ██
███████ ██ ██      ██   ██      ██████ ███████ ██This project is not affiliated with or endorsed by LIFX.Installationpip install lifx-cliAuthenticationAuthentication is done using your token stored in~/.keys. This can be configured manually or by runninglifx --configure.Example~/.keysinifile:[lifx]
token = FAKE_TOKENAlternatively, you can override this value by setting theLIFXenvironment variable:export LIFX=FAKE_TOKENRefer to thedocumentationin order to generate your own token.Targeting LightsThe LIFX CLI primary uses device/group/scene IDs to operate, however LIFX does provide multiple options for the light 'selectors'. While not yet officially available via the CLI, you can tap into these options by prefacing your light ID accordingly (if there are spaces in the name, simply enclose in").lifx lights --toggle all
lifx lights --toggle "label:Left Lamp"
lifx lights --toggle "group: Upstairs Lights"
lifx lights --toggle "location_id:1d6fe8ef0fde4c6d77b0012dc736662c"
lifx lights --toggle "location:Home"Finding the Proper IDIn order to get a listing of device and group IDs, simply run--listwith thelightssub-command.lifx lights --listIn order to get a listing of scene IDs, run the same command forscenes.lifx scenes --listSetting colorsColors can be set by name, e.g.red,yellow, but the CLI also supports all methods to set the color that the API supports.In order to see a full list of supported methods runlifx colors --list. You can also validate a color's HSBK(hue, saturation, brightness, and kelvin)vialifx colors --color red.
Package: lifx-cmd
LifX command line utility to change the state of your lifx bulb. Essentially a wrapper for thepylifxpython module.Supports powering on/off, changing RGB/HSB color and temperature.Free software: BSD licenseInstallationThe easiest way to install this utility is using pip:$pipinstalllifx-cmdAlternatively you can install by downloading this github repo and installing it manually:$gitclonehttps://github.com/MichaelAquilina/lifx-cmd$cdlifx-cmd$pythonsetup.pyinstallSetupAssuming you’ve already connected your lifx bulb to your home network, you need to specify the master bulb you are
communicating with.The easiest way to do this is by first running thelifx-discoverutility command that comes with this package:$lifx-discover'wlan0'interface(broadcastaddress192.168.0.255)IPAddress:192.168.0.38MACAddress:03-1F-7B-7B-64-F6Enter the discovered MAC address to a.lifxfile in your home directory:$echo"03-1F-7B-7B-64-F6">"~/.lifx"The command utility will automatically search for this file on execution. Alternatively you can specify the MAC address from
the environment variable LIFXBULB:$exportLIFXBULB="03-1F-7B-7B-64-F6"Finally, you can simply specify the mac address as a command line parameter:$lifx--bulb"03-1F-7B-7B-64-F6"poweronFeaturesPower your bulb on and off:$lifxpoweron$lifxpoweroffChange its RGB state:$lifxrgb100# Red light$lifxrgb010# Green light$lifxrgb001# Blue light$lifxrgb101# Magenta lightetc…Same approach can be taken with HSB. For example:$lifxhsb011The temperature of the bulb can also be set to yellow tinge or pure white LED:$lifxtemperature65535# bright white$lifxtemperature0# classic yellowBy default the bulb is set to fade in changes sent over a period of 1 second. You can change this with the -f flag:$lifx-f0rgb010# Immediately change to green$lifx-f10temperature65535# Change to white over a period of 10 secondsHistory0.2.3 (2016-02-16)Add lifx-discover command to discover bulbsAdd better help and description fieldsOther minor improvements0.2.0 (2015-06-21)Add lifx-discover command for an easy way of discovering master bulbs on your network0.1.2 (2015-06-21)Don’t fail if only ~/.lifx is available0.1.1 (2015-06-20)Add missing read from ~/.lifx file functionality0.1.0 (2015-06-20)First release on PyPI.
Package: lifx-control-panel
LIFX-Control-PanelLIFX Beam Support Coming Soon!LIFX-Control-Panel is an open source application for controlling your LIFX brand lights. It integrates simple features,
such as monitoring and changing bulb color, with more advanced ones, like:Average Screen ColorColor EyedropperCustom color paletteKeybindingsColor Averaging Demo (Click for Video):The application usesmclarkk'slifxlanmodule to
discover and send commands to the lights.Quick StartThere are23ways to install:Go over toreleasesand download the latest.exefile.Runpip install lifx-control-panel. To start runpython -m lifx_control_panel.Head on over toSourceForgeTheLIFX-Control-Panel-debug.exeis a debug version that runs with a console in the background, and uses a verboselifxlannetwork logger.LIFX-Control-Panel-demo.exefeatures several "Dummy" bulbs in addition to any real devices on your network. You can use
this distribution to test the software on computers that do not have a LIFX device on the LAN.Starting the program takes a moment, as it first must scan your LAN for any LIFX devices.Running the source codeYou can now install through PyPI, by runningpip install lifx-control-panel. This will automatically install dependencies.To manually install the dependencies, runpip install -r requirements.txt. PyHook3 has given me some grief installing from pip
in the past, but your millage may vary.To run the code from source, simply runpython gui.pywfrom the command line. To run with "Dummy" devices included,
runpython dummy_devices.py.BuildingLIFX-Control-Panel uses PyInstaller. After downloading the repository, open a command window in theLIFX-Control-Paneldirectory, and runpyinstaller __main__.pyw. This should generate the necessary file structure to build the project.
Note: Deletegui.spec, we will be using one of the following.specfiles included in the repository:mainThis is the file that is used to build the main binary. The console, as well as verbose logging methods, are disabled.debugThis spec file enables the console to run in the background, as well as verbose logging.demoThe demo mode simulates adding several "dummy" lights to the LAN, allowing the software to be demonstrated on networks
that do not have any LIFX devices on them.To build the project, simply open a command window in the same folder and runbuild_all.batin the command prompt. It will
callpyinstalleron all 3specfiles previously mentioned. This should generate an.exein the/distfolder of the project.If you need help using PyInstaller, more instructions are locatedhere.Testing progressI have currently only tested on the following operating systems:Windows 10and on the following LIFX devices:LIFX A19 Firmware v2.76LIFX A13 Firmware v2.76LIFX Z   Firmware v1.22LIFX Mini White Firmware v3.41FeedbackIf you have any comments or concerns, please feel free to make a post on theIssues page.If you enjoy LIFX-Control-Panel, please Like and leave a review onAlternativeTo.DonateLIFX-Control-Panel will always be free and open source. However, if you appreciate the work I'm doing and would like to
contribute financially, you can donate below. Thanks for your support!
Package: lifx-lib
lifx-libA Python 3 library able to encode/decode Lifx (lan) messages.It can be used with an asynchronous or synchronous client.ExamplesEncode>>>importlifx>>>body=lifx.lan.light.SetColor()>>>header=lifx.lan.header.make(body.state)>>>body.rgb=(0,255,0)>>>body.kelvin=3500>>>body.duration=1024>>>msg=lifx.lan.Msg.encode(header,body)>>>msg[0x31,0x00,0x00,0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x00,0x00,0x00,0x00,0x55,0x55,0xFF,0xFF,0xFF,0xFE,0xAC,0x0D,0x00,0x04,0x00,0x00]Encode from a dictionary>>>importlifx>>>dictionary={"hue":335,"saturation":90,"brightness":90,"kelvin":3500,"duration":1000,..."transient":True,"period":180000,"cycles":30,"skew_ratio":0.5,"waveform":"sine"}>>>body=lifx.lan.light.State_Factory.make("SetWaveform",dictionary)>>>header=lifx.lan.header.make(body.state)>>>msg=lifx.lan.Msg.encode(header,body)>>>msg[0x39,0x00,0x00,0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x67,0x00,0x00,0x00,0x00,0x01,0x38,0xEE,0x66,0xE6,0x66,0xE6,0xAC,0x0D,0x20,0xBF,0x02,0x00,0x00,0x00,0xF0,0x41,0x00,0x00,0x01]Decode>>>importlifx>>>msg=lifx.lan.Msg.from_bytes([0x58,0x00,0x00,0x54,0xB9,0x71,0x5D,0x07,0xD0,0x73,0xD5,0x12,0x1A,0xF1,0x00,0x00,0x4C,0x49,0x46,0x58,0x56,0x32,0x00,0x4D,0x18,0x52,0x42,0x1E,0xB5,0xFC,0x82,0x14,0x6B,0x00,0x00,0x00,0x71,0x7E,0xCC,0x4C,0x09,0x57,0xAC,0x0D,0x00,0x00,0xFF,0xFF,0x4C,0x49,0x46,0x58,0x20,0x42,0x75,0x6C,0x62,0x20,0x31,0x32,0x31,0x61,0x66,0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00])>>>(header,body)=msg.decode()>>>header.type<State.state_light:107>>>>body.kelvin3500>>>body.rgb(61,87,86)>>>str(body)'State {power: 65535, hue: 178, saturation: 30, brightness: 34, kelvin: 3500, rgb: (61, 87, 86), label: LIFX Bulb 121af1}'Decode to a dictionary>>>importlifx>>>msg=lifx.lan.Msg.from_bytes([0x39,0x00,0x00,0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x67,0x00,0x00,0x00,0x00,0x01,0x38,0xEE,0x66,0xE6,0x66,0xE6,0xAC,0x0D,0x20,0xBF,0x02,0x00,0x00,0x00,0xF0,0x41,0x00,0x00,0x01])>>>(header,body)=msg.decode()>>>header.type<State.set_waveform_light:103>>>>factory=lifx.lan.light.Description_Factory()>>>s=factory.make(body)>>>s[0]'SetWaveform'>>>s[1]['waveform']'sine'Getting Startedpip install lifx-libDiving InDocumentationContributingPull requests are welcome!.Licenselifx-lib is licensed under the MIT license.
Package: lifx-photons-arranger
This is a web UI for arranging the positions of a number of LIFX Tiles relative
to each other.It is build on top ofPhotonsand once
installed can be run with:lifx lan:arrangeDoing this will start a server and then open your web browser to show a web UI
for arranging the tiles. The tiles will each be given a different pattern with
a white line at the bottom of the tile.Clicking on a panel will highlight that panel in the web interface and on the
tile itself.Moving a tile will change theuser_x/user_yproperties on the tile and make
the tile glow.You can have multiple tabs open to the server and each tab will be in sync with
each other. Once all tabs are closed, the tiles will return to the colours they
had before the arrange was started.This can be installed with:pip3 -m pip install lifx-photons-arranger