Saravanan666/pypi-org huggingface dataset:
Package: powerline-travis-ci
powerline-travis-ciA light-heartedPowerlinesegment for fetching and showing the status
of the last build on travis. The segment will only be shown if the current directory contains a.travis.ymlfile.Keep in mind that powerline-travis-ci is in early, rapid development stage so its API/configuration format may change.RequirementsInstallationActivationConfiguration and CustomizationExamplesChangelogRequirementsPowerlineAtravis-ci.comAPI tokenInstallationpip install powerline-travis-ciActivationThe very minimum required to activate the segment is to add the following to your theme JSON:{
   "function": "powerline_travis_ci.latest_build_state",
   "args": {
        "token": API_TOKEN,
        "username": TRAVIS_USERNAME
    }
}and the following to your colorscheme JSON (the colors can be customized):"groups": {
      ...,
      "latest_travis_build_state": {
          "fg": "gray9",
          "bg": "gray2",
          "attrs": []
    }
}Configuration and CustomizationThe following optionalargsare available:ArgumentTypeDescriptionDefaultcanceled_textstringText or icon to show for thecanceledstate"Canceled"created_textstringText or icon to show for thecreatedstate"Created"errored_textstringText or icon to show for theerroredstate"Errored"failed_textstringText or icon to show for thefailedstate"Failed"for_current_branchbooleanIftruethe state shown is the state of the latest build of the checked out git branchfalsegit_pathstringOnly used iffor_current_branchistrue"git"passed_textstringText or icon to show for thepassedstate"Passed"post_state_textstringText or icon to append the state.If contains<travis_url>a clickable link to travis will be shown (if the supported by your terminal)""pre_state_textstringText or icon to prepend before the state.If contains<travis_url>a clickable link to travis will be shown (if the supported by your terminal)""received_textstringText or icon to show for thereceivedstate"Received"show_state_branchbooleanIftruethe name of the git branch will be shown along the statefalsestarted_textstringText or icon to show for thestartedstate"Started"Highlight GroupsIn addition to the genericlatest_travis_build_stategroup, each state can be customized independently with highlight grouplatest_travis_build_state_{state}.For example,"latest_travis_build_state_passed": {
    "fg": "white",
    "bg": "darkestgreen",
    "attrs": []
}If a specific state does not have a highlight group then the style of"latest_travis_build_state"group will be used.ExamplesDefault configurationCustomized text and highlight groups for "passed" and "failed" states{"function":"powerline_travis_ci.latest_build_state","args":{"token":API_TOKEN,"username":TRAVIS_USERNAME,"passed_text":"✔","failed_text":"❌","pre_state_text":"Travis: "}}"latest_travis_build_state":{"fg":"white","bg":"gray2","attrs":[]},"latest_travis_build_state_passed":{"fg":"white","bg":"darkestgreen","attrs":[]},"latest_travis_build_state_failed":{"fg":"white","bg":"darkestred","attrs":[]}Changelog0.1 - Nov. 6 2020Initial release
Package: powerline-watson
POWERLINE WATSONAPowerlinesegment shows the time tracked inwatson.ByMiguel de Dios Matias.InstallationUsing pippip install powerline-watsonConfigurationYou can activate the Powerline Slotmachine segment by adding it to your segment configuration,
for example in.config/powerline/themes/shell/default.json:{"function":"powerline_watson.status","priority":30},It shows a segment with time as hh:mm:ss and tags.Argumentsline (string): The string to format the content of segment.Default: "{time}({tags})⏲️"PlaceHolders:{time}: The time elapsed (as hh:mm:ss) in the task.{start}: The datetime when started the task.{tags}: The list of the tags.{project}: The project name.{human_time}: The time in human format example 'a minute ago'.notask (string): The string to show when watson is stopped.Default: "Free"LicenseLicensed underthe GPL3 License.
Package: powerline-xcodeversion
🛠️▶️ Powerline Xcode Version SegmentPowerline status prompt segment which displays the active version of Xcode.🤳🏻 UsageAdd thexcodeversionsnippet below to your powerline theme JSON file.{"segments": {"left": [+            {+                "function": "powerline_xcodeversion.xcodeversion",+                "priority": 60+            },...🔧 ConfigurationThe spacing and symbol in the xcodeversion section can be customized (or removed).
Add the following to your mainpowerline/config.jsonfile:{"segment_data": {+        "xcodeversion": {+            "args": {+                "format": "🛠  {}"+            }+        },...The example above shows the default format.
The{}will be replaced with the version number.💡 Remember to kill the powerline daemon withpowerline-daemon -kso that your changes will show up immediately while you test configuration changes.📄 LicenseThis repo is licensed under the MIT License. See theLICENSEfile for rights and limitations.
Package: powermanim
Manim extension with custom components, layouts and slide templates aimed to ease the development of live presentations.Installationpipinstallgit+ssh://git@github.com/lucmos/powermanim.gitQuickstartDevelopment installationSetup the development environment:gitclonegit@github.com:lucmos/powermanim.gitcdpowermanim
condaenvcreate-fenv.yaml
condaactivatepowermanim
pre-commitinstallRun the tests:pre-commitrun--all-files
pytest-vUpdate the dependenciesRe-install the project in edit mode:pipinstall-e.[dev]
Package: power-markets
Power MarketsThis package includes data from power markets in Europe.After installing the package, data is available as anintake catalog. As an example:importintakegeneration=intake.cat["markets"].generation(country="EL").read()available_capacity=intake.cat["markets"].capacity(country="EL").read()In addition, the package offers two CLI commands: one to download data from TSOs and one to extract datasets.The type of data to download can be:dispatchincludes the inputs and results of the day-ahead schedulingavailabilitiesincludes data about the available capacity for all dispatchable power
generation unitsreservoirsincludes data about the filling rates of the hydropower plantsntcincludes data about the net transfer capability for power imports and exports.The datasets to extract from the raw data can be:load: extracts the load dataset from thedispatchdatareserves: extracts the secondary reserves dataset from thedispatchdatacommitted: extracts the committed capacity dataset from thedispatchdataimports: extracts the power imports dataset from thedispatchdataexports: extracts the power exports dataset from thedispatchdatares: extracts the RES generation dataset from thedispatchdataavailable: extracts the available capacity dataset from theavailabilitiesdatareservoirs: extracts the water reservoir levels (for hydro plants) dataset from thereservoirsdatantc_imports: extracts dataset for total NTC (net transfer capacity) for imports from thentcdatantc_exports: extracts dataset for total NTC (net transfer capacity) for exports from thentcdata.Usepower-marketsfetch-hto see the arguments for thefetchcommand, andpower-marketsextract-hfor theextractcommand.Thepower-marketspackage can be installed using pip:pipinstallpower-markets
Package: powermate
This provides a basic library for using a Griffin Powermate Bluetooth controller with Python.Getting StartedBring up your Bluetooth interface:$ sudo hciconfig hci0 upDiscover your Griffin Powermate’s address:$ sudo hcitool lescan
00:12:92:08:07:B9 PowerMate BluetoothRun the demo to try to connect and display events from your Powermate:$ powermate-demo 00:12:92:08:07:B9
Connected to 00:12:92:08:07:B9
Clockwise
^C
Package: powermateusb
DescriptionThis is a cross-platform Python library for the USBGriffin PowerMate(don't think it will work with the Bluetooth
version). It is tested to work on both Windows and Linux. While it is two
completely separate implementations, they have the same interface. Both rely onasyncio.Picking a DeviceMultiple PowerMates can be used at once. ThePowerMateclass constructor
requires a path to the device. On Linux this will be something like/dev/input/event15. On Windows it will be something horrible like\\?\hid#vid_077d&pid_0410#6&1c38037f&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}.
Rather that type the path directly, you can usePowerMate.enumerate()which
returns a list of PowerMate device paths.CallbacksThis library works on a callback system. ThePowerMateconstructor takes
callback functions for when the knob is turned and when the button is pressed
(or released). These callback will be called on an asyncio event loop. Theturn_callbackshould take a single parameter that will be an integer number of
ticks the knob has turned. Postive means clockwise and negative means
counter-clockwise. Thebutton_callbacktakes a boolean that isTruewhen the
button is pressed andFalsewhen it is released.Examplefrom powermate import PowerMate

def on_turn(amount):
  print(f'Turned: {amount}')

def on_button(pressed):
  if pressed:
    print('Button pressed')
  else:
    print('Button released')

paths = PowerMate.enumerate()
if not paths:
  print('No PowerMates detected')
else:
  powermate = PowerMate(
      paths[0],
      turn_callback=on_turn,
      button_callback=on_button)LED ControlThe PowerMate has a somewhat controllable blue LED in it. It can either be solid
on or pulsing. When it is solid, you can adjust the brightness. When it is
pulsing, you can adjust the speed.To turn it solid on, callpowermate.set_led_solid(brightness)where the
brightness is 0-255 (default: 128).To cause it to pulse, callpowermate.set_led_pulse(speed, table, when_sleeping). Speed is from -255 to
255. 0 is its default speed (also 1 and -1). Positive numbers multiply its
default speed (2 is twice as fast, 3 is three times as fast, etc), and negative
numbers divide its default speed (-2 is half as fast, -3 is a third as fast,
etc). Thetableis 0-2, but I haven't noticed any difference.when_sleepingis a boolean that controls if it should continue to pulse when the device is
suppose to be asleep (violating the USB power management standards) or whether
to go into low-power mode.asyncio Event LoopThePowerMateclass requires an asyncio event loop to function. In the Linux
version, the events are polled on this event loop. In Windows the events are
polled on a thread, however in both versions the callbacks are called on the
event loop. By default PowerMate will use the current event loop when its
constructor is called. However, if you wish to specify another event loop
(perhaps one that is created but not started when PowerMate is constructed that
will be run on a separate thread), you can pass it to theloopparameter to
the contructor.Shutting DownCallingpowermate.close()will disconnect from the device and prevent further
event callbacks from being called.
Package: power-music
POWER MUSICPOWER MUSICis get a YouTube link to the Korean music siteSupport Music Site✔️Melon❌Bugs❌GenieSimple Example ProgramIt is convert music charts to youtube links with power-music melon.
Youtube link inidkeyimportpmmelon=pm.Controller(time='d',site='melon',song_code='GN0100')print(melon.get_ytdata())Melon Music Code TableSynthesisCatgoriesCodeGenreGN0000KoreanDM0000ForeignAB0000Korean MusicCatgoriesCodeBalladGN0100DanceGN0200Rap/Hip-hopGN0300R&B/SoulGN0400IndieGN0500Rock/MetalGN0600TrotGN0700Folk/BluesGN0800Foreign MusicCatgoriesCodePOPGN0900Rock/MetalGN1000ElectronicaGN1100Rap/Hip-hopGN1200R&B/SoulGN1300Folk/Blues/CountryGN1400Other popular genresCatgoriesCodeOSTGN1500JazzGN1700NewageGN1800J-popGN1900WorldMusicGN2000CCMGN2100Child/Tae-yyingGN2200Religious musicGN2300a-ak; korean musicGN2400
Package: powerpax
Powerpax: Utilities for JAXA collection of utility functions for JAX.Documentationhttps://powerpax.readthedocs.io/en/latest/Source Code:https://github.com/karlotness/powerpaxBug Reports:https://github.com/karlotness/powerpax/issuesInstallationInstall fromPyPIusing pip:$python-mpipinstallpowerpaxor fromconda-forge:$condainstall-cconda-forgepowerpaxThis should install required dependencies, but JAX itself may require
special attention, particularly for GPU support.
Follow theJAX installation instructions.LicenseThis software is distributed under the MIT license. See LICENSE.txt
for the license text.
Package: power-perceiver
power_perceiverMachine learning experiments for forecasting the electricity system (starting with solar)InstallationInstallation with condaWe recommend installingmambaand usingmamba env create -f base_environment.ymlinstead ofconda env create -f base_environment.yml.If installing on a platform without a GPU, then uncomment- cpuonlyinbase_environment.yml.condaenvcreate-fbase_environment.yml
condaactivatepower_perceiver# If training, then also install the dependencies listed in train_environment.yml:# See https://stackoverflow.com/a/43873901/732596condaenvupdate--filetrain_environment.yml--prune

pipinstall-e.
pre-commitinstallIf usingRanger21optimizer then please installRanger21 with my tiny little patch.To preventmamba update --allfrom trying to replace the GPU version of PyTorch with the CPU version,
add this to~/miniconda3/envs/power_perceiver/conda-meta/pinned:# Prevent mamba update --all from trying to install CPU version of torch.
# See: https://stackoverflow.com/a/70536292/732596
cudatoolkit<11.6Installation with pip onlyTo install the base config, use:pip install -e .To install the code necessary to train, use:pip install -e .[develop,train]Data pipelinesThere are two different data pipelines:power_perceiver.load_prepared_batches: Loads batches pre-prepared bynowcasting_datasetpower_perceiver.load_raw: Loads raw (well, intermediate) dataData pipeline for data prepared bynowcasting_datasetThe data flows through several steps, in order:EveryPreparedDataSourcesubclass loads a batch off disk and processes thexr.Datasetusing the sequence oftransformspassed into thePreparedDataSource's constructor. The processed data for everyPreparedDataSourcegoes into anXarrayBatch. The transforms live inpower_perceiver.transforms.<data source name>.pyPreparedDatasetthen processes thisXarrayBatchwith its list ofxr_batch_processors. Thexr_batch_processorsare processors which need to see across or touch multiple modalities at once while the data is still in an xarray Dataset.EachXarrayBatchis then converted to aNumpyBatchby thatPreparedDataSource'sto_numpymethod. Theto_numpymethod also normalises, converts units, etc.Finally,PreparedDatasetpasses the entireNumpyBatchthrough the sequence ofnp_batch_processors.About the name "power perceiver"Originally, when I started work on "Power Perceiver" 5 months ago, my intention was to useDeepMind's Perceiver IOat the core of the model. Right now, the model actually just uses a standard transformer encoder, not a Perceiver. But I plan to start using a Perceiver IO again within a month or two, when we start using more input elements than a standard transformer encoder can cope with!
Package: powerplan
powerplan (v0.1.0)Get windows power plan informationpowerplan is a new Python package to get information about your current windows power plan using subprocess module and to change your current power plan to a different one.FeaturesGet GUID of your current windows power planGet name of your current windows power planChange power plan to Power saver, Balanced or high performance.Installationpowerplan requiresPythonv3+ to run.Usageimportpowerplanname=powerplan.get_current_scheme_name()guid=powerplan.get_current_scheme_guid()print(name,guid)powerplan.change_current_scheme_to_powersaver()powerplan.change_current_scheme_to_balanced()powerplan.change_current_scheme_to_high()LicenseMITMade by Temal#5222
Package: powerplayer
Powerplayerhttps://pypi.org/project/powerplayer/A python based terminal music player
Inspired byPauloo27'sTunerOSTested in Windows 10(x86_64)
Should work in MAC and LinuxInstallationPrerequisitesVLC Media PlayerPython ^3.7WindowsOpen the powershell and typepip install powerplayerpip uninstall youtube_dl && pip install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dlLinux/MacOpen the terminal and typepip3 install powerplayerpip3 uninstall youtube_dl && pip3 install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dlUsageAfter installation, typepplayin the terminal
It is fine if the output is thisThen to play music from youtube, typepplay yt songnameThe output should look like this
Package: powerprofile
# PowerProfile![Build Status](https://github.com/gisce/powerprofile/actions/workflows/python2.7-app.yml/badge.svg)![Build Status](https://github.com/gisce/powerprofile/actions/workflows/python3.11-app.yml/badge.svg)Electric Power Curve and Profiles libraryLibray to manipulate easily profiles and operate with and between themAutomatic version with labelshttps://github.com/gisce/powerprofile/labels/majorhttps://github.com/gisce/powerprofile/labels/minorhttps://github.com/gisce/powerprofile/labels/patch
Package: powerpy
PowerPyPowerpy is a collection of small functions and classes for Python3, contains an implementation of common patterns and other simple functions to make your life a bit easier.InstallationThe package can be installed through pip:$ pip install powerpyor downloaded fromGitHub.ExamplesTo implement a simple type checking in your classes:frompowerpy.type_checkingimportEnsureTypesclassTest(EnsureTypes):def__init__(self):self.prop1=""self.prop2=123self.prop3=Nonet=Test()t.prop1="Hello"# OKt.prop1=123# Errort.prop3="World"# OKt.prop3=123# OkPartial application:frompowerpy.curryingimportCurrying@Curryingdefsimple_func(param1,param2):returnparam1+param2s1=simple_func("Hello")print(s1("Alice"))# HelloAliceprint(s1("Bob"))# HelloBob
Package: powerschoolapi-cars1n
PowerSchool API Python PackageThis Python package provides an easy-to-use interface for interacting with the PowerSchool API, allowing users to perform various operations such as retrieving student counts, student details, course counts, and more from a PowerSchool server.FeaturesGet student count for a specified school.Retrieve detailed student information.InstallationTo install the PowerSchool API package, use pip:pipinstallpowerschool-api-cars1nUsageHere's a quick start on how to use the PowerSchool API package:frompowerschoolapi_cars1nimportPS# Initialize the PowerSchool API clientps=PS()# Get the count of students in a schoolstudent_count=ps.get_student_count("school_dcid")print("Student Count:",student_count)# Get detailed information about a studentstudent_info=ps.get_student("student_id")print("Student Information:",student_info)ConfigurationBefore using the PowerSchool API, ensure that you have set up the necessary environment variables. Your .env file should look something like this.CLIENT_ID=CLIENT_SECRET=POWERSCHOOL_SERVER_URL="https://powerschool.example.com:443"ContributingContributions to the PowerSchool API package are welcome. Please follow these steps to contribute:Fork the repository.Create a new branch for your feature.Add your changes.Submit a pull request.LicenseThis project is licensed under the MIT License.ContactFor any queries or issues, please open an issue on the GitHub repository or contact me via email at14williamsc@gmail.comSemi-working featuresIf you have a powerschool plugin then the normal queries_root folder that is required can be taken into account when making calls to those user created endpoints.Here is how you would set it up.fromAccessTokenimportAccessTokenimportos# Create an AccessToken instance and get the access tokentoken_instance=AccessToken()access_token=token_instance.get_access_token()queries_root_path=os.path.join(os.getcwd(),"queries_root")data_access=DataAccess(access_token,school_dcid="1234",base_url=base_url,queries_root_path=queries_root_path,xml_file_name="the file name that is in your queries root folder")# User created path com.organization.attendance_manager.attendance.get_schwiftyresponse=data_access.fetch_data("attendance.get_schwifty",params={"date":"01/01/1999","schoolid":"1234",},method="POST")ic(response)
Package: powerschoollearning
Powerschool Learning APIThis is a simple asynchronous api for interfacing with powerschool learning.Installationpip install powerschoollearningWorks best.Exampleimportpowerschoollearningimportasyncioimportlogginglogging.basicConfig(level=logging.INFO)client=powerschoollearning.ps("<my refresh token>","lakesideblended.learning.powerschool.com")asyncdefmain():awaitclient.login()forschool_classinclient.classes:print(f'Found class{school_class.name}at{school_class.url}.')loop=asyncio.get_event_loop()loop.run_until_complete(main())This program will take a look at the user's classes and print every classes name and url.Refresh TokensSince logging into powerschool is handled via oauth, we use refresh tokens to authenticate the user, to get your refresh token push look in the network -> cookies tab of the development tab of a browser while you load powersscool.Not finished.This very much is not finished, and does not support a lot of stuff. This is a work in process.
Package: powerscribe
PyPowerscribe360This is a REST API implementation for Radiology Nuance PowerScribe 360 dictation system. This API will allow you to send and retrieve data points into pre-built custom fields that populates radiologist final report. For example, you can push radiation dose information into custom field that will populate the radiologist final report.Sample ImplementationThe following will allow you to connect to PowerScribe 360 server and send custom field to the radiologist report.frompowerscribeimportPowerscribeif__name__=='__main__':url='http://ps360ServerName/RadPortal'username="PowerScribe USERNAME"password="PowerScribe Password"accession="12345"field_name="CTRAD"field_value="29997"withPowerscribe(url)asps:ifps.sign_in(username,password):print("Signin successfully")ifps.set_custom_field(accession,field_name,field_value):print(f"Sent field name{field_name}and value{field_value}into accession{accession})else:print(f"Error sending field name{field_name}and value{field_value}into accession{accession}")else:print("Signin failed")
Package: powerset-generator
Python Power set generatorimportpowerset_generatorforeinpowerset_generator.subsets(["one","two","three","three"]):print(e)producesset()
{'one'}
{'three'}
{'two'}
{'one', 'three'}
{'one', 'two'}
{'three', 'two'}
{'one', 'three', 'two'}Note that the empty set,set()is included in the output
and that the function treats the duplicated input element"three"as if it appeared only once.
This is correct behavior the mathematical notion of power set.See the more complete (perhaps excessively so)documentationfor more details.CreditThe code for thesubsets()function is derived heavily fromAllen Downey'sStack Overflow answer.
Package: powersets
powersetsDescription.
The package powerset is used to: - Ã© uma funÃ§Ã£o criada para retornar combinaÃ§Ãµes Ãºnicas dos elementos em uma lista.InstallationUse the package managerpipto install powersetspipinstallpowersetsUsagefrompowersetsimportpowerset1powerset1.powerset(lista)AuthorDebora