Saravanan666/pypi-org huggingface dataset:
Package: pysktb
Scientific Python package for solving Slater Koster tight-binding hamiltonian. A python package in development for creating and solving slater koster tight-binding hamiltonians for various 1D 2D and 3D systems from topological insulators to strong correlations.DocumentationDocumentation can be found athttps://pysktb.readthedocs.ioFeaturesGenerate s,p,d interactions in any given latticeTotal energyfor insulators and semimetalsSpecify range of interaction with more then Nearest neibghorSpin Polarized calculationsSpin orbit coupling(only for p orbitals as of now)Plot orbital weighted colorplotsIntegration withpymatgenstructresJIT optimized with numbaParallelization on kpointsInstallationpip install pysktbExamplesExample usage shown inexamples.ipynb1D chain of sp (example of 1D topological Crystiline insulatorSSH)with orbital projection on sDOSGraphene and band colorplot in BZIntrinsic Spin-Orbit-Coupling Rashba effect in Halide PerovskitesBuckled antimony Sbpreprint of Dirac cones merging in 2D Sbhttps://arxiv.org/abs/1912.03755preprint of Higher Order Topological states in 2D Sbhttps://arxiv.org/abs/2003.12656Low buckled Sb Surface states with SOC - Topological Crystalline InsulatorOptimizedwithjit- Parallelized over kFeatures to be addedComplete pymatgen integration (high on priority)Berry phase calculation (high on priority)already implemented need to interfaceParallelization on kpointsand orbitals.scipy sparse matrix optimizedSpin Orbit Coupling for d,fBogoliubov-de-Gennes (BdG) solutions for the given system for SuperconductivityInterface withASEstructuresCreate finite structures and slabs for Topological calculations within the code(requires pymatgen right now)Greens function DOSConvert all operations to sympy, so that one can output analytical Tightbinding matrix elements for ease of accessLow energy k.p hamiltonian from sympyCitationIf you are using the code, please consider citing it with the followig bib@misc{https://doi.org/10.5281/zenodo.4311595,doi={10.5281/ZENODO.4311595},url={https://zenodo.org/record/4311595},author={Radha,SantoshKumar},title={santoshkumarradha/pysktb:TightbindingElectronicstructurecodes},publisher={Zenodo},year={2020},copyright={OpenAccess}}LicenseMIT
Package: pyskydl
# pyskydl
The lightweight PyTorch wrapper for high-performance AI research. Scale your models, not the boilerplate.# issue汇总
[import tensorflow is very slow #37729](https://github.com/tensorflow/tensorflow/issues/37729)
[Pytorch seems very slow on CPU](https://discuss.pytorch.org/t/pytorch-seems-very-slow-on-cpu/94360)
Package: pyskyq
A Python library for controlling a SkyQ Box.IntroductionThis library aims to eventually provide API access to theSky Q Set Top Box.  It
is only tested on Python 3.7 and uses the newer async support offered by this version
of Python.It uses theexcellenttrioasync library and so knowledge of this is advised.It is still a work in progress, but what is here, works.InstallingTo install:pipinstallpyskyqUsageThere are currently three main capabilities provided by the library.Pressing buttons on the remoteHere is how to emulate a button-press on the SkyQ Remote. See the documentation
for the classREMOTECOMMANDSfor the various buttons that can be pressed.frompyskyqimportRemote,RCMDpress_remote('skyq',RCMD.play)Reacting to status changes on the boxHere is how to set up an async context manager that can be used to react to
changed events on the box..frompyskyqimportget_statusasyncdefreport_box_online():"""Report whether the SkyQ is online or not."""# pylint: disable=not-async-context-managerasyncwithget_status('skyq')asstat:whileTrue:ifstat.online:print('The SkyQ Box is Online ')else:print('The SkyQ Box is Offline')awaittrio.sleep(1)try:print("Type Ctrl-C to exit.")trio.run(report_box_online)exceptKeyboardInterrupt:raiseSystemExit(0)Loading and interrogating channel dataGetting access to channel data requires initialising anEPGobject. Once
this is done, you need to load the channel data from the box using theEPG.load_skyq_channel_data()method.To access this data useEPG.get_channel(). See the method’s documentation
for the full list of available attributes.frompyskyqimportEPGasyncdefmain():"""Run main routine, allowing arguments to be passed."""pargs=parse_args(args)epg=EPG('skyq')# replace with hostname / IP of your Sky boxawaitepg.load_skyq_channel_data()# load channel listing from Box.all_72_hour=XMLTVListing('http://www.xmltv.co.uk/feed/6715')asyncwithtrio.open_nursery()asnursery:nursery.start_soon(all_72_hour.fetch)epg.apply_XMLTVListing(all_72_hour)print('Channel Description from the SkyQ Box:')print(epg.get_channel_by_sid(2002).desc)print('Channel XMLTV ID from the XMLTV Feed:')print(epg.get_channel_by_sid(2002).xmltv_id)print('Channel Logo URL from the XMLTV Feed:')print(epg.get_channel_by_sid(2002).xmltv_icon_url)if__name__=="__main__":trio.run(main)DocumentationPlease refer to the documentation athttps://bradwood.gitlab.io/pyskyq/ContributionsContributions are welcome. Please fork the project onGitLabNot GitHuband
raise an issue and merge request there.CreditsCode and ideas obtained from:https://github.com/dalhundal/sky-remotehttps://gladdy.uk/blog/2017/03/13/skyq-upnp-rest-and-websocket-api-interfaces/Thank you to those individuals for their contributions.
Package: pyskyqhub
pyskyqhubPython module for accessing Sky Q hub and retrieving connected devicesIntroductionThis library enables access to SkyQ hub to pull back a list of devices connected to the hub, and their names/InstallingTo install:pip install pyskyqhubUsageBasefrom pyskyqremote import SkyQhub

hub = SkyQHub('192.168.1.254')
await hub.async_connect()hub.success_init will indicate for connection was succesful or notGet connected devicesdevices = await skyhub.async_get_skyhub_data()Will return an object such as below:[
   {'mac': '68:xx:7b:cc:xx:5c', 'name': 'UNKNOWN', 'connection': 'Wireless'},
   {'mac': '70:xx:57:a3:xx:f0', 'name': 'UNKNOWN', 'connection': 'Cabled'},
   {'mac': 'e4:xx:6e:44:xx:7d', 'name': 'Laptop', 'connection': 'Wireless'},
   {'mac': '20:xx:ed:c5:xx:72', 'name': 'SKY+HD', 'connection': 'UnKnown'},
   {'mac': '18:xx:30:bf:xx:e6', 'name': '09AA0xxxxxx02WV', 'connection': 'Wireless'},
   ...
]
Package: pySkyscanner
# PySkyscanner Wrapper
This Python 2.x wrapper was written at KairosHacks in 2015, and has remained compatible despite additions and changes to Skyscanner’s REST API.While this library is lacking in error handling, full coverage of the REST API, and being in pip, it can be helpful in getting a team started during a Hackathon or figuring out how to navigate some rather complicated and hefty API responses.Simply provide your API key when intantiating a client with SkyscannerClient(), or manually specify it when instantiating your client.## Files
* docs/pySkyscanner.py provides a basic test application to orient oneself
* client.py provides a usable client that will wrap requests to the Skyscanner API, plus getters for relatively non-intuitive response objects## Contact
If you have questions, feel free to raise an issue or contact me, and star this if you’ve found it useful. If it’s found useful, I’ll try to clean this up further in my spare time and this to the point where it can be put into a Python package repo.[Skyscanner API Reference](https://skyscanner.github.io/slate/#flights-live-prices)
Package: pyskytapapi
pyskytapapipyskytapapi contains some functions to facilitate the usage of skytap apis inside python modules or in command line.The source for this project is available here.Example of importing skytapapi inside a python module :import os
from pyskytapapi import skytapApi

iurl = "https://cloud.skytap.com"
ijson = "configurations.json"
imethod="POST"
iapi = "/configurations.json"
iuser= os.environ.get("SKYTAP_USER")
itoken = os.environ.get("SKYTAP_TOKEN")
message= skytapApi.runskytapApi(api=iapi, method=imethod, url=iurl, user=iuser, token=itoken, json=ijson )
print(message)Release notes1.0.0 Initial version1.0.2 Managing http error codes
Package: py-slack
py_slackbasic webhook messages, want interactivity nextCLIpython3 send_hook.py https://hook_url/xxxxx/xxxx string_of_txtIn CodeIn practice, I use this to send JSONs of Python objects. Here's how to use it in code:from send_hook import send_msg_hook

send_hook_msg(hook_url, msg, format_type)
#hook_url expects a string url with the appropriate protocol at the beginning, for example http:// or https://
#msg expects either a dictionary or a string
#format_type defaults to 'snippet', but can be set to 'plain'
Package: pyslackup
Slackup is a simple CLI Slack client.
It supports reading config from a config file, from environment variables and from parameters passed directly to the script.Slackup will read from file if one is passed with-f. If both “message” and file is specified, file input takes precedence. Use-f-to read from STDIN.Installationpip install-UpyslackupConfig~/.slackup.cfgor/etc/slackup.cfgwill be read if they exist.~/.slackup.cfgtakes precedence if it is found.slack_token: 'xoxp-YOUR-TOKEN-HERE'
slack_channel: '#slackup'
slack_username: 'slackup'
slack_emoji: ':robot_face:'Config can also be specified via environment variables. These will override config file entries if present:SLACK_TOKEN
SLACK_CHANNEL
SLACK_USERNAME
SLACK_EMOJI
SLACK_MESSAGEUsageusage: slackops [-h] [-v] [-c CHANNEL] [-t TOKEN] [-u USERNAME] [-s] [-f FILE] [message]

positional arguments:
  message               message to post to slack

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         increase output verbosity
  -c CHANNEL, --channel CHANNEL
                        specify channel to post to
  -t TOKEN, --token TOKEN
                        set token to use
  -u USERNAME, --username USERNAME
                        set Slack username to post as
  -s, --snippet         Post message as attachment/snippet
  -f FILE, --file FILE  read message from file or stdinExamples# Command line usage example
echo 'HELLO' | slackops -c 'someotherchannel' -f -
slackops "greetings fellow kids"
slackops -s -f inputfile.txt

# ...or used as a python module
from slackup import SlackUp
s = SlackUp()
s.post("ehlo world")
Package: pyslang
pyslang - Language bindings for slang, SystemVerilog parsing and compilation libraryslang is a software library that provides various components for lexing, parsing, type checking, and elaborating SystemVerilog code. pyslang exposes that library
to Python projects.Full documentation is available on the website:https://sv-lang.comInstallationpyslang can be installed like any other Python library, using (a recent version of) the Python package managerpip, on Linux, macOS, and Windows:pip install pyslangor, to update your installed version to the latest release:pip install -U pyslangor, to checkout and install a local build:git clone https://github.com/MikePopoloski/pyslang.git
cd pyslang
git submodule update --init --recursive
pip install .Example usageGiven a 'test.sv' source file:modulememory(address,data_in,data_out,read_write,chip_en);inputwire[7:0]address,data_in;outputreg[7:0]data_out;inputwireread_write,chip_en;reg[7:0]mem[0:255];always@(addressordata_inorread_writeorchip_en)if(read_write==1&&chip_en==1)beginmem[address]=data_in;endalways@(read_writeorchip_enoraddress)if(read_write==0&&chip_en)data_out=mem[address];elsedata_out=0;endmoduleWe can use slang to load the syntax tree and inspect it:importpyslangtree=pyslang.SyntaxTree.fromFile('test.sv')mod=tree.root.members[0]print(mod.header.name.value)print(mod.members[0].kind)print(mod.members[1].header.dataType)memory
SyntaxKind.PortDeclaration
reg [7:0]We can also evaluate arbitrary SystemVerilog expressions:session=pyslang.ScriptSession()session.eval("logic bit_arr [16] = '{0:1, 1:1, 2:1, default:0};")result=session.eval("bit_arr.sum with ( int'(item) );")print(result)3Contact & SupportIf you encounter a bug, have questions, or want to contribute, please get in touch by opening a GitHub issue or posting a message on Gitter.Contributions are welcome, whether they be in the form of bug reports, comments, suggestions, documentation improvements, or full fledged new features via pull requests.Licenseslang (and pyslang) is licensed under the MIT license:Copyright (c) 2015-2023 Michael PopoloskiPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Package: pyslice
Welcome to pyslice - dataset template engine’s documentation!pyslice is a specialized templating system that replaces variables in
a template data set with numbers taken from all combinations of a grouped
series of numbers. It creates a dataset from input template files for each
combination of variables in the series.The main function of pyslice is to provide utility functions for parametric
modeling. Parametric modeling is a process of varying many inputs to a model.
A drawback to parametric modeling is that there are usually hundreds to
thousands of data sets to prepare and a corresponding number of model runs.
pyslice will create the model data sets and manage the model runs, or place the
model runs in a queue managed by other software. pyslice is also useful in
establishing the sensitivity of a model to changing parameters.DocumentationReference documentation is athttps://timcera.bitbucket.io/pyslice/docs/index.htmlInstallationpippipinstallpyslicecondacondainstall-cconda-forgepysliceDevelopmentDevelopment is managed on bitbucket athttps://bitbucket.org/timcera/pyslice/overview.
Package: pyslid
Aboutpyslid is a python package that calculates numerical feature sets to describe the subcellular patterns in fluorescence microscope images.  The features can be used for image content-based searching in the Open Microscopy Environment using ricerca and OMERO.searcher.For more information about pyslid, please visithttp://murphylab.web.cmu.edu/software/pyslid/AuthorsIvan Cao-Berg, Baek Hwan Cho, Jennifer Bakal and Robert F. MurphyLane Center for Computational BiologySchool of Computer ScienceCarnegie Mellon Universityhttp://lane.compbio.cmu.edu/ReferencesB.H. Cho, I. Cao-Berg, J.A. Bakal, and R.F. Murphy (2012) OMERO.searcher: Content-based image search for microscope images. Nature Methods 9:633-634.
Package: pyslides
DescriptionPython-based tool for presentation-ready slidesInstallation & Usagepipinstall--upgradepyslidesmkdir-pexample_pyslides&&cdexample_pyslidesdownload_pyslides_examplepythonexample.py-oslides.pdfThe fileslides.pdfis created.Requirementslatex packagetype1cmCommunityFor bug reports and new ideas, feel free to join theMailing listExamplefrompyslides.presentationimportPresentationasPP=P(biblio_file='https://www.dropbox.com/s/6x55qbs8p0fb3yl/biblio.bib?dl=1')P.add_slide(model='title',title='An example of presentation with PySlides',\author='Name',\affiliation='Affiliation')P.add_slide(model='one_figure',\figure='https://wesaturate.s3.amazonaws.com/photos/zbihcy_silvestre90.jpg',\title='Example')P.add_citation('einstein1935can')P.add_slide()P.add_bullets(y=0.5,\text=[r'''Cats are cute''',r'''Especially this one'''])P.add_text(x=0.5,\y=0.1,\color='red',\text='$E=m^2$')P.add_figure(x=0.7,y=0.5,L=0.3,filename='https://wesaturate.s3.amazonaws.com/photos/ofinqs_shane1536.jpg')P.render()SeePDFSupportThis is a personal, unfunded project. If you like it, kindly consider adonation!AuthorGiuseppe Romano (romanog@mit.edu)
Package: pyslim
pyslimpyslimis a python module that provides a few extra tools for dealing with tree sequences
produced by SLiM and for preparing other tree seuqences for use with SLiM.
Most tree sequence functionality is provided bytskit.
Please seeour documentationfor more information.
(That link is to documentation for the last release release;
instead,the latestdocumentation
may have additional examples, but may also describe features you need to install from github to get.)InstallationTo installpyslim, dopip install pyslimor read the documentation for how toinstall from source.
Package: pyslingshot
Slingshot in PythonThis is a Python implementation of the Slingshot pseudotime algorithm (Street et al., 2018).
The original implementation is written in R:https://github.com/kstreet13/slingshot.A complete working example is located inslingshot.ipynb, using a synthetically generated dataset.Installation:pip install pyslingshotDeprecated versionOlder versions if pyslingshot (before v0.1.0) requires manually installingnumpy,scipy,sklearn, and my fork
ofpcurvepy(https://github.com/mossjacob/pcurvepy).ContributingFork & download sourceInstall requirements withpoetry install[1] Street, K., Risso, D., Fletcher, R.B., Das, D., Ngai, J., Yosef, N., Purdom, E. and Dudoit, S., 2018. Slingshot: cell lineage and pseudotime inference for single-cell transcriptomics. BMC genomics, 19(1), pp.1-16.
Package: pyslip
pySlip is a ‘slip map’ widget for wxPython.During my work writing geophysical applications in python I often wanted to
display a map that was very large - many hundreds of thousands of pixels in
width.  I searched around for a GUI solution that would work rather like Google
maps: tiled, layers, etc.  I couldn’t find anything that didn’t assume
browser+map server.  So I wrote my own wxPython widget.  This worked well for
cartesian self-generated maps and has been extended to handle non-cartesian
maps and tiles sourced from places like OpenStreetMap.It’s a poor thing, but solves my problem.  I’m placing it here in the hope that
someone else may find it useful.  If you find it useful, or make improvements
to it, drop me a line.The earlier 3.0.x release was for python 2.x only on Windows, Linux and macOS.
This version works with wxPython 4.0+ and Python 3.6+.  It may work on earlier
python 3 versions, but this has not been tested.  It has been tested on Linux
but not Windows or macOS, yet.The widget API is documented inthe wiki.InstallationYou install pySlip in the usual PyPi way: pip install pyslip .Before running thepyslip_demo.pyprogram you must copy the
pySlip/pyslip/examples/gmt_local_tiles.zip file to your home directory and unzip
it there.  That should create a directory namedgmt_local_tiles.
Package: pyslipper
SlipperA python package to fit data with P-splines.This implementation is built off Patricio Maturana-Russel (@pmat747)'s P-spline PSDhttps://github.com/pmat747/psplinePsdDocumentation:https://avivajpeyi.github.io/pyslipperGitHub:https://github.com/avivajpeyi/pyslipperPyPI:https://pypi.org/project/pyslipper/Free software: MITDeveloper setuppip install -e .[dev]
pre-commit installPush to branches -- ensure the workflow passes, and then merge to main.To make a release:gittag-avX.Y.Z-m"Version X.Y.Z release: <description>"gitpushorigin--tags
Package: py-slippi
Py-slippi is a Python parser for.slpgame replay files forSuper Smash Brothers Meleefor the Nintendo GameCube. These replays are generated by Jas Laferriere’sSlippirecording code, which runs on a Wii or theDolphinemulator.InstallationRequires Python >= 3.7. To install, run the following command (optionally inside avirtual environment):pip install py-slippiAPI DocsSee theModule Indexfor detailed API docs, starting withslippi.game.Usagepy-slippi supports both event-based and object-based parsing. Object-based parsing is generally easier, but event-based parsing is more efficient and supports reading partial or in-progress games.Object-based parsing:>>> from slippi import Game
>>> Game('test/replays/game.slp')
Game(
    end=End(
        lras_initiator=None,
        method=Method.CONCLUSIVE),
    frames=[...](5209),
    metadata=Metadata(
        console_name=None,
        date=2018-06-22 07:52:59+00:00,
        duration=5209,
        platform=Platform.DOLPHIN,
        players=(
            Player(
                characters={InGameCharacter.MARTH: 5209},
                netplay_name=None),
            Player(
                characters={InGameCharacter.FOX: 5209},
                netplay_name=None),
            None,
            None)),
    start=Start(
        is_frozen_ps=None,
        is_pal=None,
        is_teams=False,
        players=(
            Player(
                character=CSSCharacter.MARTH,
                costume=3,
                stocks=4,
                tag=,
                team=None,
                type=Type.HUMAN,
                ucf=UCF(
                    dash_back=DashBack.OFF,
                    shield_drop=ShieldDrop.OFF)),
            Player(
                character=CSSCharacter.FOX,
                costume=0,
                stocks=4,
                tag=,
                team=None,
                type=Type.CPU,
                ucf=UCF(
                    dash_back=DashBack.OFF,
                    shield_drop=ShieldDrop.OFF)),
            None,
            None),
        random_seed=3803194226,
        slippi=Slippi(
            version=1.0.0),
        stage=Stage.YOSHIS_STORY))Frame data is elided when you print games, but you can inspect a sample frame with e.g.game.frames[0].Event-driven API:>>> from slippi.parse import parse
>>> from slippi.parse import ParseEvent
>>> handlers = {ParseEvent.METADATA: print}
>>> parse('test/replays/game.slp', handlers)
Metadata(
    console_name=None,
    date=2018-06-22 07:52:59+00:00,
    duration=5209,
    platform=Platform.DOLPHIN,
    players=(
        Player(
            characters={InGameCharacter.MARTH: 5209},
            netplay_name=None),
        Player(
            characters={InGameCharacter.FOX: 5209},
            netplay_name=None),
        None,
        None))👉 You can pass a stream toparse, such assys.stdin.buffer! This is useful for e.g. decompressing withgunzip, or reading from an in-progress replay viatail -c+1 -f.
Package: py-slippi-stats
py-slippi-statsThis program is an attempt at recreating the Slippistatsmodule of the original Slippi javascript package usingpy-slippi. Most of it is just a translation of the slippi-js to python.InstallationSteps:(Optional) Create a virtual environment and activate it. On Windows, this should work:py -m venv my-python-env
 source my-python-env/Scripts/activateRun the following command to install py-slippi-stats:pip install py-slippi-statsUsageHere is a basic example of usage:import slippi
import slippistats

game = slippi.Game('mygame.slp')
stats = slippistats.overall.getGameStats(game)

print(stats)