Saravanan666/pypi-org huggingface dataset:
Package: bspcpy
bspcpyIt's a wrapper for the bspwm command line utilitybspc.bspwm is an awesome tiling window manager with a bunch of features, but when I need to develop some script that is a bit more advanced, there are not many options other than using a bash script(which I hate). So, to address this problem, I wrote this simple API.UsageSince everything has the same names as the original bspc, It should be very easy to use.For now, I have only implemented the query commandsnodes(selector:str)->Node_set()desktops(selector:str)->set[Desktop]monitors(selector:str)->set[Monitor]and the classes that represent nodes, desktops, and monitors.All query methods return Python sets, so it is possible to filter the nodes using set notation.frombspcimportqueryfloating_nodes=query.nodes('.floating')fornodeinfloating_nodes:if'firefox'innode.name:node.layout='tiled'This snippet finds all floating Firefox windows and puts them in tiled layout.I wrote an implementation of a scratchpad using bspcpy in theexamplesfolder.RequirementsxwininfoInstallationVia pippython-mpipinstallbspcpyUpgradepython-mpipinstall--upgradebspcpy
Package: bspcq
bspcq, q for queryAbspcanalyzer (utility forbspwm)This is a small program that prints a user friendly, visual representation, of
your currentbsptree.The aim is to assist in usingbspwmso new users have an easier time getting
into tiling window managers, and have some toys to play with.It's essentially the same as
running:bspcquery-M-m<monitor-name>|jqExcept there are fewer parameters, a less complex syntax to remember and an
intuitive visual.InstallationI'd recommend just copying the script from the root of this directory,bspcq,
and changing the shebang.gitclonehttps://github.com/aidenlangley/bspcq
mvbspcq/bspcq~/bin/bspcq# or ~/.local/bin/bspcqchmod+x~/bin/bspcqThen edit the shebang - my shebang:#! /usr/bin/env python3.10Your shebang might need to be be:#! /usr/bin/env python3DependenciesIn addition, some Python modules are required, as isxtitle.richrichis responsible for the nicely formatted tree.python -m pip install richxtitlextitleassists in getting the title name of a node/window in X.Requires C/C++ development tools, varies by distro.git clone https://github.com/baskerville/xtitle
cd xtitle
make && make installI've actually included it here, under contrib, so you can just copy it to~/bin.Viapipxhttps://pypi.org/project/bspcq/python-mpipxinstallbspcqUpgradepython-mpipxupgradebspcqUsage# Prints the full tree, including output from all monitors.bspcq# Provides a simpler view, perfect for finding window class names.bspcq-s# Grabs info on all nodes that belong to the specified domain.bspcq-M/D/N# For a simplified view.bspcq-M/D/N-s# Passes through a query to `bspc query` and prints our tree, valid identifiers# are names, ID's or the address output by `bspc -M/D/N`.bspcq-m/d/n<monitor/desktop/node-identifier>PreviewPlansMy goals currently are to:Alignbspcqas closely as possible withbspc query. I would like forbspcqto behave almost identically tobspc query- it just adds a visual
element.Remain as lean as possible. A nice-to-have feature would be 0 reliance on
external libraries, so I'd like to removerichand implement a way to display
thetreemyself.This was just an afternoon project that's turning into a week long project since
it's quite a lot of fun!
Package: bspice
Author:Behrouz SafariLicense:MITbspiceWorking with SPICE kernelsInstallationYou can install the latest version ofbspicefromPyPI:pip install bspiceThe requirements arenumpy,requestsandspiceypy.Download Kernelsimportbspiceasbsbs.download_kernels(overwrite=False,solsys=True,jupiter=True)Apparent position of Saturnimportbspiceasbsfromdatetimeimportdatetimet=datetime.utcnow()obs_loc=(7.744083817548831,48.58313582900411,140)adr='C:/Moi/_py/Astronomy/Solar System/kernels/'kernels=[adr+iforiinbs.main_kernels]kernels=kernels+[adr+'de440_2030.bsp']r,az,alt=bs.get_apparent(6,t,obs_loc,kernels)print(az,alt)Apparent position of Jupiter Moonsimportbspiceasbsfromdatetimeimportdatetimeimportmatplotlib.pyplotaspltt=datetime.utcnow()obs_loc=(7.744083817548831,48.58313582900411,140)adr='C:/Moi/_py/Astronomy/Solar System/kernels/'kernels=[adr+iforiinbs.main_kernels]kernels=kernels+[adr+'jup4_2030.bsp']bodies=[599,501,502,503,504]r_az_alt=bs.get_apparent_bodies(bodies,t,obs_loc,kernels,abcorr='LT+S')print(r_az_alt)fig,ax=plt.subplots()ax.scatter(r_az_alt[0,1],r_az_alt[0,2])ax.scatter(r_az_alt[1:,1],r_az_alt[1:,2])plt.show()Apparent position of the Sun during 24 hoursimportbspiceasbsfromdatetimeimportdatetimeobs_loc=(7.744083817548831,48.58313582900411,140)adr='C:/Moi/_py/Astronomy/Solar System/kernels/'kernels=[adr+iforiinbs.main_kernels]kernels=kernels+[adr+'de440_2030_earth_sun_moon.bsp']t1=datetime(2022,9,10)t2=datetime(2022,9,11)r_az_alt=bs.get_apparent_window(10,t1,t2,24,obs_loc,kernels,abcorr='LT+S')foriinr_az_alt:print(f'Az:{i[1]}||| Alt:{i[2]}')Local and absolute minimum angular positions of Sun and Moonimportbspiceasbst1='2022-01-01't2='2023-01-01'adr='C:/Users/H21/Desktop/Desktop/Behrouz/Astronomy/kernels/'kernels=[adr+'naif0012.tls',adr+'pck00010.tpc',adr+'de440s.bsp',]print('Local:')times=bs.conjunction(t1=t1,t2=t2,targ1='sun',targ2='moon',kernels=kernels)foriintimes:print(i)print('Absolute:')times=bs.conjunction(t1=t1,t2=t2,targ1='sun',targ2='moon',kernels=kernels,relate='ABSMIN')foriintimes:print(i)Local:
2022-01-02 18:08:14
2022-02-01 05:32:21
2022-03-02 17:49:18
2022-04-01 06:53:57
2022-04-30 20:41:32
2022-05-30 11:11:34
2022-06-29 02:19:09
2022-07-28 17:40:45
2022-08-27 08:34:53
2022-09-25 22:24:24
2022-10-25 11:00:06
2022-11-23 22:40:53
2022-12-23 09:52:10
Absolute:
2022-10-25 11:00:06
Package: bspred
Prediction of Bike Sharing Usage based on Citibike New York Data in 2018Please download and open the html files to see the plots. The available plots demonstrate the stations with the highest Departures and Arrivals.To install, please do:pipinstallbspredKey VariablesArrivals: number of trips that end at a station per day.Departures: number of trips that start at a station per day.Characteristic prediction: prediction of bike sharing usage at a specific location, given that there are no bike stations in a vicinity of the location.DependencykerasDescriptionThis is a project in progress.There are two kinds of prediction available. All predictions come with asymptotic 95% confidence intervals.importbspredimportnumpyasnpimportpandasaspddata=pd.DataFrame({'latitude':[40.75058535],'longitude':[-73.99468482]})Prediction of bike sharing usage without current Citibike stations.Please notice that this is not the true bike sharing usage, but rather an order of magnitude analysis.bspred.predict(data)The results will be:Arrivals = 826.452942,Departures = 839.163513.Prediction of bike sharing usage given the current active Citibike stations.bspred.predict_with_Citibike(data)The result will be a pandas dataframe of the predicted bike sharing usage at current bike stations and the newly added ones.The last row of the dataframe, which is the prediction of bike sharing usage at the new bike station, will be:Arrivals = 441.030067,Departures = 474.2624.If removing some current Citibike stations is desired, a list of the station names can be passed as remove_list:bspred.predict_with_Citibike(data,remove_list=[])The names can be extracted fromhttps://member.citibikenyc.com/map/.Or, to view the current Citibike trip history data, run:path=bspred.get_path()df=pd.read_csv(path+'/stations_reshaped.csv',sep=',',engine='python')df
Package: bspump-utils
Tiny subset of BSPumpInstallationpip installbspump-utilsUsagebselasticbselastic [-h] {load_index_template,cleanup,reopen,close,delete} ...

Manage ElasticSearch.

positional arguments:
  {load_index_template,cleanup,reopen,close,delete}
                        commands
    load_index_template
                        loads index templates into ElasticSearch
    cleanup             Closes old and deletes empty indexes
    reopen              reopen closed indexes in time range
    close               close open indexes in time range
    delete              delete indexes in time range

optional arguments:
  -h, --help            show this help message and exitbskibanabskibana [-h] [--verbose] [--silent]
              {export,import,decompile,compile,rename,document} ...

Manage Kibana object library and Kibana index in ElasticSearch.

  Example of use:

  bskibana.py export http://localhost:9200/ /tmp/kibana-index-exported.json
  bskibana.py decompile /tmp/kibana-index-exported.json /tmp/kibana-index-decompiled/ ./kibana/library/objects/
  bskibana.py compile /tmp/kibana-index-decompiled/ ./kibana/library/objects/ -o /tmp/kibana-index-exported.json
  bskibana.py import /tmp/kibana-index-exported.json http://localhost:9200/

  bskibana.py document -t ./kibana/library/templates/ ./kibana/library/objects/ -o /tmp/doc

positional arguments:
  {export,import,decompile,compile,rename,document}
                        commands
    export              exports a Kibana index to a file
    import              Imports a Kibana index from a file
    decompile           Decompile a Kibana index file into a library
    compile             Compile a Kibana index file
    rename              Change ids of Kibana index-pattern objects and fix
                        references.
    document            Generate a documentation

optional arguments:
  -h, --help            show this help message and exit
  --verbose, -v         Be verbose in the output
  --silent, -s          Don't print anythingLicenceBSPump-utils is an open-source software, available under BSD 3-Clause License.
Package: bspy
BSpyLibrary for manipulating and rendering B-spline curves, surfaces, and multidimensional manifolds with non-uniform knots in each dimension.TheSplineclass has a method to fit multidimensional data for
scalar and vector functions of single and multiple variables. It also has methods to create points, lines, circular arcs, spheres, cones, cylinders, tori, ruled surfaces, surfaces of revolution, and four-sided patches.
Other methods add, subtract, and multiply splines, as well as confine spline curves to a given range.
There are methods to evaluate spline values, derivatives, integrals, normals, curvature, and the Jacobian, as well as methods that return spline representations of derivatives, normals, integrals, graphs, and convolutions. In addition, there are methods to manipulate the domain of splines, including trim, join, reparametrize, transpose, reverse, add and remove knots, elevate and extrapolate, and fold and unfold. There are methods to manipulate the range of splines, including dot product, cross product, translate, rotate, scale, and transform. Finally, there are methods to compute the zeros and contours of a spline and to intersect two splines.TheSplineOpenGLFrameclass is anOpenGLFramewith custom shaders to render spline curves and surfaces. Only tested on Windows systems.TheDrawableSplineclass converts aSplineto a curve, surface, or solid that can be drawn in aSplineOpenGLFrame. Only 1D, 2D, and 3D splines can be converted.
Spline surfaces and solids with more than 3 dependent variables will have their added dimensions rendered as colors
(up to 6 dependent variables are supported).ThebspyAppclass is atkinter.Tkapp that hosts aSplineOpenGLFrame,
a listbox full of splines, and a set of controls to adjust and view the selected splines. Only tested on Windows systems.ThebspyGraphicsclass is a graphics engine to display splines.
It launches abspyAppand issues commands to the app for use
injupyternotebooks and other scripting environments. Only tested on Windows systems.The full documentation for BSpy can be foundhere, its GitHub project can be foundhere, a test suite can be foundhere, and
a set of examples, including a jupyter notebook, can be foundhere.Release 3.0 breaking changesRemoved accuracy as a member of SplineSpline.common_basis is now a static method (see documentation for details)Spline.least_squares changed arguments (see documentation for details)Spline.load always returns a list of splines
Package: bs_python_utils
bs-python-utilsMy Python utilities.Github repository:https://github.com/bsalanie/bs-python-utils/Documentationhttps://bsalanie.github.io/bs-python-utils/Release notes0.6.4 (November 26, 2023)Moved to Altair 5.0; made timing optional inbs_opt.0.6.3 (November 26, 2023)Updated statsmodels dependency.0.6.1 and 0.6.2 (November 18, 2023)Added a Matplotlib plot for discrete choice models, a boxplot for Altair, and a density plot for Seaborn.0.6 (November 9, 2023)Added matrix heatmap plot in Altair and Streamlit utility code.0.5.5 (October 23, 2023)Addedfstring***inbsutils.0.5.2 (August 16, 2023)Added two interpolation routines from values at the Chebyshev nodes inchebyshevmodule.0.5.1 (August 14, 2023)Added two functions to draw random samples inbsstatsmodule.0.5 (August 7, 2023)Added 1-dimensional root finding inchebyshevmodule.0.4.2 (August 2, 2023)Updated the docs.0.4.1 (July 23, 2023)Only print if verbose in bivariate quantiles.0.4 (July 22, 2023)Added bivariate quantiles and ranks à la optimal transportation.0.3 (July 21, 2023)Added in Numpy utils a function to set upper and lower triangle to a scalar;
andminimize_freeinbs_opt.0.2 (July 17, 2023)Fixed printing in accelerated gradient descent.0.1 (June 20, 2023)Addedgrid_functionand thechebyshevmodule.0.0.6 (May 9, 2023)Improved docs.0.0.5 (May 8, 2023)Addedfinal_sinbsutils.0.0.4 (May 2, 2023)Added Legendre polynomials and quantile routines inbsnputils.0.0.3 (April 24, 2023)Satisfied mypy.0.0.2 (April 24, 2023)Fixed main PyPI page.
Package: bsrgan
BSRGAN-Pip: Packaged version of the BSRGAN repositoryOverviewThis repo is a packaged version of theBSRGANmodel.Installationpip install bsrganBSRGAN UsagefrombsrganimportBSRGANmodel=BSRGAN(weights='kadirnar/bsrgan',device='cuda:0')pred=model.predict(img_path='data/image/test.png')Citation@article{li2022yolov6,title={YOLOv6: A single-stage object detection framework for industrial applications},author={Li, Chuyi and Li, Lulu and Jiang, Hongliang and Weng, Kaiheng and Geng, Yifei and Li, Liang and Ke, Zaidan and Li, Qingyuan and Cheng, Meng and Nie, Weiqiang and others},journal={arXiv preprint arXiv:2209.02976},year={2022}}
Package: bssclient
bssclient.pyThis repository contains the packagebssclient.
It is an async, fully typed Python client for the Basic Supply Service (BSS).Its features are handwritten and extended as we need them.
So it isnotautogenerated from the TMDS OpenAPI.InstallationInstall itfrom PyPI:pipinstallbssclientUsagefromyarlimportURLfrombssclientimportbssclient,BssConfigbss_config=BssConfig(server_url=URL("https://my-bss.xtk-test.org/"),usr="my-usr",pwd="my-pwd",)client=bssclient(bss_config)ermittlungsauftraege=awaitclient.get_all_ermittlungsauftraege()Even though we did not fully replicate the BSS data model,
we tried to make the client as flexible as possible.
You can use any unmapped field returned by TMDS by using themodel_extraproperty of pydantic.DevelopmentFor development of this library, follow the instructions in ourPython Template Repository.
tl;dr:tox -e devwill set up a development environment for you.Release (CI/CD)To release a new version of this library,create a new releasein GitHub.
Make sure its tag starts withvand the version number, e.g.v1.2.3.
Releases are not restricted to the main branch, but we prefer them to happen there.ContributeYou are very welcome to contribute to this template repository by opening a pull request against the main branch.
Package: bst
bstIn school, I struggled with how binary search trees (and related data structures & algorithms) work, but now with a little more programming experience under my belt I decided to work through implementing one. It currently has insert, search, and traversal functionality.Installpip install bstUsagefrombstimportBSTbst=BST()bst.insert(5)node=bst.search(5)# <bst.Node object at 0x1060964e0>node.value# 5DevelopmentThe only dependency isnose, it's used to automatically run all of the unit tests intests/. Install dependencies withpip install -r requirements.txt, and run the tests withnosetests -v.
Package: bstadlbauer.p300speller
LSL P300 spellerThis repository contains a P300 speller based onLSLand tkinter.InstallationDependenciesThis project usespoetryto manage its dependencies. Visit their website on how to install
poetry for you operating system. The whole projects supportspython>=3.6.1.Installing the packageRun the following to install thebstadlbauer.p300spellerpackage:git clone https://github.org/bstadlbauer/lsl-p300-speller
poetry installwhich will setup a new virtual environment for the project and install the necessary dependencies.Getting StartedAfter installation, an entrypoint is avaibable to start the spellerpoetry run start-spellerQuestions and IssuesIf there are any questions or you run into an issue, please file a 'Issue' at the top.ContributingIf you want to contribute, please file also file an issue first where the new feature can be discussed, in general
contribution is welcome!To setup the development environment, do the following:git clone https://github.org/bstadlbauer/lsl-p300-speller
poetry install
pre-commit installTo ensure consistent formatting and linting pre-commit hooks (managed throughpre-commit)
are used.AcknowledgementThis tool was developed by myself as part of a project done at theInstitute of Neural Engineering.
The work was supervised by Assoc.Prof. Dipl.-Ing. Dr.techn. Reinhold Scherer.
Package: b-stage-deployment
TODORelease history1.0.1Remove biomapas/cicd-full image from pipelines.1.0.0Upgrade CDK support from v1 to v2.Upgrade GitHub pipelines checkout version from v2 to v3.Set GitHub pipelines node version 18.Set GitHub pipelines python version 3.10.0.0.4Increase the function timeout.0.0.3Update boto3 requirement.0.0.2Add more docstrings.0.0.1Initial build.
Package: bstats
BStatsThis wrapper supports both sync and async requests to the Brawl Stars APIRequired Python versions: 3.8 and higherFeaturesEasy to use with an object oriented design.Get a player's profile as well as their 25 most recent battles.Get a club's statistics as well as its members and their individual statistics.Get the top 200 rankings for players, clubs, or a specific brawler.Get information about all currently available brawlers.Get the current ongoing event rotation.InstallationInstall the latest build:pip install bstatsExamplesSync exampleimportbstatsclient=bstats.SyncClient("token")# Never post any of your tokens for APIs on a public github!player=client.get_player("80V2R98CQ")print(player.trophies)print(player.solo_victories)club=player.clubifclub:print(club.tag)members=club.membersforplayerinmembers[:5]:# Get the top 5 club membersprint(player.name,player.trophies)# Show their name and their trophies# Get the top 5 players in the worldbest_players=client.get_leaderboards(mode="players",limit=5)forplayerinbest_players:print(player.name,player.rank)# Show their name and their rank on the leaderboard# Get the top 5 Meg players in the United Kingdomtop_meg_players=client.get_leaderboards(mode="brawlers",country="GB",limit=5,brawler="Meg")forplayerintop_meg_players:print(player.name,player.rank)# Get a player's 25 most recent battlesbattles=client.get_battlelogs("80V2R98CQ")print(battles[0].mode_name)# Show the last mode the player battled inrotation=client.get_event_rotation()foreventinrotation:print(event.start,event.end)Async exampleimportasyncioimportbstatsclient=bstats.AsyncClient("token")# Never post any of your tokens for APIs on a public github!# to use the async client, we'll need an async functionasyncdefmain():player=awaitclient.get_player("80V2R98CQ")print(player.trophies)print(player.solo_victories)club=player.clubifclub:print(club.tag)members=club.membersforplayerinmembers[:5]:# Get the top 5 club membersprint(player.name,player.trophies)# Show their name and their trophies# Get the top 5 players in the worldbest_players=awaitclient.get_leaderboards(mode="players",limit=5)forplayerinbest_players:print(player.name,player.rank)# Show their name and their rank on the leaderboard# Get the top 5 Meg players in the United Kingdomtop_meg_players=awaitclient.get_leaderboards(mode="brawlers",country="GB",limit=5,brawler="Meg")forplayerintop_meg_players:print(player.name,player.rank)# Get a player's 25 most recent battlesbattles=awaitclient.get_battlelogs("80V2R98CQ")print(battles[0].mode_name)# Show the last mode the player battled inrotation=awaitclient.get_event_rotation()foreventinrotation:print(event.start,event.end)# we now create a loop to send us the data from the async clientloop=asyncio.get_event_loop()loop.run_until_complete(main())MiscellaneousPlease star this repository if you're satisfied with the wrapper 😊Have you come across an issue in the wrapper? No worries! Justcreate an issue!If you need an API key, visit theBrawl Stars APIpage.(You must create an account in order to create and use an API key)
Package: bstb
Geocachingtoolbox as a Python package onPyPi.DocumentationDocumentation forbstbis available.Usage$ipythonPython 3.11.2 (main, Feb 16 2023, 03:07:35) [Clang 14.0.0 (clang-1400.0.29.202)]Type 'copyright', 'credits' or 'license' for more informationIPython 8.11.0 -- An enhanced Interactive Python. Type '?' for help.In [1]: from bstb.core import Waypoint...: from bstb.greatcircle import bearing...: from bstb.greatcircle import distance...:...: wp0 = Waypoint.parse("N52 00.000 E004 00.000")...: wp1 = Waypoint.parse("N51 58.000 E004 10.000")...: b = bearing(wp0, wp1)...: d = distance(wp0, wp1)...:...: print(f"Bearing: {b}, Distance: {d} km")...:Bearing: 107.9, Distance: 12.001 km
Package: bstconnect
Connects to all BlueStacks devices that use Hyper-V (dynamic port!) via ADB and returns a DataFramepip install bstconnectfrombstconnectimportconnect_to_all_localhost_devicesdf=connect_to_all_localhost_devices(adb_path="C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",timeout=3,bluestacks_config=r"C:\ProgramData\BlueStacks_nxt\bluestacks.conf",)print(df)localhostproductmodeldevicetransport_idstatusf_isrootf_rootf_unrootbst_instancenum_threadsppidmemory_full_infoenvironnamecpu_percentnum_ctx_switchesusernamepidmemory_infomemory_percentmemory_mapscwdcpu_timesionicecreate_timethreadsexeopen_filesniceio_countersstatus_proccpu_affinityconnectionsnum_handlescmdline052629OnePlus3ONEPLU...OnePlus3T1device()()()Pie64_2978236(12913...{'ALLU...  HD-Pla...        0.1    (16629...        DESKTO...  14932  (12913...    0.188108       [(C:\W...   C:\Use...  (3.390...       2  1.6780...    [(1308...  C:\Pro...  [(C:\W...    32  (43543...     running   [0, 1,...           []        1324    [C:\\P...153170OnePlus5ONEPLU...OnePlus52device()()()Pie64_51068236(25288...{'ALLU...  HD-Pla...        0.7    (13971...        DESKTO...   7568  (25288...    0.368370       [(C:\W...   C:\Use...  (2.25,...       2  1.6780...    [(1756...  C:\Pro...  [(C:\W...    32  (37717...     running   [0, 1,...    [(-1, ...        1400    [C:\\P...253181OnePlus5ONEPLU...OnePlus53device()()()Pie64_6988236(14550...{'ALLU...  HD-Pla...        0.0    (13672...        DESKTO...   2108  (14550...    0.211957       [(C:\W...   C:\Use...  (1.921...       2  1.6780...    [(1415...  C:\Pro...  [(C:\W...    32  (36607...     running   [0, 1,...           []        1349    [C:\\P...353361OnePlus5ONEPLU...OnePlus54device()()()Pie64_3988236(14576...{'ALLU...  HD-Pla...        0.0    (13222...        DESKTO...  10416  (14576...    0.212327       [(C:\W...   C:\Use...  (2.078...       2  1.6780...    [(1074...  C:\Pro...  [(C:\W...    32  (35549...     running   [0, 1,...           []        1351    [C:\\P...455544OnePlus5ONEPLU...OnePlus557device()()()Pie64_10998236(12911...{'ALLU...  HD-Pla...        0.1    (28882...        DESKTO...  16604  (12911...    0.188072       [(C:\W...   C:\Use...  (1.312...       2  1.6780...    [(1644...  C:\Pro...  [(C:\W...    32  (13080...     running   [0, 1,...           []        1399    [C:\\P...555554a80ltexxSM_A805Na80lte58device()()()Pie64_4978236(11723...{'ALLU...  HD-Pla...        0.1    (28505...        DESKTO...   6440  (11723...    0.170769       [(C:\W...   C:\Use...  (1.390...       2  1.6780...    [(1566...  C:\Pro...  [(C:\W...    32  (12728...     running   [0, 1,...           []        1358    [C:\\P...