Saravanan666/pypi-org huggingface dataset:
Package: beatdrop
beatdropSee the fullDocumentation.The goal ofbeatdropis to provide schedulers and schedule entries that are easy to use, extensible, scalable, and backend agnostic.Itdoes notrun tasks or python functions on a schedule. It will simply interface with task backends to send tasks when they are due.InstallationInstall the base package with pip fromPyPi.$ pip install beatdropFor particular schedulers and backends you will also need to install their extra dependencies.$ pip install beatdrop[redis]Extra dependencies for task backends:celeryExtra dependencies for scheduler storage:redissqlTheallextra dependency will install all extra dependencies for task backends and scheduler storage.$ pip install beatdrop[all]UsageThere are 2 main pieces to usingbeatdrop.Schedule Entry - holds the task definitions and scheduling info.Schedulers - have 2 main rolesThey can be run as a scheduler to monitor and send tasks to the task backend.Act as clients for reading and writing schedule entries.To run the scheduler simply make a python file, create the scheduler and call the run method:frombeatdropimportCeleryRedisSchedulerfrommy_appimportcelery_appsched=CeleryRedisScheduler(max_interval=60,celery_app=celery_app,lock_timeout=180,redis_py_kwargs={"host":"my.redis.host","port":6379,"db":0,"password":"mys3cr3t"})sched.run()To use the scheduler as a client, you create the scheduler the same as you would to run it:frombeatdropimportCeleryRedisScheduler,IntervalEntryfrommy_appimportcelery_app# Create a schedulersched=CeleryRedisScheduler(max_interval=60,celery_app=celery_app,lock_timeout=180,redis_py_kwargs={"host":"my.redis.host","port":6379,"db":0,"password":"mys3cr3t"})# create a schedule entryinter=IntervalEntry(key="my-interval-entry",enabled=True,task="test_task",args=("my_args",123),kwargs={"my_kwargs":12.4},period=10)# save or update an entrysched.save(inter)# list all entries, this will automatically paginateschedule_entries=sched.list()# retrieve a specific entrymy_inter_entry=sched.get(inter.key)# equivalent to the line abovemy_inter_entry=sched.get("my-interval-entry")# Delete an entry from the schedulersched.delete(inter)ChangelogChangelog forbeatdrop.
All notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.[0.1.0a9] - 2024-02-19Fix README[0.1.0a8] - 2024-02-19Fixedpydantic less than 2deprecations for use ofdatetime.datetime.utcnow()Removedsupport for python 3.7[0.1.0a7] - 2023-02-25Fixedtestsdocs[0.1.0a6] - 2023-02-22AddedRQScheduler- Building block scheduler for the RQ (Redis Queue) task backend.RQRedisScheduler- Complete scheduler with RQ task backend and redis entry storage.RQSQLScheduler- Complete scheduler with RQ task backend and SQL DB entry storage.FixedPYPI logo[0.1.0a5] - 2023-02-06Fixedpackaging filesREADME Links[0.1.0a4] - 2023-02-05FixedDocstrings updated and documentation added.[0.1.0a3] - 2023-01-18Update for pypi formatting.[0.1.0a2] - 2023-01-17Update for pypi formatting.[0.1.0a1] - 2023-01-17Initial release
Package: beat.editor
Local editor for BEAT objectsThis package part ofBEAT, an open-source evaluation platform for data science
algorithms and workflows. It contains the source code for a local editor for
BEAT objects.InstallationComplete BEAT’sinstallationinstructions. Then, to install this package,
run:$ conda install beat.editorContactFor questions or reporting issues to this software package, contact our
developmentmailing list.
Package: beatit
beatitA simple backend agnostic heartbeating convention.>>>classPrinter:...@staticmethod...defpublish(*,subject:bytes,payload:bytes):...print(f"{payload}->{subject}")>>>frombeatitimportHeart>>>heart=Heart(process="my.process.identifier",publisher=Printer)>>>heart.start(warmup=60)b'start/60'->b'heartbeat.my.process.identifier'>>>heart.beat(period=5)b'beat/5'->b'heartbeat.my.process.identifier'>>>heart.beat(period=5)>>>heart.degraded(period=5)b'degraded/5'->b'heartbeat.my.process.identifier'>>>heart.degraded(period=5)>>>heart.stop()b'stop'->b'heartbeat.my.process.identifier'All you need is a publisher with apublishmethod accepting two named argumentssubjectandpayload.Instantiate aHeartinstance with aprocessname and apublisher.beatswill be published on the subjectheartbeat.<process>.What are thebeats?startwith awarmupperiod (after which abeator adegradedis expected)beatwith aperiod(when to expect the nextbeat).degradedwith aperiod(when to expect abeator adegradednext).stopwhen the process stops gracefully.sync or not ...If you favour async (what is wrong with you?) Heart recognizes an async publisher automagically and all you have to do is await all the things.>>>importasyncio>>>classAsyncPrinter:...@staticmethod...asyncdefpublish(*,subject:bytes,payload:bytes):...print(f"{payload}->{subject}")>>>frombeatitimportHeart>>>heart=Heart(process="my.process.identifier",publisher=AsyncPrinter)>>>asyncio.run(heart.start(warmup=60))b'start/60'->b'heartbeat.my.process.identifier'>>>asyncio.run(heart.beat(period=5))b'beat/5'->b'heartbeat.my.process.identifier'>>>asyncio.run(heart.beat(period=5))>>>asyncio.run(heart.degraded(period=5))b'degraded/5'->b'heartbeat.my.process.identifier'>>>asyncio.run(heart.degraded(period=5))>>>asyncio.run(heart.stop())b'stop'->b'heartbeat.my.process.identifier'subject_as_stringbeatitcallspublishwithbytessubject and payload. Seemed consistent but common publishers favourstrfor subject.Fear not, here is a @limx0 approved solution!>>>classStrBytes:...@staticmethod...defpublish(*,subject:str,payload:bytes):...print(f"{payload}->{subject}")>>>frombeatitimportHeart>>>heart=Heart(process="my.process.identifier",publisher=StrBytes,subject_as_string=True)>>>heart.start(warmup=30)b'start/30'->heartbeat.my.process.identifier
Package: beatle
This work was started many years ago in my head, while I learned a useful UML approach.
I hope this application may be useful for the few people that today still believe in
that the  software creation is not only a work, but an exciting field of investigation.Beatle is full of small things you can profit or improve, if you want: transactionality decorators,
dynamic code generation, delayed methods, pyboost automated interfaces …I plan to include web service design, node-js support, distributed web interface,
and many other things you can use for speedup development.At least, I will be happy if you enjoy using this environment and contribute if you want.23 April 2016
mel viso.
Package: beatlesalbuns
Beatles-albumsThis package is a demo for my Python students and so I decided to give a tribute to The Beatles band, providing a list of their published Albums.
Enjoy this packge and listen to their masterpieces!Change log0.0.4 (23/02/2024) - It was added new methods to class BAlbuns: stats() and band_members()
0.0.3 (16/05/2023) - It was simplified the import of this module. Previous versions were needed to import beatlesalbuns.beatlesalbuns, this version you just need this instruction: import beatlesalbuns
0.0.2 (8/05/2023) - Added print "I love The Beatles"Pre-requirements pandas module installed
Package: beatles-chords-markov-chain
IntroductionThis python module was born after a week of experiments with the pomegranate library, that offers a nice implementation of a Markov chains (https://github.com/jmschrei/pomegranate), and the Beatles chords library, that contains chord annotations of the discography of the band The Beatles (the original database can be found here:http://isophonics.net/content/reference-annotations-beatles). The result is an easy to install module, that can be reused by anyone that want to experiment with automatic music composition and chord generation.InstallationThe package can easily be installed using the pip package manager.pipinstallbeatles_chords_markov_chainNotationIn order to represent a chord progression, without being constrained to a particular scale or mode, a symbolic approach using intervals is employed.# the roman notation is used to represent the chords of a generic modechord_notation=['I','II','III','IV','V','VI','VII']UsageThe trained markov chain contained in the module, is able to generate sequences of variable lenghts. A generated sequence is a list of symbols that can be used to create interesting chord progressions based on the style of The Beatles.frombeatles_chords_markov_chainimportchords_markov_chainnumber_of_chords=6chords_for_your_next_song=chords_markov_chain.sample(number_of_chords)
Package: beatloop
========Beatloop========Beatloop is a python module for programming simple beat loops.Usage=====This is an example usage of beatloop. You can find a more detailedexample in the "examples" folder::import beatlooploop = beatloop.Loop(300, 4, 4, 3)#300 BPM, 4 beats with 4 steps each, 3 audio channelsloop.load_sound("kick.ogg", 0) #load kick sound into channel #0loop.load_sound("hat.ogg", 1)  #hat into ch. #1loop.load_sound("snare.ogg", 2)#snare into ch. #2loop.set_sound(0, 0, 0) #set kick in beat 0, step 0loop.set_sound(1, 1, 0) #snare in beat 1, step 0loop.set_repeat(2, 2)   #hats each 2 stepsloop.print_pattern() #display a scheme of the patternloop.play_once() #finally, play the loop onceNotes-----* Beatloop uses pygame. The pygame sound (and, inherently, beatloop)only reads .wav and .ogg sound files.
Package: beatnik
BeatnikThis python package contains functions for stack-based esoteric programming language: BeatnikDescriptionBeatinkis a stack-based esoteric programming language created by Cliff L. Biffle.
This package contains each ACTION functions by the rules of beatnik, and build a stack to calculate the resulted output from the given text.Scrabble letter values
--- ABCDEFGHIJKLMNOPQRSTUVWXYZ ---
 1: A---E---I--L-NO--RSTU-----
 2: ---D--G-------------------
 3: -BC---------M--P----------
 4: -----F-H-------------VW-Y-
 5: ----------K---------------
 6: --------------------------
 7: --------------------------
 8: ---------J-------------X--
 9: --------------------------
10: ----------------Q--------Z
--- ABCDEFGHIJKLMNOPQRSTUVWXYZ ---Action listThe following table describes the meaning of the ACTIONS (see above).ScorePseudo-CodeDescription<5NOOPDoes nothing. The Beatnik Interpreter may mock you for your poor scoring, at its discretion.5 npush(n)Finds the score of the next word and push it onto the stack.the actual word with 5 is then skipped.6pop(n)Pops the top number off the stack and discards it.7push(pop()+pop())Adds the top two values on the stack together8push(input())Input a character from the user and push its value on the stack. Waits for a keypress.9print(pop())Pop a number off the stack and output the corresponding ASCII character to the screen.10push(pop()-pop())Pop two numbers from the stack, subtract the first one popped from the second one popped, and push the result.11a = pop(); b = pop(); push(a); push(b)Swap the top two values on the stack.12a = pop(); push(a); push(a)Duplicate the top value and pushes the value on top of the stack.13 nif(top()==0) jump(+n)Pop a number from the stack, and figure out the score of the next word.If the number from the stack is zero, skip ahead by n words, where n is the score of the next word.(The skipping is actually n+1 words, because the word scored to give us n is also skipped.)14 nif(top()!=0) jump(+n)Same as above, except skip if the value on the stack isn't zero.15if(top()==0) jump(-n)Skip back n words, if the value on the stack is zero.16if(top()!=0) jump(-n)Skip back if it's not zero.17exit()Stop the program.18-23NOOPDoes nothing. However, the score is high enough that the Beatnik Interpreter will not mock you, unless it's had a really bad day.>23Generates "Beatnik applause" for the programmer.InstallationThe Blend Modes package can be installed through pip:pipinstallbeatnikImportfrombeatnikimportbeatnik_simplefrombeatnikimportbeatnik_stackUse the example file beatnik_interactSimple usage of this librarytext="this is a line of text"beatnik.beatnik_simple(text,debug=True)Step-by-steppreprocess texttext="this is a line of text"words=beatnik.preprocess(text)scrabbling wordVALUE=[]foriinword:value=beatnik.scrabble(i)VALUE.append(value)wordsare list of words that before scrabblerunning stack machinebeatnik.stack(words,VALUE,debug=False)LicenseThe Beatnik package is distributed under theMIT License (MIT). Please also take note of the licenses of the dependencies.
Package: beatract
beatract : beat extract python package.We can extract beat from any music.If you want to use this package, download “beatract_version” and open folder.You can just type
linux : “sudo python setup.py install”
or
Windows : “python setup.py install”.You can use 2 beatract modules…
beatract.beat_cqt
beatract.beat_tieIf you have any question, please email tochj878194@naver.com.
Package: beatsaver
Python BeatSaver APIThis is the unofficial python API for communicating with BeatSaver.Installation:python -m pip install BeatSaverPythonSamplesGetting map from ID>>>importbeatsaverasbs# easier to type really>>>hardestmap=bs.maps.get_map_from_id('25f')>>>hardestmap.name'DM DOKURO - Reality Check Through The Skull'>>>hardestmap.uploader.name'rickput'>>># maps that don't exist return None>>>doesnotexist=bs.maps.get_map_from_id('z')>>>doesnotexistisNoneTrueBonus>>>importbeatsaverasbs>>>rcttc=bs.maps.get_map_from_id('25f')>>>classsmth:...def__eq__(self,a):...returnTrue...>>>bad=smth()>>>rcttc==badTrue
Package: beatsaver.py
BeatSaver.pyAn API wrapper forBeatSaver.comwhich can handle synchronous or asynchronous GET requests.InstallingThis library can be installed via pippip install beatsaver.py --upgradeUsageInitializationfrom beatsaver.beatsaver import BeatSaver

# While recommended the user_agent parameter isn't required.
beatsaver = BeatSaver(user_agent="My_Awesome_Program! v0.0.1")Or for asynchronous requestsfrom beatsaver.async_beatsaver import BeatSaverAsync

beatsaver = BeatSaverAsync()Getting map by id(key)beatsaver.get_maps_id("e970")
# Returns MapDetail classGetting map by hashbeatsaver.get_maps_hash("69e494f4a295197bf03720029086fabe6856fbce")
# Returns MapDetail classGetting maps by uploaderbeatsaver.get_maps_uploader(15293)
# Returns list of MapDetailGetting latest mapsbeatsaver.get_maps_latest()
# Returns list of MapDetailGetting maps ordered by play countbeatsaver.get_maps_plays()
# Returns list of MapDetailGetting user infobeatsaver.get_users_id(15293)
# Returns UserDetail classSearching for mapsbeatsaver.get_search_text(query="Shiny Happy Days")
# Returns list of MapDetail
# This function takes a ton of parameters, check it's docstring for them.Class ModelsMapDetailid: str
name: str
description: str
uploader: UserDetail
metadata: MapDetailMetadata
stats: MapStats
uploaded: str
automapper: bool
ranked: bool
qualified: bool
versions: List[MapVersion]MapDetailMetadatabpm: float
duration: int
songName: str
songSubName: str
songAuthorName: str
levelAuthorName: strMapVersionhash: str
key: Union[str, NoneType]
state: str
createdAt: str
sageScore: int
diffs: List[MapDifficulty]
downloadURL: str
coverURL: str
previewURL: strMapDifficultynjs: float
offset: float
notes: int
bombs: int
obstacles: int
nps: float
length: float
characteristic: str
difficulty: str
events: int
chroma: bool
me: bool
ne: bool
cinema: bool
seconds: float
paritySummary: MapParitySummary
stars: Union[float, NoneType]MapParitySummaryerrors: int
warns: int
resets: intMapStatsplays: int
downloads: int
upvotes: int
downvotes: int
score: floatUserDetailid: str
name: str
hash: Union[str, NoneType]
avatar: str
stats: UserStatsUserStatstotalUpvotes: int
totalDownvotes: int
totalMaps: int
rankedMaps: int
avgBpm: float
avgDuration: float
avgScore: float
firstUpload: str
lastUpload: str
diffStats: UserDiffStatsUserDiffStatseasy: int
expert: int
expertPlus: int
hard: int
normal: int
total: int
Package: beat-tracker-wrapper
Beat tracking wrapperThis is a simple wrapper library for beat and down-beat tracking algorithm. Currently, this package only has madmom downbeat tracker
The input audio format should be .wav. But you can use ffmpeg to convert .mp3 to .wavRequirementmadmomffmpegUsageCommand linedocker run -ti --rm -v $(pwd):/beat_tracker python cli.py input/test.mp3Moduleimporttrackerargs=tracker.TrackerArgument()args.audio_path='input/slide.mp3'args.output_dir_path='output/slide'tracker.track(args)Convert wav to mp3ffmpeg-iinput.wav-vn-ar44100-ac2-b:a192koutput.mp3Build docker imagedockerbuild-tbeat_tracker:dev-fdev.dockerfile.
Package: beaucli
beauclia tool for making your cli applications way more colorful!statusinstallationby pippipinstallbeauclifrom source codegitclonehttps://github/com/memesterhub/beaucli
pythonsetup.pyinstallDescriptionbasically beaucli is a tool for making your command line applications better by providing you colors and some extra toolsIntroductionimportbeaucliprint(beaucli.fore("Hello In Red!","red"))Documentation
Package: beaudis
uploaded by TheAmmiR for personal use
I don't claim anything, the work was done by @leovoel and contributorsBeautifulDiscordSimple Python script that adds CSS hot-reload to Discord.MotivationI wanted custom CSS injection for Discord, with no JavaScript add-ons or anything.
That's BeautifulDiscord.If you want JS, you can either:UseBetterDiscordMake your own thing!You could also fork this repo and add it, it's not that big of a stretch.
I just didn't add it because it's not what I want to do here.UsageJust invoke the script when installed. If you don't pass the--cssflag, the stylesheet
will be placed wherever the Discord app resources are found, which is not a very convenient
location.NOTE:Discord has to be running for this to work in first place.
The script works by scanning the active processes and looking for the Discord ones.(yes, this also means you can fool the program into trying to apply this to some random program named Discord)$ beautifuldiscord --css C:\mystuff\myown.css
0: Found DiscordPTB.exe
1: Found DiscordCanary.exe
Discord executable to use (number): 1

Done!

You may now edit your C:\mystuff\myown.css file,
which will be reloaded whenever it's saved.

Relaunching Discord now...
$Pass the--revertflag to restore Discord to its initial state. You can also do this manually if your Discord
install gets screwed up, by first locating where Discord stores its resources:On Windows, it'sC:\Users\<username>\AppData\Roaming\discord[ptb,canary]\<version>\modules\discord_desktop_coreOn OSX, it's~/Library/Application Support/discord[ptb,canary]/<version>/modules/discord_desktop_coreOn Linux, it's~/.config/discord[ptb,canary]/<version>/modules/discord_desktop_core(<...>means it's required,[...]means it's optional)In that folder, there should be four files, withcore.asarandoriginal_core.asarbeing the interesting ones.
You should then remove the existingcore.asarand renameoriginal_core.asartocore.asar.$ beautifuldiscord --revert
0: Found DiscordPTB.exe
1: Found DiscordCanary.exe
Discord executable to use (number): 1
Reverted changes, no more CSS hot-reload :(
$You can also run it as a package - i.e.python3 -m beautifuldiscord- if somehow you cannot
install it as a script that you can run from anywhere.Installingpython3 -m pip install -U https://github.com/leovoel/BeautifulDiscord/archive/master.zipUsage of a virtual environment is recommended, to not pollute your global package space.RequirementsPython 3.x (no interest in compatibility with 2.x, untested on Python 3.x versions below 3.4)psutillibrary:https://github.com/giampaolo/psutilNormally,pipshould install any required dependencies.More GIFs
Package: beaufort-scale
Beaufort scaleThis lib translates the wind speed value for theBeautfort scale.Import:import beaufort_scaleFunctions:beaufort_scale_ms(value, language='en'): Value is a number in m/s and the default language isen, return string.beaufort_scale_kmh(value, language='en'): Value is a number in km/h and the default language isen, return string.Languages:English (en)Portuguese brazilian (pt-br)
Package: beau-ssi-converter
# Converter
abcConvert XML to JSON### prerequisite
- you need to install below library using pip
- $ pip install xmltodict### Description
- It coverts any input.xml file into output.json.### How to run the scriptFirst rename your file to input.xmlExecutepython3 converter.pyThe Output will be shown below as output.json##Author NameAzhad Ghufran# Testing
Package: beautifier
Beautifier------Simple library to cleanup and prettify url patterns, domains and so on.Library helps to clean unicodes, special charecters and unnessesaryredirection patterns from the urls and gives you clean date.## Documentation### Installation```bashpip install beautifier```## Basic Usages#### Email FunctionEMAIL cleanup API's```pythonfrom beautifier import Emailemail = Email('me@imsach.in')>>> email.domain'imsach.in'>>> email.username'me'>>> email.is_free_emailFalse```#### Url FunctionURL cleanup API's```pythonfrom beautifier import Urlurl = Url('https://in.linkedin.com/in/sachinphilip?authtoken=887nasdadasd6hasdtg21&secret=98jy766yhhuhnjk')>>> url.cleanup'https://in.linkedin.com/in/sachinphilip'>>> url.domain'in.linkedin.com'>>> url.param['authtoken': '887nasdadasd6hasdtg21','secret': '98jy766yhhuhnjk' ]```
Package: beautiful-barcode
beautiful_barcodeGenerate well-formatted, production-ready Barcodes.By default, existing Python barcode libraries likepython-barcodegenerate good barcodes, but any and all formatting of the text is left up to the user. beautiful_barcode generates a nicely formatted barcode with interleaved text out of the box:Depending on your renderer (and true by default), text in the barcode isnotan SVG<text>element, as such an elment may render differently on different machines depending on font availability.This library is currently limited to UPC-A/EAN and EPS/SVG – that's all we (the original authors) needed. Patches welcome!Installation$pipinstallbeautiful_barcodeUsage>>> from beautiful_barcode import GTIN
>>> GTIN('123456789012').write('output.svg')Command line:$python-mbeautiful_barcode123456789012-ooutput.svgQuickstart~$gitclonehttps://github.com/boxine/beautiful_barcode.git
~$cdbeautiful_barcode
~/beautiful_barcode$makehelpListallcommands
install-poetryinstallorupdatepoetry
installinstallviapoetry
updateUpdatethedependenciesasaccordingtothepyproject.tomlfile
lintRuncodeformattersandlinter
fix-code-styleFixcodeformatting
tox-listenvsListalltoxtestenvironments
toxRunpytestviatoxwithallenvironments
tox-py36Runpytestviatoxwith*pythonv3.6*
tox-py37Runpytestviatoxwith*pythonv3.7*
tox-py38Runpytestviatoxwith*pythonv3.8*
tox-py39Runpytestviatoxwith*pythonv3.9*
pytestRunpytest
pytest-ciRunpytestwithCIsettings
publishReleasenewversiontoPyPi
makemessagesMakeandcompilelocalesmessagefilesLicenseMIT
Package: beautiful-console
Beautiful ConsoleInstallationInstallpipinstallbeautiful-consoleImportfrombeautiful_consoleimportbeautiful_consoleasbcDefined Colorsblack, red, green, yellow, blue, magenta, cyan, whiteDefined Stylesbold,italic, underline, underline_bold, overline,strikethroughbeautiful_console() Parameters# Only the text-parameter is required, then you can use any option you need."""text: A text.text_color: Color of the text.text_style: Style of the text.text_highlight_color: Color of the text background.text_blink: Blinking the text <True or False>.continuous_color: Color of continuous text (when typing input).continuous_style: Style of continuous text.continuous_highlight_color: Color of continuous text background.continuous_blink: Blinking continuous text <True or False>.text_color_degree: Intensity of the text color <0 or 1>text_highlight_color_degree: Intensity of text background color <0 or 1>continuous_color_degree: Intensity of continuous text color <0 or 1>continuous_highlight_color_degree: Intensity of continuous text background color <0 or 1>get_input: To use continuous text options it must be True, then beautiful_console() handle a input-function and returns input value."""TipsTip: Some things may not work on some consoles.Tip: get_input can only be filled as a keyword argument (get_input=True).