Saravanan666/pypi-org huggingface dataset:
Package: bwo
Black Widow OptimizationFrom the abstract:
...a novel meta-heuristic algorithm suitable for continuous nonlinear optimization problems. The proposed method, Black Widow Optimization Algorithm (BWO), is inspired by the unique mating behavior of black widow spiders. This method includes an exclusive stage, namely, cannibalism. Due to this stage, species with inappropriate fitness are omitted from the circle, thus leading to early convergence. BWO algorithm is evaluated on 51 various benchmark functions to verify its efficiency in obtaining the optimal solutions for the problems. The obtained results indicate that the proposed algorithm has numerous advantages in different aspects such as early convergence and achieving optimized fitness value compared to other algorithms.Installationpip install bwoorpip install git+https://github.com/nathanrooy/bwoUsageAs a simple example, let's find the minimum of the single objectivespherefunction availabel in theLandscapesPython package.pip install landscapesNext, let's import everything we need.from bwo import minimize
from landscapes.single_objective import sphereNow, we just need to call the minimize function. For this particular example, let's optimize across 5 degrees of freedom.fbest, xbest = minimize(sphere, dof=5)Wherefbestis the best function value achieved during optimization, andxbestis the function input which yieldedfbest.You can also minimize a function given boundry constraints, represented by a list of tuples. Each tuple must follow the (min, max) format.bounds = [(-1,1),(-2,2), (-3,3), (-4,4), (-5,5)]
fbest, xbest = minimize(sphere, bounds=bounds, disp=False)Optionsminimize(func, x0=None, dof=None, bounds=None, pp=0.6, cr=0.44, pm=0.4, npop=10, disp=False, maxiter=50)func(callable) : The objective function to be minimized.x0(list) : Initial guess (optional).dof(int) : degrees of freedom (optional)bounds(list of tuples) : boundary constraints as specified as a list of (xi_min, xi_max) tuples.pp(float) : procreating percentage [0, 1].cr(float) : cannibalism rate [0, 1].pm(float) : mutation rate [0, 1].maxiter(int) : maximum number of iterations.disp(bool) : output intermediate results at each iteration.References@article{article,
author = {Hayyolalam, Vahideh and Pourhaji Kazem, Ali Asghar},
year = {2019},
month = {10},
pages = {103249},
title = {Black Widow Optimization Algorithm: A novel meta-heuristic approach for solving engineering optimization problems ✩},
volume = {87},
journal = {Engineering Applications of Artificial Intelligence},
doi = {10.1016/j.engappai.2019.103249}
}
Package: bw-plex
A tool for skipping intro and outro for plex.Featuresidentify outro start and end scanning the video for credits text.identify intro start and end using themes song or blackframes and
audio silence.identify if the video has a recap using subtitles and audio.download theme songs.process on playback start.process on recently added.control the client to skip intro/outro.start next episode when the credits start.InstallYou should install this from github as this project isnt stable.pip install-egit+https://github.com/Hellowlol/bw_plex.git#egg=bw_plexor using a dockerdocker pull hellowlol/bw_plexUsageCPU/Memory usage can be rather high, so use a 64 bit python install.
Note: This tool only works on your local network.Usage: bw_plex

[OPTIONS] COMMAND [ARGS]...

  CLI tool that monitors pms and jumps the client to after the theme.

Options:
  -d, --debug             Add debug logging.
  -u, --username TEXT     Your plex username
  -p, --password TEXT     Your plex password
  -s, --servername TEXT   The server you want to monitor.
  --url TEXT              url to the server you want to monitor
  -t, --token TEXT        plex-x-token
  -c, --config TEXT       Not in use atm.
  -vs, --verify_ssl TEXT  Enable this to allow insecure connections to PMS
  --help                  Show this message and exit.

Commands:
  add_theme_to_hashtable  Create a hashtable from the themes.
  check_db                Do a manual check of the db.
  create_config           Create a config file.
  export_db               Export the db to some other format.
  ffmpeg_process          Simple manual test for ffmpeg_process with...
  manually_correct_theme  Set the correct fingerprint of the show in...
  match                   Manual match for a file.
  process                 Manual process some/all eps.
  set_manual_theme_time   Set a manual start and end time for a theme.
  watch                   Start watching the server for stuff to do.You can read the help for the subcommands using –help:bw_plex export_db--helpThe most common will be:bw_plex watchHow it works:Bw_plex listens for playing events using websocket. We download the
first 10 minutes of that episode and/or the theme music from
YouTube/tvtunes/Plex.We then create a audio print from the theme song that we match against
the audio of the 10 minutes of the episode. (There’s a backup method
that uses audio silence in combination with black frames too).We then check if this episode has a recap using subtitles and audio
where we look for clues like last season, previously on (add you own
words in the config), then we download last part of the episode an and
indentify the start and end of the outro.Depending on your settings we will then allow playback until the theme
start or just jump straight to intro end if we also should skip recaps.Since this is a rather slow process we also start processing the next
episode so next time you watch the same show we instantly seek the
client to the end of the theme.
Package: bw-projects
bw_projectsThis is a library to manage subdirectories, so that work on a project can be isolated from other projects. It is designed for use with theBrightway life cycle assessmentsoftware framework, but has no dependencies on Brightway and can be used on its own.Project metadata is stored in SQLite using thePeewee ORM. The SQLite file is in thebase_directory, and project data is stored in subdirectories. By default,platformdirsis used to create thebase_directory, though this can be overridden.InstallationVia pip or conda (conda-forgechannel).Depends on:peeweeplatformdirspython_slugifyUsageInitializing the ProjectsManagerfrombw_projectsimportProjectsManager# This doesn't create anything yetprojects_manager=ProjectsManager()# This gets default config and initializes directories and databaseOverriding defaults## You can override default directory by providing a base directory in constructor## You can also override the default database namefrombw_projectsimportProjectsManagerprojects_manager=ProjectsManager(dir_base_data="<path/to/your/base/directory>",database_name="projects.db")## You can also override configurations of default directoryfrombw_projectsimportConfiguration,ProjectsManagerconfig=Configuration(app_name:str="Brightway3",app_author:str="pycla",)projects_manager=ProjectsManager(config=config)Callbacks## You can setup callbacks on projects creation, activation and deletionfrombw_projectsimportProjectsManagerdefcallback_activate_project(manager:ProjectsManager,name:str,attributes:Dict[str,str],dir_path:str):print(f"Manager with{len(manager)}projects activated project{name}with{attributes}and{dir_path}.")projects_manager=ProjectsManager(callbacks_activate_project=callback_activate_project)Project management:exclamation:  Project names may be changed when creating projects## Before calling any project-management feature, the project name is slugified## You can get the new name of the project by running:project=projects_manager.get_clean_directory_name("Компьютер")project>>kompiuter## Create a project without activating it:projects_manager.create_project("<project_name>")## Create a project and activate it:projects_manager.create_project("<project_name>",activate=True)## Iterate over projects:forprojectinprojects_manager:print(project.name,project.attributes)## Activate a project:projects_manager.activate("<project_name>")## Delete a project from SQLite database and deleting the directory:projects_manager.delete_project("<project_name>")## Delete a project from SQLite database without deleting the directory:projects_manager.delete_project("<project_name>",delete_dir=False)ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theBSD-2-Clause license,bw_projectsis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.
Package: bw-requests
Simple Request classUsagefrombw_requestsimportRequestsservice=Requests('https://www.libero.it').get('',headers={"Content-Type":'application/json; charset=UTF-8','User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0'})print(service)service=Requests('https://www.libero.it').get('',headers={"Content-Type":'application/json; charset=UTF-8'})print(service)
Package: bws
MS CoreMs CoreInstalar / Crear un proyectomkdirnombre_proyectocdnombre_proyecto
pipinstall--upgradebws
python3-mbws.cmd.create_project--name_app=mainCrear un aplicacióncdnombre_proyecto;python3-mbws.cmd.create_project--name=app/nombre_appActivar appAgregar dentro de app.config.INSTALLED_APPS el path del moduloINSTALLED_APPS=["...","app.nombre_app"]
Package: bws-boa
MS CoreMs CoreInstalar / Crear un proyectoecho"export PATH=\$PATH:$HOME/.local/bin">>~/.bashrc

pipinstall-Ubws-boa# crear proyectoboainit.Crear un aplicaciónboaadd-app<name>Activar appAgregar dentro de app.config.INSTALLED_APPS el path del moduloINSTALLED_APPS=["...","app.nombre_app"]
Package: bwscan
main repository for bwscan.In order to work, run setup-bwscan after installing package. Contact package maintainer for details.
Home-page:https://github.com/zimmerst/bwscan.gitAuthor: Stephan Zimmer on behalf of BestWestern Scandinavia
Author-email:stephan.zimmer@bestwestern.seLicense: Proprietary
Description: UNKNOWN
Keywords: bwscan
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Environment :: Other Environment
Package: bws-jsonrpc
JsonRpc Flask Ext DispatcherInstalaciónpipinstallbws-jsonrpcModo de usofromflaskimportFlaskfrombws_jsonrpcimportrpc@rpc.methoddefping()->rpc.Result:'''return pong'''returnrpc.Success("pong")@rpc.methoddefthink(object,verb)->rpc.Result:returnrpc.Success([verb,object])g=rpc.group("actions")@g.method(name="drink")def_drink_(object,verb="drink")->rpc.Result:returnrpc.Success([verb,object])@rpc.expose_class(name="person")classPerson(object):@rpc.expose_methoddefgreet(self,name=None):'''return Hi + name'''returnrpc.Success("Hi{}".format(nameor""))if__name__=="__main__":app=Flask(__name__)app.register_blueprint(rpc.as_blueprint())app.run(debug=True)
Package: bwt-api
Python library to access the local API of BWT Perla devices.RequirementsAt least firmware version 2.02xxa network connection by LAN or WiFidevice needs to be registered. You will receive alogin codeneeded laterenable the API in the menu (Settings > General > Connection)Usage examplesbwt –helpbwt –host=”<ip address>” –code=”<login code>” currentbwt –host=”<ip address>” –code=”<login code>” dailybwt –host=”<ip address>” –code=”<login code>” monthlybwt –host=”<ip address>” –code=”<login code>” yearly
Package: bw-temporalis
bw_temporalisInstallationYou can installbw_temporalisvia [pip] from [PyPI]:$pipinstallbw_temporalisCurrently Python 3.11 installations are broken asscikit-networkonly has pre-built wheels for version 0.31 - but this changed theAPI for shortest path, andbw_graph_toolshas not yet been adapted](https://github.com/brightway-lca/bw_graph_tools/issues/13).You can also install using conda in thecmutel channel.Usage notesSeethe teaching repofrom-the-ground-upfor examples on how to use this library.This library uses thenet amountin the technosphere and biosphere matrix, so caution should be taken in cases where multiple edges with temporal dynamics, especially with different numerical signs, link the same nodes. In general, these edges should be split across multiple processes.The temporal resolution should not be less than seconds, it will be rounded up to seconds in theTemporalDistribution.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theBSD 3 Clause license,bw_temporalisis free and open source software.IssuesIf you encounter any problems,
please [file an issue] along with a detailed description.
Package: bwtrack
bwtrackThis repo hosts the code for tracking black and white particles in the mini interfacial rheometer developed by my friend Qiaoge.乔哥牛逼！I've got very timely and insightful feedbacks from Qiaoge, and I'm optimistic that the method here will become useful for other purposes eventually. So I create this repo to record the progress of the core functions.I've always been fascinated about how a software package is made available to users from general public. I have downloaded many Python packages from PyPI. It is part of my habit to check out if there are existing projects that aim to solve my problem, and I'm more than happy to go through the documentations and see if there is a chance to participate in the project.I've also been interested in publishing the code I write for other people to use. This is the key motivation for me to write code in a maintainable way, with clear comments and documentations. I tried to convince other people to try my code, but every time I have a feeling that I'm confusing other people with some functions in my local library, which do not exist on their computer. The problem is, I import my own functions as if they are from available packages, but they are not. For example, I often write in my codefrommyImageLibimportreaddataand this almost always cause problem to other people. Because they will get an error "myImageLib not found". Users with some Python experience will trypip install myImageLibonly to find there is no package called this. Then they come ask me, and I explain them: you need to go to my GitHub and download this piece of code to your computer, and set this directory as your Python path. Not many steps, but can be confusing at each step, and ... not easy.Imagine, if I can make myImageLib a PyPI package, and state it as a requirement of other code I give to users, things can be much more straightforward!So this code, along with myImageLib, will be the first package I'm going to publish. The goal is to make it downloadable throughpip, and work properly right after downloading.
Package: bwt-scrapy-proxy
Подключение ротации прокси-серверов к проекту на scrapyПодключение выполняется в Downloader Middleware.Чтобы его подключить, надоИнсталлироватьpipenv run python -m pip install -e git+https://github.com/gendobr/scrapyproxy.git/#egg=bwt_scrapy_proxyилиpip install -e git+https://github.com/gendobr/scrapyproxy.git/#egg=bwt_scrapy_proxyв settings.py в словарь DOWNLOADER_MIDDLEWARES добавить'bwt_scrapy_proxy.ProxyRotationMiddleware':530в settings.py добавить параметрыX_BWT_PROXY_MEDIATOR = "http://192.168.11.82:5001"
   X_BWT_PARSERNAME = "test"Сейчас mitmproxy работает на 192.168.11.82 и слушает порт 5001X_BWT_PARSERNAME = "test" - уникальный идентификатор парсерав базу данных (таблица parsers) внести уникальный идентификатор парсера
(параметр X_BWT_PARSERNAME из settings.py)
и максимальное количество коннектов (parsers.threads_limit)
Это делает админ БД парсеров.
Package: bw-util
bitwarden-attachments-toolA Gui client is also available nowThis repo is based onhttps://github.com/ckabalan/bitwarden-attachment-exporterDesigned for personal use case but includes limited generic interfacesScript functions are accomplished usingPopen, Pipein subprocess, may introduce security vulnerabilitiesinstallpip install bw-utilthis tool requires bitwarden-cli to runMethods to run1. in shellbw-export [commands] [options]

# gui version as

bw-export-gui2. (windows only) download releaseathttps://github.com/ZackaryW/bitwarden-attachments-tool/releasesdocumentationbase optionsoptiondescriptionpwpasswordsessionsessionKeysavepathexport locationdebugdebug loggingapppathspecifies the location of bitwarden-cliit is also possible to setBW_PATHas an environment variables as a replacement toapppathcommands and options tablecommand / optiondescriptionlogin [username]required if user have not initialized bitwarden-clisyncsyncs local bitwarden vaultunlockunlocks the vault to obtain sessionsavejsonexport userdataexportexport attachments--dumpwill also export the appdata that contains more sensitive informationautoeall-in-one press to go--exampleautoebw-export --pw [password] autoeloginbw-export --pw [password] login [username]chainedbw-export --pw [password] login [username] unlock sync savejson export --dumprequired packageclickAuthorZackary W
Package: bw-utils
bitwarden-utilsbitwarden cli utilitiesInstallpipinstallbw-utilsCli usageto download all attachmentsbwu{-c[username]}-c[password]{-c[totp]}downall[targetFolder]Archivedthis library was a CLI and GUI toolkit for attachment export and json result viewer, link herehttps://github.com/ZackaryW/bitwarden-utils/tree/legacy
Package: bx
# BxIn-memory storage for Python![build-status](https://travis-ci.org/tylucaskelley/bx-python.svg?branch=master)![version](https://pypip.in/version/bx/badge.svg)![downloads](https://pypip.in/download/bx/badge.svg)---```_____~~~`  `~~_____~~~              `~~_|~_                     `~_|  ~_               ___ ~~ ||    ~_        __~~~       ||      ~_ __~~~            ||        |                 ||        |                 ||        |       bx        |~_      |               __|~_   |          __~~~~_ |     __~~~~|__~~~```bx lets you store things in memory. It has a few special features:* Thread safe* Setting a timeout before object is destroyed* JSON Schema validation* Clean & simple API* Badass ASCII art* Supports Python 2.7 and 3.4## InstallationJust make sure you have Python 2.7.x or 3.4.x and pip installed:```bash$ pip install bx```## UsageThe code is pretty simple and well-commented, but here's some example usage. Ifyou want more detail, run `pydoc bx.Db` once you've installed it or look throughthe code to get info.```pythonimport bxstudent = {'title': 'student','type': 'object','required': ['name', 'major', 'gpa'],'properties': {'name': {'type': 'string'},'major': {'type': 'string'},'gpa': {'type': 'number'}}}# The schema argument defaults to None, and there is also an optional# debug mode (for console logging) that defaults to Falsedb = bx.Db(schema=student)try:db.put('bad', 'data')except bx.db.ValidationError: # same as jsonschema.exceptions.ValidationErrorprint('This does not fit the schema!')john = {'name': 'John Doe','major': 'Computer Science','gpa': 3.6}susan = {'name': 'Susan Jones','major': 'Physics','gpa': 3.96}db.put('john', john)db.put('susan', susan)# get average gpaprint(sum([v['gpa'] for v in db.vals()]) / len(db.vals()))db.delete('susan')try:db.delete('bob')except KeyError:print('bob is not in the data store!')```
Package: bx24-orm
bx24-ormОбертка дляBitrix24 API.С помощью нее вы можете вместо:import requests

token = get_token_function()  # get your Bitrix24 token

# prepare your parameters
params = {
    'id': lead_id,
    'auth': token
}

reponse = requests.get(your_domain_url+'crm.lead.get', params)

# check if request is OK
if response.status_code < 300:
    result = response.json()['result']
else:
    handle_errors(response)сделать так:from bx24_orm.entity.crm import BxLead
from bx24_orm.exceptions.code_exceptions import BxException

try:
    result = BxLead.get(lead_id)
except BxException as ex:
    handle_error(ex)  # your handling codeУстановкаЧтобы установить пакет:pip install bx24-ormНачало работыДля начала нужно создать файл конфигурацииbx24_settings.py.
Рекомендую создать его в корне проекта.TOKEN_STORAGE_FILE_PATH = 'bx24_tokens'  # путь до файла где хранятся токены приложения
DEFAULT_DOMAIN = '{Ваш домен 3-го уровня}'
DEFAULT_TRANSPORT = 'json' # xml пока не поддерживается
BX24_DOMAIN_SETTINGS = {
    '{домен 3-го уровня}': {
        'client_id': '{ваш_client_id}',
        'client_secret': '{ваш_client_secret}'
    }
}Далее добавьте путь до файла настроек в переменную окружения:BX24_SETTINGS_MODULEПолучите токены для доступа к API. Для удобства можете воспользоваться скриптом командной строки:> bx24_cmd get_tokens -c {ваш client_id} -s {ваш client_secret} -d {ваш домен 3-го уровня в битрикс}Далее пройдите по ссылке, появившейся в скрипте. Если нужно авторизируйтесь в вашем Bitrix24. И скопируйте параметр code из url браузера и вставьте его в консоль.Используя python консоль в вашем проекте выполните следующий код:from bx24_orm.core import token_storage
token_storage.save_token('ваш домен 3-го уровня', 'access_token', 'refresh_token')Готово! Пакет готов к использованию!Кастомизация ваших моделейfrom bx24_orm.enitiy.crm import BxDeal, BxLead, BxCompany, BxField


class Deal(BxDeal):
    custom_field = BxField('UF_CRM_1539088441')


class Lead(BxLead):
    custom_field = BxField('UF_CRM_1539088367')


class Company(BxCompany):
    custom_field = BxField('UF_CRM_1539088478')Стоит помнить:Для экономии трафика при изменении моделей, они отслеживают какие поля изменились.
Следовательно, чтобы изменить ссылочные типы данных модели, например телефон, нужно делать так:lead = Lead.get(1)
  new_phone = lead.phone()
  new_phone[0]['VALUE'] = 'NEW_VALUE'
  lead.phone = new_phone
  lead.save()ЗаключениеЕсли у вас возникнут вопросы, то не стесняйтесь написать мне на почту:dmitriilazukov@gmail.comТакже приветствуются Pull Request-ы.
Package: bxdev
BasicX is a programming language for a series of microcontrollers designed and
built by NetMedia, Inc. These microcontrollers, the BX01, the BX24, and BX35,
are little more than a modified AVR with a bootloader. However, the presence of
the bootloader means that we can only program them using the BasicX language.This language is feature-complete with VB 6, and can only be compiled by an IDE
nearly ten-years old.These tools are written to change that.There are three scripts, bxbuild, bxdebug, and bxproj, and a suite of shared
libraries they all depend upon. bxproj will create new BasicX projects, bxbuild
will compile them and download them to target devices, and bxdebug will read
debugging messages being transmitted over RS232 serial communication.For more information about BasicX, seehttp://www.basicx.com/Note that to use these tools, you’ll need the BasicX compiler installed. This
can be found here (http://www.basicx.com/downloads/bx-setup-210-complete.zip)
for Windows. Unix users will need to use Wine to make this work.
Package: bxinth
# Library for bx.in.th## DescriptionPython library for bx.in.th api.## Requirements- [python 3.6+](https://www.python.org/download/releases/3.6.0/)- [pyotp](https://github.com/pyotp/pyotp)- [requests](https://github.com/requests/requests/)## Installation```bash$ pip install bxinth```## Usage```pythonfrom bxinth import BxIn, pairsbx = BxIn('api_key', 'api_secret', 'otp')# get orderbookbook = bx.orderbook(pairs.THBBTC)bids = book['bids']asks = book['asks']# make orderorder_id = bx.order(pairs.THBBTC, 1, 33000)['order_id']# cancel orderbx.cancel(pairs.THBBTC, order_id)```## TestingAdd src/config_test.py file with```pythonAPI_KEY = 'api_key'API_SECRET = 'api_secret'OTP = 'otp'```and run```bash$ python -m unittest```