Saravanan666/pypi-org huggingface dataset:
Package: buzzsprout
A Python Buzzsprout class.PrerequisitesPython 3.7 and aboveA Buzzsprout account (and your API token)SummaryProvide an API Token and a Profile ID, to create a Buzzsprout object containing all episodes for that profile matching the given parameters.Installationpip install buzzsproutGetting startedInstantiate the Buzzsprout class.$ from buzzsprout import Buzzsprout
$ buzzsprout = Buzzsprout()You then pass your profile id and token into thegetmethod. By default, this will pull all episodes:$ buzzsprout.get('profileid='PROFILEID', token='TOKEN')Attributestitleaudio_urlepisode_urldescriptionsummaryartisttagspublished_atepisode_numberseason_numberFilteringYou can currently filter by:DateTagRandom(and these can be used in combination).To return only episodes newer than 2019-03-01$ recent_episodes = buzzsprout.get(profileid='PROFILEID', token='TOKEN', datefilter='2019-03-01')To return only episodes that contain the tag "Interviews"$ interview_episodes = buzzsprout.get(profileid='PROFILEID', token='TOKEN', tagfilter='Interviews')To return one random episode from the results, use the random switch$ random_episode = buzzsprout.get(profileid='PROFILEID', token='TOKEN', random=True)Things to noteWeirdly, Buzzsprout's API does not return an episode URL. I have therefore implemented aslightlyhacky solution which modifies the audio URL.
By default this URL will not use any custom URL's you have set. I have therefore implemented a workaround. If you pass in your custom URL, theepisode_urlproperty will be updated:$ custom_url_episode = buzzsprout.get(profileid='PROFILEID', token='TOKEN', random=True, customurl='subdomain.example.com')
Package: buzzsprout-manager
Buzzsprout-ManagerSummaryBuzzsprout Manager is a (somewhat) complete python wrapper for the Buzzsprout Podcast Hosting API. It currently supports most of the functionality of buzzsprout's web UI, including uploading/creating new episodes, retrieving information from existing episodes, as well as updating information or changing an episode's private status.Getting StartedInstallationpip install buzzsprout-managerBasic UsagefrombsmimportManagerID='My Podcast ID'TOKEN='My API Token'manager=Manager(ID,TOKEN)# Initepisodes=manager.get_all_episodes()# Get all episodes as EpisodeGroup objectmy_episode=episodes[0]# Get Episode objectprint(my_episode.title)# "My Podcast Title"manager.update_episode(# Update given episode with kwarg attributesmy_episode,**{'title':"Updated Title",'description':"*descriptive text*"})manager.get_all_episodes()[0].title# "Updated Title"bsm.Episodeep=manager.get_all_episodes()[0]# Manager returns a single bsm.Episode objectep.title# 'The Podcast Title'ep.get_date()# Returns the episode's published date as datetime.datetime objectep.get_all_data()# Returns a {} of all episode attributesep.get_existing_data()# Returns a {} of all episode attributes that aren't 'None'The following members can be retrieved and/ or modified:['id','title','audio_url','artwork_url','description','summary','artist','tags','published_at','duration','hq','magic_mastering','guid','inactive_at','episode_number','season_number','explicit','private','total_plays']
Package: buzzword
buzzwordVersion 1.4.0Web-app for corpus linguistics; documentation availablevia ReadTheDocsNote, this app is currently being overhauled and turned into a Django project. The last stable (Dash) app was version1.2.5. Versions after this will be in Django, and for now, a bit unstable, as features like user management are added in. Documentation for now targets 1.2.5, not the new Django app.InstallpipinstallbuzzwordQuickstartThebuzzword.createcommand will create a directory and populate it with the necessary config files and a sample corpus. Here, we name itworkspaceand run buzzword from within it.buzzword-createworkspace# or: python -m buzzword.create workspacecdworkspace
python-mbuzzwordSetupTo set things up more more permanently, either modify the directory created withbuzzword-create, or do the following:Create and parse corpusConfigure a.envfilefrom.env.exampleConfigure acorpora.jsonfile fromcorpora.json.exampleRun the tool with or withoutcommand line arguments:buzzword--debug# or python -m buzzword --debugRun from Dockerfiledockerbuild.-tname/tag
dockerrun-it-p8001:8000name/tagbuzzword is now available athttp://localhost:8001
Package: bvareader
BVA readerPython package which reads and parses xml data from LF in Motol.InstallationThe project is currently hosted on test PyPi and can be downloaded from suchhttps://test.pypi.org/project/bvareader/Use examplesMain use can be through the command line prompts, which doesn't require you to run your own preprocessing scripts. But if you prefer, you can preprocess and save the data in your own way.frombvareader.readerimportread_xml_bvafrombvareader.readerimportread_xml_syncfrombvareader.readerimportread_sync_filefrombvareader.readerimportsave_csvfrombvareader.preprocessingimportpreprocess_bva_datafrombvareader.preprocessingimportadd_rotationpd_bva=read_xml_bva("example_data/example.xml")pd_bva_clean=preprocess_bva_data(pd_bva)pd_bva=add_rotation(pd_bva)save_csv(pd_bva_clean,"bva.csv")save_csv(pd_bva,"bva_full.csv")bva_sync=read_xml_sync("example_data/example.xml")save_csv(pd_sync,"bva_sync.csv")pd_sync=read_sync_file("example_data/example.csv")save_csv(pd_sync,"sync.csv")TimestampBva outputs real timestamp (date and time of each recording). This package converts this datetime number as the POSIX timestamp (number of seconds since 1.1.1970) as perdatetime.timestamp()function described inhereCommand line promptBy installing the package from PyPI, you will get the python entry point which you can use in the command line. You can investigate each command with the--helptag. e.g.bva-preprocess-xmx --help. Mostly you will need only thebva-preprocess-xmland potentiallybva-settings-to-csvcommandsBVA xml output preprocessingbva-preprocess-xml"path_to_xml"-o/--output"output-prefix"bva-settings-to-csv"path_to_xml"-o/--output"output-prefix"bva-phases-table"path_to_xml"-o/--output"output-prefix"bva-measures-start-stop-table"path_to_xml"-o/--output"output-prefix"FAQQ: The command line commands are not found.A: If you are using conda or virtual envs, make sure you are in a correct environment
Package: bvatar
Bvatar creates a unique 8x8 graphical representation of a string.SetupInstall from PYPIInstall with the following pip command:pip install bvatarOr if you want to be able to create bitmap images, use this instead:pip install bvatar[bitmap]Install development versionDownload from github and install the development version with these commands:git clone https://github.com/smileychris/bvatar
cd bvatar
pip install -e .[bitmap]UsageImport the bvatar class and use it like so:from bvatar import Bvatar
bvtr = Bvatar(‘text’)
img = bvtr.image()
img.save(‘some_file.png’, ‘PNG’)Command-line ScriptGenerate a Bvatar (an 8x8 randomart avatar).Usage:bvatar [--mirror] [--no-color] [--px-size=<int>] ([TEXT] | [--hash=<sha1_hash>])
bvatar --ascii [--mirror] [--spaced] [--no-border] ([TEXT] | [--hash=<sha1_hash>])The first format is for generating bitmap images. By default, the image is
only displayed and not stored. To save the image, pipe to a file:bvatar > some_file.pngArguments:TEXTbvatar source text (otherwise a random bvatar is generated)Options:--mirrorgenerate a horizontally mirrored bvatar--no-coloruse greyscale rather than coloring the image--px-size=<int>actual size for each pixel [default: 16]--hash=<sha1_hash>rather than passing the text and having it SHA1ed, you can pass a hex
encoded SHA1 hash explicitly--asciioutput ascii rather than generating a bitmap image--spaceda “lighter” ascii art alternative--no-borderdon’t add a border around the ascii art
Package: bvcopula
BVCOPULA========This module mainly contains routines of probability distribution functions,density functions, random sample generating functions, H-functions and InverseH-functions for six bivariate copulas families (will includes BB1, BB6, BB7, BB8etc families in future). In this package, we label the ten families with aninteger as below.0 ~ Independent1 ~ Normal2 ~ Student t3 ~ Clayton4 ~ Gumbel5 ~ Frank6 ~ Joe7 ~ BB1 (coming soon)8 ~ BB6 (coming soon)9 ~ BB7 (coming soon)10 ~ BB8 (coming soon)
Package: bvg-grabber
bvg-grabberShowing BVG Departures In Your OfficeBlog post:https://markusholtermann.eu/2013/06/showing-bvg-departures-in-your-office/Slides:https://speakerdeck.com/markush/showing-bvg-departures-in-your-officePictures:InstallationRequires Python 3!To usebvg-grabbergo and install it as you do with every Python package:$ pip install bvg-grabberor:$ pip install --user bvg-grabberUsagebvg-grabbercomes with a simple command line toolbvg-grabber.py:$ bvg-grabber.py --help
usage: bvg-grabber.py [-h]
                    [--vehicle [{S,U,TRAM,BUS,FERRY,RB,IC} [{S,U,TRAM,BUS,FERRY,RB,IC} ...]]]
                    [--limit LIMIT]
                    station file

Query the BVG-website for departures

positional arguments:
station               The station to query
file                  Path to file. Use - for stdout

optional arguments:
-h, --help            show this help message and exit
--vehicle [{S,U,TRAM,BUS,FERRY,RB,IC} [{S,U,TRAM,BUS,FERRY,RB,IC} ...]]
                        Vehicles which shall be queried, if non given
                        actualdepartue (bus) will be used
--limit LIMIT         Max departures to query. Default: 9Example:$ bvg-grabber.py "U Ernst-Reuter-Platz (Berlin)" - --vehicle U --limit 2 | json_pp
[
   [
      "U Ernst-Reuter-Platz (Berlin)",
      [
         {
            "line" : "U2",
            "end" : "U Ruhleben (Berlin)",
            "remaining" : 12180,
            "start" : "U Ernst-Reuter-Platz (Berlin)"
         },
         {
            "line" : "U2",
            "start" : "U Ernst-Reuter-Platz (Berlin)",
            "remaining" : 12600,
            "end" : "S+U Pankow (Berlin)"
         }
      ]
   ]
]
Package: bvhtodeepmimic
BvhToMimic [WIP]GoalTheDeepMimic projectcurrently offers no way to import custom reference motions. This is shown inDeepMimic issue #23. This project aims to transfer animation data from .BVH files into DeepMimic motion files. Motion files can then be used to train DeepMimic skills. Many thanks to userSleepingFox88for starting off the project. Original repository can be foundhere. This repository currently works well withthis database.Installationpip install bvhtodeepmimicorpip3 install bvhtodeepmimicWill install the library together with the requirements. Currently works with python 3.6 or 3.7UsageCreate a BvhConverter object:frombvhtomimicimportBvhConverterconverter=BvhConverter("./Settings/settings.json")Generate the DeepMimic text from a .bvh file:converter.convertBvhFile("pathToBvhFile",loop=False)Or write directly to file:converter.writeDeepMimicFile(pathToBvhFile,outputPath)Or usethe example scriptthat will convert all .bvh files located in ./InputBvh/ into Mimic Motion files, located in ./OutputMimic/ .Progress(GIF has been generated usingthismocap file fromthis database.)Watch more videos of recorded conversionshere.Creating a settings fileCurrently joints in .bvh files have to be manually assigned by name to the corresponding joints in the DeepMimic humanoid model. This is done by assigning the .bvh model's bone names to the corresponding joint properties in./Settings/settings.json. On top of the joint assignments, this file should also include settings to change the scale by which the .bvh file should be transformed, and the joints used to identify therootrotation of the model.Related ProjectsList of related projectsNotesThis code has been developed within theACRO research group.
Package: bvhtoolbox
This repository providesPython3scripts for manipulating and converting BVH motion capture files.InstallationTo install from PyPi:pip install bvhtoolboxTo install from github using development mode:pip install -e git+https://github.com/OlafHaag/bvh-toolbox.git@master#egg=bvhtoolboxTo install latest development version using regular mode (building the package):pip install https://github.com/OlafHaag/bvh-toolbox/archive/master.zipThe installation creates some console scripts you can use.Console scriptsManipulate BVH filesRename joints in bvh filesCommand:bvhrenamejointsRemove frames from BVH filesCommand:bvhremoveframesOffset joint angles in BVH filesCommand:bvhoffsetjointanglesCan be used to additively offset joint angles in the BVH by supplying a csv table containing the mapping of joint names to euler angles.The angles must be in the same order as the joint's channels in the BVH hierarchy.Convert from or to BVH filesBVH to Cal3D XSF & XAFCommand:bvh2xsfCommand:bvh2xafConverts BVH files to theCal3DXML skeleton (XSF) and animation (XAF) file formats.The XAF files rely on the respective skeleton file.XAF files have been tested to work with skeletons that were exported from 3DS Max and Blender.I use the resulting xaf files inWorldviz' Vizard, so it's only been tested in this context.BVH to Panda3D Egg animation fileCommand:bvh2eggConverts BVH files to thePanda3Danimation file egg format.BVH to CSV tablesCommand:bvh2csvConverts BVH to comma separated values tables.Ouputs one file for hierarchy, one for joint rotations, and one for joint world positions.Use--hierarchyto export the respective CSV file.Using only the--rotationor the--positionflag you can output only one of the transform tables.The--outparameter only takes a directory path as an argument.With the--endsflag the End Sites are included in the *_pos.csv file.CSV tables to BVHCommand:csv2bvhTakes 3 CSV files (hierarchy, rotation, position) previously exported usingbvh2csvor created otherwise and builds a bvh file from them.All converters have a--scaleparameter taking a float as an argument. You can use it to convert between units for the position and offset values.How to run the console batch scriptsOpen terminal.If you've installed the bvhtoolbox into a conda/virtual environment, you have to activate it first.type<script_name> -h(substitute<script_name>by one of the commands above) to get more information on the usage.NotesThis package includes 20tabs' bvh module due to a lack of updates for this module on pypi.org.
Package: bvlain
BVlain is the module for bond valence site energy calculations and is about to solve tasks related to ionic conductivity of a tracer ion in a crystal structure.For more details, seedocumentation.Installation!pipinstallbvlainExamplesPercolation barriersfrombvlainimportLainfile='/Users/artemdembitskiy/Downloads/LiFePO4.cif'calc=Lain(verbose=False)st=calc.read_file(file)params={'mobile_ion':'Li1+',# mobile specie'r_cut':10.0,# cutoff for interaction between the mobile species and framework'resolution':0.2,# distance between the grid points'k':100# maximum number of neighbors to be collected for each point}_=calc.bvse_distribution(**params)energies=calc.percolation_barriers(encut=5.0)forkeyinenergies.keys():print(f'{key[-2:]}percolation barrier is{round(energies[key],4)}eV')1D percolation barrier is 0.4395 eV
2D percolation barrier is 3.3301 eV
3D percolation barrier is 3.3594 eVPercolation radiifrombvlainimportLainfile='/Users/artemdembitskiy/Downloads/LiFePO4.cif'calc=Lain(verbose=False)st=calc.read_file(file)params={'mobile_ion':'Li1+',# mobile specie'r_cut':10.0,# cutoff for interaction between the mobile species and framework'resolution':0.2,# distance between the grid points}_=calc.void_distribution(**params)radii=calc.percolation_radii()forkeyinradii.keys():print(f'{key[-2:]}percolation barrier is{round(radii[key],4)}angstrom')1D percolation barrier is 0.3943 angstrom
2D percolation barrier is 0.2957 angstrom
3D percolation barrier is 0.1972 angstromSave volumetric data for visualization (.grd or .cube)frombvlainimportLainfile='/Users/artemdembitskiy/Downloads/LiFePO4.cif'calc=Lain(verbose=False)st=calc.read_file(file)params={'mobile_ion':'Li1+',# mobile specie'r_cut':10.0,# cutoff for interaction between the mobile species and framework'resolution':0.2,# distance between the grid points'k':100# maximum number of neighbors to be collected for each point}_=calc.bvse_distribution(**params)_=calc.void_distribution(**params)calc.write_grd(file+'_bvse',task='bvse')# saves .grd filecalc.write_cube(file+'_void',task='void')# save .cube fileBond valence sum mismatchfrombvlainimportLainfile='/Users/artemdembitskiy/Downloads/LiFePO4.cif'calc=Lain(verbose=False)st=calc.read_file(file)dataframe=calc.mismatch(r_cut=3.5)For more examples, seedocumentation.The library is under active development and it is not guaranteed that there are no bugs. If you observe not expected results, errors, please report an issue at github.
Package: bvmlib
BVM libraryQuantitative Information Flow assessment of vulnerability for microdata datasets using Bayes Vulnerability.DOI:10.5281/zenodo.6533704.InstallationUse the package managerpipto installbvmlib.pipinstallbvmlibUsageSingle-datasetimportpandasfrombvmlib.bvmimportBVM# Create a pandas DataFrame for your data.# For instance:df=pandas.read_csv(file.csv)# Create an instance.I=BVM(df)# Assign quasi-identifying attributes.I.qids(['attribute_1','attribute_2'])# Assign sensitive attributes (optional).I.sensitive(['attribute_2','attribute_3'])# Perform vulnerability assessment.I_results=I.assess()# Print re-identification results.print(I_results['re_id'])# Print attribute-inference results (only if computed).print(I_results['att_inf'])ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseGNU LGPLv3[^compatibility].[^compatibility]:
To understand how the various GNU licenses are compatible with each other, please refer to:https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility
Package: bvPlayer
bvPlayerA borderless video player for python. Comes with a variety of functions such as audio synchronization, FPS adjustment, video scaling, window dragging, and menu options.Audio synchronization is done through frame skipping and frame delaying. Fps adjustments is done through randomly selecting frames within small chunks. The user is limited to an approximation of their input fps, this is to make the video look smoother.ResourcesThis package was implemented with:opencv, for frame loading from a video filePillow, for displaying images on tkinterffpyplayer, for audio synchronizationInstallationDownload the repository and runsetup.pygit clone https://github.com/jwcarlson01/bvPlayer.git
python bvPlayer/setup.pyInstall from PyPIpip install bvPlayerUsageimport the bvPlayer package and classfrom bvPlayer import bvPlayercall the class with a filename and optional argumentsbvPlayer("file.mp4")The video will play upon the class declaration.Optional ArgumentsIf optional arguments are not specified, the video will default to its orginal fps, (0,0) position on the screen, non-draggable, its original dimensions, and no videoOptions.fps, to change the display fps to a number less than the file fpsfps = floatpos, to change the start-up display location on the screenpos = (int x, int y)draggable, to make the window draggabledraggable = booldim, to scale the video output to a desired dimensiondim = (int w, int h)videoOptions, to enable options when right clicking the video, includes quit and restartvideoOptions = boolExamplefrom bvPlayer import bvPlayer

bvPlayer("file.mp4", draggable = True, fps = 28, dim = (854, 480))PerformanceThere are two approaches to playing a video on tkinter, either to pregenerate images in a folder and read those images after onto tkinter, or to dynamically load images and display them at the same time.bvPlayer uses the dynamic approach. bvPlayer uses opencv to load images into temporary files. These temp files are then read by Pillow to be displayed on tkinter. Naturally there is a heavy performance loss using the dynamic approach. bvPlayer uses one thread to read frames, two threads to write frames to temp files, and one thread to display the video and play the audio.bvPlayer will run a 1080p video on a low end CPU at 20 fps, while using about 60-100% of the CPU. A 480p video will run at 45 fps, using about 40-80% of the CPU; and a 360p video will run at 65 fps, using about 20-60% of the CPU.bvPlayer keeps only a small number of frames loaded in RAM, so when running a 1080p video it uses less than 200 MB of RAM.bvPlayer writes its images to temp files, therefore it uses the disk. Expect at most 5MB/s at 1080p.ContactI'm always open for suggestions. View theissues pagefor issues.Joshua Carlson -joshuacarlson@cedarville.eduReadme inspired bytkvideo
Package: bvqpy
bvqpyOverviewThis package contains data from a Barcelona Vocabulary Questionnaire (BVQ), a vocabulary checklist aimed at to assessing lexical development in toddlers growing up in Catalan-Spanish bilingual environments. The questionnaire was deployed usingformr, and the materials used to generate the items are available in the GitHub repository.This package also contains multiple functions that extract the data and generate many metrics used frequently in the language acquisition literature to examine participants’ vocabulary or to consult acquisition norms of particular words. Documentation and working examples are available in thepackage website.InstallationUsing pip:pipinstallbvqpyData accesibilityBVQ is currently a developing package for internal use at theCenter for Brain and Cognititon(CBC). For this reason, logging in requires a password that can be required by writing to the maintainer of this package (gongarciacastro@gmail.com).Code of ConductPlease note that the bvq project is released with aContributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Package: bvr
bvrBVR: Log like a BeaverInstallpip install bvrbvr decoratorsbvr_start: log when a method startsbvr_end: log when a method endsbvr_start_end: log when a method starts and endsbvr_rest_before: log and sleep before a method startsbvr_rest_after: log and sleep after a method endsbvr_time: log the amount of time a method takesbvr_try: log and catch an exceptionbvr_repeat: log and repeat a methodbvr_compose: compose multiple other bvr decorators on a single methodbvr_startlog when a method startsexample:from bvr import bvr_start

@bvr_start
def example_one():
    print("hello")
    return 3

example_one()output:STARTED | FUNCTION: example_one | ARGS: () | KWARGS: {}

hellobvr_endlog when a method endsexample:from bvr import bvr_end

@bvr_end
def example_one():
    print("hello")
    return 3

example_one()output:hello

ENDED | FUNCTION: example_one | ARGS: () | KWARGS: {}bvr_start_endlog when a method starts and endsexample:from bvr import bvr_start_end

@bvr_start_end
def example_one():
    print("hello")
    return 3

example_one()output:STARTED | FUNCTION: example_one | ARGS: () | KWARGS: {}

hello

ENDED | FUNCTION: example_one | ARGS: () | KWARGS: {}@bvr_rest_beforelog and sleep before a method startsComing Soon!@bvr_rest_afterlog and sleep after a method endsComing Soon!@bvr_timelog the amount of time a method takesComing Soon!@bvr_trylog and catch an exceptionComing Soon!@bvr_repeatlog and repeat a method n timesComing Soon!@bvr_composecompose multiple other bvr decorators on a single methodComing Soon!Tech NotesLangaugesPythonBashMarkdownQualityPyTestCoveragePylintAutomationGithub ActionsTravis CIHostingTest PyPiProd Pypi