Saravanan666/pypi-org huggingface dataset:
Package: bentoutils
bentoutilsContentsConsole scripts for:bentopack - package an existing pretrained model and save to the Model RegistryUsage: bentopack [OPTIONS]

Options:
  --module TEXT  fully qualified module name containing service to package
  --clz TEXT     class name of service to package
  --name TEXT    model name
  --path TEXT    directory path of pretrained model
  --help         Show this message and exit.Example:bentopack \
    --module TopicBentoService \        # python module containing service class
    --clz TopicBentoService \           # service class
    --name tm_train3_roberta_l_weigh \  # pretrained model name
    --path /srv/models/multilabel-topic # local path to pretrained model (excluding name)deploy_to_knative - WIPUses Kanikokaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster.kaniko solves two problems with using the Docker-in-Docker build method:Docker-in-Docker requires privileged mode to function, which is a significant security concern.Docker-in-Docker generally incurs a performance penalty and can be quite slow.The setting--isdockerconfigis required when using a private registry such as Harbor.We can build a Docker image with kaniko and push it to Docker Hub or any other standard Docker registry.To push to DockerHub or any other username and password Docker registries we need to mount the Docker config.json file that contains the credentials. Caching will not work for DockerHub as it does not support repositories with more than 2 path sections (acme/myimage/cache), but it will work in Artifactory and maybe other registry implementations.DOCKER_USERNAME=[...]
DOCKER_PASSWORD=[...]
AUTH=$(echo -n "${DOCKER_USERNAME}:${DOCKER_PASSWORD}" | base64)
cat << EOF > config.json
{
    "auths": {
        "https://index.docker.io/v1/": {
            "auth": "${AUTH}"
        }
    }
}
EOFAlternatively, to create a secret to authenticate to Google Cloud Registry, follow these steps:Create a service account in the Google Cloud Console project you want to push the final image to with Storage Admin permissions.Download a JSON key for this service accountRename the key to kaniko-secret.jsonTo create the secret, run:kubectl create secret generic kaniko-secret --from-file=Note: If using a GCS bucket in the same GCP project as a build context, this service account should now also have permissions to read from that bucket.Seehttps://github.com/GoogleContainerTools/kaniko
Package: benv
benvA minimalistic Python virtual environment manager that no one needs.RequirementsPython >= 3.3InstallationClone this repogitclonegit@github.com:burakyilmaz321/benv.gitSourcebenv.shin your.bashrc# anywhere in ~/.bashrcsource/path/to/benv.shUsageCreate a home directory for environmentsmkdir~/.envsExport this folder's path asBENV_HOMEBENV_HOME=~/.envsThere are four basic functions to callmkenvCreate a new virtual environmentlsenvList all existing virtual environmentschenvActivate an existing virtual environmentrmenvRemove a virtual environmentLicenseMIT
Package: benvy
Development environment initializationfor theDaipe stackWhat it doesLocal ComputerExtends thePyfony dev environment initializationDownloads Hadoop'swinutils.exeand puts it into the project's.venvdirectory (Windows only)DownloadsJava 1.8binaries and puts them into the~/.databricks-connect-javadirCreates the empty~/.databricks-connectfileDatabricks Repos EnvironmentDownload and install poetry package managerInstall dependencies from poetry.lockSet current working directory to project rootAppend src folder to sys pathSet proper environment variablesUsage%sh
pip install benvy==1.3.3from benvy.databricks.repos import bootstrap  # noqa

bootstrap.install()from benvy.databricks.repos import bootstrap  # noqa

bootstrap.setup_env()
Package: benyo-zbx
benyo_zbxIt is a test module which build by Benyo Yuan,
it test the python module that can install by pip and use in py2.7 and py3.7.Introductionfrom benyo_zbx import ZabbixFace as zfzf_demo = zf(auth=(), host=””)
print(zf_demo)# 获取host清单
host_lists = zf_demo.host.get()SupportsTested on Python 2.7, 3.7pip install benyo_zbx
Download:https://pypi.org/project/benyo-zbx/#descriptionDocumentation:https://pypi.org/project/benyo-zbx/#filesYour feedback is always welcome!
Package: benzinga
Benzinga Python ClientThis is the the official documentation for Benzinga's Python Package. This package
Is compatible with Python v3.x+. For extensive instructions, visitBenzinga DocsGetting StartedThe installation process varies depending on your python version and system used.
The basic installation instructions are as follows:pipinstallbenzingaAlternatively, the package can be installed by using:pip3installbenzingaOnce you have successfully installed the package, you can either import the
Financial Data module, for quantitative financial data:frombenzingaimportfinancial_dataor you can import the Benzinga News Data module, if you're looking into financial news:frombenzingaimportnews_dataYour KeyApi KeyTo initiate a class, an API key is used, for
authentication purposes.Contact usif you don't yet have a key, we will take care of you!Sample API Key (type: str) : "testkey892834789s9s8abshtuy"Logging InformationLog=Trueby default. Purpose of logging is to determine when the call was made(2020-10-21 08:02.29)and get the
status of API call within the console(Status Code: 200)Log (type: bool)Sample Test Financial Data ModuleInitiating the class:frombenzingaimportfinancial_dataapi_key="testkey892834789s9s8abshtuy"fin=financial_data.Benzinga(api_key)# logging is by default True in above case, in order to turn off the logging set log to Falsefin=financial_data.Benzinga(api_key,log=False)A sample test run to get ratings on a stock. (Returns a JSON object):stock_ratings=fin.ratings()Sincefin.ratings()returns a JSON dict, for a better view of the dict,
you can call thefin.output()method on the result. Example:fin.output(stock_ratings)Sample Test News Data ModuleInitiating the class:frombenzingaimportnews_dataapi_key="testkey892834789s9s8abshtuy"paper=news_data.News(api_key)A sample test run to get general news. (Returns a JSON Object)stories=paper.news()Sincefin.news()returns a JSON dict, for a better view of the dict,
you can call thefin.output()method on the result. Example:paper.output(stories)It is important to note that for both the Financial Data Module and the News Data Module, there are manyoptionalparameters for the methods. Below is a detailed listing of possible methods for the Financial Data Module and the news Data Module, their method call names, arguments, and what they return.For more Financial Data and News Data methods, please visit Benzinga Cloud.Additional LinksBenzinga News:https://www.benzinga.com/Benzinga Pro:https://pro.benzinga.com/
Package: beoremote-halo
Beoremote Halo Open APITheBeoremote HaloOpen API is an open source async API that allows you to interact with a Beoremote Halo from a home automation system.Using a WebSocket to communicate with the Beoremote Halo, it is possible to create a configuration of buttons to interact with your home automation to control your home applications.Beoremote Halo supports buttons with icons or text for most general home automation applications.
You can find a list of thesupported iconson our wiki pages.
For further details on the Open API list of commands please refer to theAPI description.InstallationThe Python packagebeoremote-halorequiresPython 3.9or higher and contains a library for communicating with Beoremote Halo and a CLI tool for discovering Beoremote Halo on the network.Install using pip:pip3 install beoremote-haloBasic UsageIn the following example a client instance connects to Beoremote Halo and listens for events. When aSystemEventis received theon_system_eventcallback is executed and prints the Beoremote Halo's system state. Please refer to theAPIfor details on each type of event.frombeoremoteimportHalofrombeoremote.eventsimportSystemEventdefon_system_event(client:Halo,event:SystemEvent):print(event)remote=Halo("192.168.1.57")remote.set_on_system_event_callback(on_system_event)remote.connect()ExampleUse thebeoremote-haloCLI tool to discover and then run a demo by connecting to your Beoremote Halo.In the above demo the CLI is used to locate Beoremote Halo on the network.beoremote-halo scanAfterwards the CLI demo is run by passing the serial number of the discovered Beoremote Halo.beoremote-halo demo --serial xxxxxxxxThe demo configures the Beoremote Halo and reacts to events received from Halo. The callbacks each handle a specific type ofevent.on_system_eventis provided but unused in this example.on_wheel_eventchanges the indicator ring on the centered/controlled button.on_button_eventchanges the active/inactive state of a button, will start/pause/resume the timer if the "Oven Timer" button is pressed.
Package: bep20
Python-BEP20-TokenA Python package that models token methods using theBEP-20 token standardfor tokens on the Binance Smart Chain (BSC).NOTE: This package is in development and currently only offers basic functionality...Installation:pipinstallbep20Feature List:Methods:name()symbol()decimals()totalSupply()balanceOf()getOwner()transfer()transferFrom()prepare_approve()Returns an uncalled approve() function ready to be signed by the owner.allowance()
Package: bepasty
bepasty is like a pastebin for all kinds of files (text, image, audio, video,
documents, …, binary).The documentation is there:https://bepasty-server.readthedocs.org/en/latest/FeaturesGeneric:you can upload multiple files at once, simply by drag and dropafter upload, you get a unique link to a view of each fileon that view, we show actions you can do with the file, metadata of the
file and, if possible, we also render the file contentsif you uploaded multiple files, you can create a pastebin with the list
of all these files - with a single click!Set an expiration date for your filesText files:we highlight all text file types supported by pygments (a lot!)we display line numberswe link from line numbers to their anchors, so you can easily get a link
to a specific lineImage files:we show the image (format support depends on browser)for image list items, we can show a slide show (“carousel” view)in the items list, a thumbnail of images is shownAudio and video files:we show the html5 player for it (format support depends on browser)asciinema recordings:we show the asciinema player for .cast filesURLs:we support linking to / redirecting to external URLs, you can use
this as a link shortener (avoiding privacy / data protection issues
that may exist with other link shorteners)PDFs:we support rendering PDFs in your browser (if your browser is able to)Storage: we use a storage backend api, currently we have backends for:filesystem storage (just use a filesystem directory to store
<uuid>.meta and <uuid>.data files)currently there are no other storage implementations in master branch
and releases. The “ceph cluster” storage implementation has issues and
currently lives in branch “ceph-storage” until these issues are fixed.Keeping some control:flexible permissions: read, create, modify, delete, list, adminassign permissions to users of login secretsassign default permissions to not-logged-in usersyou can purge files from storage by age, inactivity, size, type, …you can do consistency checks on the storage
Package: bepatient
Be Patientbepatientis a library aimed at facilitating work with asynchronous applications. It
allows for the repeated execution of specific actions until the desired effect is
achieved.FeaturesSet up and monitor requests for expected values.Flexible comparison using various checkers and comparers.Configure multiple conditions to be met by response.Inspect various aspects of the response (body, status code, headers).Detailed logs, facilitating the analysis of the test process.Retry mechanism with customizable retries and delay.InstallationTo installbepatient, you can use pip:pipinstallbepatientbepatientsupports Python 3.10+Basic UsageUsing RequestsWaiter object:fromrequestsimportgetfrombepatientimportRequestsWaiterwaiter=RequestsWaiter(request=get("https://example.com/api"))waiter.add_checker(comparer="contain",expected_value="string")waiter.run()response=waiter.get_result()assertresponse.status_code==200Simple way:fromrequestsimportgetfrombepatientimportwait_for_value_in_requestresponse=wait_for_value_in_request(request=get("https://example.com/api"),comparer="contain",expected_value="string")assertresponse.status_code==200If we need add more than one checker:fromrequestsimportgetfrombepatientimportwait_for_values_in_requestlist_of_checkers=[{"checker":"json_checker","comparer":"contain","expected_value":"string"},{"checker":"headers_checker","comparer":"is_equal","expected_value":"cloudflare","dict_path":"Server",},]response=wait_for_values_in_request(request=get("https://example.com/api"),checkers=list_of_checkers,retries=5,)assertresponse.status_code==200LicenseMIT LicenseCopyright (c) 2023 Dawid SzaniawskiPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: bepatient-db
bepatient-dbPlugin for thebepatientlibrary adding database support.
It enables the repeated execution of database queries while waiting for a specific
condition to be met.Supported databases:PostgreSQL,MySQL,SQLite.InstallationTo installbepatient-db, you can use pip:pipinstallbepatient-dbbepatientsupports Python 3.10+UsageFirst and foremost, we need to configure the database connection.SQLWaiterutilizes
theCursorobject of supported databases. Data returned by theCursorshould be in
the format of a list of dictionaries (list[dict]) or a dictionary (dict).
Each of the supported databases allows for such configuration.SQLite exampleimportsqlite3fromflaskimportcurrent_app,gdefdict_factory(cur,row):fields=[column[0]forcolumnincur.description]returndict(zip(fields,row))defget_db():if'db'noting:g.db=sqlite3.connect(current_app.config['DATABASE'],detect_types=sqlite3.PARSE_DECLTYPES)g.db.row_factory=dict_factoryreturng.dbdefclose_db(e=None):db=g.pop('db',None)ifdbisnotNone:db.close()With theCursorconfigured in this way, we can useSQLWaiterto repeatedly execute
queries until we receive the desired data or reach a predefined number of attempts.Database:useridname1Bob2Jerry3Mattfromsqlite3importCursorfrombepatient_dbimportSQLWaiterdefwait_for_user(cursor:Cursor)->list[dict[str,str]]:waiter=SQLWaiter(cursor=cursor,query="SELECT name FROM user")waiter.add_checker(expected_value="Bob",comparer="is_equal",dict_path="0.name")returnwaiter.run(retries=1).get_result()Output:[{"name":"Bob"},{"name":"Jerry"},{"name":"Matt"},]LicenseMIT LicenseCopyright (c) 2023 Dawid SzaniawskiPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: bepospliz
BePosPlizBePosPliz (be positional please) is a lightweight module to anonymize the arguments of a function.Relevant PEP:https://peps.python.org/pep-0646I am not really sure if this has a real world purpose, but playing with new Python features is very enjoyable.
I appreciate the effort to improve type expressiveness, and I am looking forward to PEPs 695 and 696 for even more fun :DFeaturesanon_argsUsageLet the following function:frombeposplizimportanon_args@anon_argsdefdiv(a:int,b:int)->float:"""Divide a by b"""returna/bdiv's original signature isdiv(a: int, b: int) -> float.With the decorator@anon_args, it becomesdiv(int, int) -> float, meaning that it cannot be called by specifically naming the args anymore (e.g.div(b=3, a=2))Signatureanon_args(function:Callable[[*Ps],R])->Callable[[*Ps],R]withPsbeing the set of types offunction's arguments, andRits return type.ExampleGiven the previousdivfunction,Pswould be(int, int)andRwould befloat.
Package: beproduct
BeProduct Python SDK PackageRead full documentation athttps://sdk.beproduct.comExampleInstall:pip install --upgrade beproductUse:frombeproduct.sdkimportBeProductclient=BeProduct(client_id='YOUR_CLIENT_ID',client_secret='YOUR_CLIENT_SECRET',refresh_token='YOUR_REFRESH_TOKEN',company_domain='YOUR_COMPANY_DOMAIN')style=client.style.attributes_get(header_id='e81d3be5-f5c2-450f-888e-8a854dfc2824')print(style)
Package: beproductive
Be ProductiveA tool that let's you focus on your work by blocking distracting websites. Optionally with a timer for work sessions, using the Pomodoro technique.InstallTo installBe Productive:pip install beproductiveIf you use Windows, it's recommended topip install win10toastfornice Windows notifications.You don't have to installwin10toast, but without it you will not get visible and audible notifications for Pomodoro. However, all notifications are also printed in your command line interface.How to UseWindowsYou have to open your command line tool withadministrator privileges.Linux (and MacOS?)You have to run Be Productive withroot privileges, either withsudobefore every command or once withsu.Block / Unblock WebsitesBlock websites:python -m beproductiveBlock websites forxminutes:python -m beproductive block --time 45Unblock all websites:python -m beproductive unblockStart a Pomodoro session:python -m beproductive pomodoroPomodoroThePomodorofeature blocks your defined websites for25 minutes. It notifies you to take a break and gives you access to all websites for5 minutes. Although I recommend getting up and stretching instead :) This cycle is repeated4 times.You can customize Pomodoros. This is how you run 5 Pomodoros of 45 minutes with 10 minute breaks:python -m beproductive pomodoro --time 45 --breaktime 10 --pomodoros 5
python -m beproductive pomodoro -t 45 -b 10 -p 5Blocked WebsitesThese websites are blocked per default, but you can add and remove websites easily. You can view all blocked websites with this command:python -m beproductive [--list/-l]twitter.com
youtube.com
facebook.com
instagram.com
reddit.com
netflix.com
amazon.com
linkedin.comCustomizing BlocklistTo add websites to the blocklist:python -m beproductive [--add/-a] quora.com wired.comTo remove websites from blocklist:python -m beproductive [--remove/-r] quora.com wired.comBatch filesFor quick access:Create batch files for the commands you need.Add a shortcut to each batch file to your desktop.Right click on the shortcutIn theShortcuttab, clickAdvancedCheck theRun as AdministratorboxYou can even add a key binding.I used:Ctrl + Alt +Bto block all sites for 1 hourCtrl + Alt +Uto unblock all sitesCtrl + Alt +Pto run a Pomodoro setExample for a batch fileblock.bat:python -m beproductive block 60Behind the ScenesThe script blocks URLs by modifying thehostsfile. Blocked URLs are redirected to127.0.0.1. The script backs up the originalhostsfile. You will not lose any customizations and you can always reset to the original state.RoadmapNotifications for Linux (https://pypi.org/project/notify2/) and Mac (?)Improve architecture, maybe use threads instead ofsleep()Set up a schedule, i.e., block websites between 9am and 5pm
Package: beprof
beprofOverviewdocstestspackageOverv.io issue board:https://overv.io/DataMedSci/beprof/Beam Profile Analysing ToolsLibrary provides methods to work with Beam Profiles which are sets of points
(2-D with optional metadata) sorted by one of coordinates.
cd
beprof is based on nparray class from numpy, and it provides
numerous tools for different computations and data analysis.InstallationCurrent version available on testing PyPi server, although once a
stable version is ready it will be pushed to official PyPi repo.For now, installation can be done from this GIT repository, using:pip install setuptools versioneer
pip install git+https://github.com/DataMedSci/beprof.gitTo unistall, simply use:pip uninstall beprofDocumentationhttps://beprof.readthedocs.io/FeaturesOnce you install beprof, you should be able to import is as a python module
Using ipython the code would be i.e.:import beprof
from beprof import curve  #imports curve module
from beprof import profile  #imports profile moduleOnce you import necessary modules, you can use them to work with i.e. profiles:from beprof import profile
dir(profile)
p = profile.Profile([[0, 1], [1, -1], [2, 3], [4, 0]])
print(p)You can also use another modules as numpy or matplotlib to work with beprof:#assuming you already defined p as above
import numpy as np
import matplotlib.pyplot as plt
foo = np.asarray(p)
print(foo.shape())
plt.plot(foo[:,0], foo[:,1])
plt.show()Note that beprof is a library and end-users shouldn’t “run it”.
It is also strongly discouraged to usegit cloneto download code.
Git is only for developers, end-users should use pip installation.
If you are interested in development - have a look atCONTRIBUTINGsection.CreditsThis package was created withCookiecutterand thegrzanka/cookiecutter-pip-docker-versioneerproject template.
Package: beproud.django.commons
beproud.django.commonsCommon utilities for Django A.K.A. bpcommons.See the docs at:http://bpcommons.rtfd.io/Run tests using tox:$ toxSupportsPython: 3.6, 3.7, 3.8, 3.9, 3.10Django: 2.2, 3.2LinksPyPIDocumentationRepositoryLICENSEBSD License.ChangeLogRelease 0.42 (2023-01-24)Support Django-4.1Support Python-3.8, 3.9, 3.10, 3.11Drop Django-2.2Drop Python-3.6, 3.7Release 0.41 (2022-01-25)Support Django-3.2Support Python-3.7, 3.8, 3.9, 3.10Drop Django-1.11Release 0.40 (2020-04-28)Fix: Field.rel and Field.remote_field.to are removed in Django 2.0Release 0.39 (2019-09-17)Supports:Python-3.6, 3.7 (+ 3.7 / - 2.7)Django-1.11, 2.2 (+ 2.2 / - 1.8, 1.10 that doesn’t support py36)Drop dependency: zenhanRelease 0.38 (2017-07-11)Support Python-3.6Support Django-1.11Drop Django-1.9Remove dependency to bputilsRelease 0.37 (2016-11-25)Support Django-1.10Drop Python-2.6Drop Django-1.7 or earlier.Deprecate some classes:beproud.django.commons.http.JsonResponsebeproud.django.commons.utils.javascript.DjangoJSONEncoderDrop some classes:beproud.django.commons.models.fields.JSONFieldbeproud.django.commons.models.fields.PickledObjectFieldbeproud.django.commons.forms.JSONFieldbeproud.django.commons.forms.widgets.JSONWidgetbeproud.django.commons.forms.widgets.AdminJSONWidgetDropswitchtemplatetag.Remove ‘BigIntegerField’ from __all__ of beproud.django.commons.models.fields.
Please use django.db.models.BigIntegerField instead.Please usehttps://pypi.python.org/pypi/jsonfieldinstead of our JSONField.Release 0.36 (2016-03-23)some fixes and improvementsRelease 0.35 (2016-01-15)Support Django-1.9some fixes and improvements