Saravanan666/pypi-org huggingface dataset:
Package: xbob.mlp.lbfgs
This example demonstrates how to extend Bob by providing a new L-BFGS-based
trainer for the multilayer perceptron (MLP) implementation of Bob.InstallationFirst, you have to installbobfollowing the instructionsthere.NoteIf you are reading this page through our GitHub portal and not through PyPI,
notethe development tip of the package may not be stableor become
unstable in a matter of moments.Go tohttp://pypi.python.org/pypi/xbob.mlp.lbfgsto download the latest
stable version of this package.There are two options you can follow to get this package installed and
operational on your computer: you can use automatic installers likepip(oreasy_install) or manually download, unpack and
usezc.buildoutto create a
virtual work environment just for this package. In both cases, the two
dependences listed above will be automatically downloaded and installed.Using an automatic installerUsingpipis the easiest (shell commands are marked with a$signal):$ pip install xbob.mlp.lbfgsYou can also do the same witheasy_install:$ easy_install xbob.mlp.lbfgsThis will download and install this package plus any other required
dependencies. It will also verify if the version of Bob you have installed
is compatible.This scheme works well with virtual environments byvirtualenvor if you have root access to your
machine. Otherwise, we recommend you use the next option.Usingzc.buildoutDownload the latest version of this package fromPyPIand unpack it in your
working area. The installation of the toolkit itself usesbuildout. You don’t need to understand its inner workings
to use this package. Here is a recipe to get you started:$ python bootstrap.py
$ ./bin/buildoutThese two commands should download and install all non-installed dependencies and
get you a fully operational test and development environment.NoteThe python shell used in the first line of the previous command set
determines the python interpreter that will be used for all scripts developed
inside this package. Because this package makes use ofBob, you must make sure that thebootstrap.pyscript is called with thesameinterpreter used to build Bob, or
unexpected problems might occur.If Bob is installed by the administrator of your system, it is safe to
consider it uses the default python interpreter. In this case, the above 3
command lines should work as expected. If you have Bob installed somewhere
else on a private directory, edit the filebuildout.cfgbeforerunning./bin/buildout. Find the section namedbuildoutand edit or
add the lineprefixesto point to the directory where Bob is installed or
built. For example:[buildout]
...
prefixes=/Users/crazyfox/work/bob/buildUser GuideIt is assumed you have followed the installation instructions for the package
and got this package installed.Below, we provide an example of how to train an MLP using this trainer, from
the python universe:>>> machine = bob.machine.MLP((n_inputs, n_hidden, n_outputs))
>>> # Initialize the machine weights/biases as wished
>>> trainer = xbob.mlp.lbfgs.Trainer(1e-6)
>>> trainer.initialize(machine)
>>> trainer.train(machine, X, labels)
Package: xbob.sox
This package is a simple Python wrapper to read and write functionalities in Sox <http://sox.sourceforge.net>.
The github version can be found here:https://github.com/bioidiap/xbob.soxInstallationYou can just add a dependence forxbob.soxon yoursetup.pyto
automatically download and have this package available at your satellite
package. This works well if Bob is installed centrally at your machine. If not done, you need also to install bob-dev.On ubuntu, you need something like:$ sudo apt-get install bob bob-dev sox libsox-devOn Mac OSX, you need something like:$ sudo port install bob bob-dev sox libsox-devOtherwise, you will need to tellbuildouthow to build the package locally
and how to find Bob. For that, just add a recipe to your buildout that will
fetch the package and compile it locally, setting the buildout variableprefixesto where Bob is installed (a build directory will also work). For
example:[buildout]
parts = xbob.sox <other parts here...>
prefixes = /Users/elie/work/bob/build/debug
...

[xbob.sox]
recipe = xbob.buildout:develop

...DevelopmentTo develop these bindings, you will need the open-source librariesBobandSoxinstalled somewhere. This satellite package was tested with Bob version 1.2.x, and Sox version 14.3.x and 14.4.x, and on OSX and UBUNTU 10.x and 12.x.
If you have compiled Bob and Sox yourself and installed it on a non-standard location, you will need to note down the path leading to the root of that installation.Just type:$ python bootstrap.py
$ ./bin/buildoutIf Bob is installed in a non-standard location, edit the filebuildout.cfgto set the root to Bob’s local installation path. Remember to use thesame python interpreterthat was used to compile Bob, then execute the same steps
as above.UsageTo read, just do something like:import xbob.sox
infilename='xbob/sox/data/sample1.sph'
audio = xbob.sox.reader(infilename)
(rate, data) = audio.load()
print rate
print dataThis allows to read more wave formats thanscipy.io.wavfilemodule. The output data are the same as for the MATLABwavreadfunction, and comparable withscipy.io.wavfilemodule (just multiplied by 2^15). Unit-tests to compare the 3 implementations are available. Just run:$ bin/nosetests -vsTo write, do something like:outfilename='out.wav'
writer=xbob.sox.writer(outfilename, rate)
writer.save(data)Thexbob.sox.writermethod accepts more parameters to optionally select the codec and the number of bits per sample (if the codec allows). Please refer to its built-in. By default, it uses the default codec and bits per sample that are associated with the extension of the file.Supported Encoding and ExtensionsEncodings:SIGN2,UNSIGNED,FLOAT,FLOAT_TEXT,FLAC,HCOM,WAVPACK,WAVPACKF,ULAW,ALAW,G721,G723,CL_ADPCM,CL_ADPCM16,MS_ADPCM,IMA_ADPCM,OKI_ADPCM,DPCM,DWVW,DWVWN,GSM,MP3,VORBIS,AMR_WB,AMR_NB,CVSD,LPC10.Extensions:.voc,.smp,.wve,.gsrt,.amr-wb,.prc,.sph,.amr-nb,.txw,.sndt,.vorbis,.speex,.hcom,.wav,.aiff,.aifc,.8svx,.maud,.xa,.au,.flac,.avr,.caf,.wv,.paf,.sf,.sox.
Package: xbool
IntroductionDocumentationInstallQuick Startbool_valuebool_envLicensingIntroductionGeneral purpose bool/boolean utilities, extracting bools from strings.Only two so far:bool_value, seebool_value docs.bool_env, seebool_env docs.Documentation📄 Detailed Documentation|🐍 PyPiInstall# via pippipinstallxbool# via poetrypoetryaddxboolQuick Startbool_valueGenerally converts objects to bool-values, special-casing strings
to use the built-indistutils.util.strtoboolfunction to convert the string value
to a bool.fromxboolimportbool_value# Convert string to boolassertbool_value('true')isTrueassertbool_value('false')isFalseassertbool_value('y')isTrueassertbool_value('n')isFalseassertbool_value('on')isTrueassertbool_value('off')isFalseassertbool_value('t')isTrueassertbool_value('f')isFalseassertbool_value('yes')isTrueassertbool_value('no')isFalseassertbool_value('1')isTrueassertbool_value('0')isFalse# Any other string is generally considered False:assertbool_value("some-other-string")isFalse# Convert bools to bools:assertbool_value(True)isTrueassertbool_value(False)isFalse# Generally, for non-strings, True-like objects return True:some_object=object()assertbool_value(some_object)isTrue# And False-like objects return False:assertbool_value(None)isFalsebool_envLooks up environmental variable with passed in name.Runs the env-var value thoughbool_valuefor you and returns the result.Useful to easily get a bool-value from an environmental variable.fromxboolimportbool_envimportosos.environ['SOME_ENV_VAR']="False"assertbool_env('SOME_ENV_VAR')isFalseos.environ['SOME_OTHER_ENV_VAR']="True"assertbool_env('SOME_OTHER_ENV_VAR')isTrueLicensingThis library is licensed under the MIT-0 License. See the LICENSE file.
Package: xbootstrap
xbootstrapxbootstrapis a simple package for performingnested*circular†block‡bootstrapping¶of xarray objects.¶Bootstrapping is random resampling with replacement.‡Block boostrapping is a simple way to account for autocorrelation in the data being randomly resampled.†Circular block bootstrapping avoids undersampling data values near the beginning and end of the dimension(s) being resampled. This is optional inxbootstrap.*Here, nested bootstrapping means that, when multiple dimensions are specified, the first dimension is randomly resampled, then for each resampled element along that dimension the second dimension is randomly resampled, then for each resampled element along that dimension the third dimension is randomly resampled etc.InstallationTo install this package from PyPI:pip install xbootstrapExample usagexbootstrapcurrently comprises a single function calledblock_bootstrapthat can be used as follows:importnumpyasnpimportxarrayasxrfromxbootstrapimportblock_bootstrap# Generate some example datan_time=100n_ensemble=10ds1=xr.DataArray(np.random.random((n_time,n_ensemble)),coords={"time":range(n_time),"ensemble":range(n_ensemble)},)ds2=xr.DataArray(np.random.random((n_time,n_ensemble)),coords={"time":range(n_time),"ensemble":range(n_ensemble)},)ds3=xr.DataArray(np.random.random((n_time)),coords={"time":range(n_time)})# Create 1000 circularly bootstrapped resamples of ds1, ds2 and ds3# using a blocksize of 5 for the time dimension and 1 for the ensemble# dimension, and only bootstrapping the time dimension for ds2ds1_bs,ds2_bs,ds3_bs=block_bootstrap(ds1,ds2,ds3,blocks={"time":5,"ensemble":1},n_iteration=1000,exclude_dims=[[],["ensemble"],[]],circular=True,)block_bootstrapalso operates lazily with dask-backed xarray objects, but this requiresdaskto be installed:ds1_bs,ds2_bs,ds3_bs=block_bootstrap(ds1.chunk(),ds2.chunk(),ds3.chunk(),blocks={"time":5,"ensemble":1},n_iteration=10,exclude_dims=[[],["ensemble"],[]],circular=True,)ContributingContributions are very welcome, particularly in the form of reporting bugs and writing tests. Please open an issue and check out thecontributor guide.ReferencesWilks, D.S., 2011.Statistical methods in the atmospheric sciences(Vol. 100). Academic press. (particularlyChapter 5.3)
Package: xbos-services-utils2
Project TitleUtils for xbos services using for Python 2.7Getting StartedSet XBOS_SERVICES_UTILS_CONFIG_PATH2 environment variable. The path should link to a directory which includes the folder "Buildings" and file "all_zones.yml". The yml file should resolve to a dictionary {zone_name: (list str) zones names}.Installingpip install xbos-services-utils2Running the testsStart the service and run the .test/test.py file for testing.AuthorDaniel Lengyel-Initial work-daniellengyelLicenseNo License
Package: xbos-services-utils3
Project TitleUtils for xbos services using for Python 3.6Getting StartedSet XBOS_SERVICES_UTILS_CONFIG_PATH2 environment variable. The path should link to a directory which includes the folder "Buildings" and file "all_zones.yml". The yml file should resolve to a dictionary {zone_name: (list str) zones names}.Installingpip install xbos-services-utils3Running the testsStart the service and run the .test/test.py file for testing.Break down into end to end testsExplain what these tests test and whyGive an exampleAuthorDaniel Lengyel-Initial work-daniellengyelLicenseNo License
Package: xboto
Documentation📄 Detailed Documentation|🐍 PyPiInstall# via pippipinstallxboto# via poetrypoetryaddxbotoQuick StartImport Boto Client/Resource# Use imported `dynamodb` just like dynamodb boto resourcefromxboto.resourceimportdynamodb# Use imported `ssm` just like ssm boto clientfromxboto.clientimportssm# These are for overriding/injecting settings.fromxbotoimportBotoResources,BotoClients,BotoSession# Can use them like normal:dynamodb.table(...)ssm.get_object(...)# Or you can override settings if you wish:withBotoResources.DynamoDB(region_name='us-west-2'):# Use us-west-2 when using dynamodb boto resource:dynamodb.table(...)withBotoClients.Ssm(region_name='us-west-2'):# Use us-west-2 when using ssm boto client:ssm.get_object(...)withBotoSession(region_name='us-west-3'):# Use us-west-3 when using any client/resource# we are setting it at the boto-session level;# the session is used by all boto client/resources.ssm.get_object(...)# Can use them like decorators as well:@BotoClients.Ssm(region_name='us-west-2')defsome_method():ssm.get_object(...)Grab Any Client/Resource# Can easily ask these for any client/resourcefromxbotoimportboto_clients,boto_resources# These are for overriding/injecting settings.fromxbotoimportBotoResources,BotoClients,BotoSession# Can use them like normal:boto_clients.dynamodb.table(...)boto_resources.ssm.get_object(...)# Or you can override settings if you wish:withBotoResources.DynamoDB(region_name='us-west-2'):# Use us-west-2 when using dynamodb boto resource:boto_resources.dynamodb.table(...)withBotoClients.Ssm(region_name='us-west-2'):# Use us-west-2 when using ssm boto client:boto_clients.ssm.get_object(...)withBotoSession(region_name='us-west-3'):# Use us-west-3 when using any client/resource# we are setting it at the boto-session level;# the session is used by all boto client/resources.boto_clients.ssm.get_object(...)# Can use them like decorators as well:@BotoClients.Ssm(region_name='us-west-2')defsome_method():boto_clients.ssm.get_object(...)
Package: xbox
AboutThis project is a wrapper around Microsoft’s set of private APIs in use
by the Xbox One and related apps.GoalsThe main goals of this project are to achieve a decent, usable API,
everything else is secondary.InstallationInstall usingpip$ pip install xboxUsage>>>importxbox>>>xbox.client.authenticate(login='joe@example.org',password='hunter2')>>># get a gamer>>>gt=xbox.GamerProfile.from_gamertag('JoeAlcorn')>>>gt.gamerscore22056>>>gt.gamerpic'http://images-eds.xboxlive.com/image?url=z951ykn43p4FqWbbFvR2Ec.8vbDhj8G2Xe7JngaTToBrrCmIEEXHC9UNrdJ6P7KIFXxmxGDtE9Vkd62rOpb7JcGvME9LzjeruYo3cC50qVYelz5LjucMJtB5xOqvr7WR'>>># get iterator of recorded clips>>>clips=gt.clips()>>># convert iterator to a list so we can index it>>>clips=list(clips)>>>clip=clips[0]>>>clip.media_url'http://gameclipscontent-d2005.xboxlive.com/asset-886c5b78-8876-4823-b31b-fbc77d8caa67/GameClip-Original.MP4?sv=2012-02-12&st=2014-09-03T22%3A40%3A58Z&se=2014-09-03T23%3A45%3A58Z&sr=c&sp=r&sig=Q5qvyDvFRM2Bn2tztJ%2F%2BEf9%2FQOpkTPuFniByvE%2Bc9cc%3D&__gda__=1409787958_f22b516f9d29da56911b7cac03f15d05'>>>clip.views4>>>clip.state'Published'>>>clip.duration54>>>clip.thumbnails.large'http://gameclipscontent-t2005.xboxlive.com/00090000014d6bae-7638b9fd-2a19-4ef1-b621-505a6ac93488/Thumbnail_Large.PNG'LinksCodeIssues & BugsDocumentationPyPIRoadmap
Package: xboxapi
DescriptionThis is a Python wrapper for the unofficialXbox APIInstallationFor now you will have to install manually, as I didn't upload the initial version to pypi (pip).Clone this repoPlace thexboxapidirectory in your projectThe only dependency isrequestslibrary.UsageThis is a basic example of how to create a client and fetch a gamers profile information from their gamertag.fromxboxapiimportClientclient=Client(api_key=<api_key>)gamer=client.gamer('voidpirate')profile=gamer.get('profile')Clientclass constructor takes the following optional arguments exceptapi_key.ArgumentValueShort Descriptionapi_keystringapi token fromXbox APItimeoutinthow long until the request times out (seconds)langstringcountry language code (e.g. for German (de-DE))Clientclass public methods.MethodValueOptionalShort Descriptiongamer(gamertag=<string>)stringxuid=<string>gamertag to lookupcalls_remaining()n/an/aReturn headers about api rate limitsA note about the gamer method. If you already know the gamers xuid you can use that instead to avoid an additional api call when using only a gamertag.Gamerclass public methods, returned from gamer method inClient.MethodValueOptionalShort Descriptionget(method=<string>)stringterm=<string>API calls.send_message(message=<string>)stringn/aSend a message to gamersend_activity(message=<string>)stringn/aUpdate your activity feed with a messagePagination is supported in this client and all handled throughgetmethod. It works by detecting the response header for pagination, any subsequent calls to the same api endpoint will return paged data. If another api call is made to a different endpoint, the pagination token will be cleared and results will not be paged.
Package: xboxgamertag
xboxgamertagPython module to get data fromwww.xboxgamertag.comUsageInstallationpip install xboxgamertagSimple examplefromxboxgamertagimportgamertaguser=Gamertag('WoolDoughnut310')# My gamertag is WoolDoughnut310, by the way# Get my amount of gamerscoreprint(user.gamerscore)# If you want to see how many games I have played in totalprint(user.total_games_played)
Package: xbox-remote
xbox.pyPython class to support reading xbox 360 wired and wireless controller input under Linux.  Makes it easy to get real-time input from controller buttons, analog sticks and triggers.  Built and tested on RaspberryPi running Raspbian.Requires that xboxdrv be installed first:sudo apt-get install xboxdrvTo test the driver, issue the following command and see if the controller inputs are recognizedsudo xboxdrv --detach-kernel-driverSeehttp://pingus.seul.org/~grumbel/xboxdrv/for details on xboxdrvDownload the python module and sample code with the following:wget https://raw.githubusercontent.com/FRC4564/Xbox/master/xbox.py
wget https://raw.githubusercontent.com/FRC4564/Xbox/master/sample.pyYou can run the sample code to see how the Joystick class works.sudo python sample.pyExample class usage:import xbox
joy = xbox.Joystick()         #Initialize joystick

if joy.A():                   #Test state of the A button (1=pressed, 0=not pressed)
    print 'A button pressed'
x_axis   = joy.leftX()        #X-axis of the left stick (values -1.0 to 1.0)
(x,y)    = joy.leftStick()    #Returns tuple containing left X and Y axes (values -1.0 to 1.0)
trigger  = joy.rightTrigger() #Right trigger position (values 0 to 1.0)

joy.close()                   #Cleanup before exitNote:
Run your code with sudo privileges to allow xboxdrv the necessary control over USB devices.
If you want, you can provide your user account with the proper access, so you needn't use sudo.First, add your user to the root group. Here's how to do this for the user ‘pi’sudo usermod -a -G root piCreate a permissions file using the nano text editor.sudo nano /etc/udev/rules.d/55-permissions-uinput.rulesEnter the following rule and save your entry.KERNEL=="uinput", MODE="0660", GROUP="root"TroubleshootingI find that xboxdrv occasionally has trouble connecting to the controller.  You may see a USB device error or something similar.  Issuing the following command will detach and reconnect the controller.sudo xboxdrv --detach-kernel-driverYou should now be able to move the joysticks and press buttons to see the controller state display for all inputs.  Just press Ctrl-C to exit and then relaunch your python code that uses xbox.py.If your wireless controller still won't connect, press the sync button on the controller and the receiver (both devices need to be powered).UsageA good application for an XBox controller is for robot control.  Check outBasic PiBotfor more details.
Package: xbox-smartglass-nano
Xbox-Smartglass-NanoThe gamestreaming part of the smartglass library, codename NANO.Currently supported version:NANO v1 (Xbox One family)XCloud and new XHome streaming are Nano v3, required for Xbox Series S/X.For in-depth information, check out the documentation: (https://openxbox.github.io)FeaturesStream from your local Xbox One (OG/S/X) consoleDependenciesPython >= 3.7xbox-smartglass-corepyav (https://pyav.org/docs/develop/)pysdl2 (https://pysdl2.readthedocs.io/en/latest/install.html)Installpip install xbox-smartglass-nanoHow to usexbox-nano-clientKnown issuesVideo / Audio / Input is not smooth yetChatAudio and Input Feedback not implementedDevelopment workflowReady to contribute? Here's how to set upxbox-smartglass-nano-pythonfor local development.Fork thexbox-smartglass-nano-pythonrepo on GitHub.Clone your fork locallygit clone git@github.com:your_name_here/xbox-smartglass-nano-python.gitInstall your local copy into a virtual environment. This is how you set up your fork for local developmentpython -m venv ~/pyvenv/xbox-smartglass
source ~/pyvenv/xbox-smartglass/bin/activate
cd xbox-smartglass-nano-python
pip install -e .[dev]Create a branch for local development::git checkout -b name-of-your-bugfix-or-featureMake your changes.Before pushing the changes to git, please verify they actually workpytestCommit your changes and push your branch to GitHub::git commit -m "Your detailed description of your changes."
git push origin name-of-your-bugfix-or-featureSubmit a pull request through the GitHub website.Pull Request GuidelinesBefore you submit a pull request, check that it meets these guidelines:Code includes unit-tests.Added code is properly named and documented.On major changes the README is updated.Run tests / linting locally before pushing to remote.CreditsThis package uses parts ofCookiecutterand theaudreyr/cookiecutter-pypackage project templateCHANGELOG0.10.0 (2020-12-12)Change of license -> MIT licenseDeprecated Python 3.6, Added Python 3.9Migration from gevent to asyncio (in sync with smartglass-core)Migration from marshmallow objects to pydanticFixed controller and closing issues (#15)0.9.4 (2020-02-29)Fix KeyError for debug printsPyAV 0.4.1 -> 6.1.0 compatibility0.9.3 (2018-11-14)Python 3.7 compatibility0.9.2 (2018-09-30)Fix TravisCI dependency on ffmpeg0.9.1 (2018-09-29)First release on PyPI.
Package: xbp
[翻訳者募集中]BuildPy: 新しい簡単でシンプルなビルドスクリプト使い方あなたの c/cpp プロジェクトの中にサブモジュールとしてこのリポジトリをクローンします。そして、同じ場所に<project-name>.buildpyという名前で、ビルドスクリプトを用意します。ビルドビルドするときに、以下のコマンドを実行します拡張子は自動で追加されるので、書く必要はありません。python3 BuildPy/__main__.py <project-name>スクリプトのサンプルfolders {
  include = include
  source  = src
}

build {
  .fast = true
  .use_glob = true
  .no_overwrite = copy_folder

  compiler {
    c   = clang
    cpp = clang++
  }

  extensions {
    c { c }
    cpp { cc cxx cpp }
  }

  flags {
    opti  = -O2
    c     = $opti -Wno-switch -Wimplicit-fallthrough
    cpp   = $c -std=c++20
    link  = -Wl,--gc-sections
  }

  objects_folder = build
  linker = $compiler.cpp
}Contributeどんなプルリクエストでも遠慮なく投稿してください！