Saravanan666/pypi-org huggingface dataset:
Package: beersolver
A script for solving vector mechanics Ferdinand P. Beer proposed exercisespip3 install beersolver && beersolverðŸ¤” OverviewHere are proposed solutions for the exercises listed on the end of the third
chapter of the book"Vector Mechanics for Engineers 9Â° Edition, Ferdinand
P.Beer"The general recommendation for the script was that it needed at least
two types of input and at least 2 types of output.Information about the solved exercises:3C.6ðŸ”¨ InstallationAutomaticIssuepip3 install search-that-hashthen:beersolverTo run.Manual InstallationCreate folder for the virtual envmkdir beersolverCreate virtual envpython3 -m venv beersolverActivate it:Linuxsource beersolver/bin/activateWindowscall beersolver/bin/activate.batInstall all the necessary packages:pip3 install -r requirements.txtRun beersolver to test it:beersolverðŸ“– Documentation (How to use tutorial)OBS.:  Throughout this documentation wheneverbeersolveris referenced it meanspython3 beersolver.pyfor those who didn't install it orbeersolverto the ones
who installed it with setuptools.Configuration FileTo easily run you may just start by creating a skeleton config:beersolverexercise-three-c-6-gThis will create a template with all parameters needed to solve calledexample.inias the one below.[positions]position_a_x=0.0position_a_y=96.0position_a_z=4.0position_e_x=90.0position_e_y=52.0position_e_z=0.0position_c_x=120.0position_c_y=36.0position_c_z=100.0[lambdas]lambda_ab_x=0.7777777777777778lambda_ab_y=-0.4444444444444444lambda_ab_z=0.4444444444444444lambda_cd_x=-0.7777777777777778lambda_cd_y=0.4444444444444444lambda_cd_z=-0.4444444444444444[range]upper_range=36.0lower_range=9.0step=1.0With this created you can now just issue the command and see the result:beersolverexercise-three-c-6-iexample.iniThis now generates the response on the command prompt.
You can change the values fromexample.inito change the exercise parameters.InlineTo solve the exercise using inline mode you may insert all the arguments as parameters,
or you wait for the prompt. The program detects if is there any missing argument.Supplying parameters:beersolverexercise-three-c-6--position_a0.096.04.0--position_e90.052.00.0--position_c120.036.0100.0--lambda_ab7/9-4/94/9--lambda_cd-7/94/9-4/9--upper_range36--lower_range9--step1.0Waiting for the prompting:beersolverexercise-three-c-6

A[x]:0.0
A[y]:96.0
A[z]:4.0
E[x]:90.0
E[y]:52.0
E[z]:0.0
C[x]:120.0
C[y]:36.0
C[z]:100.
Lambda_ab[x]:7/9
Lambda_ab[y]:-4/9
Lambda_ab[z]:4/9
Lambda_cd[x]:-7/9
Lambda_cd[y]:4/9
Lambda_cd[z]:-4/9
upper_range:36lower_range:9step:1.0
Package: beerxml
BeerxmlDescriptionThe beerxml python package is a powerful tool designed to streamline the process of working with BeerXML files, ensuring that specific beer recipes adhere to the BeerXML standard. BeerXML is a widely adopted XML-based standard for representing brewing recipes, allowing brewers to share and exchange their recipes seamlessly.InstallationTo install your package, use the following command:pipinstallbeerxmlCode GenerationThe models in this beerxml package have been generated fromthis beerxml json schemawith this command:datamodel-codegen  --input .\schemas\Recipe.json --input-file-type jsonschema --output output.py --snake-case-field --capitalise-enum-members --use-annotated  --use-non-positive-negative-numbe
r-constrained-types --output-model-type pydantic_v2.BaseModelUsageImport theBeerxmlParserclass and inject the file content into the class like in the following example:frombeerxmlimportBeerxmlParser# Example usageparser:BeerxmlParser=BeerxmlParser()withopen("path/to/xml.file","r")asfile_content:recipe=parser.parse(file_content.read())print(recipe.name)print(recipe.hops)print(recipe.fermentables)print(recipe.yeasts)ContributingWe welcome contributions from the community! If you would like to contribute to this project, please follow these guidelines:Reporting IssuesIf you encounter any issues or have suggestions, pleaseopen an issueon our GitHub repository.Pull RequestsFork the repository and create a new branch for your contribution.Write clear and concise commit messages.Include unit tests for your changesSubmit a pull request, clearly describing the changes you've made and providing any necessary context.Linting and Code StyleWe use the following linters to maintain code quality:Ruff: for formatting.Bandit: for security checks.Mypy: for type checking.Before submitting a pull request, ensure that your code passes these checks.Unit TestingAll contributions must be accompanied by unit tests usingpytest. Test coverage is crucial to ensure the reliability of the codebase.To run tests locally:pytest.
Package: bees
=========================================Welcome to BEES=========================================|docs| |pypi|Purpose-------Bayesian and Evolutionary Exploration of hyperparameter SpaceDocumentation for BEES-----------------------------You will find complete documentation for BEES at `the BEES readthedocs page`_... the BEES readthedocs page: http://bees.readthedocs.io/en/latest/.. |docs| image:: docs/_static/docs.gif:alt: Documentation:scale: 100%:target: http://bees.readthedocs.io/en/latest.. |pypi| image:: docs/_static/pypi_page.gif:alt: pypi page:scale: 100%:target: https://pypi.python.org/pypi/bees/Platform--------BEES is compatible with linux 64 bit operating systems.Python Distribution-------------------BEES is written in python 2. Most functionality should be forwards compatible.Install-------From the terminal:.. code-block::(venv)$ pip install bees
Package: beeswax-wrapper
Beeswax WrapperThe beeswax wrapper is a python API for the beeswax DSPbeeswax_wrapper is currently supported for python2 and python3.Installation$pipinstallbeeswax_wrapperImports>>>frombeeswax_wrapperimportBeeswaxAPI,configure_endpointBeeswaxAPIis the main interface to the package.
It allows for seamless communication with the true beeswax API.
The API lazily loads aBeeswaxDALto access the API and manage authentication state.
TheBeeswaxDALis shared among all BeeswaxAPI classes.get_beeswax_dal()returns the singleBeeswaxDALobject used by the apis.
Modifying theBeeswaxDALobject returned by this function affects allBeeswaxAPIclasses.
Updates should be made to this dal using theconfigure_endpointfunction as follows:>>>frombeeswax_wrapperimportBeeswaxAPI,configure_endpoint>>>api=BeeswaxAPI()>>>configure_endpoint('http://endpoint.api.beeswax.com/rest/')>>>api.dal.endpoint_url'http://endpoint.api.beeswax.com/rest/'MethodsTheBeeswaxAPIoperates with an object restful structure.
The basic method calls are organised asapi.<object>.<restful_method>where the restful methods are:retrievelistcreateupdatedeleteSome keywords that are specific to each restful endpoint are supplied but the full list of keywords is available here:https://docs.beeswax.com/docs/getting-startedExamples>>>frombeeswax_wrapperimportBeeswaxAPI>>>api=BeeswaxAPI()>>># get account information for an id>>>api.accounts.retrieve(account_id=4)>>># get a list of campaigns>>>api.campaigns.list()>>># delete a lineitem by id>>>api.line_items.delete(line_item_id=62)>>># change user>>>api.change_user('<username>','<password>')>>># cookies are preserved per classExceptionsTheBeeswaxAPIis metaclassed to raise only aBeeswaxRESTException.AuthenticationThebeeswax_wrapperauthenticates once perBeeswaxDALinstance. The authentication is for short connection durations only.
In the event that a connection times out or is unavailable, theBeeswaxDALwill attempt to re-authenticate.
Credentials from the DAL are queried from the os keyring.Adding credentials$pythonbeeswax_wrapper/credentials/credential_manager.pyBeeswax Username:Beeswax Password:$
Package: beetimer
BeetimerTimer for beeminder. For tasks that expect a number of minutes or hours per day.pip install beetimer
beetimer auth <username>
beetimer config time:minutes   # set default time unit (minutes or hours) (default: minutes)Usagebeetimer goals                 # list goalsbeetimer start <goal>beetimer stop <goal>
> 38 minutes logged for goal: <goal>. commit 38 points to beeminder? [y/n]or, if hours are the default time unit:beetimer stop <goal>
> 0.63 hours logged for goal: <goal>. commit .63 points to beeminder? [y/n]You can force commit on stop with--forceor-f:beetimer stop <goal> -f
> 38 minutes logged for goal: <goal>. committed 38 points to beeminder.
Package: beetools
GeneralCIPyPIGithubDesigned for the use in the Bright Edge eServices echo system. It defines methods and functions for general use purposes.InstallationpipinstallbeetoolsTestsThis project usespytestto run tests.There are various settings combinations in the[tool.pytest.ini_options]section of the pyproject.toml file that can used by commenting it out.This project usesblackto format code andflake8for linting. We also supportpre-committo ensure these have been run. To configure your local environment please install these development dependencies and set up the commit hooks.pytestContributingNaming ConventionsBranch names“enhancement” | “bug” | “hotfix”/< ticket_nr>_<description>whereenhancement - Planned improvement or addition to functionality; non-urgent.bug - An error or defect causing incorrect or unexpected behavior; typically fixed in regular development cycles.hotfix - An urgent, critical fix applied directly to the live environment, often bypassing regular development cycles.ticket_nr: Ticket number assigned to the issue in GitHub.  Once an issue is registered, the owner will assign a ticket.description: GitHub issue title or combination of titles is more than one issue is addressed.ReleasingFor the purpose of push and release of code two script files are included.  Use there two files to files to make life a
bit easier.  The scripts make use of thegititmodule to simplify tasks.push.bat- Use this script to push branches to GitHub repository.  In principle it does the following:usage: push messagee.g. push “Changed the Infinite Improbability Drive”.rst syntax checkgit add -Agit commit -m message (withpre-commitincludingblackandflake8)git push –allrelease.bat- Use this script to push a new tag and release to the GitHub repository.  Remember to change the version number in the setup.cfg else the workflow will fail.usage: release version  The version will match the release and the tag. Only issue a release once a push.bat was successful.  In principle it does the following:e.g. release 1.2.3Commit the changesCreate and push the release tag with the correct naming conventions.Checkout master since it assumes that the branch is now merged with master and will be deleted.display a list of all the current branches as a reminder to delete the branch on completion.
Package: beetrace
Trace your python process line by line with low overhead!beatraceallows you to trace a Python process line by line or the functions' entries
and returns. It uses USDT(User Statically-Defined Tracing) probes withbpftrace.DependenciesThis package is only available for Linux and requires bpftrace. You can look at the
bpftrace installationhere.CPython must beconfigured with the --with-dtrace option.InstallationpipinstallbeetraceUsage & ExampleTo trace the Python process, use the -p parameter to pass the pid value.beetrace-p{pidofprocess}Let's take a look at the quick example.$cat-nexample.py1importos2fromtimeimportsleep345defc():6x=178defb():9y=210c()111213defa():14z=115b()161718whileTrue:19print(f"PID of program: {os.getpid()}")20sleep(1)21print("Sleep 1 second")22a()Output:PIDofprogram:17988Sleep1second
PIDofprogram:17988Sleep1second
PIDofprogram:17988Sleep1second
PIDofprogram:17988...
...
...$beetrace-p17988______________________________|__]|___|___||__/|__|||___|__]|___|___||\|||___|___

PID:17988|Tracingfrom:python3example.py

PressControl-Ctoquit.

PathFile:LineFunction
/tmpexample.py:18<module>
/tmpexample.py:19<module>
/tmpexample.py:20<module>
/tmpexample.py:21<module>
/tmpexample.py:22<module>
/tmpexample.py:14a
/tmpexample.py:15a
/tmpexample.py:9b
/tmpexample.py:10b
/tmpexample.py:6c
/tmpexample.py:18<module>
/tmpexample.py:19<module>
/tmpexample.py:20<module>
/tmpexample.py:21<module>
/tmpexample.py:22<module>
/tmpexample.py:14a
/tmpexample.py:15a
/tmpexample.py:9b
/tmpexample.py:10b
/tmpexample.py:6c
/tmpexample.py:18<module>
/tmpexample.py:19<module>
/tmpexample.py:20<module>
.........
.........
.........
.........
Package: beetroots
beetrootsBeetroots (BayEsian infErence with spaTial Regularization of nOisy multi-line ObservaTion mapS) is a Python package that performs Bayesian inference of physical parameters from multispectral-structured cubes with a dedicated sampling algorithm.
Thanks to this sampling algorithm,beetrootsprovides maps of credibility intervals along with estimated maps.The sampling algorithm is introduced in[1] P. Palud, P.-A. Thouvenin, P. Chainais, E. Bron, and F. Le Petit -Efficient sampling of non log-concave posterior distributions with mixture of noises,IEEE Transactions on Signal Processing, vol. 71, pp. 2491 -- 2501, 2023.doi:10.1109/TSP.2023.3289728Such inversions rely on a forward model that is assumed to emulate accurately the physics of the observed environment.
In parallel of the inversion,beetrootstests this hypothesis to evaluate the validity of the inference results.
The testing method is described in (in French)[2] P. Palud, P. Chainais, F. Le Petit, P.-A. Thouvenin and E. Bron -Problèmes inverses et test bayésien d'adéquation du modèle,GRETSI - Groupe de Recherche en Traitement du Signal et des Imagesin29e Colloque sur le traitement du signal et des images, Grenoble, pp. 705 -- 708, 2023.This package was applied e.g., to infer physical conditions in different regions of the interstellar medium in[3] P. Palud, P.-A. Thouvenin, P. Chainais, E. Bron, F. Le Petit and ORION-B consortium -Bayesian inversion of large interstellar medium observation maps, in prepIt was also exploited to assert and compare the relevance of tracers and combination of tracers to constrain physical conditions in[4] L. Einig, P. Palud, A. Roueff, P.-A. Thouvenin, P. Chainais, E. Bron, F. Le Petit, J. Pety, J. Chanussot and ORION-B consortium -Entropy-based selection of most informative observables for inference from interstellar medium observations, in prepComplex forward modelsIn numerous real-life applications, the forward model is a complex numerical simulation.
In the astrophysics applications presented in the documentation, the numerical simulation is replaced with a neural network-based approximation of the forward model forfaster evaluationability to evaluate derivativesThe package used to derive this approximation isnnbma(Neural Network-Based Model Approximation).
The GitHub repository can be foundhere, the packagehereand the corresponding documentationhere.
The paper presenting this package is[5] P. Palud, L. Einig, F. Le Petit, E. Bron, P. Chainais, J. Chanussot, J. Pety, P.-A. Thouvenin and ORION-B consortium -Neural network-based emulation of interstellar medium models,Astronomy & Astrophysics, 2023, 678, pp.A198.doi:10.1051/0004-6361/202347074Installation and testingTo prepare and perform an inversion, we recommend installing the package.
The package can be installed withpip:pipinstallbeetrootsor by cloning the repo.
To clone, install and test the package, run:gitclonegit@github.com:pierrePalud/beetroots.gitcdbeetroots
poetryinstall# or poetry install -E notebook -E docs for extra dependenciespoetryshell
pytest
Package: beets
beetsBeets is the media library management system for obsessive music geeks.The purpose of beets is to get your music collection right once and for all.
It catalogs your collection, automatically improving its metadata as it goes.
It then provides a bouquet of tools for manipulating and accessing your music.Here’s an example of beets’ brainy tag corrector doing its thing:$ beet import ~/music/ladytron
Tagging:
    Ladytron - Witching Hour
(Similarity: 98.4%)
 * Last One Standing      -> The Last One Standing
 * Beauty                 -> Beauty*2
 * White Light Generation -> Whitelightgenerator
 * All the Way            -> All the Way...Because beets is designed as a library, it can do almost anything you can
imagine for your music collection. Viaplugins, beets becomes a panacea:Fetch or calculate all the metadata you could possibly need:album art,lyrics,genres,tempos,ReplayGainlevels, oracoustic
fingerprints.Get metadata fromMusicBrainz,Discogs, andBeatport. Or guess
metadata using songs’ filenames or their acoustic fingerprints.Transcode audioto any format you like.Check your library forduplicate tracks and albumsor foralbums that
are missing tracks.Clean up crufty tags left behind by other, less-awesome tools.Embed and extract album art from files’ metadata.Browse your music library graphically through a Web browser and play it in any
browser that supportsHTML5 Audio.Analyze music files’ metadata from the command line.Listen to your library with a music player that speaks theMPDprotocol
and works with a staggering variety of interfaces.If beets doesn’t do what you want yet,writing your own pluginis
shockingly simple if you know a little Python.InstallYou can install beets by typingpip install beets.
Beets has also been packaged in thesoftware repositoriesof several
distributions. Check out theGetting Startedguide for more information.ContributeThank you for considering contributing tobeets! Whether you’re a
programmer or not, you should be able to find all the info you need atCONTRIBUTING.rst.Read MoreLearn more about beets atits Web site. Follow@b33tson Twitter for
news and updates.ContactEncountered a bug you’d like to report? Check out ourissue tracker!If your issue hasn’t already been reported, pleaseopen a new ticketand we’ll be in touch with you shortly.If you’d like to vote on a feature/bug, simply give a :+1: on issues
you’d like to see prioritized over others.Need help/support, would like to start a discussion, have an idea for a new
feature, or would just like to introduce yourself to the team? Check outGitHub DiscussionsorDiscourse!AuthorsBeets is byAdrian Sampsonwith a supporting cast of thousands.
Package: beets-artistcountry
Beets plugin to retrieve the country of an artist from MusicbrainzInstallTo install, usepip$> pip install beets-artistcountryTo activate it, addartistcountryto the list of you plugins in your
configuration file (config.yaml)plugins: [...] artistcountry [...]How to use itYou can now use the template fieldartist_countryto build your path in your
audio library. Here is an example to do this in your configuration filepaths:
    defaults:
        $albumartist ($artist_country)/[$year] $album%aunique{}/$track $titleNow the path for a track looks likeMetallica (us)/[1984] Ride The Lightning/04 Fade To Black.mp3
Package: beets-bandcamp
Plugin forbeetsto use bandcamp as an
autotagger source.InstallationInstall this plugin with$ pip install beets-bandcampand addbandcampto thepluginslist in your beets config file.ConfigurationlyricsIf this istruethe plugin will add lyrics to the tracks if
they are available. Default isfalse.artIf this istruethe plugin will add a source to theFetchArtplugin to download album art for bandcamp albums (you need to enable the
FetchArt plugin).  Default isfalse.split_artist_titleIf this istruethe plugin will try to split the
title on `` - `` using the first part as artist and the rest as title.
This can be useful for compilation albums, although you may still need to use
the edit Candidates option of theeditplugin.
Default isfalse.UsageThis plugin uses the bandcamp URL as id (for both albums and songs). If no
matching release is found when importing you can selectenter Idand paste
the bandcamp URL.
Package: beets-copyartifacts
A plugin that moves non-music files during the import process.This is a plugin forbeets: a music
library manager and much more.InstallingInstallation of the plugin can be done using pip:pip install beets-copyartifactsor by using these commands:git clone https://github.com/sbarakat/beets-copyartifacts.git
cd beets-copyartifacts
python setup.py installIf you get permission errors try running it withsudoYou will then need to enable the plugin in beets’ config.yamlplugins: copyartifactsConfigurationIt can copy files by file extenstion:copyartifacts:
    extensions: .cue .logOr copy all non-music files (it does this by default):copyartifacts:
    extensions: .*It can also print what got left:copyartifacts:
    print_ignored: yesRenaming filesRenaming works in much the same way as beetsPath
Formatswith the following limitations: - The fields available are$artist,$albumartist,$albumand$albumpath. - The full set ofbuilt in
functionsare also supported, with the exception of%aunique- which will
return an empty string.Each template string uses a query syntax for each of the file
extensions. For example the following template string will be applied to.logfiles:paths:
    ext:log: $albumpath/$artist - $albumThis will rename a log file to:~/Music/Artist/2014 - Album/Artist - Album.logExample configplugins: copyartifacts

paths:
    default: $albumartist/$year - $album/$track - $title
    singleton: Singletons/$artist - $title
    ext:log: $albumpath/$artist - $album
    ext:cue: $albumpath/$artist - $album
    ext:jpg: $albumpath/cover

copyartifacts:
    extensions: .cue .log .jpg
    print_ignored: yesThankscopyartifacts was built on top of the hard work already done by Adrian
Sampson and the larger community onbeets. We have also benefited from the
work of ourcontributors.This plugin was built out of necessity and to scratch an itch. It has
gained a bit of attention, so I intend to maintain it where I can,
however I doubt I will be able to spend large amount of time on it.
Please report any issues you may have and feel free to contribute.LicenseCopyright (c) 2015 Sami BarakatLicensed under theMIT
license.